From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754612AbcEDXDS (ORCPT ); Wed, 4 May 2016 19:03:18 -0400 Received: from mail-ob0-f180.google.com ([209.85.214.180]:33802 "EHLO mail-ob0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753675AbcEDXDQ (ORCPT ); Wed, 4 May 2016 19:03:16 -0400 MIME-Version: 1.0 In-Reply-To: <20160504063233.GB9499@gmail.com> References: <20160504063233.GB9499@gmail.com> From: Andy Lutomirski Date: Wed, 4 May 2016 16:02:55 -0700 Message-ID: Subject: Re: [PATCH 1/4] signals/sigaltstack: If SS_AUTODISARM, bypass on_sig_stack To: Ingo Molnar Cc: Thomas Gleixner , Shuah Khan , Pavel Emelyanov , Andrew Morton , Jason Low , "Eric W. Biederman" , Josh Triplett , Aleksa Sarai , Paul Moore , X86 ML , Sasha Levin , Stas Sergeev , Denys Vlasenko , Al Viro , "Amanieu d'Antras" , Borislav Petkov , Konstantin Khlebnikov , Heinrich Schuchardt , Tejun Heo , Brian Gerst , Linux API , Linus Torvalds , Palmer Dabbelt , Frederic Weisbecker , Andrea Arcangeli , Vladimir Davydov , "linux-kernel@vger.kernel.org" , Oleg Nesterov , Richard Weinberger , "H. Peter Anvin" , Peter Zijlstra Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On May 3, 2016 11:32 PM, "Ingo Molnar" wrote: > > > * Andy Lutomirski wrote: > > > If a signal stack is set up with SS_AUTODISARM, then the kernel > > inherently avoids incorrectly resetting the signal stack if signals > > recurse: the signal stack will be reset on the first signal > > delivery. This means that we don't need check the stack pointer > > when delivering signals if SS_AUTODISARM is set. > > > > This will make segmented x86 programs more robust: currently there's > > a hole that could be triggered if ESP/RSP appears to point to the > > signal stack but actually doesn't due to a nonzero SS base. > > > > Signed-off-by: Stas Sergeev > > Presuably that SOB from Stas is stray, as there's no matching From: line? > I've removed it. Yes. It was a cut-and-paste-o -- I meant to change it to cc. > > Thanks, > > Ingo