]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: prevent multiple syscall restarts
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 17 Sep 2010 13:56:16 +0000 (14:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 17 Sep 2010 13:56:16 +0000 (14:56 +0100)
commit595b7ad69a27a65e46494005e2cf76aaf00df5b9
treec82f6af3b566b449895e202962d2dc7caed1f20f
parent39ed069644d34cd422440d01eb02a70cddcb075d
ARM: prevent multiple syscall restarts

Al Viro reports that calling "sys_sigsuspend(-ERESTARTNOHAND, 0, 0)"
with two signals coming and being handled in kernel space results
in the syscall restart being done twice.

Avoid this by clearing the 'why' flag when we call the signal handling
code to prevent further syscall restarts after the first.

Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-common.S