kcsan: Make strict mode imply interruptible watchers
authorMarco Elver <elver@google.com>
Tue, 15 Jun 2021 18:39:38 +0000 (20:39 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 20 Jul 2021 20:49:44 +0000 (13:49 -0700)
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>
lib/Kconfig.kcsan

index 26f03c7..e0a93ff 100644 (file)
@@ -150,7 +150,8 @@ config KCSAN_SKIP_WATCH_RANDOMIZE
          KCSAN_WATCH_SKIP.
 
 config KCSAN_INTERRUPT_WATCHER
-       bool "Interruptible watchers"
+       bool "Interruptible watchers" if !KCSAN_STRICT
+       default KCSAN_STRICT
        help
          If enabled, a task that set up a watchpoint may be interrupted while
          delayed. This option will allow KCSAN to detect races between