]> git.baikalelectronics.ru Git - kernel.git/commit
x86/retpoline: Add ANNOTATE_NOENDBR for retpolines
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 18 Apr 2022 16:50:23 +0000 (09:50 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 Apr 2022 19:58:49 +0000 (21:58 +0200)
commitcfda45a2ebb5d9278ac2d4d58247394352a6cbe0
tree114c7f4e8be4f01cd6d8d86a4f0c8d74916e2c0d
parenta68da4c50ccbd7d7d34536c6eb3bcb8f54b7c986
x86/retpoline: Add ANNOTATE_NOENDBR for retpolines

The retpolines are exported, so they're referenced by ksymtab sections.
But they're never indirect-branched to, so add ANNOTATE_NOENDBR.

Fixes: 41b9bc8a5fee ("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/b6ec963dfd9301b6b1d74ef7758fcb0b540d6c6c.1650300597.git.jpoimboe@redhat.com
arch/x86/lib/retpoline.S