[PATCH v2 0/3] KVM: arm64: Fix userspace access to HW pending state

Marc Zyngier maz at kernel.org
Tue Jun 7 06:14:24 PDT 2022


This is a followup from [1], which aims at fixing userspace access to
interrupt pending state for HW interrupts.

* From v1 [1]:
  - Keep some of the GICv3-specifics around to avoid regressing the
    line vs latch distinction (Eric).

[1] https://lore.kernel.org/r/20220602083025.1110433-1-maz@kernel.org

Marc Zyngier (3):
  KVM: arm64: Don't read a HW interrupt pending state in user context
  KVM: arm64: Replace vgic_v3_uaccess_read_pending with
    vgic_uaccess_read_pending
  KVM: arm64: Warn if accessing timer pending state outside of vcpu
    context

 arch/arm64/kvm/arch_timer.c        |  3 +++
 arch/arm64/kvm/vgic/vgic-mmio-v2.c |  4 +--
 arch/arm64/kvm/vgic/vgic-mmio-v3.c | 40 ++----------------------------
 arch/arm64/kvm/vgic/vgic-mmio.c    | 40 +++++++++++++++++++++++++++---
 arch/arm64/kvm/vgic/vgic-mmio.h    |  3 +++
 5 files changed, 46 insertions(+), 44 deletions(-)

-- 
2.34.1




More information about the linux-arm-kernel mailing list