summaryrefslogtreecommitdiffstats
path: root/tools/objtool
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2021-11-30 12:44:30 +0100
committerPaul E. McKenney <paulmck@kernel.org>2021-12-10 01:42:28 +0100
commit0525bd82f6a9b5860ed3ea53520ac11ebfa09d5b (patch)
treea39c3445f873da1c4cdb40d9f841533bfb024c84 /tools/objtool
parentsched, kcsan: Enable memory barrier instrumentation (diff)
downloadlinux-0525bd82f6a9b5860ed3ea53520ac11ebfa09d5b.tar.xz
linux-0525bd82f6a9b5860ed3ea53520ac11ebfa09d5b.zip
objtool, kcsan: Add memory barrier instrumentation to whitelist
Adds KCSAN's memory barrier instrumentation to objtool's uaccess whitelist. Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/objtool')
-rw-r--r--tools/objtool/check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c
index 21735829b860..61dfb66b30b6 100644
--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -849,6 +849,10 @@ static const char *uaccess_safe_builtin[] = {
"__asan_report_store16_noabort",
/* KCSAN */
"__kcsan_check_access",
+ "__kcsan_mb",
+ "__kcsan_wmb",
+ "__kcsan_rmb",
+ "__kcsan_release",
"kcsan_found_watchpoint",
"kcsan_setup_watchpoint",
"kcsan_check_scoped_accesses",