From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 8 Feb 2010 11:04:35 +1100 From: Anton Blanchard To: Michael Neuling Subject: Re: Stack size protection broken on ppc64 Message-ID: <20100208000435.GJ32246@kryten> References: <3984.1265416993@neuling.org> <20100206042038.GB32246@kryten> <10125.1265451732@neuling.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <10125.1265451732@neuling.org> Cc: aeb@cwi.nl, linux-kernel@vger.kernel.org, miltonm@bga.com, linuxppc-dev@ozlabs.org, Paul Mackerras , WANG Cong , Serge Hallyn , stable@kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, > Cool, thanks. The following is based on this and fixes the problem for > me on PPC64 ie. the !CONFIG_STACK_GROWSUP case. Thanks! Seeing the original setting of EXTRA_STACK_VM_PAGES is more or less random, I wonder if we should round EXTRA_STACK_VM_SIZE up to 128kB (or even down to 64kB) so it operates better with > 4kB pages. But in the end its probably of little use for the default OVERCOMMIT_GUESS setting, so the main thing is we dont terminate processes incorrectly. Acked-by: Anton Blanchard Anton