Skip to content

Commit af6bfcd

Browse files
hcahcaVasily Gorbik
authored andcommitted
s390/mm: Dump fault info in case of low address protection fault
In case of an unexpected low address protection fault in user mode dump fault info to make debugging a bit easier. At least the teid is valid, while dumping the page table is racy, since no lock is held. But it might still give some hints. Acked-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent 1018424 commit af6bfcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/s390/mm/fault.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ void do_protection_exception(struct pt_regs *regs)
376376
if (unlikely(!teid.b61)) {
377377
if (user_mode(regs)) {
378378
/* Low-address protection in user mode: cannot happen */
379+
dump_fault_info(regs);
379380
die(regs, "Low-address protection");
380381
}
381382
/*

0 commit comments

Comments
 (0)