]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: vgic-its: Test for valid IRQ in its_sync_lpi_pending_table()
authorOliver Upton <oliver.upton@linux.dev>
Wed, 21 Feb 2024 09:27:31 +0000 (09:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:35:01 +0000 (13:35 +0100)
commit3f70ed98f77619dd2ad5c470c6d4083c0b6885ab
treed3ad5de4387c2476990b959569ac6d791d1df7c4
parentfcf90b4703bd1d1dd69608aa16b85ae64fea34fb
KVM: arm64: vgic-its: Test for valid IRQ in its_sync_lpi_pending_table()

commit 8d3a7dfb801d157ac423261d7cd62c33e95375f8 upstream.

vgic_get_irq() may not return a valid descriptor if there is no ITS that
holds a valid translation for the specified INTID. If that is the case,
it is safe to silently ignore it and continue processing the LPI pending
table.

Cc: stable@vger.kernel.org
Fixes: 33d3bc9556a7 ("KVM: arm64: vgic-its: Read initial LPI pending table")
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240221092732.4126848-2-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kvm/vgic/vgic-its.c