]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: signal: check signal stack overflow properly
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Thu, 19 Mar 2009 17:56:29 +0000 (10:56 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 20 Mar 2009 18:01:31 +0000 (19:01 +0100)
commit14fc9fbc700dc95b4f46ebd588169324fe6deff8
treedb11b6437bc9600295f415ab4d087da861ecbe97
parent7f00a2495bf5b98b097c47be5d6e2d4114ec39bf
x86: signal: check signal stack overflow properly

Impact: cleanup

Check alternate signal stack overflow with proper stack pointer.
The stack pointer of the next signal frame is different if that
task has i387 state.

On x86_64, redzone would be included.

No need to check SA_ONSTACK if we're already using alternate signal stack.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Cc: Roland McGrath <roland@redhat.com>
LKML-Reference: <49C2874D.3080002@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/signal.c