diff options
| author | Matt Turner <mattst88@gmail.com> | 2026-09-05 15:29:22 -0400 |
|---|---|---|
| committer | Magnus Lindholm <linmag7@gmail.com> | 2026-09-11 16:25:42 +0200 |
| commit | 797a8e3cb5539a82cc0364c41a850aba940d436a (patch) | |
| tree | abd9975117390f792bf126dd6501056e98d4394f /tools/perf/scripts/python/stackcollapse.py | |
| parent | 83bd31c2840b3640ba08b7afac2908bbb19c4b2c (diff) | |
| download | linux-797a8e3cb5539a82cc0364c41a850aba940d436a.tar.gz linux-797a8e3cb5539a82cc0364c41a850aba940d436a.zip | |
alpha: enter hardirq context before looking up the irq descriptor
handle_irq() called irq_to_desc() before irq_enter(), so that lookup ran
with the preempt count still saying task context and with RCU not yet
watching. Generic code called from an interrupt handler should see
hardirq context, and irq_to_desc() is more than an array index once
SPARSE_IRQ is in use.
Move irq_enter() to the top of the function and add the matching
irq_exit() to the invalid interrupt path.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Matt Turner <mattst88@gmail.com>
Tested-by: Magnus Lindholm <linmag7@gmail.com>
Reviewed-by: Magnus Lindholm <linmag7@gmail.com>
Link: https://lore.kernel.org/r/20260905-arch-kconfig-options-v2-v2-1-83e8245761a2@gmail.com
Signed-off-by: Magnus Lindholm <linmag7@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
