Commit 0eaddc22 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Yang Yingliang
Browse files

srcu: Apply *_ONCE() to ->srcu_last_gp_end



mainline inclusion
from mainline-v5.6-rc1
commit 844a378d
category: bugfix
bugzilla: 28851
CVE: NA

-------------------------------------------------------------------------

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: default avatar <syzbot+08f3e9d26e5541e1ecf2@syzkaller.appspotmail.com>
Acked-by: default avatarMarco Elver <elver@google.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Conflicts:
	kernel/rcu/srcutree.c

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 4e78f001
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment