From: Kees Cook Subject: Re: [PATCH v8 5/9] dm: Remove VLA usage from hashes Date: Thu, 13 Sep 2018 09:41:45 -0700 Message-ID: References: <20180807211843.47586-1-keescook@chromium.org> <20180807211843.47586-6-keescook@chromium.org> <20180904031318.47jc3jrxcdjeac5y@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Giovanni Cabiddu , Herbert Xu , Arnd Bergmann , Ard Biesheuvel , Rasmus Villemoes , Tudor-Dan Ambarus , Will Deacon , LKML , Matthew Wilcox , "Gustavo A. R. Silva" , device-mapper development , Eric Biggers , linux-crypto , Geert Uytterhoeven , Andrew Morton , Thomas Gleixner To: Mike Snitzer , Alasdair Kergon Return-path: In-Reply-To: <20180904031318.47jc3jrxcdjeac5y@gondor.apana.org.au> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com List-Id: linux-crypto.vger.kernel.org On Mon, Sep 3, 2018 at 8:13 PM, Herbert Xu wrote: > On Tue, Aug 07, 2018 at 02:18:39PM -0700, Kees Cook wrote: >> In the quest to remove all stack VLA usage from the kernel[1], this uses >> the new HASH_MAX_DIGESTSIZE from the crypto layer to allocate the upper >> bounds on stack usage. >> >> [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com >> >> Signed-off-by: Kees Cook > > Can the dm folks please review this patch? Mike or Alasdair, can you Ack this patch so Herbert can include it in the crypto tree? This is blocking some VLA removals[1]... Thanks! -Kees [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com -- Kees Cook Pixel Security