LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [tip: locking/debug] kcsan: Improve some Kconfig comments
@ 2021-08-18 7:58 tip-bot2 for Marco Elver
0 siblings, 0 replies; only message in thread
From: tip-bot2 for Marco Elver @ 2021-08-18 7:58 UTC (permalink / raw)
Cc: Mark Rutland, Marco Elver, Paul E. McKenney, x86, linux-kernel
The following commit has been merged into the locking/debug branch of tip:
Author: Marco Elver <firstname.lastname@example.org>
AuthorDate: Mon, 07 Jun 2021 14:56:47 +02:00
Committer: Paul E. McKenney <email@example.com>
CommitterDate: Tue, 20 Jul 2021 13:49:43 -07:00
kcsan: Improve some Kconfig comments
Improve comment for CC_HAS_TSAN_COMPOUND_READ_BEFORE_WRITE. Also shorten
the comment above the "strictness" configuration options.
Acked-by: Mark Rutland <firstname.lastname@example.org>
Signed-off-by: Marco Elver <email@example.com>
Signed-off-by: Paul E. McKenney <firstname.lastname@example.org>
lib/Kconfig.kcsan | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/lib/Kconfig.kcsan b/lib/Kconfig.kcsan
index 0440f37..6152fbd 100644
@@ -40,10 +40,14 @@ menuconfig KCSAN
-# Compiler capabilities that should not fail the test if they are unavailable.
def_bool (CC_IS_CLANG && $(cc-option,-fsanitize=thread -mllvm -tsan-compound-read-before-write=1)) || \
(CC_IS_GCC && $(cc-option,-fsanitize=thread --param tsan-compound-read-before-write=1))
+ The compiler instruments plain compound read-write operations
+ differently (++, --, +=, -=, |=, &=, etc.), which allows KCSAN to
+ distinguish them from other plain accesses. This is currently
+ supported by Clang 12 or later.
bool "Show verbose reports with more information about system state"
@@ -169,13 +173,9 @@ config KCSAN_REPORT_ONCE_IN_MS
reporting to avoid flooding the console with reports. Setting this
to 0 disables rate limiting.
-# The main purpose of the below options is to control reported data races (e.g.
-# in fuzzer configs), and are not expected to be switched frequently by other
-# users. We could turn some of them into boot parameters, but given they should
-# not be switched normally, let's keep them here to simplify configuration.
-# The defaults below are chosen to be very conservative, and may miss certain
+# The main purpose of the below options is to control reported data races, and
+# are not expected to be switched frequently by non-testers or at runtime.
+# The defaults are chosen to be conservative, and can miss certain bugs.
bool "Report races of unknown origin"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-18 7:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 7:58 [tip: locking/debug] kcsan: Improve some Kconfig comments tip-bot2 for Marco Elver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).