Skip to content

Commit bf078b2

Browse files
committed
Revert "objtool: Exclude __tracepoints data from ENDBR checks"
JIRA: https://issues.redhat.com/browse/RHEL-87959 Upstream Status: RHEL-only This reverts commit d5ae766. When tracepoints are enabled, tracepoint_add_func() does an indirect call to syscall_regfunc(). Since tracepoint data is excluded from ENDBR checks, syscall_regfunc() is missing an ENDBR instruction which causes Intel CET/IBT to throw a control protection exemption. Therefore, revert commit d5ae766 to ensure the ENDBR instruction is included. Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
1 parent 88894d4 commit bf078b2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/objtool/check.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4578,7 +4578,6 @@ static int validate_ibt(struct objtool_file *file)
45784578
!strcmp(sec->name, ".kcfi_traps") ||
45794579
!strcmp(sec->name, ".llvm.call-graph-profile") ||
45804580
!strcmp(sec->name, ".llvm_bb_addr_map") ||
4581-
!strcmp(sec->name, "__tracepoints") ||
45824581
strstr(sec->name, "__patchable_function_entries"))
45834582
continue;
45844583

0 commit comments

Comments
 (0)