All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: vgic: Fix handling of userspace register accesses
@ 2020-11-13 14:27 ` Zenghui Yu
  0 siblings, 0 replies; 36+ messages in thread
From: Zenghui Yu @ 2020-11-13 14:27 UTC (permalink / raw)
  To: kvmarm, maz
  Cc: linux-arm-kernel, linux-kernel, eric.auger, james.morse,
	julien.thierry.kdev, suzuki.poulose, wanghaibin.wang, Zenghui Yu

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

-- 
2.19.1


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

end of thread, other threads:[~2020-11-17 13:10 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-13 14:27 [PATCH 0/2] KVM: arm64: vgic: Fix handling of userspace register accesses Zenghui Yu
2020-11-13 14:27 ` Zenghui Yu
2020-11-13 14:27 ` Zenghui Yu
2020-11-13 14:28 ` [PATCH 1/2] KVM: arm64: vgic: Forbid invalid userspace Redistributor accesses Zenghui Yu
2020-11-13 14:28   ` Zenghui Yu
2020-11-13 14:28   ` Zenghui Yu
2020-11-15 17:04   ` Marc Zyngier
2020-11-15 17:04     ` Marc Zyngier
2020-11-15 17:04     ` Marc Zyngier
2020-11-16 13:09     ` Zenghui Yu
2020-11-16 13:09       ` Zenghui Yu
2020-11-16 13:09       ` Zenghui Yu
2020-11-16 14:10       ` Marc Zyngier
2020-11-16 14:10         ` Marc Zyngier
2020-11-16 14:10         ` Marc Zyngier
2020-11-16 14:57         ` Zenghui Yu
2020-11-16 14:57           ` Zenghui Yu
2020-11-16 14:57           ` Zenghui Yu
2020-11-17  8:49           ` Marc Zyngier
2020-11-17  8:49             ` Marc Zyngier
2020-11-17  8:49             ` Marc Zyngier
2020-11-17  9:47             ` Auger Eric
2020-11-17  9:47               ` Auger Eric
2020-11-17  9:47               ` Auger Eric
2020-11-17  9:59             ` Auger Eric
2020-11-17  9:59               ` Auger Eric
2020-11-17  9:59               ` Auger Eric
2020-11-17 10:51               ` Marc Zyngier
2020-11-17 10:51                 ` Marc Zyngier
2020-11-17 10:51                 ` Marc Zyngier
2020-11-17 13:09             ` Zenghui Yu
2020-11-17 13:09               ` Zenghui Yu
2020-11-17 13:09               ` Zenghui Yu
2020-11-13 14:28 ` [PATCH 2/2] KVM: arm64: vgic: Forbid invalid userspace Distributor accesses Zenghui Yu
2020-11-13 14:28   ` Zenghui Yu
2020-11-13 14:28   ` Zenghui Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.