Skip to content

Commit 127581b

Browse files
author
Martin Schwidefsky
committed
s390/mm: handle asce-type exceptions as normal page fault
Git commit 9e34f2686bb088b211b6cac8772e1f644c6180f8 "s390/mm,tlb: tlb flush on page table upgrade fixup" removed the exception handler for the asce-type exception. This is incorrect as the user-copy with MVCOS can cause asce-type exceptions in the kernel if a user pointer is too large. Those need to be handled with do_no_context to branch to the fixup in the user-copy code. The simplest fix for this problem is to call do_dat_exception for asce-type excpetions, as there is no vma for the address the code will handle the exception correctly. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 8adbf78 commit 127581b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/pgm_check.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ PGM_CHECK_DEFAULT /* 34 */
7878
PGM_CHECK_DEFAULT /* 35 */
7979
PGM_CHECK_DEFAULT /* 36 */
8080
PGM_CHECK_DEFAULT /* 37 */
81-
PGM_CHECK_DEFAULT /* 38 */
81+
PGM_CHECK_64BIT(do_dat_exception) /* 38 */
8282
PGM_CHECK_64BIT(do_dat_exception) /* 39 */
8383
PGM_CHECK_64BIT(do_dat_exception) /* 3a */
8484
PGM_CHECK_64BIT(do_dat_exception) /* 3b */

0 commit comments

Comments
 (0)