From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6093EC352A1 for ; Tue, 6 Dec 2022 12:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234229AbiLFMoP (ORCPT ); Tue, 6 Dec 2022 07:44:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234421AbiLFMnm (ORCPT ); Tue, 6 Dec 2022 07:43:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D0D2FC7 for ; Tue, 6 Dec 2022 04:42:48 -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 E511F61711 for ; Tue, 6 Dec 2022 12:42:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 117B1C433C1; Tue, 6 Dec 2022 12:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670330564; bh=g4aCG0un1nvHcRuO8OuzkyHIBU61ridWlTojlP37dEM=; h=From:To:Cc:Subject:Date:From; b=AOJRLc3zyWPobKcvnvYO7PrSQqh8pPAiZCaoryzCSdpDjE50Tg9T5v8/ebos22Zce TxcvnuaDu7RWMSmZNn+rl6LpkajJDJPw9oX6dldRijanwU1Cy/GlDLxa6rhVdbSi/n Flvk143oNDSVH6CL200iW6SLKMWhBGmvsnYjV49bLmr3O15akNMNZMq+g1m5Lr0xr7 uQNryysHaL1ih7T2DXiANJX02uwMXkkDYn82u4oKUa4Ma+yoK58jIrnzyrbDJ14D/W YXKlcHvAlpXduFu+u5rXgsMt8A0X/mhp/6rxizkEm6BrKbt5aI9WvVWHyxoZoz8EVy 5y2LNTlGaR2jw== From: Lee Jones To: lee@kernel.org Cc: stable@vger.kernel.org, Arnd Bergmann , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Daniel Vetter , David Airlie , Harry Wentland , Leo Li , Maarten Lankhorst , Maxime Ripard , Nathan Chancellor , Nick Desaulniers , "Pan, Xinhui" , Rodrigo Siqueira , Thomas Zimmermann , Tom Rix , Andrew Morton Subject: [PATCH v5.15 1/1] Kconfig.debug: provide a little extra FRAME_WARN leeway when KASAN is enabled Date: Tue, 6 Dec 2022 12:42:23 +0000 Message-Id: <20221206124223.130619-1-lee@kernel.org> X-Mailer: git-send-email 2.39.0.rc0.267.gcb52ba06e7-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org commit 152fe65f300e1819d59b80477d3e0999b4d5d7d2 upstream. 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. Link: https://lkml.kernel.org/r/20221125120750.3537134-3-lee@kernel.org Signed-off-by: Lee Jones Acked-by: Arnd Bergmann Cc: Alex Deucher Cc: "Christian König" Cc: Daniel Vetter Cc: David Airlie Cc: Harry Wentland Cc: Leo Li Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Nathan Chancellor Cc: Nick Desaulniers Cc: "Pan, Xinhui" Cc: Rodrigo Siqueira Cc: Thomas Zimmermann Cc: Tom Rix Cc: Signed-off-by: Andrew Morton [Lee: Back-ported to linux-5.15.y] 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 1699b21245586..cfbadc7c919d8 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -353,6 +353,7 @@ config FRAME_WARN range 0 8192 default 2048 if GCC_PLUGIN_LATENT_ENTROPY default 1536 if (!64BIT && (PARISC || XTENSA)) + default 1280 if KASAN && !64BIT default 1024 if (!64BIT && !PARISC) default 2048 if 64BIT help -- 2.39.0.rc0.267.gcb52ba06e7-goog