Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 9320/1: fix stack depot IRQ stack filter

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 <vincent.whitchurch@axis.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

authored by

Vincent Whitchurch and committed by
Russell King (Oracle)
b0150014 414f28a9

-4
-4
arch/arm/include/asm/exception.h
··· 10 10 11 11 #include <linux/interrupt.h> 12 12 13 - #ifdef CONFIG_FUNCTION_GRAPH_TRACER 14 13 #define __exception_irq_entry __irq_entry 15 - #else 16 - #define __exception_irq_entry 17 - #endif 18 14 19 15 #endif /* __ASM_ARM_EXCEPTION_H */