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

Showing the changes to tools/objtool/klp-diff.c (1 of 1 file). Show all

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",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t