Skip to content

Commit c48617f

Browse files
committed
Merge tag 'kvmarm-fixes-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
KVM/arm64 fixes for 6.8, take #3 - Check for the validity of interrupts handled by a MOVALL command - Check for the validity of interrupts while reading the pending state on enabling LPIs.
2 parents 9895cee + 85a71ee commit c48617f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm64/kvm/vgic/vgic-its.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,9 @@ static int its_sync_lpi_pending_table(struct kvm_vcpu *vcpu)
468468
}
469469

470470
irq = vgic_get_irq(vcpu->kvm, NULL, intids[i]);
471+
if (!irq)
472+
continue;
473+
471474
raw_spin_lock_irqsave(&irq->irq_lock, flags);
472475
irq->pending_latch = pendmask & (1U << bit_nr);
473476
vgic_queue_irq_unlock(vcpu->kvm, irq, flags);
@@ -1432,6 +1435,8 @@ static int vgic_its_cmd_handle_movall(struct kvm *kvm, struct vgic_its *its,
14321435

14331436
for (i = 0; i < irq_count; i++) {
14341437
irq = vgic_get_irq(kvm, NULL, intids[i]);
1438+
if (!irq)
1439+
continue;
14351440

14361441
update_affinity(irq, vcpu2);
14371442

0 commit comments

Comments
 (0)