]> Git Repo - linux.git/commit
objtool: Validate IBT assumptions
authorPeter Zijlstra <[email protected]>
Tue, 8 Mar 2022 15:30:54 +0000 (16:30 +0100)
committerPeter Zijlstra <[email protected]>
Tue, 15 Mar 2022 09:32:46 +0000 (10:32 +0100)
commit08f87a93c8ec709698edba66a5167077181fc978
treec661600616cc6d3ffc329ed3fbdf30fcc05dc946
parent7d209d13e7c3a3d60dc262f11a8ae4e6b4454d30
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) <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
tools/objtool/builtin-check.c
tools/objtool/check.c
tools/objtool/include/objtool/builtin.h
tools/objtool/include/objtool/objtool.h
This page took 0.053911 seconds and 4 git commands to generate.