Message ID | 20230803-arm-irqentry-v1-1-8aad8e260b1c@axis.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1116949vqx; Thu, 3 Aug 2023 05:36:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFvdE8tLUUqDrcijuDCz69klNiEUoTy2EUWQaXz8sfz5FURMasB62WZ2eyhMa24q9VGtI7 X-Received: by 2002:a17:902:da84:b0:1bc:2c58:ad97 with SMTP id j4-20020a170902da8400b001bc2c58ad97mr6977717plx.22.1691066174873; Thu, 03 Aug 2023 05:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691066174; cv=none; d=google.com; s=arc-20160816; b=HqaqLVbzchOzrD263VMVvWT/Fd1GB/N09uSE+IcZ3ZG/r1aolw1hqq13jBxAgNlxKy IRczMd4Pa68WKATQsP0/xesDpDGXJDuz4QprlAZ741fHGIxiLyse05CNzRjKVfcGbRiR 5xmfKi1JTaDsXFiiIGwWJE3ZdBMle5zH4SVFLSGCMzlYrIRdJsBzBrBodpaQyi7luZ1B 6yYUZr5H23ApdwOTQFdMcRCxRqsgGzZv6FMnYV917Xz206NOLlG6P0fXrcXFj47Cy9W+ OtHS+bQWHlsXKXDHX9lt5QkcyprT09W6H2MYJCdQvTNg3WilfZzFgksqfPmz5jeeitdM X5yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=IIK+/Ibszq5Q7MtD+HETHlaqPMsGqvrHx1bhq6MXAIg=; fh=hyV/T9ZCX2DKFFHtQbmlI0oeY3stTuGY4R6wLarg05E=; b=V8cSLjZySUdx2Z6UX5UmvvmPlbc2PyKdMt6pVbRBtdKHZOLeLt71kUCaYl7Uxf5wq2 jS4zs8O7wO45nPojWQRFK8I1akWykauQmLgV/cJNPcwLw7HLwapYFnkhoo+QXwuWpD3S 3tp4UVPv2dazKrbzqbLL74BaRqB3V9Q9huZWK6IcHRR8Xgfhf7R3zPxFNz82/W27ed+X /r5K5U+aKmctNVPQE9k/utPTYLPJSvJyuco5iiwCWgK+mIBoXFWRsLVmmebERlo7nigv 0DQOS7zJygOaa1haAzQVibc4T5A3QrdPlimox8+DumYS8/IpBfkTTZfQYR3dgtOEY2kY tn0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=KxE9o1R8; 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=axis.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o10-20020a170903300a00b001b8805f98e5si12213281pla.591.2023.08.03.05.36.01; Thu, 03 Aug 2023 05:36:14 -0700 (PDT) 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 (test mode) header.i=@axis.com header.s=axis-central1 header.b=KxE9o1R8; 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=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235471AbjHCLBZ (ORCPT <rfc822;jeff.pang.chn@gmail.com> + 99 others); Thu, 3 Aug 2023 07:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235013AbjHCLBF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 3 Aug 2023 07:01:05 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AF3E49D0 for <linux-kernel@vger.kernel.org>; Thu, 3 Aug 2023 04:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1691060419; x=1722596419; h=from:date:subject:mime-version:content-transfer-encoding: message-id:to:cc; bh=IIK+/Ibszq5Q7MtD+HETHlaqPMsGqvrHx1bhq6MXAIg=; b=KxE9o1R8d7KLq+USy6dtOQ5bamUG4rGlSgrSYnfpmKAc4MnzJOcnqcWw RpZWaKUkp7Hgm554NEcZ3b0md8j0xV/vNIUGRVgXPrKC1b40F61rlHboN HYwvh1xkDYrBZORVBwHcsbpiQ+iQp+LROItKi2DIgXdsDpTcf3ybPXXF+ Ikpoe9Egv3QIH3ezYSD41RvLPPGpVB/n4g3oyCkPK98Iay7JjaOuZy9Pr LojancxSOmGwCx9VSIj8GDSRwd+pJAj/0M+MOxRXGHOY69q+c3ttY+F0g SdmGLOovaRhi0gTElB4kUVcICSxiNssb9NskY2Jtye46eYqBoD+8lQ9tc g==; From: Vincent Whitchurch <vincent.whitchurch@axis.com> Date: Thu, 3 Aug 2023 12:59:49 +0200 Subject: [PATCH] ARM: fix stack depot IRQ stack filter MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20230803-arm-irqentry-v1-1-8aad8e260b1c@axis.com> X-B4-Tracking: v=1; b=H4sIAKSIy2QC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDCwNj3cSiXN3MosLUvJKiSl2zZFNTc0uDtEQD0zQloJaCotS0zAqwcdG xtbUAcFzl9V4AAAA= To: Russell King <linux@armlinux.org.uk> CC: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <kernel@axis.com>, Vincent Whitchurch <vincent.whitchurch@axis.com> X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773211405209272517 X-GMAIL-MSGID: 1773211405209272517 |
Series |
ARM: fix stack depot IRQ stack filter
|
|
Commit Message
Vincent Whitchurch
Aug. 3, 2023, 10:59 a.m. UTC
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 <vincent.whitchurch@axis.com>
---
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 <linux/interrupt.h> -#ifdef CONFIG_FUNCTION_GRAPH_TRACER #define __exception_irq_entry __irq_entry -#else -#define __exception_irq_entry -#endif #endif /* __ASM_ARM_EXCEPTION_H */