Skip to content

Commit a144935

Browse files
committed
rcutorture: Set KCSAN Kconfig options to detect more data races
This commit enables the KCSAN Kconfig options that (1) detect data races between reads and writes even when the writes do not change the variable's value and (2) detect data races involving plain C-language writes. These changes only affect scripted rcutorture runs and can be overridden using the kvm.sh --kconfig argument. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 9470a18 commit a144935

File tree

1 file changed

+2
-0
lines changed
  • tools/testing/selftests/rcutorture/configs/rcu

1 file changed

+2
-0
lines changed

tools/testing/selftests/rcutorture/configs/rcu/CFcommon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ CONFIG_PRINTK_TIME=y
33
CONFIG_HYPERVISOR_GUEST=y
44
CONFIG_PARAVIRT=y
55
CONFIG_KVM_GUEST=y
6+
CONFIG_KCSAN_ASSUME_PLAIN_WRITES_ATOMIC=n
7+
CONFIG_KCSAN_REPORT_VALUE_CHANGE_ONLY=n

0 commit comments

Comments
 (0)