mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-16 10:27:46 +07:00
[S390] user space fault: report fault before calling do_exit
Report user space faults before calling do_exit, since do_exit does not return and therefore we will never see the fault message on the console. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
10d3858950
commit
6ea5096827
@ -390,8 +390,8 @@ static void default_trap_handler(struct pt_regs * regs, long interruption_code)
|
|||||||
{
|
{
|
||||||
if (regs->psw.mask & PSW_MASK_PSTATE) {
|
if (regs->psw.mask & PSW_MASK_PSTATE) {
|
||||||
local_irq_enable();
|
local_irq_enable();
|
||||||
do_exit(SIGSEGV);
|
|
||||||
report_user_fault(interruption_code, regs);
|
report_user_fault(interruption_code, regs);
|
||||||
|
do_exit(SIGSEGV);
|
||||||
} else
|
} else
|
||||||
die("Unknown program exception", regs, interruption_code);
|
die("Unknown program exception", regs, interruption_code);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user