projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a5de9b
)
x86/static_call: Add ANNOTATE_NOENDBR to static call trampoline
author
Josh Poimboeuf
<jpoimboe@redhat.com>
Mon, 18 Apr 2022 16:50:22 +0000
(09:50 -0700)
committer
Peter Zijlstra
<peterz@infradead.org>
Tue, 19 Apr 2022 19:58:48 +0000
(21:58 +0200)
The static call trampoline is never indirect-branched to, but is
referenced by the static call key. Add ANNOTATE_NOENDBR.
Fixes: ed53a0d97192 ("x86/alternative: Use .ibt_endbr_seal to seal indirect calls")
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link:
https://lkml.kernel.org/r/1b5b54aad7d81241dabe5e0c9b40dea64b540b00.1650300597.git.jpoimboe@redhat.com
arch/x86/include/asm/static_call.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/static_call.h
b/arch/x86/include/asm/static_call.h
index 2455d721503ece7a6f1f5a24edd8f20c18629272..2d8dacd026437a2968c29226f7f9aeaefa96f45e 100644
(file)
--- a/
arch/x86/include/asm/static_call.h
+++ b/
arch/x86/include/asm/static_call.h
@@
-26,6
+26,7
@@
".align 4 \n" \
".globl " STATIC_CALL_TRAMP_STR(name) " \n" \
STATIC_CALL_TRAMP_STR(name) ": \n" \
+ ANNOTATE_NOENDBR \
insns " \n" \
".byte 0x53, 0x43, 0x54 \n" \
".type " STATIC_CALL_TRAMP_STR(name) ", @function \n" \