Commit ed5528b9 authored by Heiko Carstens's avatar Heiko Carstens Committed by sanglipeng
Browse files

s390/percpu: add READ_ONCE() to arch_this_cpu_to_op_simple()

stable inclusion
from stable-v5.10.164
commit 51dbedee2ff3b000c9905189e33e1972b6c9f649
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7T7G4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=51dbedee2ff3b000c9905189e33e1972b6c9f649



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

commit e3f360db upstream.

Make sure that *ptr__ within arch_this_cpu_to_op_simple() is only
dereferenced once by using READ_ONCE(). Otherwise the compiler could
generate incorrect code.

Cc: <stable@vger.kernel.org>
Reviewed-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent d7a2846f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment