]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool/klp: Fix kCFI trap handling
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 21 Apr 2026 03:37:39 +0000 (20:37 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:01 +0000 (21:16 -0700)
commitda4326573ae8d00a00a6015c8c3886812cd0adb4
tree6764be625c1a588d85828540350637b8466bd82b
parent62a7a01fde87c99926cd7e9670b4226c4c79ebaf
objtool/klp: Fix kCFI trap handling

.kcfi_traps contains references to kCFI trap instruction locations.
When a KCFI type check fails at an indirect call, the trap handler looks
up the faulting address in this section.

Add it to the special sections list so the entries get extracted for the
changed functions they reference.

Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/klp-diff.c