Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4358479imm; Mon, 25 Jun 2018 14:24:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJYgkXyQVULfVlJJcbGrWJGFlhpwqmOEFHs/ersPmn8TYFwHlSZQ2BRleO82vjysdoTHQcr X-Received: by 2002:a63:b812:: with SMTP id p18-v6mr12332700pge.11.1529961863651; Mon, 25 Jun 2018 14:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529961863; cv=none; d=google.com; s=arc-20160816; b=E1+FPcjr92zxXppgKl9jTmkZbDitLyiFTQBK1HNBDqbxf9RfPgjZvWliyLLnmGwa0+ ZOv2IrO6xWhP0/U06uoU1Xfxi/6jSqxaOl7+qCUX30KIOv9Q6cbvXiHl1fHrrXa2y6HY anXARgKwVOYp5/UpfcWnMi1fbUcTSD3zuDAxBgceHulx/YjuEqqjGOtuPR7vo6KeePSN AwWMkQU4xSRrgo6DblTaYMSvWH259WE3hbtPSFn3uoK5q8wiNRMhbcKyEJa+xsa7uapY 0lJ0uS3sWxf0WF0Ko1KvLJziRVHoyyAPDIZuPHPDMSnf6Q3PoPY9i3IwoKklvV+1lPYI qgrQ== 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=rWQf0YuC+e+V/C3fWnQeZG5B4wdg3DAB2Duu9Vwk8XA=; b=NXIV0FPTO7uOK1wJxitXhA61YepgUI0Twwe83pgPfPhVg+87BxQRL7Y1bcET4uGVTq w3sgU3006bQcO0PK7BL3bF/X0j3A2UccnwARoxCM57lh2/ucDX7FD5vjM/2RlDZNQ8Jn 78y9A+TPoYJfdEnSoBCupIGkV/1HZfX6MS3n+6Ue0ctizT0xqR6u4f/FWJaGMMILPxWX UxQhDrWq+0I3le1+yquLIy33yRvlHUa8LHGQGwhVq7uj1rHaRHO/29DoIc4+wK9nJ1Vz LNt4iZACaJjqxXeTIKqnimnhpBF5rWB3POkDKUswYfZhNeMDKeNMN3/gGUP95wOt1CAZ V3Pg== 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 d191-v6si12877439pga.192.2018.06.25.14.24.08; Mon, 25 Jun 2018 14:24:23 -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 S1754755AbeFYVXX (ORCPT + 99 others); Mon, 25 Jun 2018 17:23:23 -0400 Received: from smtprelay0034.hostedemail.com ([216.40.44.34]:46043 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752488AbeFYVXW (ORCPT ); Mon, 25 Jun 2018 17:23:22 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 4762B1801A0A4; Mon, 25 Jun 2018 21:23:21 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3871:3872:3874:4250:4321:5007:6742:8660:10004:10400:10848:11026:11232:11473:11658:11914:12043:12438:12555:12740:12760:12895:13069:13138:13148:13230:13231:13311:13357:13439:14096:14097:14659:14721:21080:21324:21627:30054:30070: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:24,LUA_SUMMARY:none X-HE-Tag: nut33_7436a8317445e X-Filterd-Recvd-Size: 2708 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Mon, 25 Jun 2018 21:23:18 +0000 (UTC) Message-ID: <4d9f90abbf87539d3588f88117806f76c6826030.camel@perches.com> Subject: Re: [PATCH v2 01/11] crypto: xcbc: Remove VLA usage From: Joe Perches To: Kees Cook , Herbert Xu Cc: "David S. Miller" , linux-crypto@vger.kernel.org, "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, linux-kernel@vger.kernel.org Date: Mon, 25 Jun 2018 14:23:17 -0700 In-Reply-To: <20180625211026.15819-2-keescook@chromium.org> References: <20180625211026.15819-1-keescook@chromium.org> <20180625211026.15819-2-keescook@chromium.org> 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: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? --- scripts/Makefile.extrawarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 8d5357053f86..27ba478d40cd 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -29,6 +29,7 @@ warning-1 += $(call cc-option, -Wmissing-include-dirs) warning-1 += $(call cc-option, -Wunused-but-set-variable) warning-1 += $(call cc-option, -Wunused-const-variable) warning-1 += $(call cc-option, -Wpacked-not-aligned) +warning-1 += $(call cc-option, -Wvla) warning-1 += $(call cc-disable-warning, missing-field-initializers) warning-1 += $(call cc-disable-warning, sign-compare) @@ -52,7 +53,6 @@ warning-3 += -Wpointer-arith warning-3 += -Wredundant-decls warning-3 += -Wswitch-default warning-3 += $(call cc-option, -Wpacked-bitfield-compat) -warning-3 += $(call cc-option, -Wvla) warning := $(warning-$(findstring 1, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) warning += $(warning-$(findstring 2, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS)))