Skip to content

Commit e049380

Browse files
melverpaulmckrcu
authored andcommitted
kcsan: Make strict mode imply interruptible watchers
If CONFIG_KCSAN_STRICT=y, select CONFIG_KCSAN_INTERRUPT_WATCHER as well. With interruptible watchers, we'll also report same-CPU data races; if we requested strict mode, we might as well show these, too. Suggested-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent d8fd74d commit e049380

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Kconfig.kcsan

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ config KCSAN_SKIP_WATCH_RANDOMIZE
150150
KCSAN_WATCH_SKIP.
151151

152152
config KCSAN_INTERRUPT_WATCHER
153-
bool "Interruptible watchers"
153+
bool "Interruptible watchers" if !KCSAN_STRICT
154+
default KCSAN_STRICT
154155
help
155156
If enabled, a task that set up a watchpoint may be interrupted while
156157
delayed. This option will allow KCSAN to detect races between

0 commit comments

Comments
 (0)