소스 검색

s390/nmi: purge tlbs after control register validation

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>
Heiko Carstens 8 년 전
부모
커밋
5791d90d00
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      arch/s390/kernel/nmi.c

+ 2 - 1
arch/s390/kernel/nmi.c

@@ -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) {