Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp491521imm; Wed, 25 Jul 2018 00:28:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfS9o1H/ABhVk09VilAmeOHvBK3QavlQhA5T56nhDD90M/PRfGsIkkDRpvB3/Q3NuubmXL/ X-Received: by 2002:a63:62c4:: with SMTP id w187-v6mr19249418pgb.55.1532503682390; Wed, 25 Jul 2018 00:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532503682; cv=none; d=google.com; s=arc-20160816; b=jqjaPelf2V2EGK4SLDbdyYkpSUn5XWmazKQspTeGwKZ2LSTo4id6AiJD5xsnqTVZeW 1KF1xGTtT95MITRSPkyrZ+7xkM7Co6fmZd3t9BNpPiElSipH949P/mV0fiMfJMJrKMg7 o09n5m3HTosFmSkeK1DPk2/ghUvam+EKThmIcLcehiMvPjj15cJQJH+319uD98TmHWGq aM1eIkeKq4WpLS/VJOczWy/M1hsbu4X+VS9w/1zS8E6eAm/0yIxJu4fsLwx7WUwc2Wl/ 2+TCD2hYD637zOflSvJbJxtthugXdMiXWHqzG2fnegunDvi4hd2kYTohM4hklM8maT8x zSFg== 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=uGECJVIaHmeC8IV3TyP7DeHqd6/wJePDNJTI4fI1KXI=; b=oLpcdZeNFAv3BkXhoOuXCJhOEQanA1kT9OmDN3JDWsvnt+RkZ/EvzLeFQll8FvR+YH VEoU4Ep/nyYsWzShL4eGZ5QvztakW4vEeCyP+cVsXszGkKni+3YkHMccIMEVwfs9Jew9 oks3EB6CfjzaNeAobmwy/nWuKnXs9mTNaUatZitxpt1JFFhxmXUFe/4wQ616AP4w/YZ3 XTlUBVKxBCKss/eiYTIMlYD7rnaQPvCSnBBIXE/g1GaWcwQjoNNuIdFnBKOmyD7wBcOt R+U36Y0jF9476vvpfT9WtbSemhTrv1oVH7dz1yvZMCUeR8Y2S1x8wSO/mfPdfhZescL+ oqVA== 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 q16-v6si1731771pfi.183.2018.07.25.00.27.47; Wed, 25 Jul 2018 00:28:02 -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 S1728507AbeGYIhQ (ORCPT + 99 others); Wed, 25 Jul 2018 04:37:16 -0400 Received: from s3.sipsolutions.net ([144.76.63.242]:46608 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728339AbeGYIhQ (ORCPT ); Wed, 25 Jul 2018 04:37:16 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1fiEBJ-0008Rl-7K; Wed, 25 Jul 2018 09:25:57 +0200 Message-ID: <1532503493.3223.0.camel@sipsolutions.net> Subject: Re: [PATCH v6 13/18] wireless/lib80211: Convert from ahash to shash From: Johannes Berg 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 , 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: Wed, 25 Jul 2018 09:24:53 +0200 In-Reply-To: <20180724164936.37477-14-keescook@chromium.org> (sfid-20180724_184958_869692_1891A71D) References: <20180724164936.37477-1-keescook@chromium.org> <20180724164936.37477-14-keescook@chromium.org> (sfid-20180724_184958_869692_1891A71D) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) 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: > In preparing to remove all stack VLA usage from the kernel[1], this > removes the discouraged use of AHASH_REQUEST_ON_STACK in favor of > the smaller SHASH_DESC_ON_STACK by converting from ahash-wrapped-shash > to direct shash. By removing a layer of indirection this both improves > performance and reduces stack usage. The stack allocation will be made > a fixed size in a later patch to the crypto subsystem. > I think you sent this before - it should be in net-next now. johannes