From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41QftC14PDzF35S for ; Wed, 11 Jul 2018 23:24:19 +1000 (AEST) In-Reply-To: <20180702155621.GA16047@beast> To: Kees Cook From: Michael Ellerman Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, Paul Mackerras , Anatolij Gustschin , linuxppc-dev@lists.ozlabs.org Subject: Re: [v2] powerpc: mpc5200: Remove VLA usage Message-Id: <41Qft95thjzB4MT@ozlabs.org> Date: Wed, 11 Jul 2018 23:24:17 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2018-07-02 at 15:56:21 UTC, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > switches to using a stack size large enough for the saved routine and > adds a sanity check making sure the routine doesn't overflow into the > 0x600 exception handler. > > [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com > > Signed-off-by: Kees Cook > Reviewed-by: Arnd Bergmann Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/741c5640a15a23a2ec3a0846668a82 cheers