]> www.infradead.org Git - users/dwmw2/linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:36:39 +0000 (04:36 -0800)
commit35e80e1ecf8c7af1c2457d0f067a6b2a4ac2bc67
tree9e4b4df89531394533d7f2bcbb3c139f87c13b63
parent53e197803d428f886610ea7f2dd770484d82945d
srcu: Apply *_ONCE() to ->srcu_last_gp_end

commit 844a378de3372c923909681706d62336d702531e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/rcu/srcutree.c