mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-21 15:43:21 +02:00
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>
This commit is contained in:
@@ -291,6 +291,7 @@ static bool is_special_section(struct section *sec)
|
||||
{
|
||||
static const char * const specials[] = {
|
||||
".altinstructions",
|
||||
".kcfi_traps",
|
||||
".smp_locks",
|
||||
"__bug_table",
|
||||
"__ex_table",
|
||||
|
||||
Reference in New Issue
Block a user