]> err.no Git - linux-2.6/commit
[PATCH] s390: alternate signal stack handling bug
authorLaurent Meyer <meyerlau@fr.ibm.com>
Fri, 28 Apr 2006 01:40:07 +0000 (18:40 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 28 Apr 2006 15:33:47 +0000 (08:33 -0700)
commit28f223782bca914ae65d08234c57c2175ecd7f5d
tree17100f49e1e1b0c11bfa6f817b412363407d20e3
parent6dcfca78d4c036c9d012f913e2a622aae218827f
[PATCH] s390: alternate signal stack handling bug

If a signal handler has been established with the SA_ONSTACK option but no
alternate stack is provided with sigaltstack(), the kernel still tries to
install the alternate stack.  Also when setting an alternate stack with
sigalstack() and the SS_DISABLE flag, the kernel tries to install the
alternate stack on signal delivery.  Use the correct conditions sas_ss_flags()
to check if the alternate stack has to be used.

Signed-off-by: Laurent Meyer <meyerlau@fr.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/kernel/compat_signal.c