]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390/nmi: purge tlbs after control register validation
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 21 Feb 2017 10:07:39 +0000 (11:07 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Feb 2017 09:06:39 +0000 (10:06 +0100)
Play safe and purge all tlbs after the control registers that contain
the primary, secondary and home space asces have been validated.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/nmi.c

index b76b5fef251e1ad211ac78017ef7d3704541e0bb..80c093e0c6f1a3ef56fcc38e04d1af9a076f427f 100644 (file)
@@ -125,7 +125,8 @@ static int notrace s390_validate_registers(union mci mci, int umode)
                s390_handle_damage();
        } else {
                asm volatile(
-                       "       lctlg   0,15,0(%0)"
+                       "       lctlg   0,15,0(%0)\n"
+                       "       ptlb\n"
                        : : "a" (&S390_lowcore.cregs_save_area) : "memory");
        }
        if (!mci.fp) {