]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: arm64: Disassociate vcpus from redistributor region on teardown
authorMarc Zyngier <maz@kernel.org>
Wed, 5 Jun 2024 17:56:37 +0000 (18:56 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 6 Jun 2024 07:54:15 +0000 (08:54 +0100)
commit0d92e4a7ffd5c42b9fa864692f82476c0bf8bcc8
treec2071f063eb61e655c9f37b4404f5c75146a824b
parentafb91f5f8ad7af172d993a34fde1947892408f53
KVM: arm64: Disassociate vcpus from redistributor region on teardown

When tearing down a redistributor region, make sure we don't have
any dangling pointer to that region stored in a vcpu.

Fixes: e5a35635464b ("kvm: arm64: vgic-v3: Introduce vgic_v3_free_redist_region()")
Reported-by: Alexander Potapenko <glider@google.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240605175637.1635653-1-maz@kernel.org
Cc: stable@vger.kernel.org
arch/arm64/kvm/vgic/vgic-init.c
arch/arm64/kvm/vgic/vgic-mmio-v3.c
arch/arm64/kvm/vgic/vgic.h