Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xGJ3D1R3FzDrFG for ; Mon, 24 Jul 2017 20:47:04 +1000 (AEST) From: Michael Ellerman To: LEROY Christophe , Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org, aneesh.kumar@linux.vnet.ibm.com Subject: Re: [PATCH 23/24] powerpc/mm: Cleanup check for stack expansion In-Reply-To: <20170721185947.Horde.e8_0DAuKLUb1znI0Zfx-aQ2@messagerie.c-s.fr> References: <20170719044946.22030-1-benh@kernel.crashing.org> <20170719044946.22030-23-benh@kernel.crashing.org> <20170721185947.Horde.e8_0DAuKLUb1znI0Zfx-aQ2@messagerie.c-s.fr> Date: Mon, 24 Jul 2017 20:47:02 +1000 Message-ID: <87pocqjemx.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , LEROY Christophe writes: > Benjamin Herrenschmidt a =C3=A9crit=C2=A0: > >> When hitting below a VM_GROWSDOWN vma (typically growing the stack), >> we check whether it's a valid stack-growing instruction and we >> check the distance to GPR1. This is largely open coded with lots >> of comments, so move it out to a helper. > > Did you have a look at the following patch ? It's been waiting for=20=20 > application for some weeks now.=20=20 > https://patchwork.ozlabs.org/patch/771869 I actually merged it last merge window, but found I had no good way to test it, so I took it out again until I can write a test case for it. The way I realised it wasn't being tested was by removing all the store_updates_sp logic entirely and having my system run happily for several days :} cheers