From: Al Viro Date: Mon, 20 Sep 2010 20:48:57 +0000 (+0100) Subject: powerpc: fix double syscall restarts X-Git-Tag: v2.6.36-rc6~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a81c16b527528ad307843be5571111aa8d35a80;p=pandora-kernel.git powerpc: fix double syscall restarts Make sigreturn zero regs->trap, make do_signal() do the same on all paths. As it is, signal interrupting e.g. read() from fd 512 (== ERESTARTSYS) with another signal getting unblocked when the first handler finishes will lead to restart one insn earlier than it ought to. Same for multiple signals with in-kernel handlers interrupting that sucker at the same time. Same for multiple signals of any kind interrupting that sucker on 64bit... Signed-off-by: Al Viro Acked-by: Paul Mackerras Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed