Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14338334rwb; Sun, 27 Nov 2022 22:44:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5QhRX0alCncq/WNlOrLz/bp+Cw/3ro/M9+d0KdFlVpBzuNbfVApk2UCQq6o+4lVKplw/NO X-Received: by 2002:a17:902:7885:b0:189:1366:fba7 with SMTP id q5-20020a170902788500b001891366fba7mr31357722pll.45.1669617869227; Sun, 27 Nov 2022 22:44:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669617869; cv=none; d=google.com; s=arc-20160816; b=CI0k4fI7o1oCjXqO01FYf2Uazp6kAhXYlo5edtXDbdjV3m001YFg1SoQSPg6IUvuH+ G/ehj3hpV0qguiKx8df6+CC7OTW+el2pHTFQoRb/Ejw4JkDlIaB/8FnPYje9v4sHAcku yfukV/aVSg0koHckMg2qVoKJin4TQ7k5NCLP/UgWuVv0REGENiWTKmmsWidiTjDUb6Qi xQnXQOuMRArLIqiufv1GGkxoTNeSPn+nyjMWN/M0FS3qPz9EQnJ2eWdHhf+llb1MA6BA 2FNYpGYWfkJPLnhLUz/awX0bq2ORaDqsJ3aDwCuC/aTsiQQ4Ys9kPoSjhrZGjrNQeKYx zI+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PcUHQBlTt1lFSoWGoaKdgr0Ji5uOFL7MosmTVG4+7wM=; b=Vu3gtGcdA9DulSl+VIlVW+fquZBDp/9x/CZXPkRLRulwnuvwcsuQnowoAXFaPFzKHA C1sXQDDFPT3Om9tXdEAsEhbIhmvHJ2ZlgrwPFdw3QacvkNZEXzSLK6HelcOYABQW63A2 1WGD5vpHs41WZZL5O+ME8rxfDFoUsINuYxsBmFYKF2QM+2VKY9at0vl2eq2rQIfvUT6W WoZKigC+Q1jvyi1aUZivWfb4g2OOV0UMB722VoZSNAgWf2dhj+lPd7vzj9aI2Z/9xGZT ozhNG1boakebLsspyW6UAlMUqS2L09Di5ea421YAJaixF5tGCDr9Y5+Pj1yIKiDRX9hu ZNtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hZXp6QUc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt30-20020a63291e000000b004777f68f798si11176917pgb.814.2022.11.27.22.44.18; Sun, 27 Nov 2022 22:44:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hZXp6QUc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229750AbiK1FxV (ORCPT + 84 others); Mon, 28 Nov 2022 00:53:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbiK1FxR (ORCPT ); Mon, 28 Nov 2022 00:53:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DC64CE6 for ; Sun, 27 Nov 2022 21:53:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0990B60FAD for ; Mon, 28 Nov 2022 05:53:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51424C433C1; Mon, 28 Nov 2022 05:53:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669614795; bh=F1tZe3L8xlQngrBiywG/9x6CZyvGLosQ+052v73UiLk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hZXp6QUcDfbxUMSO99TLA5rvBfzDhBtTvqPEmLtJRDzX5BpsK1PByDxGELXhZD34l Xkmp60eTC4kCxPnuAtnsYfNAjpyOYMntIW1TFynB3JYYDmrS3CvYHsRligVRbEz1x/ YXRimu6Okl+0xHfYiZg0HCyIdOF41Rz8Vqifr6LMjl2WpM3TZvUcQ1ARPdnwDmgMJV lmuHDnWytBDKFV4LIX+4rs3yzI39R68ZgS5BRItHsrQOrtpYnfn5Ioid+aH1vrw6uP PjCo2vkIhJySvNv8EVdbD7lHU+F/3dWlJ8IBQi7vZ+zthiNVfJpWAGhFy7FjQ52FoI b5A/cW9yGGVYA== Date: Sun, 27 Nov 2022 22:53:12 -0700 From: Nathan Chancellor To: Lee Jones Cc: arnd@arndb.de, akpm@linux-foundation.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, ndesaulniers@google.com, trix@redhat.com, harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 2/2] Kconfig.debug: Provide a little extra FRAME_WARN leeway when KASAN is enabled Message-ID: References: <20221125120750.3537134-1-lee@kernel.org> <20221125120750.3537134-3-lee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221125120750.3537134-3-lee@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 25, 2022 at 12:07:50PM +0000, Lee Jones wrote: > When enabled, KASAN enlarges function's stack-frames. Pushing quite a > few over the current threshold. This can mainly be seen on 32-bit > architectures where the present limit (when !GCC) is a lowly > 1024-Bytes. > > Signed-off-by: Lee Jones Reviewed-by: Nathan Chancellor > --- > lib/Kconfig.debug | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index c3c0b077ade33..82d475168db95 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -399,6 +399,7 @@ config FRAME_WARN > default 2048 if GCC_PLUGIN_LATENT_ENTROPY > default 2048 if PARISC > default 1536 if (!64BIT && XTENSA) > + default 1280 if KASAN && !64BIT > default 1024 if !64BIT > default 2048 if 64BIT > help > -- > 2.38.1.584.g0f3c55d4c2-goog >