Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2538370imm; Sat, 30 Jun 2018 23:30:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI/5ndqRj2lW5klVxyfIOdVNQwWb07XWyTd4xxK0ZnUk6tZDudtzWKDVd2kVHpQPPOl8r3V X-Received: by 2002:a63:2c94:: with SMTP id s142-v6mr17355206pgs.39.1530426659672; Sat, 30 Jun 2018 23:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530426659; cv=none; d=google.com; s=arc-20160816; b=VCibWawsh/TpBVrzqgjEokekF4T98ogPB2ufADdabF4WdJF4edupwVW9KuBBxVIp/I R9g8S1e9V4CKDe9JRN3vq8st1gJm19Q/WWg6Y/MVvECM71fyFWLiXb3wkCoR8mSHwLxx huZailzAO7LOnVAFBsD9ESrN4zmg1xmHYuCFot+vgbU9RZAWDaWtdx4PrxNzeLqm9AIw 4jPMy5D42zpctmAdH+95qfW273tO9K7UOxCzr1BXRUn8AJfcwXHsScYfvxxuYz5iQxeo evHveJUzqv4hah+fdEa5afTicwucy7q4NeZCe+vgGSad06iLquidnThGcGkjFp5cx59b Zsgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=oZwxu9QZAFfyYEBcTZj3D5ZFbcHMfxIAVMvNdG9D2dw=; b=rpCLwwgU5w+IGnILA8yyZU+FhOn3AsdYNNaY5Fw8pnaMR1Nx81qiNGH9IBTCurP2p4 hTGrzwutjKdRtcXpsyCvVLvtd4+U05mdjADSoBlhbmtRM+jOLnik8elCBd7C5XpWSFMr om9MdWQM0mWrevQOrxkJu+2KCBSiyEfaT3EEu8wyAoOJCWdKlHZcHx0Me6XyiSFL3FaD vQ8uEDwA2IyqnqO0pOETK+kVv2zNhNS1p9+ZNCheiT9Hv8uUjRub0sL8NwAv1uZ++ucX IgvilPessxAyujCvWp2moQMQmMJBCjRe5OtFsXK66MkJylQql2pYwOWUulkom42GejzW iLdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13-v6si11626145pgr.338.2018.06.30.23.30.45; Sat, 30 Jun 2018 23:30:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751906AbeGAG3i (ORCPT + 99 others); Sun, 1 Jul 2018 02:29:38 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:53508 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbeGAG3g (ORCPT ); Sun, 1 Jul 2018 02:29:36 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1fZVrJ-0006Wx-BW; Sun, 01 Jul 2018 14:29:17 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fZVrG-0007rH-PW; Sun, 01 Jul 2018 14:29:14 +0800 Date: Sun, 1 Jul 2018 14:29:14 +0800 From: Herbert Xu To: Kees Cook 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 Subject: Re: [PATCH v3 4/9] dm integrity: Remove VLA usage 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 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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