Skip to contentSkip to conversation

objtool fix

GIT PULL Merged Ingo Molnar 2 participants 2 messages Sep 17, 2023 objtool

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest objtool/urgent git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-urgent-2023-09-17

# HEAD: 72178d5d1a38dd185d1db15f177f2d122ef10d9b objtool: Fix _THIS_IP_ detection for cold functions

Fix a cold functions related false-positive objtool warning that triggers on Clang.

Thanks,

Ingo

------------------>
Josh Poimboeuf (1):
objtool: Fix _THIS_IP_ detection for cold functions

 tools/objtool/check.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/objtool/check.c +2 -1
index 1384090530db..e308d1ba664e 100644
@@ -4333,7 +4333,8 @@ static int validate_ibt_insn(struct objtool_file *file, struct instruction *insn
 			continue;
 		}
 
-		if (insn_func(dest) && insn_func(dest) == insn_func(insn)) {
+		if (insn_func(dest) && insn_func(insn) &&
+		    insn_func(dest)->pfunc == insn_func(insn)->pfunc) {
 			/*
 			 * Anything from->to self is either _THIS_IP_ or
 			 * IRET-to-self.
merge bot Merged
#1 lore raw
The pull request you sent on Sun, 17 Sep 2023 19:34:13 +0200:

The pull request you sent on Sun, 17 Sep 2023 19:34:13 +0200:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-urgent-2023-09-17

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/e54ca3c81f2d81e4de3339873256e568f60ce076

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html