Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2180315imm; Mon, 3 Sep 2018 22:21:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZxR+SBYnLMnpTFw8oNyX0RxdcaeEEM1vDZwasg3ZKnGPComaY+Ht9VKOFj287deODllWvh X-Received: by 2002:a63:986:: with SMTP id 128-v6mr9194532pgj.153.1536038516886; Mon, 03 Sep 2018 22:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536038516; cv=none; d=google.com; s=arc-20160816; b=wmflmbnh8Fs7E1+BSdrAvpS9ajFelcrXJs2GbgWYMKBb19WfgCEeEJ13DcgVQfiriD 74vZGfxE0qAGotbq3ddLo0SHUu/zSSsVm12hegB+WTVVU3w9MbF0g+E30Vd0qzz7mbOg sTnju7+Ga/z0Z+6PWKMl/u4/OaO04MCAm6GmzjuzxmYmZsXTEsIOTV944RnfnvlHmDwe uqrcw8n8USRbjLysQ9oDKqKF0K6RvyttLbQEUBSwcLDdNS5BHAJ7Z8ziwziIn0SV1GaT DPoDvvKuJEWeSdkqC9k1ib2TvmVCavsXubHFKMDDlzuRsDgrfEIuqe7HkDxDjXzF+XpD TXUA== 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=XluPfUd/HxOGbhP5PD7tnBEbS458Rql/P8RwEuqgxjs=; b=MOS/qJO/fKori7fxLecl6612Dh/IPOljDAJls3aiNupe5KUBlogxWMCP1u2NCuUeTt Y/wPgzpq8TevZplgfm0has7FWin8U3Bi2/CCiv8/UpGbEN+6zIbmxR47lKbRu57APrXE NS1NPhN9Xt0BkfPgmWyysWd/3NDsaMNe5L2MD6SzDKS9JVblY3lEz4uS9rEAgbvZSg3l y1hVB+HRkXZG4f5SlNHC3MqO0Uh/WQscJh2/PApw8RODZTJHSMt6QSDmU5CQ2CpQLfJv QBX0wfBU+A+ahMbZE1OM5f8gzXb78Ol93tXYzt1UvZ5U0UGLOmtBtdhXA7ZNhy3WBj9g VPgQ== 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 x61-v6si21080180plb.216.2018.09.03.22.21.30; Mon, 03 Sep 2018 22:21:56 -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 S1727386AbeIDJnv (ORCPT + 99 others); Tue, 4 Sep 2018 05:43:51 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:38850 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbeIDJnv (ORCPT ); Tue, 4 Sep 2018 05:43:51 -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 1fx3kd-00009J-UR; Tue, 04 Sep 2018 13:19:43 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fx3k1-0003In-RM; Tue, 04 Sep 2018 13:19:05 +0800 Date: Tue, 4 Sep 2018 13:19:05 +0800 From: Herbert Xu To: Kees Cook Cc: Eric Biggers , Ard Biesheuvel , Giovanni Cabiddu , Alasdair Kergon , Mike Snitzer , Tudor-Dan Ambarus , Andrew Morton , Thomas Gleixner , Geert Uytterhoeven , Arnd Bergmann , Will Deacon , Rasmus Villemoes , David Woodhouse , Matthew Wilcox , "David S. Miller" , "Gustavo A. R. Silva" , linux-crypto@vger.kernel.org, dm-devel@redhat.com, qat-linux@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 0/9] crypto: Remove VLA usage Message-ID: <20180904051905.a2vyzijz6xyxvyhb@gondor.apana.org.au> References: <20180807211843.47586-1-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180807211843.47586-1-keescook@chromium.org> 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 Tue, Aug 07, 2018 at 02:18:34PM -0700, Kees Cook wrote: > v8 cover letter: > > I continue to hope this can land in v4.19, but I realize that's unlikely. > It would be nice, though, if some of the "trivial" patches could get taken > (e.g. cbc, xcbc, ccm VLA removals) so I don't have to keep repeating them. > *fingers crossed* > > Series cover letter: > > This is nearly the last of the VLA removals[1], but it's one of the > largest because crypto gets used in lots of places. After looking > through code, usage, reading the threads Gustavo started, and comparing > the use-cases to the other VLA removals that have landed in the kernel, > I think this series is likely the best way forward to shut the door on > VLAs forever. > > For background, the crypto stack usage is for callers to do an immediate > bit of work that doesn't allocate new memory. This means that other VLA > removal techniques (like just using kmalloc) aren't workable, and the > next common technique is needed: examination of maximum stack usage and > the addition of sanity checks. This series does that, and in several > cases, these maximums were already implicit in the code. > > This series is intended to land via the crypto tree for 4.19, though it > touches dm, networking, and a few other things as well, since there are > dependent patches (new crypto #defines being used, etc). I have applied patches 1-4 and 6-8. I'd like to get an ack from the dm folks regarding patch 5. As to patch 9, please fix it so it doesn't rely on the BUG_ON to catch things. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt