Linux KVM/arm64 development list
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: Fixes for S2 permission relaxation
@ 2026-07-01 23:16 Oliver Upton
  2026-07-01 23:16 ` [PATCH 1/2] KVM: arm64: Ensure level is always initialized when relaxing perms Oliver Upton
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Oliver Upton @ 2026-07-01 23:16 UTC (permalink / raw)
  To: kvmarm
  Cc: Marc Zyngier, Joey Gouly, Suzuki K Poulose, Zenghui Yu,
	Wei-Lin Chang, Steffen Eiden, Oliver Upton

Couple of small fixes for S2 permission relaxation.

The first patch looks a bit worse than it actually is, potentially
consuming an uninitialized stack variable as a TLBI TTL hint in the
event of a race to update the PTE. However, if the bad TTL value results
in the stale TLB entry remaining valid, the vCPU will just fault again
and (hopefully) avoid the race.

Second patch is of a similar flavor, where the permission relaxation was
unconditionally updating XN, potentially reaping execute permissions
when handling a write fault. The consequence of this is taking an
unintended execute permission fault to restore the original XN value.

Applies to 7.2-rc1.

Oliver Upton (2):
  KVM: arm64: Ensure level is always initialized when relaxing perms
  KVM: arm64: Only update XN attr when requested during S2 relaxation

 arch/arm64/kvm/hyp/pgtable.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)


base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
-- 
2.47.3


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

end of thread, other threads:[~2026-07-06 16:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 23:16 [PATCH 0/2] KVM: arm64: Fixes for S2 permission relaxation Oliver Upton
2026-07-01 23:16 ` [PATCH 1/2] KVM: arm64: Ensure level is always initialized when relaxing perms Oliver Upton
2026-07-01 23:16 ` [PATCH 2/2] KVM: arm64: Only update XN attr when requested during S2 relaxation Oliver Upton
2026-07-02  7:16 ` [PATCH 0/2] KVM: arm64: Fixes for S2 permission relaxation Wei-Lin Chang
2026-07-06 16:19 ` Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox