objtool, kcsan: Add memory barrier instrumentation to whitelist
authorMarco Elver <elver@google.com>
Tue, 30 Nov 2021 11:44:30 +0000 (12:44 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 10 Dec 2021 00:42:28 +0000 (16:42 -0800)
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>
tools/objtool/check.c

index 2173582..61dfb66 100644 (file)
@@ -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",