s390: disable preemption when switching to nodat stack with CALL_ON_STACK
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 22 Nov 2019 11:19:16 +0000 (12:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 18:18:31 +0000 (19:18 +0100)
commite0ca1ec34d7f3888003130b22e312db99dad6387
tree112efa228fa349f392c7c74c4797a4ae21c5f4ae
parent99472d43f4ef93c293bc4a4b364608889b7d3139
s390: disable preemption when switching to nodat stack with CALL_ON_STACK

[ Upstream commit 7f28dad395243c5026d649136823bbc40029a828 ]

Make sure preemption is disabled when temporary switching to nodat
stack with CALL_ON_STACK helper, because nodat stack is per cpu.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kernel/machine_kexec.c
arch/s390/mm/maccess.c