Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 0/4] Fixes for various kvm-arm vulnerabilities
@ 2026-12-04 17:57 Paolo Bonzini
  2026-12-04 17:57 ` [PATCH 1/4] KVM: arm64: vgic-its: Bound PINTID during ITE table restore Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Paolo Bonzini @ 2026-12-04 17:57 UTC (permalink / raw)
  To: linux-kernel, kvm; +Cc: maz, oupton, kvmarm

- 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(-)

-- 
2.56.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-04 18:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 17:57 [PATCH 0/4] Fixes for various kvm-arm vulnerabilities Paolo Bonzini
2026-12-04 17:57 ` [PATCH 1/4] KVM: arm64: vgic-its: Bound PINTID during ITE table restore Paolo Bonzini
2026-12-04 18:14   ` sashiko-bot
2026-12-04 17:57 ` [PATCH 2/4] irqchip/gic-v4: Contain VMAPTI vINTID to the expected boundaries Paolo Bonzini
2026-12-04 17:57 ` [PATCH 3/4] KVM: arm64: vgic-its: Add signal checks in scan_its_table() Paolo Bonzini
2026-12-04 18:23   ` sashiko-bot
2026-12-04 17:57 ` [PATCH 4/4] KVM: arm64: vgic: Linearise AP list pruning process Paolo Bonzini
2026-12-04 18:21   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox