aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2019-12-21 18:41:48 +0000
committerPaul E. McKenney <[email protected]>2020-02-21 00:03:31 +0000
commit202489101f2e6cee3f6dffc087a4abd5fdfcebda (patch)
treecedef3be1fb42eb8f0a08d7e1652ec998bd9a4ed /scripts/gcc-plugins/cyc_complexity_plugin.c
parentrcutorture: Make kvm-find-errors.sh abort on bad directory (diff)
downloadkernel-202489101f2e6cee3f6dffc087a4abd5fdfcebda.tar.gz
kernel-202489101f2e6cee3f6dffc087a4abd5fdfcebda.zip
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: Paul E. McKenney <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions