[PATCH] KVM: arm64: Fix the descriptor address in __kvm_at_swap_desc()

Marc Zyngier maz at kernel.org
Tue Mar 17 06:44:25 PDT 2026


On Tue, 17 Mar 2026 19:57:48 +0800, Zenghui Yu wrote:
> Using "(u64 __user *)hva + offset" to get the virtual addresses of S1/S2
> descriptors looks really wrong, if offset is not zero. What we want to get
> for swapping is hva + offset, not hva + offset*8. ;-)
> 
> Fix it.
> 
> 
> [...]

Applied to fixes, thanks!

[1/1] KVM: arm64: Fix the descriptor address in __kvm_at_swap_desc()
      commit: 0496acc42fb51eee040b5170cec05cec41385540

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.





More information about the linux-arm-kernel mailing list