mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user