Skip to content

Commit e54ca3c

Browse files
committed
Merge tag 'objtool-urgent-2023-09-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull objtool fix from Ingo Molnar: "Fix a cold functions related false-positive objtool warning that triggers on Clang" * tag 'objtool-urgent-2023-09-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: objtool: Fix _THIS_IP_ detection for cold functions
2 parents 99a73f9 + 72178d5 commit e54ca3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/objtool/check.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4333,7 +4333,8 @@ static int validate_ibt_insn(struct objtool_file *file, struct instruction *insn
43334333
continue;
43344334
}
43354335

4336-
if (insn_func(dest) && insn_func(dest) == insn_func(insn)) {
4336+
if (insn_func(dest) && insn_func(insn) &&
4337+
insn_func(dest)->pfunc == insn_func(insn)->pfunc) {
43374338
/*
43384339
* Anything from->to self is either _THIS_IP_ or
43394340
* IRET-to-self.

0 commit comments

Comments
 (0)