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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21749C4167D for ; Tue, 7 Nov 2023 15:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jL64SS9pf1fu8HfaqwrCldWv1GZHEv5E2PUs8B0sHxY=; b=Gw6m749DC9kwhc 8WlELxfdU6WxV8Vn8YWJDfS1DuMbhNmZXu6xaUqzV9YeTf6EXr47WPxD01jnAwmr+PXgTQxJxlVlc qP5KUr1oReB6rmAEJ8NxqoiH9sGmLhjQY6HFN12jTSnz9HtL93Kbw96Y9C6vf8t/UiJ+EBhA1orEg Icoa/YwFyb+Nnyq7gcTEjnRXWoL49cDjtJh7OLCkBnOF2phMQQV7gJ4AVDqoVnPvt64zd0T/y6qux vXGFXqB51sPwuZazl2lCImB+yNb0bIltF8DDm0a0lJOec/ggAnlN/Eu7TVNA1VD5mF9Qwy2MML6HA sALVFS/bdLkL10nvD+TA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0OKZ-001tWs-2U; Tue, 07 Nov 2023 15:49:31 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0OKW-001tVm-1P for linux-arm-kernel@lists.infradead.org; Tue, 07 Nov 2023 15:49:29 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id BB4DD61228; Tue, 7 Nov 2023 15:49:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCE38C433CA; Tue, 7 Nov 2023 15:49:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699372166; bh=eKjKjQtuQioPfr0c0G9e9b9Y+FsoGklLlT1SbbgQHBo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eRYiWkA5hzEMQgpwPRYKE2PyfUc8Rrg5kpZCqmusCmnjnAfcQVS/lEyu2ZwtFC92Y yCshZ9pBzbJzyvw1gTXD4sWCDHXhNHMEEIiMyix38ySWbc8zJNG7q31vBzWQg5Uc43 8AzBmuX2NuJwT6f3RhamG7iGYjp/7WuIaXCqflLq/HrWN8MLNUMbZE7ReoQMAqOFED Hg713oHzkIXUfMstLdGXwjL1GoA3jCdNOCfs/fXtiQ6DlnecOPHyaBDGc1ATiaeAw3 xec3Ptox9n/JoS0VivfC7VOl38CSbZ2pGkB1W0c7tDw1qqd/aqNR0yZUWGEo6cNA7W HDVv+8oP2EoYw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vincent Whitchurch , Russell King , Sasha Levin , linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 6.5 15/34] ARM: 9320/1: fix stack depot IRQ stack filter Date: Tue, 7 Nov 2023 10:47:55 -0500 Message-ID: <20231107154846.3766119-15-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231107154846.3766119-1-sashal@kernel.org> References: <20231107154846.3766119-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231107_074928_553619_BE0D9BDF X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Vincent Whitchurch [ Upstream commit b0150014878c32197cfa66e3e2f79e57f66babc0 ] Place IRQ handlers such as gic_handle_irq() in the irqentry section even if FUNCTION_GRAPH_TRACER is not enabled. Without this, the stack depot's filter_irq_stacks() does not correctly filter out IRQ stacks in those configurations, which hampers deduplication and eventually leads to "Stack depot reached limit capacity" splats with KASAN. A similar fix was done for arm64 in commit f6794950f0e5ba37e3bbed ("arm64: set __exception_irq_entry with __irq_entry as a default"). Link: https://lore.kernel.org/r/20230803-arm-irqentry-v1-1-8aad8e260b1c@axis.com Signed-off-by: Vincent Whitchurch Signed-off-by: Russell King (Oracle) Signed-off-by: Sasha Levin --- arch/arm/include/asm/exception.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/include/asm/exception.h b/arch/arm/include/asm/exception.h index 58e039a851af0..3c82975d46db3 100644 --- a/arch/arm/include/asm/exception.h +++ b/arch/arm/include/asm/exception.h @@ -10,10 +10,6 @@ #include -#ifdef CONFIG_FUNCTION_GRAPH_TRACER #define __exception_irq_entry __irq_entry -#else -#define __exception_irq_entry -#endif #endif /* __ASM_ARM_EXCEPTION_H */ -- 2.42.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 217B2C4332F for ; Tue, 7 Nov 2023 15:52:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343737AbjKGPwx (ORCPT ); Tue, 7 Nov 2023 10:52:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343718AbjKGPvl (ORCPT ); Tue, 7 Nov 2023 10:51:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E524A269E; Tue, 7 Nov 2023 07:49:26 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCE38C433CA; Tue, 7 Nov 2023 15:49:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699372166; bh=eKjKjQtuQioPfr0c0G9e9b9Y+FsoGklLlT1SbbgQHBo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eRYiWkA5hzEMQgpwPRYKE2PyfUc8Rrg5kpZCqmusCmnjnAfcQVS/lEyu2ZwtFC92Y yCshZ9pBzbJzyvw1gTXD4sWCDHXhNHMEEIiMyix38ySWbc8zJNG7q31vBzWQg5Uc43 8AzBmuX2NuJwT6f3RhamG7iGYjp/7WuIaXCqflLq/HrWN8MLNUMbZE7ReoQMAqOFED Hg713oHzkIXUfMstLdGXwjL1GoA3jCdNOCfs/fXtiQ6DlnecOPHyaBDGc1ATiaeAw3 xec3Ptox9n/JoS0VivfC7VOl38CSbZ2pGkB1W0c7tDw1qqd/aqNR0yZUWGEo6cNA7W HDVv+8oP2EoYw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vincent Whitchurch , Russell King , Sasha Levin , linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 6.5 15/34] ARM: 9320/1: fix stack depot IRQ stack filter Date: Tue, 7 Nov 2023 10:47:55 -0500 Message-ID: <20231107154846.3766119-15-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231107154846.3766119-1-sashal@kernel.org> References: <20231107154846.3766119-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.10 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vincent Whitchurch [ Upstream commit b0150014878c32197cfa66e3e2f79e57f66babc0 ] Place IRQ handlers such as gic_handle_irq() in the irqentry section even if FUNCTION_GRAPH_TRACER is not enabled. Without this, the stack depot's filter_irq_stacks() does not correctly filter out IRQ stacks in those configurations, which hampers deduplication and eventually leads to "Stack depot reached limit capacity" splats with KASAN. A similar fix was done for arm64 in commit f6794950f0e5ba37e3bbed ("arm64: set __exception_irq_entry with __irq_entry as a default"). Link: https://lore.kernel.org/r/20230803-arm-irqentry-v1-1-8aad8e260b1c@axis.com Signed-off-by: Vincent Whitchurch Signed-off-by: Russell King (Oracle) Signed-off-by: Sasha Levin --- arch/arm/include/asm/exception.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/include/asm/exception.h b/arch/arm/include/asm/exception.h index 58e039a851af0..3c82975d46db3 100644 --- a/arch/arm/include/asm/exception.h +++ b/arch/arm/include/asm/exception.h @@ -10,10 +10,6 @@ #include -#ifdef CONFIG_FUNCTION_GRAPH_TRACER #define __exception_irq_entry __irq_entry -#else -#define __exception_irq_entry -#endif #endif /* __ASM_ARM_EXCEPTION_H */ -- 2.42.0