ChangeSet 1.2231.1.116, 2005/03/28 19:48:46-08:00, [EMAIL PROTECTED]
[PATCH] s390: signal stack bug
If a signal handler is set to use the signal stack (SA_ONSTACK), but the
signal stack is disabled, the signal frame should be written to the
current
stack without stack switching.
The reason for the bug is get_sigframe() using on_sig_stack() instead of
sas_ss_flags(), which would be ok.
Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
signal.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/arch/s390/kernel/signal.c b/arch/s390/kernel/signal.c
--- a/arch/s390/kernel/signal.c 2005-03-28 21:32:03 -08:00
+++ b/arch/s390/kernel/signal.c 2005-03-28 21:32:03 -08:00
@@ -282,7 +282,7 @@
/* This is the X/Open sanctioned signal stack switching. */
if (ka->sa.sa_flags & SA_ONSTACK) {
- if (! on_sig_stack(sp))
+ if (! sas_ss_flags(sp))
sp = current->sas_ss_sp + current->sas_ss_size;
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html