From patchwork Thu Aug 3 10:59:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Whitchurch X-Patchwork-Id: 13339724 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 32266C00528 for ; Thu, 3 Aug 2023 11:00:36 +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:CC:To:Message-ID:MIME-Version:Subject: Date:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=AJKmrmM1ExYM/BWGZfZ+lZI7LgHk6PT1WRCPn0zyTK4=; b=jCxtTQ9qsHSvHx 3Jn9ASojLUInqZk4nmBhrWFuUxW1foXKX5R5PnVHU1Df8d5wvXaEjcG9saHtV1G5+9VDCWSx5FaTi wSJEivXrlDk39Y6sFXP1WBrKtwwDt/e7n6KKBkfXeA5pQnVm7BMXEFODRW7IxWW4ObDb8DuQwla2O 0NrmvnOEXBMbippuqNyHaZ8UdB0R5pYFnpUH7Ndfwytu/kpJG7fyan8xczwWtvbbzBIHn0pIJYvHK 2xZ5iqhtJp0TQXTxQ7tL7hwfToVqPyA2oKS95zipYhbINa7McDm8H733SMaRfVN3Ec2byLwGY6bFr r6Iipl77vnD5xY1pyqbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRW3p-007awh-1z; Thu, 03 Aug 2023 11:00:05 +0000 Received: from smtp1.axis.com ([195.60.68.17]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRW3j-007arA-1Y for linux-arm-kernel@lists.infradead.org; Thu, 03 Aug 2023 11:00:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1691060399; x=1722596399; h=from:date:subject:mime-version:content-transfer-encoding: message-id:to:cc; bh=IIK+/Ibszq5Q7MtD+HETHlaqPMsGqvrHx1bhq6MXAIg=; b=iNpctMUFgZemi/jNoRCK/9YzgfTqYTH2Islib8y4chHcIFfX4xJdCA5F sQgAx7poA5SsOu7sjeU020Xt1PU2FJBEanFNFbVOaVnnVa+MUMHTXiqbx 9yAxCui8MMx93lq1Xmu8feUVnw6MNm6FLKCIqt08pKk8bnMFrgI9b2lcF SAPjkeRTt3pLLAaJ8XK1Hdyjfi53a+cXPb2dBN96xeMykuMLHpBYUYiqL t4/abZ+o2RTYt/rk3aMdN3s5r9g0FTzWn5jeNI5EmCSslNOmrwWRbK8Md tqh/tdNtXTOKIJ4KapzxEdWZPbEp4G0AkQMWuQByp+P0Pt2WdewDUMTFi Q==; From: Vincent Whitchurch Date: Thu, 3 Aug 2023 12:59:49 +0200 Subject: [PATCH] ARM: fix stack depot IRQ stack filter MIME-Version: 1.0 Message-ID: <20230803-arm-irqentry-v1-1-8aad8e260b1c@axis.com> X-B4-Tracking: v=1; b=H4sIAKSIy2QC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDCwNj3cSiXN3MosLUvJKiSl2zZFNTc0uDtEQD0zQloJaCotS0zAqwcdG xtbUAcFzl9V4AAAA= To: Russell King CC: , , , Vincent Whitchurch X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230803_040000_002063_A490F437 X-CRM114-Status: UNSURE ( 8.06 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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"). Signed-off-by: Vincent Whitchurch --- arch/arm/include/asm/exception.h | 4 ---- 1 file changed, 4 deletions(-) --- base-commit: 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4 change-id: 20230803-arm-irqentry-6c55790fa05f Best regards, diff --git a/arch/arm/include/asm/exception.h b/arch/arm/include/asm/exception.h index 58e039a851af..3c82975d46db 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 */