From: Maninder Singh <maninder1.s@samsung.com>
To: linux@armlinux.org.uk, linusw@kernel.org, mark.rutland@arm.com,
kmehltretter@gmail.com, vbabka@suse.cz, elver@google.com,
akpm@linux-foundation.org
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, r.thapliyal@samsung.com,
Maninder Singh <maninder1.s@samsung.com>,
Hariom Panthi <hariom1.p@samsung.com>
Subject: [PATCH 1/1] lib/stackdepot: add __irq_svc to irq text section to filter it from traces
Date: Mon, 14 Sep 2026 16:02:18 +0530 [thread overview]
Message-ID: <20260914103218.1125401-1-maninder1.s@samsung.com> (raw)
In-Reply-To: <CGME20260914103226epcas5p4832171ae7e2b5e19ab4eaaf66a6e6768@epcas5p4.samsung.com>
Stackdepot usage is growing exponentially because current irq filter
is not removing trace after __irq_svc frame, so adding __irq_svc in
irq text section.
stacktrace 1 stacktrace 2
kmem_cache_free+0x148/0x398 kmem_cache_free+0x148/0x398
mt_free_rcu+0x20/0x24 mt_free_rcu+0x20/0x24
rcu_core+0x338/0x9fc rcu_core+0x338/0x9fc
rcu_core_si+0x18/0x1c rcu_core_si+0x18/0x1c
handle_softirqs+0x194/0x47c handle_softirqs+0x194/0x47c
irq_exit+0xb0/0xdc irq_exit+0xb0/0xdc
generic_handle_arch_irq+0x48/0x4c generic_handle_arch_irq+0x48/0x4c
call_with_stack+0x1c/0x20 call_with_stack+0x1c/0x20
__irq_svc+0x128/0x154 __irq_svc+0x128/0x154
_raw_spin_unlock_irq+0x30/0x64 stack_trace_consume_entry+0x58/0x74
__vma_link_file+0x4c/0x70 arch_stack_walk+0x88/0x120
vma_link_file+0x40/0x4c stack_trace_save+0x48/0x54
__mmap_region+0x660/0x99c save_stack+0x5c/0x14c
mmap_region+0x6c/0x108 __set_page_owner+0x38/0x254
do_mmap+0x3c4/0x4d8 get_page_from_freelist+0x1714/0x1938
vm_mmap_pgoff+0xd0/0x16c __alloc_pages_noprof+0x120/0x1204
Co-developed-by: Hariom Panthi <hariom1.p@samsung.com>
Signed-off-by: Hariom Panthi <hariom1.p@samsung.com>
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
---
arch/arm/kernel/entry-armv.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
index 2d2ea3ca880c..38696256d997 100644
--- a/arch/arm/kernel/entry-armv.S
+++ b/arch/arm/kernel/entry-armv.S
@@ -223,6 +223,7 @@ __dabt_svc:
ENDPROC(__dabt_svc)
.align 5
+.pushsection .irqentry.text, "ax"
__irq_svc:
svc_entry
irq_handler from_user=0
@@ -239,6 +240,7 @@ __irq_svc:
svc_exit r5, irq = 1 @ return from exception
UNWIND(.fnend )
ENDPROC(__irq_svc)
+.popsection
.ltorg
--
2.34.1
next parent reply other threads:[~2026-09-14 10:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20260914103226epcas5p4832171ae7e2b5e19ab4eaaf66a6e6768@epcas5p4.samsung.com>
2026-09-14 10:32 ` Maninder Singh [this message]
2026-09-15 3:55 ` Andrew Morton
[not found] ` <CGME20260914103226epcas5p4832171ae7e2b5e19ab4eaaf66a6e6768@epcms5p6>
2026-09-15 4:07 ` Maninder Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260914103218.1125401-1-maninder1.s@samsung.com \
--to=maninder1.s@samsung.com \
--cc=akpm@linux-foundation.org \
--cc=elver@google.com \
--cc=hariom1.p@samsung.com \
--cc=kmehltretter@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=r.thapliyal@samsung.com \
--cc=vbabka@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®