]> git.baikalelectronics.ru Git - kernel.git/commit
mn10300: signal stack fix
authorMark Salter <msalter@redhat.com>
Fri, 8 Jan 2010 22:43:14 +0000 (14:43 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 11 Jan 2010 17:34:07 +0000 (09:34 -0800)
commit75d0909d991395d5cbb10efaaa10a2b8a04e12ec
tree8f81d66cee3cd2a061664d3544b58b2362aa62e2
parent3dd7ac7fcd10c629e3267a1fc93664d497f4a0c3
mn10300: signal stack fix

This fixes a signal stack handling problem in the MN10300 arch.  When new
threads are cloned with CLONE_VM, they don't inherit the alternate signal
stack.  They do share the signal flags, though.  When deciding whether to
use an alternate stack, the arch code needs to check to make sure the task
struct contains a valid alternate stack.  This patch fixes the MN10300
arch by using the sas_ss_flags() test provided by sched.h rather than the
on_sig_stack() test which is insufficient by itself.

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mn10300/kernel/signal.c