Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10685386rwb; Fri, 25 Nov 2022 06:56:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf54bbp67MkbweZkTXP6iDfGQnUHqR4X9/zc62tV/zuVlVKcy5G8VZNn4f6xIflKUh4zgciu X-Received: by 2002:a05:6a00:f8a:b0:56c:2576:9d2a with SMTP id ct10-20020a056a000f8a00b0056c25769d2amr20725927pfb.60.1669388167697; Fri, 25 Nov 2022 06:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669388167; cv=none; d=google.com; s=arc-20160816; b=w1hdJ+xzzKIQxyL5A65NLoTWd5CyfSV5U8Kg4gLPIvWUzCemJXJrPa+1dq12agLtVt sGqB5voL1PFcfQg84fsDJVmZ/Nj0ZgRRqxRli2c7OZwyjeXVOXoVwZoLvUHGa6350V5w OVsMVN0EbyTFh2yeCdifHjvo424QawwtkE3yjkI3lySoP/PLPrRm+vh7IthL/4lCNCIF RBpE8wvBN4SyEDzDZegEs/xNNY7U7fr4h7I7IKcUQC85oG5jLWL+rbw+M0O1t/T2U9Kw 5LTBraWsKp+jFHh2iS+H4yKcN4arIXkgeFkPPC5CPD3dgWXjX1bg7bVrx4wk/gYD0mnR TTWA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=g6gUzbtl9Vfk/ZPJAiAX8z5/dZY+VI/S8DcrWqvOk9w=; b=n+UR+WHuPGlVmP3gFZmOmWl8NkhBg5R67eFbMI/tmo6J3nBY2r93DUH/0AOfrkpikz 6ANXKgajegqpopzayRV+nRsbAbKcA/OsROmDgGMMUXQZ0JJ4b8eqMgZnGQMPO+SyGn2S BDYN9U5b9HFmYwUtlyLkaIUjoaMfsi5lEuEzXmiAXPwJBVuVe++YyOpnNI3yF7jwUxuR aDJmKRrKK3gp+5QsLGoXRQ6jWJAn1PwbENAOdglX7o8D5H9JIMY0A57eVDWrID73Ttlx abdd9vDgiG16LBdZHyJbbht7eg2mautWQXTgvEVvvoU0M1BzEgtiT0k0uAxLLrnl1X0Y uKUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IDp9FDBQ; 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 w13-20020a170902e88d00b00188ef2314b2si4715798plg.79.2022.11.25.06.55.52; Fri, 25 Nov 2022 06:56:07 -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=IDp9FDBQ; 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 S229770AbiKYNkg (ORCPT + 85 others); Fri, 25 Nov 2022 08:40:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbiKYNke (ORCPT ); Fri, 25 Nov 2022 08:40:34 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0158011168 for ; Fri, 25 Nov 2022 05:40:34 -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 ams.source.kernel.org (Postfix) with ESMTPS id A7D04B82ABD for ; Fri, 25 Nov 2022 13:40:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56DFAC433C1; Fri, 25 Nov 2022 13:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669383631; bh=1Vi9cYPQdsFlwN2CupqS3SDHphAahEkfEFQ47zI6WhI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IDp9FDBQ2WGmmAcEkiW2GHNzyxAljeKVhmaOAfdahPkFsZNnZiasCvP1PntCi4W3e GdEz0mFYBRPy29WZVxfhOBAawsChZgsLOoIHfTYwMmbtZgGsChvUcST6MfaW/s71Vo KPJQ3//yg32O0vdIclPMxYCXM+ljCguSNfdSwUXYNjOmf+qT6NHGo5PyWc3UREuH0i yrNz5x8nhfPJBgCw34SrK4K9MvyJBb1fzwr60V9x2oKu7nn4A13dTR9IDNT0yE8v2c JKWdqpz1CGd8tfrzaFv9GQFw9/2u6iBVY2eFAHDM3ewlUT63r2qYYtKupXIZC0FjC9 WeArEEzwpq4eA== Date: Fri, 25 Nov 2022 13:40:23 +0000 From: Lee Jones To: arnd@arndb.de, akpm@linux-foundation.org, nathan@kernel.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 Cc: 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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, 25 Nov 2022, 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 > --- > 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 Note this also fixes 61 warnings when (GCC && !GCC_PLUGIN_LATENT_ENTROPY) ... which as Arnd says should not be enabled by default. We'll address that issue once this set has been applied. -- Lee Jones [李琼斯]