sparc64: Make corrupted user stacks more debuggable.
Right now if we get a corrupted user stack frame we do a do_exit(SIGILL) which is not helpful. If under a debugger, this behavior causes the inferior process to exit. So the register and other state cannot be examined at the time of the event. Instead, conditionally log a rate limited kernel log message and then force a SIGSEGV. With bits and ideas borrowed (as usual) from powerpc. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
caf539cd10
commit
5b4fc3882a
@@ -39,6 +39,7 @@ __handle_preemption:
|
||||
wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
|
||||
|
||||
__handle_user_windows:
|
||||
add %sp, PTREGS_OFF, %o0
|
||||
call fault_in_user_windows
|
||||
661: wrpr %g0, RTRAP_PSTATE, %pstate
|
||||
/* If userspace is using ADI, it could potentially pass
|
||||
|
Reference in New Issue
Block a user