Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2087673rwo; Thu, 3 Aug 2023 04:39:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHFWZ424yagfAmVtT3IkZ615m9nlQacZelit4Mwq3w5UGoTcZzN5X7u+697+eYEzIV+qSSP X-Received: by 2002:a05:6a00:9a6:b0:687:404f:4d5a with SMTP id u38-20020a056a0009a600b00687404f4d5amr13459454pfg.13.1691062782082; Thu, 03 Aug 2023 04:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691062782; cv=none; d=google.com; s=arc-20160816; b=ZK/GgrYIalu6s9GGdjw+Rcyp2ZS2xIwNKkSMFIhhhKWDa3RhWnzdEmQQdMrU98Qnb4 sIttFjFXhDJ3lVX2rLfIgbr8JJRMFYCTYP4iidvais3h+2dtkeKIuaWzpFEf6tg1eIvM 83SJ1gtnyAvVikpDcKHsE0fvkquyS5gPAQ9v67Nh2fNMHRDxIYwY70ArPUMDqbykgvVZ 7Mpsg/iNg0BHSV41hfj/HXBOgK60anwQb5tztgwvlLVR7TSzKCsrjR7iF9Y3UXEcWqNr tLNqAlQU3VHCHIwDOU3ssFYozkWWT2mIJR1hWQ7nDaTp9S7hogPZ1yI5GVJ0E6R+OLcV OblA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a056a000b4c00b006666b36b0desi7273602pfo.361.2023.08.03.04.39.21; Thu, 03 Aug 2023 04:39:42 -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 S235570AbjHCLBY (ORCPT + 99 others); Thu, 3 Aug 2023 07:01:24 -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 ); 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 ; 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 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 CC: , , , Vincent Whitchurch 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: X-Mailing-List: linux-kernel@vger.kernel.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(-) 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 */ --- base-commit: 5d0c230f1de8c7515b6567d9afba1f196fb4e2f4 change-id: 20230803-arm-irqentry-6c55790fa05f Best regards, -- Vincent Whitchurch