Skip to content

Commit 50a19ad

Browse files
melverpaulmckrcu
authored andcommitted
objtool, kcsan: Add kcsan_disable_current() and kcsan_enable_current_nowarn()
Both are safe to be called from uaccess contexts. Signed-off-by: Marco Elver <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 19acd03 commit 50a19ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/objtool/check.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ static const char *uaccess_safe_builtin[] = {
472472
"kcsan_found_watchpoint",
473473
"kcsan_setup_watchpoint",
474474
"kcsan_check_scoped_accesses",
475+
"kcsan_disable_current",
476+
"kcsan_enable_current_nowarn",
475477
/* KCSAN/TSAN */
476478
"__tsan_func_entry",
477479
"__tsan_func_exit",

0 commit comments

Comments
 (0)