Skip to content

Commit 8cfbb04

Browse files
melveringomolnar
authored andcommitted
kcsan: Clean up the main KCSAN Kconfig option
This patch cleans up the rules of the 'KCSAN' Kconfig option by: 1. implicitly selecting 'STACKTRACE' instead of depending on it; 2. depending on DEBUG_KERNEL, to avoid accidentally turning KCSAN on if the kernel is not meant to be a debug kernel; 3. updating the short and long summaries. Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent a249a73 commit 8cfbb04

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎lib/Kconfig.kcsan‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ config HAVE_ARCH_KCSAN
44
bool
55

66
menuconfig KCSAN
7-
bool "KCSAN: watchpoint-based dynamic data race detector"
8-
depends on HAVE_ARCH_KCSAN && !KASAN && STACKTRACE
7+
bool "KCSAN: dynamic data race detector"
8+
depends on HAVE_ARCH_KCSAN && DEBUG_KERNEL && !KASAN
9+
select STACKTRACE
910
help
10-
Kernel Concurrency Sanitizer is a dynamic data race detector, which
11-
uses a watchpoint-based sampling approach to detect races. See
12-
<file:Documentation/dev-tools/kcsan.rst> for more details.
11+
The Kernel Concurrency Sanitizer (KCSAN) is a dynamic data race
12+
detector, which relies on compile-time instrumentation, and uses a
13+
watchpoint-based sampling approach to detect data races.
14+
15+
See <file:Documentation/dev-tools/kcsan.rst> for more details.
1316

1417
if KCSAN
1518

0 commit comments

Comments
 (0)