From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756913AbbCRSuc (ORCPT ); Wed, 18 Mar 2015 14:50:32 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:34598 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753211AbbCRSua (ORCPT ); Wed, 18 Mar 2015 14:50:30 -0400 Date: Wed, 18 Mar 2015 21:50:27 +0300 From: Cyrill Gorcunov To: Oleg Nesterov Cc: Andrey Wagin , Andy Lutomirski , Ingo Molnar , Andi Kleen , "H. Peter Anvin" , Al Viro , X86 ML , LKML , Linus Torvalds , Borislav Petkov , Andy Lutomirski , Pavel Emelyanov Subject: Re: [PATCH v3 1/2] x86_64,signal: Fix SS handling for signals delivered to 64-bit programs Message-ID: <20150318185027.GB17491@moon> References: <405594361340a2ec32f8e2b115c142df0e180d8e.1426193719.git.luto@kernel.org> <20150318174843.GA32238@redhat.com> <20150318181306.GF2255@moon> <20150318183133.GB1832@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150318183133.GB1832@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2015 at 07:31:33PM +0100, Oleg Nesterov wrote: > On 03/18, Cyrill Gorcunov wrote: > > > > On Wed, Mar 18, 2015 at 06:48:43PM +0100, Oleg Nesterov wrote: > > > > > > Shot in a dark afer a quick grep: restore_gpregs() should initialize ->ss? > > > > It hasn't been needed earlier, if this would help it means abi is broken, no? :) > > Otherwise I don't understand what's happening. > > until this commit the kernel simply forgot to restore ->ss in sigreturn(). > > after this commit, if your rt_sigframe has garbage in ->ss then SIGSEGV > is clear. OK, so setting up a proper ss here should fix problem. > > > > > > Seriously, where is UserX86RegsEntry? > > > > It's in protobif/core-x86.proto, welcome to protobuf hell. > > Still can't find UserX86RegsEntry... OK, perhaps it comes from > user_x86_regs_entry in protobuf/core-x86.proto. Then I guess the patch I sent > can be compiled at least ;) Yeah, protobuf-c mangles "_" in message name so user_x86_regs_entry -> UserX86RegsEntry. Andrew should be able to test it tomorrow (hopefully it's no urgent right? ;)