linux/arch/arm64/kvm/vgic
Oliver Upton 66768669f2 KVM: arm64: vgic-v3: Release reserved slot outside of lpi_xa's lock
xa_release() expects to be called outside of the xa_lock. Fix
vgic_add_lpi() to drop the lock before calling and restructure to get
rid of the goto label.

Reported-by: Zenghui Yu <yuzenghui@huawei.com>
Closes: https://lore.kernel.org/kvmarm/d0853e82-7d95-5025-7abf-c6f1e0cdf7b5@huawei.com/
Fixes: 481c9ee846 ("KVM: arm64: vgic-its: Get rid of the lpi_list_lock")
Signed-off-by: Oliver Upton <oupton@kernel.org>
Link: https://patch.msgid.link/20251107184847.1784820-3-oupton@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
2025-11-08 11:19:32 +00:00
..
trace.h
vgic-debug.c KVM: arm64: vgic-v3: Reinstate IRQ lock ordering for LPI xarray 2025-11-08 11:19:32 +00:00
vgic-init.c KVM: arm64: vgic-v3: Reinstate IRQ lock ordering for LPI xarray 2025-11-08 11:19:32 +00:00
vgic-irqfd.c KVM: arm64: fix kdoc warnings in W=1 builds 2024-08-02 18:58:03 +00:00
vgic-its.c KVM: arm64: vgic-v3: Release reserved slot outside of lpi_xa's lock 2025-11-08 11:19:32 +00:00
vgic-kvm-device.c KVM: arm64: vgic-v3: Allow userspace to write GICD_TYPER2.nASSGIcap 2025-07-26 08:45:52 -07:00
vgic-mmio-v2.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-mmio-v3.c KVM: arm64: Don't attempt vLPI mappings when vPE allocation is disabled 2025-07-29 14:17:31 -07:00
vgic-mmio.c kvm: arm64: use BUG() instead of BUG_ON(1) 2025-08-08 01:28:57 -07:00
vgic-mmio.h KVM: arm64: vgic-v3: Use u32 to manage the line level from userspace 2022-07-17 11:55:33 +01:00
vgic-v2.c KVM: arm64: vgic: Make vgic_get_irq() more robust 2024-11-20 17:21:08 -08:00
vgic-v3-nested.c KVM/arm64 changes for 6.17, round #1 2025-07-29 12:27:40 -04:00
vgic-v3.c KVM: arm64: vgic-v3: Trap all if no in-kernel irqchip 2025-10-30 16:11:21 +00:00
vgic-v4.c KVM: arm64: vgic-v3: Use bare refcount for VGIC LPIs 2025-09-10 02:56:19 -07:00
vgic-v5.c KVM: arm64: Use ARM64_HAS_GICV5_LEGACY for GICv5 probing 2025-09-17 17:41:02 +01:00
vgic.c KVM: arm64: vgic-v3: Reinstate IRQ lock ordering for LPI xarray 2025-11-08 11:19:32 +00:00
vgic.h KVM: arm64: vgic-v3: Use bare refcount for VGIC LPIs 2025-09-10 02:56:19 -07:00