From: Ingo Molnar Subject: Re: [PATCH 1/4] signals/sigaltstack: If SS_AUTODISARM, bypass on_sig_stack Date: Wed, 4 May 2016 08:32:33 +0200 Message-ID: <20160504063233.GB9499@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andy Lutomirski Cc: x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 List-Id: linux-api@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