Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7256094imm; Tue, 24 Jul 2018 10:55:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdHApo7NikLhwU+JPyWAvNDt1ajVtkq85dWTxCI3oAo+RSUxPOEYoasgBgp60PI7irjh27B X-Received: by 2002:a63:8a41:: with SMTP id y62-v6mr16739663pgd.291.1532454926787; Tue, 24 Jul 2018 10:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532454926; cv=none; d=google.com; s=arc-20160816; b=gFcLyCpya4jEEETr1ryliKaOi3AeMuaWd5e+hSt5tBIWKF2CS+nbGILU+jPwEmPPWe Td8sDVZiqrIH7XBIwN8UBYLqn2hMC7eGJk1UFpyAebVw6eRuCeNKC+TELh8f/DOH1oKc tv0+94MVKpkEixXZzPkBncdetsZJvTM60jVPnFk7v74bADvJ3ze0AwFmvJRtdOTs/6J/ POrkqIHVV6WU188DDA9nOnOzO2c6Uc7N8yE2DuSsV3BPKMCIXMGDOkYGY1si6oSRzOe3 +9Kn7XoYHhEUJkgdE2ehdGpIRUhJTx/szPe9Zx+GZWPu26/9gBs9+8J8bWQb5eUcW8WR 3/ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=nqIIVlvGIN74n2BDuuG44kzyRQJmrxhU4oB0zieuleg=; b=o/SzYMuABfMclkZ8GRW3PnGO4xtpvwPRtJwHVegRKIzNLlCG9eg2QX9lnknit6k8i1 q7wcpEUD35/bZ60En6GbQtyZjohSTBShHTUIAFJKVnajPiZweQ/VD/WgTqza5RIDF11c nt89LhpnwShVMx5CHYLZDoxRJNJL65aexT0fGCwBNCpGi/K7csEuiyxyBpgoP27iF4kX Q2ohBQqa1x6b5fd5NDpDjOquQX/uajUzJGpoXtckUvoVRx6bm/r6MNKs1Abhb2Jf4oio b3ae1rtr7aKtliMdpnItIq06kKRiL5uBICdh2yk89JZO0Gw1uYsp9tBv/LJbr7oMr2Gt XVBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=UaGf4QcA; dkim=fail header.i=@chromium.org header.s=google header.b=VI4OGsGm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si11481131pga.298.2018.07.24.10.55.11; Tue, 24 Jul 2018 10:55:26 -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; dkim=fail header.i=@google.com header.s=20161025 header.b=UaGf4QcA; dkim=fail header.i=@chromium.org header.s=google header.b=VI4OGsGm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388502AbeGXTBF (ORCPT + 99 others); Tue, 24 Jul 2018 15:01:05 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:40527 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388429AbeGXTBE (ORCPT ); Tue, 24 Jul 2018 15:01:04 -0400 Received: by mail-yw0-f194.google.com with SMTP id z143-v6so1853422ywa.7 for ; Tue, 24 Jul 2018 10:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=nqIIVlvGIN74n2BDuuG44kzyRQJmrxhU4oB0zieuleg=; b=UaGf4QcAYQRHhWHRSG/jRNw6Z49i8TjKOrifqY7VH5Ua/0O2g74Rc+lCr23xddSjOp JoIetW40F4NWMbLaX284uEB8/pN5mqD0b9KQ0t9Tr7VX0b7HBO1XIlCcPDfVICvS8c3e cU+hyeT3AK1ClBmX62y1Ha5LEDhqaqeQ9cuo2pAeJQfD+8NoKuEtpKICQSrUZcFVcZgi 5aO8dEwcpuXtrbLoqxDEte/dc4gxIqTL1lzT/LXx1uQPbglRcdIlf5J0U2M1weo2/5Oh sI9+gGOsOak4IoJTc8bKmrCs55Muk9N7/4erqSU2hfJ2lz6RbGS7auhtdIRD/ro6DNQB k1QQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=nqIIVlvGIN74n2BDuuG44kzyRQJmrxhU4oB0zieuleg=; b=VI4OGsGmwLBFArQ6Tif7jghnF9Rg+IU08M4jAq8vUK+/4PlzZCEcTushzfQF/+eVcA jmZCWc147atTGr8H4Bqg7VG7r/ebeXvfEJIU84dTOW2qsB/aRH4HK2Zlf7uQHflj3e+p o/pyGmfisW/qgBckMiOB8amJ8gKLKHzSD5Z0Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=nqIIVlvGIN74n2BDuuG44kzyRQJmrxhU4oB0zieuleg=; b=fjXylZIfofx1/5XwwK2k9sx95GciYIEXDFOz0BIYfgV+gIqVruAWlYU315Cigy5ULL VDKrjiNLhGJIz95MyGCB/vJc2JHAF+iypdpiSJZQ4ct5Dpe4vmK9s/3DmmXGLPLhdkmv rbjoabxqrxFQtA5j3A/1KXlruq2KNxiA3f1ph+q9MxuDAHvK7zIFJeYDzc7PHb0/bhp2 6xcLwyvqhGvGtj5J9rF3nfpN1BPwbFbtcVH4NQ7bZWLGN1kqwS4L4L2eoJdNIO2p2NRj 4uBM2SASl51HKD6NBPXxsSEFYeyalmFl11aGMf4egnubyu0yNa7J17elP+pKOn+pNN6z wyCA== X-Gm-Message-State: AOUpUlFyANDPeyqnyNf9+zg94HjudnGYJxmgh28FHHBZVRlfBm8g0+OB TVsqYQ3YCLOx4jIVC+2+3TvS7ZgtGTYbU7mW79BSOw== X-Received: by 2002:a0d:e2cd:: with SMTP id l196-v6mr9369321ywe.38.1532454806967; Tue, 24 Jul 2018 10:53:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:6602:0:0:0:0:0 with HTTP; Tue, 24 Jul 2018 10:53:26 -0700 (PDT) In-Reply-To: <1bdc706ae86039c4ffcff39698251424d54af116.camel@perches.com> References: <20180724164936.37477-1-keescook@chromium.org> <20180724164936.37477-19-keescook@chromium.org> <1bdc706ae86039c4ffcff39698251424d54af116.camel@perches.com> From: Kees Cook Date: Tue, 24 Jul 2018 10:53:26 -0700 X-Google-Sender-Auth: KDelbFXxUcQMj895mSypvwsO7I8 Message-ID: Subject: Re: [PATCH v6 18/18] crypto: Remove AHASH_REQUEST_ON_STACK To: Joe Perches Cc: Herbert Xu , 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 ML , 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 , device-mapper development , Linux PM list , linux-crypto , drbd-dev@lists.linbit.com, linux-block , qat-linux@intel.com, linux-ppp@vger.kernel.org, Network Development , "open list:ANDROID DRIVERS" , linux-afs@lists.infradead.org, linux-wireless , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 24, 2018 at 10:31 AM, Joe Perches wrote: > 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*\( > )}; Ah! Cool. I've added this now. -Kees -- Kees Cook Pixel Security