android_kernel_xiaomi_sm7250/arch/sparc/include
David Miller d7f58d5f2c sparc64: Make corrupted user stacks more debuggable.
[ Upstream commit 5b4fc3882a649c9411dd0dcad2ddb78e911d340e ]

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>
2018-11-04 14:50:54 +01:00
..
asm sparc64: Make corrupted user stacks more debuggable. 2018-11-04 14:50:54 +01:00
uapi/asm sparc: Wire up io_pgetevents system call. 2018-10-09 16:52:38 -07:00