Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp660336img; Fri, 22 Mar 2019 06:06:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkwn8vJmjX0Ah33vrPYFjSpn/5JrxLBVvReIpz9AlOUDeNDT69vK5d0dBiFB6PpC8sV2gg X-Received: by 2002:aa7:83ca:: with SMTP id j10mr9061370pfn.50.1553260008844; Fri, 22 Mar 2019 06:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553260008; cv=none; d=google.com; s=arc-20160816; b=foPU98sccPK0azIsz6AOG/n0J6E2ljxY9owgUfAXq9/+ZYEome91A649O/mCj5dnQl yLG5Hu/NYMYWnRHEtt7VZwfKMr5N1kR33F0BCSKgzfP5hg/a6vFQ4xRnvv0KPy1JJJNc zhWjDtO80iThXdjpEu57tvyLb5acsWScryXtOmuP6BkJMe6U4lUVR1YT/wGLB9zoqIQs JtRGqDHm11ccOISucjVEb0CEpEuEgczlTsNBb7oCfsJ2KpDota0LVdll1mJe5XvrP1Zi 3PLFh77V+QYzWLE2pxys3D0xPKUQjVt0barbY+HCR5/Mk7Yab/7vkorB+R9xoJw826Vm kLbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=J+E+OBf+6ARJ26YkzYtmeg6GHEHpvAvVcx5uJzJfjuU=; b=m1dO9D9PfTz0+3MGE8WTlh1vV5qBEBxUeseLH9ML3tFTwuP1gdy0x8SbEZ0ipqyOnn QSNUZu1cjnu4MXIQWCYukuonhjEmXWzIJ9RBO3elTGHiUHiJiNc5mJCwMQ3RwjPdb4nA i2BMzIKD3UWSVOhg5iwOoPjZb8XCIHHY8y9wwj39uHF40mLIv65dd1vUt3jjo2mzCOT6 drgqeXrEVJux07Cy6ra5TKSagq7g/g8Nsa5T2thfMkY67Fvfz233GoSP6EscyNK6IgTC jEwD/Phh8y5rjHWkMJS193PONLulOC6JhWJFIfvf6J7nSAg/2RV7aKPJORAnv20T+cnO 5lGA== 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 d16si6468312pgi.148.2019.03.22.06.06.33; Fri, 22 Mar 2019 06:06:48 -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 S1731413AbfCVNEh (ORCPT + 99 others); Fri, 22 Mar 2019 09:04:37 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:49502 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730587AbfCVNEg (ORCPT ); Fri, 22 Mar 2019 09:04:36 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1h7JqM-0006GC-LZ; Fri, 22 Mar 2019 21:04:18 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1h7JqK-0005eV-88; Fri, 22 Mar 2019 21:04:16 +0800 Date: Fri, 22 Mar 2019 21:04:16 +0800 From: Herbert Xu To: Arnd Bergmann Cc: Gilad Ben-Yossef , "David S. Miller" , Eric Biggers , "Gustavo A. R. Silva" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: ccree - reduce kernel stack usage with clang Message-ID: <20190322130416.qxpznh6d3z6yhppx@gondor.apana.org.au> References: <20190314090951.840339-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190314090951.840339-1-arnd@arndb.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 14, 2019 at 10:09:44AM +0100, Arnd Bergmann wrote: > Building with clang for a 32-bit architecture runs over the stack > frame limit in the setkey function: > > drivers/crypto/ccree/cc_cipher.c:318:12: error: stack frame size of 1152 bytes in function 'cc_cipher_setkey' [-Werror,-Wframe-larger-than=] > > The problem is that there are two large variables: the temporary > 'tmp' array and the SHASH_DESC_ON_STACK() declaration. Moving > the first into the block in which it is used reduces the > total frame size to 768 bytes, which seems more reasonable > and is under the warning limit. > > Fixes: 63ee04c8b491 ("crypto: ccree - add skcipher support") > Signed-off-by: Arnd Bergmann > --- > drivers/crypto/ccree/cc_cipher.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt