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
@@ -67,6 +67,7 @@ do { save_and_clear_fpu(); \
|
||||
} while(0)
|
||||
|
||||
void synchronize_user_stack(void);
|
||||
void fault_in_user_windows(void);
|
||||
struct pt_regs;
|
||||
void fault_in_user_windows(struct pt_regs *);
|
||||
|
||||
#endif /* __SPARC64_SWITCH_TO_64_H */
|
||||
|
||||
Reference in New Issue
Block a user