From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras Subject: Re: powerpc: fix double syscall restarts Date: Wed, 22 Sep 2010 15:44:10 +1000 Message-ID: <20100922054410.GA22365@drongo> References: <20100920204856.GF31363@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20100920204856.GF31363@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Al Viro Cc: linux-arch@kernel.org, linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Linus Torvalds List-Id: linux-arch.vger.kernel.org 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 Acked-by: Paul Mackerras