]> git.baikalelectronics.ru Git - kernel.git/commit
s390: fix kernel asce loading when sie is interrupted
authorSven Schnelle <svens@linux.ibm.com>
Wed, 3 Feb 2021 08:16:45 +0000 (09:16 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 13 Feb 2021 16:17:53 +0000 (17:17 +0100)
commit3c673edaf457e827851696dcc7ecf628766e1143
tree2cd4ee70d94fdc4d6723d20447fe8c9e45b07591
parent798cf421a07f3db439cbee7299e5ec156d278415
s390: fix kernel asce loading when sie is interrupted

If a machine check is coming in during sie, the PU saves the
control registers to the machine check save area. Afterwards
mcck_int_handler is called, which loads __LC_KERNEL_ASCE into
%cr1. Later the code restores %cr1 from the machine check area,
but that is wrong when SIE was interrupted because the machine
check area still contains the gmap asce. Instead it should return
with either __KERNEL_ASCE in %cr1 when interrupted in SIE or
the previous %cr1 content saved in the machine check save area.

Fixes: 7d52790e1677 ("s390/mm: remove set_fs / rework address space handling")
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Cc: <stable@kernel.org> # v5.8+
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/entry.S