Skip to content

Commit 9967683

Browse files
melverpaulmckrcu
authored andcommitted
objtool, kcsan: Add explicit check functions to uaccess whitelist
Add explicitly invoked KCSAN check functions to objtool's uaccess whitelist. This is needed in order to permit calling into kcsan_check_scoped_accesses() from the fast-path, which in turn calls __kcsan_check_access(). __kcsan_check_access() is the generic variant of the already whitelisted specializations __tsan_{read,write}N. Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 757a4ce commit 9967683

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tools/objtool/check.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,10 @@ static const char *uaccess_safe_builtin[] = {
468468
"__asan_report_store8_noabort",
469469
"__asan_report_store16_noabort",
470470
/* KCSAN */
471+
"__kcsan_check_access",
471472
"kcsan_found_watchpoint",
472473
"kcsan_setup_watchpoint",
474+
"kcsan_check_scoped_accesses",
473475
/* KCSAN/TSAN */
474476
"__tsan_func_entry",
475477
"__tsan_func_exit",

0 commit comments

Comments
 (0)