From: Herbert Xu Subject: Re: [PATCH v3 4/9] dm integrity: Remove VLA usage Date: Sun, 1 Jul 2018 14:29:14 +0800 Message-ID: <20180701062914.nihtpl5ekf7nytat@gondor.apana.org.au> References: <20180629002843.31095-1-keescook@chromium.org> <20180629002843.31095-5-keescook@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Arnd Bergmann , "Gustavo A. R. Silva" , Eric Biggers , Alasdair Kergon , Giovanni Cabiddu , Lars Persson , Mike Snitzer , Rabin Vincent , Tim Chen , "David S. Miller" , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , qat-linux@intel.com, dm-devel@redhat.com, Linux Kernel Mailing List , Greg Kroah-Hartman To: Kees Cook Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org On Fri, Jun 29, 2018 at 02:56:37PM -0700, Kees Cook wrote: > > This conversion was following the existing check (PAGE_SIZE / 8), and > not via an analysis of alg.digestsize users. Let me double-check. For > predefined stuff, it looks like the largest is: > > SKEIN1024_DIGEST_BIT_SIZE/8 == 128 This should be removed. We shouldn't allow generic or new crypto algorithms in staging. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt