From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757251AbcEDGcl (ORCPT ); Wed, 4 May 2016 02:32:41 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36154 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757054AbcEDGcj (ORCPT ); Wed, 4 May 2016 02:32:39 -0400 Date: Wed, 4 May 2016 08:32:33 +0200 From: Ingo Molnar To: Andy Lutomirski Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Stas Sergeev , Al Viro , Aleksa Sarai , "Amanieu d'Antras" , Andrea Arcangeli , Andrew Morton , Andy Lutomirski , Brian Gerst , Denys Vlasenko , "Eric W. Biederman" , Frederic Weisbecker , "H. Peter Anvin" , Heinrich Schuchardt , Jason Low , Josh Triplett , Konstantin Khlebnikov , Linus Torvalds , Oleg Nesterov , Palmer Dabbelt , Paul Moore , Pavel Emelyanov , Peter Zijlstra , Richard Weinberger , Sasha Levin , Shuah Khan , Tejun Heo , Thomas Gleixner , Vladimir Davydov , linux-api@vger.kernel.org Subject: Re: [PATCH 1/4] signals/sigaltstack: If SS_AUTODISARM, bypass on_sig_stack Message-ID: <20160504063233.GB9499@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 * 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. Thanks, Ingo