]> git.baikalelectronics.ru Git - kernel.git/commit
rcutorture: Annotation lockless accesses to rcu_torture_current
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 9 Jan 2020 03:58:13 +0000 (19:58 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 21 Feb 2020 00:03:31 +0000 (16:03 -0800)
commit9be7c7a4e34f6027cc180b3ca0fd52cc505b3bca
treed2e44a2353b31fb376351e12527b90099ae3ef04
parentc39c749199828567d1065a1eade48c441e8f2e3d
rcutorture: Annotation lockless accesses to rcu_torture_current

The rcutorture global variable rcu_torture_current is accessed locklessly,
so it must use the RCU pointer load/store primitives.  This commit
therefore adds several that were missed.

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

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c