summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorFuad Tabba <fuad.tabba@linux.dev>2026-09-21 08:29:56 +0100
committerMarc Zyngier <maz@kernel.org>2026-11-03 10:25:52 +0000
commitfd86d69c951765e24e89a162c53dfe33a8aba976 (patch)
tree43bafc919c165efdc18c796177e2c33d96207add /tools/perf/scripts/python/bin/stackcollapse-report
parent861bebd1fac5f5a25c11e40aec3c3291542045d1 (diff)
irqchip/gic-v4: Unwind what its_alloc_vcpu_irqs() allocated on failure
A failure in the its_alloc_vcpu_sgis() loop leaves behind both the SGI domains created for the vPEs below the failing index and the vPE irqs allocated before the loop, since irq_domain_remove() frees neither. Each leaked vPE takes its ITS state with it, a vpe_id and an LPI pending table. Free both from a second label before the existing unwind. With the freed pointers now cleared, its_free_sgi_irqs() can skip a vPE with no SGI domain and be reused there. The check has to precede the lookup: irq_find_mapping(NULL, 0) falls back to irq_default_domain, and the live irq it returns would then be freed. Fixes: 6d31b6ff985d ("irqchip/gic-v4.1: Add VSGI allocation/teardown") Reviewed-by: Yuan Yao <yaoyuan@linux.alibaba.com> Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Link: https://patch.msgid.link/20260921072958.2918477-3-fuad.tabba@linux.dev Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions