]> git.karo-electronics.de Git - mv-sheeva.git/commit
m68k: Don't lose state if sigframe setup fails
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Oct 2010 05:15:49 +0000 (01:15 -0400)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 7 Jan 2011 13:01:34 +0000 (14:01 +0100)
commitf85741eb5fb2653fd9138b4bef68396615c720f7
treecf57bfb2816c43ab7bc832ce1535b92000b20af0
parent9e4930dbf17c1eba72631cd52a0c621da3d1a816
m68k: Don't lose state if sigframe setup fails

If we'd failed in setup_frame(), we've no place to store
the original sigmask.  It's not an unrecoverable situation -
we raise SIGSEGV, but that SIGSEGV might be successfully
handled (e.g. on altstack).  In that case we really don't
want sa_mask of original signal permanently slapped on
the set of blocked signals.

Standard solution: have setup_frame()/setup_rt_frame()
report failure and don't mess with the signal-related
state if that has happened...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/signal.c