]> git.hungrycats.org Git - linux/commit
KVM: arm64: vgic-v3: Sanitise guest writes to GICR_INVLPIR
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Nov 2024 16:57:54 +0000 (16:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:09 +0000 (13:54 +0100)
commite196acc8a894cd34cf341ac70483defa4c0d5512
tree15892abc0328996dbc3f384a30b0da159ddb9cd9
parent33b1672f339d4cd17973ff2dd7da06d38740e91b
KVM: arm64: vgic-v3: Sanitise guest writes to GICR_INVLPIR

commit d561491ba927cb5634094ff311795e9d618e9b86 upstream.

Make sure we filter out non-LPI invalidation when handling writes
to GICR_INVLPIR.

Fixes: 4645d11f4a553 ("KVM: arm64: vgic-v3: Implement MMIO-based LPI invalidation")
Reported-by: Alexander Potapenko <glider@google.com>
Tested-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20241117165757.247686-2-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kvm/vgic/vgic-mmio-v3.c