From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCA4t-0000Jh-GM for qemu-devel@nongnu.org; Tue, 07 Nov 2017 15:02:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCA4q-0000uQ-EE for qemu-devel@nongnu.org; Tue, 07 Nov 2017 15:02:31 -0500 Received: from jessie.kos.to ([212.47.231.226]:57956 helo=pilvi.kos.to) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCA4q-0000tf-7k for qemu-devel@nongnu.org; Tue, 07 Nov 2017 15:02:28 -0500 Date: Tue, 7 Nov 2017 20:02:21 +0000 From: Riku Voipio Message-ID: <20171107200221.GA27631@kos.to> References: <1509993206-26637-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1509993206-26637-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH 0/4] linux-user: fix various SIGSEGV delivery bugs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, patches@linaro.org, Laurent Vivier On Mon, Nov 06, 2017 at 06:33:22PM +0000, Peter Maydell wrote: > This patchset fixes most of the problems with delivering SIGSEGV > noted in https://bugs.launchpad.net/qemu/+bug/1705118: > * s390x is missing masking operations on the fault address > passed to the guest in si_addr > * ppc is passing the PC of the offending insn, not the data > address, into si_addr > * sparc fails to record the address of a data fault and so > passes 0 into si_addr > * sparc isn't implementing rt_sigaction correctly (it has an > extra 'restorer' argument, similar to alpha) > > It doesn't actually get the sparc testcase from that bug working, > though, because SPARC is entirely missing support for setup_rt_frame() > and do_rt_sigreturn(), so it can't deliver RT signals. > > Implementing RT signal delivery is too big a bugfix for an afternoon, > so here are the simpler parts. I'll leave the signal delivery part > to somebody who cares about SPARC guests... > > thanks > -- PMM Thanks! series applied to linux-user tree, Riku > Peter Maydell (4): > linux-user/s390x: Mask si_addr for SIGSEGV > linux-user/ppc: Report correct fault address for data faults > linux-user/sparc: Put address for data faults where linux-user expects > it > linux-user: Handle rt_sigaction correctly for SPARC > > linux-user/main.c | 8 ++++++-- > linux-user/syscall.c | 27 +++++++++++++++++++++++---- > target/sparc/mmu_helper.c | 8 ++++++++ > 3 files changed, 37 insertions(+), 6 deletions(-) > > -- > 2.7.4 >