diff options
author | David S. Miller <davem@davemloft.net> | 2011-08-20 17:14:54 -0700 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-08-17 15:35:08 -0400 |
commit | 0bd523cb775e5866c98f7e74c68f781f51049f78 (patch) | |
tree | f9d2e7746eb6e8585195a604738a8925f88e2500 /init | |
parent | 0dc7814d12a5bdf6648edd635d5f52f50f0ca04b (diff) |
sparc: Allow handling signals when stack is corrupted.
commit 5598473a5b40c47a8c5349dd2c2630797169cf1a upstream.
If we can't push the pending register windows onto the user's stack,
we disallow signal delivery even if the signal would be delivered on a
valid seperate signal stack.
Add a register window save area in the signal frame, and store any
unsavable windows there.
On sigreturn, if any windows are still queued up in the signal frame,
try to push them back onto the stack and if that fails we kill the
process immediately.
This allows the debug/tst-longjmp_chk2 glibc test case to pass.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions