sparc64: Make corrupted user stacks more debuggable.
[ Upstream commit 5b4fc388 ] 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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- arch/sparc/include/asm/switch_to_64.h 2 additions, 1 deletionarch/sparc/include/asm/switch_to_64.h
- arch/sparc/kernel/process_64.c 19 additions, 6 deletionsarch/sparc/kernel/process_64.c
- arch/sparc/kernel/rtrap_64.S 1 addition, 0 deletionsarch/sparc/kernel/rtrap_64.S
- arch/sparc/kernel/signal32.c 10 additions, 2 deletionsarch/sparc/kernel/signal32.c
- arch/sparc/kernel/signal_64.c 5 additions, 1 deletionarch/sparc/kernel/signal_64.c
Please register or sign in to comment