History

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.

Josh Poimboeuf committed 6 months ago

Commit da432651 parent 62a7a011 file · +1 −0Browse files

Unified · Split

tools/objtool/klp-diff.c+1−0
@@ -291,6 +291,7 @@ static bool is_special_section(struct section *sec) · 290 unmodified lines
291291 {
292292 static const char * const specials[] = {
293293 ".altinstructions",
294+ ".kcfi_traps",
294295 ".smp_locks",
295296 "__bug_table",
296297 "__ex_table",