diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-03-08 18:30:54 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-03-15 12:32:46 +0300 |
commit | 08f87a93c8ec709698edba66a5167077181fc978 (patch) | |
tree | c661600616cc6d3ffc329ed3fbdf30fcc05dc946 /arch/x86/kernel/vmlinux.lds.S | |
parent | 7d209d13e7c3a3d60dc262f11a8ae4e6b4454d30 (diff) | |
download | linux-08f87a93c8ec709698edba66a5167077181fc978.tar.xz |
objtool: Validate IBT assumptions
Intel IBT requires that every indirect JMP/CALL targets an ENDBR
instructions, failing this #CP happens and we die. Similarly, all
exception entries should be ENDBR.
Find all code relocations and ensure they're either an ENDBR
instruction or ANNOTATE_NOENDBR. For the exceptions look for
UNWIND_HINT_IRET_REGS at sym+0 not being ENDBR.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154319.705110141@infradead.org
Diffstat (limited to 'arch/x86/kernel/vmlinux.lds.S')
0 files changed, 0 insertions, 0 deletions