Skip to content

Fixes for various kvm-arm vulnerabilities

Paolo Bonzini kvm kvmarm lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: vgic-its: Bound PINTID during ITE table restorearch/arm64/kvm/vgic/vgic-its.c+2 -10 replies
2/4irqchip/gic-v4: Contain VMAPTI vINTID to the expected boundariesdrivers/irqchip/irq-gic-v3-its.c+2 -10 replies
3/4KVM: arm64: vgic-its: Add signal checks in scan_its_table()arch/arm64/kvm/vgic/vgic-its.c+3 -00 replies
4/4KVM: arm64: vgic: Linearise AP list pruning processarch/arm64/kvm/vgic/vgic.c+87 -880 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchOliver Upton
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Fixes for various kvm-arm vulnerabilities

- Bound PINTID during ITE table restore, avoiding the possibility that the guest plants an out-of-range LPI INTID in its own in-memory ITS tables prior to restore.

- Do not blindly trust the vINTID field coming from KVM, and reject anything that is out of the boundaries that the hardware ITS is configured to support.

- Add signal_pending checks to the scan_its_table() loop; device table entries with num_eventid_bits = 16 (or 65536 EventIDs per device) are valid but takes a long time to restore.

- Remove quadratic complexity from the algorithm used to prune IRQs sitting in the AP list has a quadratic complexity, and simplify the locking while at that.

Thanks,

Paolo

Marc Zyngier (2):
irqchip/gic-v4: Contain VMAPTI vINTID to the expected boundaries
KVM: arm64: vgic: Linearise AP list pruning process

Raghavendra Rao Ananta (2):
KVM: arm64: vgic-its: Bound PINTID during ITE table restore
KVM: arm64: vgic-its: Add signal checks in scan_its_table()

 arch/arm64/kvm/vgic/vgic-its.c   |   6 +-
 arch/arm64/kvm/vgic/vgic.c       | 175 +++++++++++++++----------------
 drivers/irqchip/irq-gic-v3-its.c |   3 +-
 3 files changed, 94 insertions(+), 90 deletions(-)
Signature · 1 line
2.56.1