You need to sign in or sign up before continuing.
  • Sven Schnelle's avatar
    s390: fix kernel asce loading when sie is interrupted · 26521412
    Sven Schnelle authored
    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: 87d59863
    
     ("s390/mm: remove set_fs / rework address space handling")
    Signed-off-by: default avatarSven Schnelle <svens@linux.ibm.com>
    Cc: <stable@kernel.org> # v5.8+
    Reviewed-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    26521412
entry.S 18.5 KB