]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] powerpc: fix incorrect SA_ONSTACK behaviour for 64-bit processes
authorLaurent MEYER <meyerlau@fr.ibm.com>
Wed, 5 Apr 2006 22:45:19 +0000 (08:45 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 17 Apr 2006 20:16:04 +0000 (13:16 -0700)
commitbb532cb98cd10b4bbb14c0ce253fbaed16a761c4
treea6fe9807e749c2dd09f5975aef8ca7d64e0d73b3
parentbce29a817a973634535f92aa217152177e82c3bd
[PATCH] powerpc: fix incorrect SA_ONSTACK behaviour for 64-bit processes

*) When setting a sighandler using sigaction() call, if the flag
SA_ONSTACK is set and no alternate stack is provided via sigaltstack(),
the kernel still try to install the alternate stack. This behavior is
the opposite of the one which is documented in Single Unix
Specifications V3.

*) Also when setting an alternate stack using sigaltstack() with the
flag SS_DISABLE, the kernel try to install the alternate stack on
signal delivery.

These two use cases makes the process crash at signal delivery.

This fixes it.

Signed-off-by: Laurent Meyer <meyerlau@fr.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/kernel/signal_64.c