All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: PSCI fixes
@ 2020-04-01 16:58 ` Marc Zyngier
  0 siblings, 0 replies; 30+ messages in thread
From: Marc Zyngier @ 2020-04-01 16:58 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm, kvm

Christoffer recently pointed out that we don't narrow the arguments to
SMC32 PSCI functions called by a 64bit guest. This could result in a
guest failing to boot its secondary CPUs if it had junk in the upper
32bits. Yes, this is silly, but the guest is allowed to do that. Duh.

Whist I was looking at this, it became apparent that we allow a 32bit
guest to call 64bit functions, which the spec explicitly forbids. Oh
well, another patch.

This has been lightly tested, but I feel that we could do with a new
set of PSCI corner cases in KVM-unit-tests (hint, nudge... ;-).

Marc Zyngier (2):
  KVM: arm64: PSCI: Narrow input registers when using 32bit functions
  KVM: arm64: PSCI: Forbid 64bit functions for 32bit guests

 virt/kvm/arm/psci.c | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

-- 
2.25.0

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

end of thread, other threads:[~2020-04-03 14:02 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-01 16:58 [PATCH 0/2] KVM: arm64: PSCI fixes Marc Zyngier
2020-04-01 16:58 ` Marc Zyngier
2020-04-01 16:58 ` Marc Zyngier
2020-04-01 16:58 ` [PATCH 1/2] KVM: arm64: PSCI: Narrow input registers when using 32bit functions Marc Zyngier
2020-04-01 16:58   ` Marc Zyngier
2020-04-01 16:58   ` Marc Zyngier
2020-04-02 13:47   ` Christoffer Dall
2020-04-02 13:47     ` Christoffer Dall
2020-04-02 13:47     ` Christoffer Dall
2020-04-03 14:02   ` Alexandru Elisei
2020-04-03 14:02     ` Alexandru Elisei
2020-04-03 14:02     ` Alexandru Elisei
2020-04-01 16:58 ` [PATCH 2/2] KVM: arm64: PSCI: Forbid 64bit functions for 32bit guests Marc Zyngier
2020-04-01 16:58   ` Marc Zyngier
2020-04-01 16:58   ` Marc Zyngier
2020-04-02 13:48   ` Christoffer Dall
2020-04-02 13:48     ` Christoffer Dall
2020-04-02 13:48     ` Christoffer Dall
2020-04-03 14:02   ` Alexandru Elisei
2020-04-03 14:02     ` Alexandru Elisei
2020-04-03 14:02     ` Alexandru Elisei
2020-04-03 10:35 ` [PATCH 0/2] KVM: arm64: PSCI fixes Alexandru Elisei
2020-04-03 10:35   ` Alexandru Elisei
2020-04-03 10:35   ` Alexandru Elisei
2020-04-03 11:20   ` Marc Zyngier
2020-04-03 11:20     ` Marc Zyngier
2020-04-03 11:20     ` Marc Zyngier
2020-04-03 14:01     ` Alexandru Elisei
2020-04-03 14:01       ` Alexandru Elisei
2020-04-03 14:01       ` Alexandru Elisei

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.