Loading kernel/kcsan/core.c +6 −2 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) "kcsan: " fmt #include <linux/atomic.h> #include <linux/bug.h> #include <linux/delay.h> Loading Loading @@ -463,7 +465,7 @@ kcsan_setup_watchpoint(const volatile void *ptr, size_t size, int type) if (IS_ENABLED(CONFIG_KCSAN_DEBUG)) { kcsan_disable_current(); pr_err("KCSAN: watching %s, size: %zu, addr: %px [slot: %d, encoded: %lx]\n", pr_err("watching %s, size: %zu, addr: %px [slot: %d, encoded: %lx]\n", is_write ? "write" : "read", size, ptr, watchpoint_slot((unsigned long)ptr), encode_watchpoint((unsigned long)ptr, size, is_write)); Loading Loading @@ -623,9 +625,11 @@ void __init kcsan_init(void) * We are in the init task, and no other tasks should be running; * WRITE_ONCE without memory barrier is sufficient. */ if (kcsan_early_enable) if (kcsan_early_enable) { pr_info("enabled early\n"); WRITE_ONCE(kcsan_enabled, true); } } /* === Exported interface =================================================== */ Loading Loading
kernel/kcsan/core.c +6 −2 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) "kcsan: " fmt #include <linux/atomic.h> #include <linux/bug.h> #include <linux/delay.h> Loading Loading @@ -463,7 +465,7 @@ kcsan_setup_watchpoint(const volatile void *ptr, size_t size, int type) if (IS_ENABLED(CONFIG_KCSAN_DEBUG)) { kcsan_disable_current(); pr_err("KCSAN: watching %s, size: %zu, addr: %px [slot: %d, encoded: %lx]\n", pr_err("watching %s, size: %zu, addr: %px [slot: %d, encoded: %lx]\n", is_write ? "write" : "read", size, ptr, watchpoint_slot((unsigned long)ptr), encode_watchpoint((unsigned long)ptr, size, is_write)); Loading Loading @@ -623,9 +625,11 @@ void __init kcsan_init(void) * We are in the init task, and no other tasks should be running; * WRITE_ONCE without memory barrier is sufficient. */ if (kcsan_early_enable) if (kcsan_early_enable) { pr_info("enabled early\n"); WRITE_ONCE(kcsan_enabled, true); } } /* === Exported interface =================================================== */ Loading