Skip to content

KVM/arm64 fixes for AArch32 handling

Marc Zyngier kvm kvmarm linux-arm-kernel stable 1 version Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Fix AArch32 register narrowing on userspace writearch/arm64/kvm/guest.c+1 -12 replies
2/3KVM: arm64: Allow AArch32 PSTATE.M to be restored as System modearch/arm64/kvm/guest.c+1 -01 reply
3/3KVM: arm64: AArch32: Fix spurious trapping of conditional instructionsarch/arm64/kvm/hyp/aarch32.c+16 -20 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNina Schoetterl-GlauschOliver Upton
SeriesA-b
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] KVM/arm64 fixes for AArch32 handling

The (very much unloved) AArch32 handling has recently been found lacking in a number of ways:

- Nina spotted a brown paper-bag quality bug in the register narrowing code when writing one of the core registers (GPRs, PSTATE) from userspace

- We never allowed System mode to be restored. Nobody ever complained, but this is wrong nonetheless

- The handling of traps failing their condition check went from dodgy to outright broken when the handling of ESR_EL2 was upgraded from 32 to 64 bit (patch already posted).

All these are stable material, and I plan to merge them after -rc1 is released.

        M.

Marc Zyngier (3):
KVM: arm64: Fix AArch32 register narrowing on userspace write
KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode
KVM: arm64: AArch32: Fix spurious trapping of conditional instructions

 arch/arm64/kvm/guest.c       |  3 ++-
 arch/arm64/kvm/hyp/aarch32.c | 18 ++++++++++++++++--
 2 files changed, 18 insertions(+), 3 deletions(-)
Signature · 1 line
2.39.2