Skip to content
Commit 20248910 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcutorture: Fix rcu_torture_one_read()/rcu_torture_writer() data race



The ->rtort_pipe_count field in the rcu_torture structure checks for
too-short grace periods, and is therefore read by rcutorture's readers
while being updated by rcutorture's writers.  This commit therefore
adds the needed READ_ONCE() and WRITE_ONCE() invocations.

This data race was reported by KCSAN.  Not appropriate for backporting
due to failure being unlikely and due to this being rcutorture.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent beabc806
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment