Re: powerpc: fix double syscall restarts

From: Paul Mackerras
Date: Wed Sep 22 2010 - 01:44:24 EST


On Mon, Sep 20, 2010 at 09:48:57PM +0100, Al Viro wrote:

> 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 <viro@xxxxxxxxxxxxxxxxxx>

Acked-by: Paul Mackerras <paulus@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/