Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp250080ybj; Fri, 8 May 2020 10:54:14 -0700 (PDT) X-Google-Smtp-Source: APiQypI480jE05bF2vSiER1OoCxxg8YxytH+mIEhJprAJPGDOP6O5Juqeh8kp/DuDI1IWwTBlItP X-Received: by 2002:aa7:dcd7:: with SMTP id w23mr3293867edu.300.1588960454805; Fri, 08 May 2020 10:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588960454; cv=none; d=google.com; s=arc-20160816; b=Rlr2B8yw47xN+03tGGDuJQA9vxzOhQZfMVkwViz804BJ6kXLyBAzHU5ZZG68KP/FcN l4Zk/W9VFST6hyUNmCfofbfcJtOE9Xsx6DFKsUrL47ONE2AM01l9n/1Id41Qjye0RSDS rbzvPk/3skmS6VeLj24UG3yz1hkfLPFM+BWDYexy82oOvEKXn4gwNFvfrCyX2dn8zwua w9XOKlOmnXcGpaccvhI5DVz0ieXo6r0Gv5PSMr6gs7EhHxcbGBrDmecmF5efVS0q1yhp IYCQMT0crQJguZarCrfBs4YqVjnFVBKUiRRMX8gN2Sr0+w3KNrjbwUlhX4Py8Hk4Em9K crTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:subject:references:in-reply-to :cc:to:from:date:dkim-signature; bh=rkrn4mdfyBkIMU6/rx7+Tk8G1fNxcKvGgvaX8bnVGY8=; b=0WGPSMZMkkq91WDQf+E1YikOruDXInDlkdNX19PQEKTZVAHPZwgpipGTnB7h4HF5F7 Axtb47ZZK0CtHOQcase9uZOn3X3aFhYAgucLtVCWUzf9Stu/28d5oTnosEQ78WvdNadP 5an8qF1bVgf3TPM1GvtW0FsUx/RuK+9NxgzPpFhxlqd7I1FZcDmkia/wsQun3cA/5Som HIit6YBxVf4cM1id7XV/W/pPvtsd/Ce12TwwQ04zhU64r2hQ8CgWS95Onb7AV6SsTHEp cZLodfXTGgyOFjAWtyoupEGZRla5HtYND7PpZLJEy7EqdMJFNIiGJD+xAL1Y8L1rj3zQ Tr7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xtFHQ65M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si1351164edl.93.2020.05.08.10.53.51; Fri, 08 May 2020 10:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xtFHQ65M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgEHRwW (ORCPT + 99 others); Fri, 8 May 2020 13:52:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:43656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbgEHRwV (ORCPT ); Fri, 8 May 2020 13:52:21 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 01225214D8; Fri, 8 May 2020 17:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588960341; bh=EDs/lYMTR6duIghKPZbNYHj/6gUoXDqvRRCEyYxbEkI=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=xtFHQ65M8//3Kdj9pvdEYPBRc65XqqD98KyVRpHIl5iSz5KGl1sXzJuONIQKV7kCh xaPdSp4CQ5M6gseF88Y8cuya23MlgOMfVkFjj9tlpVWh5/Q1wo+SNF4KLhkTdk5fsR JoMPvJrGnsLwtGyBYtp3OkLUkmK9ZBUaYWA1aDgc= Date: Fri, 08 May 2020 18:52:19 +0100 From: Mark Brown To: Arnd Bergmann , Cheng-Yi Chiang Cc: Enric Balletbo i Serra , Guenter Roeck , linux-kernel@vger.kernel.org, Liam Girdwood , Benson Leung , alsa-devel@alsa-project.org, Takashi Iwai , Yu-Hsuan Hsu , Tzung-Bi Shih , Kuninori Morimoto In-Reply-To: <20200507213405.1869430-1-arnd@arndb.de> References: <20200507213405.1869430-1-arnd@arndb.de> Subject: Re: [PATCH] ASoC: cros_ec_codec: allocate shash_desc dynamically Message-Id: <158896033901.2700.3513138380933416589.b4-ty@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 May 2020 23:33:51 +0200, Arnd Bergmann wrote: > The wov_hotword_model_put() function has multiple large variables on > its stack, the largest of which is the result of SHASH_DESC_ON_STACK(). > In total, this exceeds the warning limit for 32-bit architectures: > > sound/soc/codecs/cros_ec_codec.c:776:12: error: stack frame size of 1152 bytes in function 'wov_hotword_model_put' [-Werror,-Wframe-larger-than=] > > The function already has a dynamic crypto_alloc_shash() allocation, so > using kmalloc() for the descriptor is correct as well and does not > introduce any additional failure scenarios. With this, the stack usage > of wov_hotword_model_put() gets reduced to 480 bytes in my test > configuration. Applied to local tree asoc/for-5.7 Thanks! [1/1] ASoC: cros_ec_codec: allocate shash_desc dynamically (no commit info) All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark