Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7231370imm; Tue, 24 Jul 2018 10:32:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeZfYU7OSuRMSZcstaHPts2UUlHVChvjiPK0iQkPDfW+fCKEOuw5tzbHBhoIuzDkL+AbzKJ X-Received: by 2002:a63:3c4a:: with SMTP id i10-v6mr17117029pgn.415.1532453557858; Tue, 24 Jul 2018 10:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532453557; cv=none; d=google.com; s=arc-20160816; b=f4lEVuxkaWCYFJlhmG7n41uH/NXebcIt1P6hYZH7t4suME0uwIVSmDCxVMdfvS5E7T 84WbpKLqkVuAnVfd9aMokmBB2h6A2lkMV32FvOvCihz+XPMty5DZARruajEoy+Ca4o44 HpthEaYh7bcSfh4S8b0IB9b5ncnVHWyG2QvMbdjTpGjKmjepAtmAG5kt9//52joDXbVS 4Uw3A5RcjoKfq/TDQ90LvJz5WmQverXcd74PFag4djedqcyECVNKb5+syCF9JEe/7x7I uQTdbQRLIiLCkUQAXVAyEXIARMDWKMNinxkaHzVqKMQkT6aX6Rz0wPdmnkN3hyZCSAhC xhXw== 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=gUokU41MvkM6sqnvO1KFZnzIOqiRxABfSO/W/CCsi5M=; b=e2MVJZUKoPhHzf1i7CjVAIGWRT1jMKZwXQCgeMBzmAR6wXHIXC1JMJm8NztTtWZvKd Z0SMS6ONfHjkySshBYrmselAeaWOEXpl56lUSCJjn9/DNdJ7/7Y8+0Lt8QRqRB1lTAIA baFqAVE/rWg0KP65EdniKwM3PNJymKBn7of4tvaxriU5zlE2URJ4MwDqp57Fz9JMkhnF aL1A+hFx/FIxUR7ZZQ5L4SWR9V0qFjyiTeIjY1u7tdSmLShrK10AswvSxKN1uc9h7Xee lij6bpcKffRrs4S9Tr0NnJZec4x6FwyWI3aUQ/MWNAjiBusaxx4JGt0Pz6caAzuiZPSm H9Dg== 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 u195-v6si11838560pgb.443.2018.07.24.10.32.23; Tue, 24 Jul 2018 10:32:37 -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 S2388600AbeGXSiz (ORCPT + 99 others); Tue, 24 Jul 2018 14:38:55 -0400 Received: from smtprelay0213.hostedemail.com ([216.40.44.213]:40568 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388397AbeGXSiy (ORCPT ); Tue, 24 Jul 2018 14:38:54 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id B7AC018224D87; Tue, 24 Jul 2018 17:31:20 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: X-HE-Tag: pipe06_451338892d816 X-Filterd-Recvd-Size: 3021 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Tue, 24 Jul 2018 17:31:14 +0000 (UTC) Message-ID: <1bdc706ae86039c4ffcff39698251424d54af116.camel@perches.com> Subject: Re: [PATCH v6 18/18] crypto: Remove AHASH_REQUEST_ON_STACK From: Joe Perches To: Kees Cook , Herbert Xu Cc: Arnd Bergmann , Eric Biggers , "Gustavo A. R. Silva" , Alasdair Kergon , Rabin Vincent , Tim Chen , "Rafael J. Wysocki" , Pavel Machek , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Philipp Reisner , Lars Ellenberg , Jens Axboe , Giovanni Cabiddu , Mike Snitzer , Paul Mackerras , Greg Kroah-Hartman , David Howells , Johannes Berg , Tudor-Dan Ambarus , Jia-Ju Bai , Andrew Morton , Geert Uytterhoeven , Josh Poimboeuf , David Woodhouse , Will Deacon , dm-devel@redhat.com, linux-pm@vger.kernel.org, linux-crypto@vger.kernel.org, drbd-dev@lists.linbit.com, linux-block@vger.kernel.org, qat-linux@intel.com, linux-ppp@vger.kernel.org, netdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-afs@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 24 Jul 2018 10:31:13 -0700 In-Reply-To: <20180724164936.37477-19-keescook@chromium.org> References: <20180724164936.37477-1-keescook@chromium.org> <20180724164936.37477-19-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 Tue, 2018-07-24 at 09:49 -0700, Kees Cook wrote: > All users of AHASH_REQUEST_ON_STACK have been removed from the kernel, so > drop it entirely so no VLAs get reintroduced by future users. checkpatch has a test for that. It could now be removed as well. --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 34e4683de7a3..a3517334d661 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -796,7 +796,7 @@ our $declaration_macros = qr{(?x: (?:$Storage\s+)?(?:[A-Z_][A-Z0-9]*_){0,2}(?:DEFINE|DECLARE)(?:_[A-Z0-9]+){1,6}\s*\(| (?:$Storage\s+)?[HLP]?LIST_HEAD\s*\(| (?:$Storage\s+)?${Type}\s+uninitialized_var\s*\(| - (?:SKCIPHER_REQUEST|SHASH_DESC|AHASH_REQUEST)_ON_STACK\s*\( + (?:SKCIPHER_REQUEST|SHASH_DESC)_ON_STACK\s*\( )};