Skip to content

Commit adec488

Browse files
committed
torture: Loosen .config checks for KCSAN kernels
KCSAN enables some Kconfig options unilaterally and unconditionally, including CONFIG_PROVE_LOCKING. This in turn enables CONFIG_PROVE_RCU and CONFIG_PREEMPT_COUNT, which conflicts with constraints in SRCU-T, TRACE01, and TREE10, which in turn causes rcutorture to emit spurious configuration complaints. This commit therefore forgives configuration complaints involving CONFIG_PROVE_RCU and CONFIG_PREEMPT_COUNT. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent eb3156f commit adec488

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/testing/selftests/rcutorture/bin/kvm-recheck.sh

+7
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ do
5252
echo QEMU killed
5353
fi
5454
configcheck.sh $i/.config $i/ConfigFragment > $i/ConfigFragment.diags 2>&1
55+
if grep -q '^CONFIG_KCSAN=y$' $i/ConfigFragment.input
56+
then
57+
# KCSAN forces a number of Kconfig options, so remove
58+
# complaints about those Kconfig options in KCSAN runs.
59+
mv $i/ConfigFragment.diags $i/ConfigFragment.diags.kcsan
60+
grep -v -E 'CONFIG_PROVE_RCU|CONFIG_PREEMPT_COUNT' $i/ConfigFragment.diags.kcsan > $i/ConfigFragment.diags
61+
fi
5562
if test -s $i/ConfigFragment.diags
5663
then
5764
cat $i/ConfigFragment.diags

0 commit comments

Comments
 (0)