Skip to content

Commit ae033f0

Browse files
committed
objtool: Add check_kcov_mode() to the uaccess safelist
check_kcov_mode() is called by write_comp_data() and __sanitizer_cov_trace_pc(), which are already on the uaccess safe list. It's notrace and doesn't call out to anything else, so add it to the list too. This fixes the following warnings: kernel/kcov.o: warning: objtool: __sanitizer_cov_trace_pc()+0x15: call to check_kcov_mode() with UACCESS enabled kernel/kcov.o: warning: objtool: write_comp_data()+0x1b: call to check_kcov_mode() with UACCESS enabled Reported-by: Arnd Bergmann <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]>
1 parent 9d907f1 commit ae033f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/objtool/check.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ static const char *uaccess_safe_builtin[] = {
507507
"__asan_report_store16_noabort",
508508
/* KCOV */
509509
"write_comp_data",
510+
"check_kcov_mode",
510511
"__sanitizer_cov_trace_pc",
511512
"__sanitizer_cov_trace_const_cmp1",
512513
"__sanitizer_cov_trace_const_cmp2",

0 commit comments

Comments
 (0)