srcu: Apply *_ONCE() to ->srcu_last_gp_end
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 4 Nov 2019 16:08:30 +0000 (08:08 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Jan 2020 18:33:51 +0000 (10:33 -0800)
commit844a378de3372c923909681706d62336d702531e
tree2519d04a043f31a4929b586c5c2441d283aa3e41
parent7441e7661d6586ae36329b7956e4d713d81e9903
srcu: Apply *_ONCE() to ->srcu_last_gp_end

The ->srcu_last_gp_end field is accessed from any CPU at any time
by synchronize_srcu(), so non-initialization references need to use
READ_ONCE() and WRITE_ONCE().  This commit therefore makes that change.

Reported-by: syzbot+08f3e9d26e5541e1ecf2@syzkaller.appspotmail.com
Acked-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/srcutree.c