Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4370972imm; Mon, 25 Jun 2018 14:40:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKe7lDz/x+CHUpbt/I2wQbBqTjNUQDyc1WffDqMO9o6Xj1xMNq/T0rBTYhX1gT/DXLkFnhG X-Received: by 2002:a63:383:: with SMTP id 125-v6mr12136263pgd.421.1529962828975; Mon, 25 Jun 2018 14:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529962828; cv=none; d=google.com; s=arc-20160816; b=HoHXmn3CUVmhtEmNzoUfAffRAFICj5ipR2Jomnau+mGW8MripJak0kZpkyP8RBjZ8d iRS8Ld31B3GXDJAWjJyS+1mQSvWc2AX1LTZr6HJS/w8tD/Ntv+oZQWH14gOpaA/3UY+0 YWu/tF1YgFALHmFP4YPtKvaQhzD9qeB4uG/hnhv/XfDWEGFpZkHQozEjtAaLTPDYniAb 7D9i3cjye/t251CIcL0opvLGA2d9cEDvrmFXj4EinivSk5Nj+u05olTaPXSz8kbvSaUE lz38sgvgOAU919FTLzwmnMuwBoqMIQ/SUXLMY8Wk+bU3iD/9Oham9me84pilLNHJXZCJ FBIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=6JnvTmqYBM8bs60hJqb5+VR1B3zJ/Q31ZUX91Vo+nSk=; b=CHF6GWwl0RUPJ1nnhHhNdzcuLiBZ69uZpUEMqBhkGKfwjPYg/5zdBaYE2ZBi2FYl4R WHof53uJcPXL7e5kH0fTUnu8Qt+5qNsuK2hFc0NcjEq85gsq9aml1anFIjo6UjaD0uDg jiFw+j+ZLIgcfqcGObTxdLnfv92V3l62msf2i2skWSqt2zYxDC0hyJeLUZbGBZXLdCsS 2ZWKt2ooiOlIKR8gB0WJPrTESfi20Tv99fWPga3v3tyA5zKW6XMr7Zzz9bo2M+ZWll9o mavZV7dTORgaHI/wbK7OKeYI70kOOqMOmAQivVbHWm39D9w2JYhOZQwnRMq0+Yv9au91 VGBA== 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 i18-v6si7336020pgn.433.2018.06.25.14.40.12; Mon, 25 Jun 2018 14:40:28 -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 S1752800AbeFYVit (ORCPT + 99 others); Mon, 25 Jun 2018 17:38:49 -0400 Received: from smtprelay0104.hostedemail.com ([216.40.44.104]:59823 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751970AbeFYVis (ORCPT ); Mon, 25 Jun 2018 17:38:48 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 460B783777E1; Mon, 25 Jun 2018 21:38:47 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:4321:5007:6117:6691:6742:7903:8531:10004:10400:10848:11232:11658:11914:12663:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21627:21740:30054:30070:30090:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:36,LUA_SUMMARY:none X-HE-Tag: bee91_6976564288f27 X-Filterd-Recvd-Size: 2732 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Mon, 25 Jun 2018 21:38:44 +0000 (UTC) Message-ID: <14ea0f2845d9f826c8b2117badfa346423e0f1cf.camel@perches.com> Subject: Re: [PATCH v2 01/11] crypto: xcbc: Remove VLA usage From: Joe Perches To: Kees Cook Cc: Herbert Xu , "David S. Miller" , linux-crypto , "Gustavo A. R. Silva" , Arnd Bergmann , Eric Biggers , Alasdair Kergon , Giovanni Cabiddu , Lars Persson , Mike Snitzer , Rabin Vincent , Tim Chen , qat-linux@intel.com, dm-devel@redhat.com, LKML Date: Mon, 25 Jun 2018 14:38:43 -0700 In-Reply-To: References: <20180625211026.15819-1-keescook@chromium.org> <20180625211026.15819-2-keescook@chromium.org> <4d9f90abbf87539d3588f88117806f76c6826030.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-06-25 at 14:32 -0700, Kees Cook wrote: > On Mon, Jun 25, 2018 at 2:23 PM, Joe Perches wrote: > > On Mon, 2018-06-25 at 14:10 -0700, Kees Cook wrote: > > > In the quest to remove all stack VLA usage from the kernel[1], this uses > > > the maximum blocksize and adds a sanity check. For xcbc, the blocksize > > > must always be 16, so use that, since it's already being enforced during > > > instantiation. > > > > Is it time yet to change this warning from 'make W=3' to W=1? [] > I was going to skip the churn since I intend to make the default build > use -Wvla for the next merge window (assuming we've killed all the > VLAs by then). Good. Even if not all VLAs are removed, making the warning default on is fine by me. Getting others to do some of the work you've been doing would be good too. > After crypto, only fs/ntfs remains, and I have that > half done already. There are a couple more still under some > development back-and-forth. > > I'm not _opposed_ to this change, but I'd rather just make it the > default. And then the next cycle, I'd want it to be -Werror=vla, but I > may get shouted down. ;) Yup, you should get shouted down there. I think -Werror= is poor form.