]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] fix incorrect SA_ONSTACK behaviour for 64-bit processes
authorLaurent MEYER <meyerlau@fr.ibm.com>
Fri, 23 Jun 2006 09:05:36 +0000 (02:05 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:05 +0000 (07:43 -0700)
commitd09042da7284a86ffbdd18695f517a71514ed598
tree09e9a3de71a4a4cf6c8f8cb0c40ec0a916e01cae
parent785d55708c24c28d7646f3d1fe6c9f82fb714311
[PATCH] 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.

Signed-off-by: Laurent Meyer <meyerlau@fr.ibm.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: David Howells <dhowells@redhat.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/alpha/kernel/signal.c
arch/frv/kernel/signal.c
arch/h8300/kernel/signal.c
arch/m68k/kernel/signal.c
arch/m68knommu/kernel/signal.c
arch/parisc/kernel/signal.c
arch/sh64/kernel/signal.c
arch/v850/kernel/signal.c
arch/xtensa/kernel/signal.c