sparc: Prevent no-handler signal syscall restart recursion.
authorDavid S. Miller <davem@davemloft.net>
Wed, 22 Sep 2010 05:30:13 +0000 (22:30 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:27:07 +0000 (13:27 -0800)
commit46d47fb2558d6aca81d7720fc590acf7a47a2425
tree5aab1ceb4b89f83913d44cbad55e77f5086698e6
parent2884b5043735467eb4cc6672c8b41b72bb9f9e53
sparc: Prevent no-handler signal syscall restart recursion.

[ Upstream commit c27852597829128a9c9d96d79ec454a83c6b0da5 ]

Explicitly clear the "in-syscall" bit when we have no signal
handler and back up the program counters to back up the system
call.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/kernel/signal32.c
arch/sparc/kernel/signal_32.c
arch/sparc/kernel/signal_64.c