From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933426AbaHYTMq (ORCPT ); Mon, 25 Aug 2014 15:12:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34194 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932253AbaHYTMp (ORCPT ); Mon, 25 Aug 2014 15:12:45 -0400 Date: Mon, 25 Aug 2014 21:09:56 +0200 From: Oleg Nesterov To: Hugh Dickins Cc: Cyrill Gorcunov , Andrew Morton , Manfred Spraul , Davidlohr Bueso , Kees Cook , Tejun Heo , Andrew Vagin , "Eric W. Biederman" , "H. Peter Anvin" , Serge Hallyn , Pavel Emelyanov , Vasiliy Kulikov , KAMEZAWA Hiroyuki , Michael Kerrisk , Julien Tinnes , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ipc/shm: fix the historical/wrong mm->start_stack check Message-ID: <20140825190956.GA25759@redhat.com> References: <20140823144246.GA6281@redhat.com> <20140823144327.GA6299@redhat.com> <20140823152240.GH25918@moon> <20140823155832.GA9406@redhat.com> <20140825150301.GB3021@redhat.com> <20140825171820.GB8338@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/25, Hugh Dickins wrote: > > On Mon, 25 Aug 2014, Oleg Nesterov wrote: > > On 08/25, Hugh Dickins wrote: > > > > > And I think I'll let Linus's guard page justify your 4 (to match comment) > > > in place of the original's mysterious 5. > > > > Ah, thanks again. Yes, if we want to guarantee 4 pages we should check 5. > > > > Although obviously this doesn't explain the original's 5, this was > > written before check_stack_guard_page(). > > I meant, you changed the coded 5 to 4, to match the comment above it; > and if I were insistent on maximizing back-compatible-safety, I would > say that 4 should go back to 5; I already did this ;) I'll send v2 patch in a minute. > But I didn't understand your "to guarantee 4 we should check 5". I just tried to say that I fully agree with your point. I didn't dare to preserve your acks although the patch is almost the same, I'll appreciate it if you can ack v2 too. Oleg.