Skip to content

KVM: arm64: vgic: Fix handling of userspace register accesses

Zenghui Yu kvmarm linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: vgic: Forbid invalid userspace Redistributor accessesarch/arm64/kvm/vgic/vgic-mmio-v3.c+4 -09 replies
2/2KVM: arm64: vgic: Forbid invalid userspace Distributor accessesarch/arm64/kvm/vgic/vgic-mmio-v3.c+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: arm64: vgic: Fix handling of userspace register accesses

We had recently seen a kernel panic when accidently programming QEMU in an inappropriate way (in short, accessing RD registers before setting the RD base address. See patch #1 for details). And it looks like we're missing some basic checking when handling userspace register access.

I've only tested it with QEMU. It'd be appreciated if others can test it with other user tools.

Zenghui Yu (2):
KVM: arm64: vgic: Forbid invalid userspace Redistributor accesses
KVM: arm64: vgic: Forbid invalid userspace Distributor accesses

 arch/arm64/kvm/vgic/vgic-mmio-v3.c | 8 ++++++++
 1 file changed, 8 insertions(+)
Signature · 1 line
2.19.1