]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc: fix incorrect SA_ONSTACK behaviour for 64-bit processes
authorLaurent MEYER <meyerlau@fr.ibm.com>
Mon, 27 Mar 2006 09:37:41 +0000 (11:37 +0200)
committerPaul Mackerras <paulus@samba.org>
Tue, 28 Mar 2006 05:45:24 +0000 (16:45 +1100)
commit7e311388b7405dc5a5ae162473f77258458130bd
treedb5780ca34bee26bfcb1bbbdb8a2a3ab71c14b5a
parent1805fc085f21d2c60f11c0c7401ca1d78b7f9dd2
[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>
arch/powerpc/kernel/signal_64.c