From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D72C15C82 for ; Mon, 5 Dec 2022 19:22:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00C4FC433D6; Mon, 5 Dec 2022 19:22:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1670268164; bh=/+UlnU2V7tdbldITT+6Y1e1edaZtEq0GyZcj0pZQnmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jFDueQxM9kVbp8/nQccQ0BrSjqRxYPudeSvQCSULah8lXirOtDK6NrsjwQBfKmmqs CbY5Y0BvO99wHjbEhsi67e8QGkY1jNZIQ6Do+BNOBwltP0RwsbmiSGxlav9VgYPeN9 R4J/7Uu6eECPtjr5rmpWmEznze8VWeC1fEG5RbVA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Helge Deller , Sasha Levin Subject: [PATCH 4.19 096/105] parisc: Increase FRAME_WARN to 2048 bytes on parisc Date: Mon, 5 Dec 2022 20:10:08 +0100 Message-Id: <20221205190806.364954535@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221205190803.124472741@linuxfoundation.org> References: <20221205190803.124472741@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Helge Deller [ Upstream commit 8d192bec534bd5b778135769a12e5f04580771f7 ] PA-RISC uses a much bigger frame size for functions than other architectures. So increase it to 2048 for 32- and 64-bit kernels. This fixes e.g. a warning in lib/xxhash.c. Reported-by: kernel test robot Signed-off-by: Helge Deller Stable-dep-of: 152fe65f300e ("Kconfig.debug: provide a little extra FRAME_WARN leeway when KASAN is enabled") Signed-off-by: Sasha Levin --- lib/Kconfig.debug | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 12fc801811d3..67c98f664a61 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -224,8 +224,9 @@ config FRAME_WARN range 0 8192 default 3072 if KASAN_EXTRA default 2048 if GCC_PLUGIN_LATENT_ENTROPY - default 1536 if (!64BIT && (PARISC || XTENSA)) - default 1024 if (!64BIT && !PARISC) + default 2048 if PARISC + default 1536 if (!64BIT && XTENSA) + default 1024 if !64BIT default 2048 if 64BIT help Tell gcc to warn at build time for stack frames larger than this. -- 2.35.1