Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10473485rwb; Fri, 25 Nov 2022 05:06:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf7TcfYgB45N8BrOHI3t7rYwBodvB+4hknE0j60To1TNxLCirUlgusLL2vyrw5pUP68HVaUF X-Received: by 2002:a2e:b058:0:b0:277:9e5:6cc9 with SMTP id d24-20020a2eb058000000b0027709e56cc9mr6109163ljl.165.1669381582348; Fri, 25 Nov 2022 05:06:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669381582; cv=none; d=google.com; s=arc-20160816; b=puoB7Y7o3YEtwsZG6IHp+7rKxXo291PPW3mNS1njhSSTRLeOyCcAbqpSFJLCN1of1o zmRb/IN396hQcgmiNDuE6y4O197VOo9PcqoG3x98c0aQISwKqfdM/7vu4T9SLLaLC9m4 +YUeU4Y/Z6EN5j8KUTYRgtHlG02joNOhziTDR5N+aANHAXWc/pIZ7t/O9kgDtuowX4oY fB/xpSPlF5uZRRuoxGsFwNU1QQJvafgmbMW1XXkgKE64ncbGJhoMFu9EqUNiLX6eIq/R 1RiM+eLLs0aE5X6HcW9ZJcxwNHFHBi8/dKfv23OOQqSc4zuzsYKcdam0dvMLi7XQJ3Vf HPVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t9NyayfhF7vmKX+RAPAkM5IR3/X023xDEyGNkDR81Us=; b=xAJkNcZyEFTz5Xu89Elz+mL1Ge2nfG1jGinGWqyqFkoADRCxIvgs+6KBnUSfJf0B+k OqbKMsWjmKLURUtxs4CaE4JZ94uBd9dsciqmObZHoRXYbWE4RcrCl4pujkVB57w6pZ2X Jj2l3WpdJLTBoAK4mlpxyj6ZFUpc5bblYIRGXM5Rsua4DyrVhzCbABl5oHhjs5RhVy9x kFhrlgKfjCLat911HwG5Oh7WJg2LoC7kxzvHE3okd1ynLZYoR3INK/NJMGLmUF6JzZk6 rCGoYKbWaCQXed9ARNM38BE3Tsn/yur9k0H77FGd5J0mfbyk9X1ANclGriPum/j00gtV 7x2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AKro9j5b; 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 z16-20020a05640240d000b00461c41bd7b6si4039245edb.209.2022.11.25.05.05.45; Fri, 25 Nov 2022 05:06:22 -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=AKro9j5b; 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 S229712AbiKYMIP (ORCPT + 86 others); Fri, 25 Nov 2022 07:08:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbiKYMII (ORCPT ); Fri, 25 Nov 2022 07:08:08 -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 8E0812315A for ; Fri, 25 Nov 2022 04:08:08 -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 282A6622AA for ; Fri, 25 Nov 2022 12:08:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74F04C433C1; Fri, 25 Nov 2022 12:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669378087; bh=gevkG6TfDd9z8LOLiUxeJy2lRLn2rHcp1JIJZyU3WcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AKro9j5bc3m00YbU0C47HLUKAGS90KVKcmKx+1ecGTLz37DxwZyrNZ7fwQfp5Fj8a CiapE/0vqwCbVzyT6HhmpVX/XBKeejO6lK9QXxlStLS1dng1RuhTy8Gv9LR40rZ0jI roICL0dzAEKCllb1GT6QZQ+AtTu+w3R+7rdxjgCAE1deHnnnSu+Z/h7tZB73K+FSld XRk6ZlECfR0pF1ev+J1frrZh1lxzN9kmR+Fjv8dEZfZq6nOsnGmetTUu7q/Fi/QHMM YzPWHY3w9e6RdCRmPk8euVAu7uXqWYeOEwwkhpP0qaJK3hxNzjlkv3EduQ+nlzeo2z eWiR5vohumuvw== From: Lee Jones To: lee@kernel.org, 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: [PATCH v2 2/2] Kconfig.debug: Provide a little extra FRAME_WARN leeway when KASAN is enabled Date: Fri, 25 Nov 2022 12:07:50 +0000 Message-Id: <20221125120750.3537134-3-lee@kernel.org> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog In-Reply-To: <20221125120750.3537134-1-lee@kernel.org> References: <20221125120750.3537134-1-lee@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 -- 2.38.1.584.g0f3c55d4c2-goog