summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree_exp.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2019-11-04 17:22:45 +0100
committerPaul E. McKenney <paulmck@kernel.org>2020-01-24 19:27:33 +0100
commitc51f83c315c392d9776c33eb16a2fe1349d65c7f (patch)
treec0ae69a187c5acd5314516670f1b58140ca38ebb /kernel/rcu/tree_exp.h
parentrcu: Clear ->rcu_read_unlock_special only once (diff)
downloadlinux-c51f83c315c392d9776c33eb16a2fe1349d65c7f.tar.xz
linux-c51f83c315c392d9776c33eb16a2fe1349d65c7f.zip
rcu: Use READ_ONCE() for ->expmask in rcu_read_unlock_special()
The rcu_node structure's ->expmask field is updated only when holding the ->lock, but is also accessed locklessly. This means that all ->expmask updates must use WRITE_ONCE() and all reads carried out without holding ->lock must use READ_ONCE(). This commit therefore changes the lockless ->expmask read in rcu_read_unlock_special() to use READ_ONCE(). Reported-by: syzbot+99f4ddade3c22ab0cf23@syzkaller.appspotmail.com Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Acked-by: Marco Elver <elver@google.com>
Diffstat (limited to 'kernel/rcu/tree_exp.h')
0 files changed, 0 insertions, 0 deletions