Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7196612imm; Tue, 24 Jul 2018 09:58:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdG8JzJsYDaXOe91UqBgpl9zYx6H7NXT9AZayTdeBcgo+4jkz2P+1xgxXCSNMOEHpEJ69d4 X-Received: by 2002:a63:144b:: with SMTP id 11-v6mr17435724pgu.219.1532451516575; Tue, 24 Jul 2018 09:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532451516; cv=none; d=google.com; s=arc-20160816; b=dw7+TMKlJXsTHuOVuYnRUGU6V8LryaOI5kQzZoQ8m2g9IocWK7KJQnu83JE5VzFkTs ypXvz4MNlIHjDkUaDOEY8Thn6I84tKCyfVtJ2M1ARaVOTyDSubUkRcnh6WQLCB1n8avm TToPN9Yb8NCjxTvIebzs10ZySNnwoFbIizbvfNiZKRgK50I3WE6kvPrfvirgdk4khqxa FbZSs3L4Azr+UxVM838pmedQzgM+MOk3nBYwP6JEa9cxjQz0SioUPOMvJUMpsjRFubCp 6Ds27vA+z+vVTm3KmhIIY8O8z0pLxGlXltBkpaHr0djt/sTxK6dyVadV8gDzZxHJMsIH 8l0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=NcyGQqHeJf08FCzNacBJKb8s2eWekxJenaMH09CYQ7Y=; b=t/K+UEbfl+fO7m6h2YF0lCM1cPVt94rSmAx08kvTD0JVBE1Nc+UEf70IvXI1syKSin rWu9B/6xNtJO8l3ZeWICt+HNSISsCO99jFoWLy187qfFCZrCpL3dtCx4XUTwZEvoDgZX /HHQiEUgPFtdiUax4GgVMuqTeT6mo+tr7KWGRj7dlDtOL9TxzCVskQc1Z4BsKWtWtMR1 WxGdnPx4UEOcE1XcTJifBb3iwqlYOrXTkzmD2GdJTVD+JRG0j/atpzhAwuThEqx/bjWc JccTHJ53ZrY+Jkc7qglRP/c1N+eb1as2rcWXyqF0m1thMBSCxlk0cQKPSjlhZU+UMqEw HqFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NUe10EpS; 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=pass (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 q8-v6si11557334pfh.353.2018.07.24.09.58.21; Tue, 24 Jul 2018 09:58:36 -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=pass header.i=@chromium.org header.s=google header.b=NUe10EpS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388440AbeGXSDk (ORCPT + 99 others); Tue, 24 Jul 2018 14:03:40 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:45440 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388449AbeGXSDk (ORCPT ); Tue, 24 Jul 2018 14:03:40 -0400 Received: by mail-pl0-f66.google.com with SMTP id j8-v6so1963086pll.12 for ; Tue, 24 Jul 2018 09:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NcyGQqHeJf08FCzNacBJKb8s2eWekxJenaMH09CYQ7Y=; b=NUe10EpSwaK9hTK+tgq8KHU1ZJEoxtFiiin1GLrUvH5befNzNbJp/dbqZtx0wwTjsZ S+9uldBhcSPn9UrOn3TzkhsKoKOGNGOHdl2zL3armIVu/iYQm29La09prGGpC6w7v5to kzrazNWKQj2c568+uReKEwROKVWqmdLy51RJM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NcyGQqHeJf08FCzNacBJKb8s2eWekxJenaMH09CYQ7Y=; b=pklOGyzHacql27uWTzYziYqaHi969457rvpqY0Pna/PU+kQ2Ekk2WTb2falQClwmW1 KrX5WA1FHQRKdHBzDn3QZHEBJ+6/R93KQHCPRY3YUi45VSPfRWf5DySzhOOIJN+ilUjj RCNSDzK0+tZ/pQxDf8VQdwycvbEyQV6ZCcLGMYktPbgrP0Q0PdHlfFv8x3MyUDZf5iS2 73rRnG90fVLJOPaRvJygtewOKsjBQGxPWPpU9le+eFMPV6/vN4OrWzRs6p59ei/LsqVa G8s2Im8vBL9oemYPN+244DVv1RzVPufDoUHlP90Pn6UH1sODSyYG3ahgosO+AKqlDyFQ Bvvw== X-Gm-Message-State: AOUpUlFL2CmaTumhpPPU/Y7S3vDb33ISXSbSoG1DRbJFLxKr2ocG+/rF FYE4KjweWwRtZCBypxdLXSA4zg== X-Received: by 2002:a17:902:a5:: with SMTP id a34-v6mr18046476pla.60.1532451377375; Tue, 24 Jul 2018 09:56:17 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id z4-v6sm21812205pfl.11.2018.07.24.09.56.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Jul 2018 09:56:16 -0700 (PDT) From: Kees Cook To: Herbert Xu Cc: Kees Cook , 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 Subject: [PATCH v6 18/18] crypto: Remove AHASH_REQUEST_ON_STACK Date: Tue, 24 Jul 2018 09:49:36 -0700 Message-Id: <20180724164936.37477-19-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180724164936.37477-1-keescook@chromium.org> References: <20180724164936.37477-1-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Kees Cook --- include/crypto/hash.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/crypto/hash.h b/include/crypto/hash.h index 21587011ab0f..fca3e28c77a4 100644 --- a/include/crypto/hash.h +++ b/include/crypto/hash.h @@ -64,11 +64,6 @@ struct ahash_request { void *__ctx[] CRYPTO_MINALIGN_ATTR; }; -#define AHASH_REQUEST_ON_STACK(name, ahash) \ - char __##name##_desc[sizeof(struct ahash_request) + \ - crypto_ahash_reqsize(ahash)] CRYPTO_MINALIGN_ATTR; \ - struct ahash_request *name = (void *)__##name##_desc - /** * struct ahash_alg - asynchronous message digest definition * @init: **[mandatory]** Initialize the transformation context. Intended only to initialize the -- 2.17.1