[PATCH] KVM: arm64: nv: Hold mmu_lock when invalidating VNCR SW-TLB before translating
Marc Zyngier
maz at kernel.org
Wed May 21 02:09:09 PDT 2025
On Tue, 20 May 2025 15:41:16 +0100, Marc Zyngier wrote:
> When translating a VNCR translation fault, we start by marking the
> current SW-managed TLB as invalid, so that we can populate it
> in place. This is, however, done without the mmu_lock held.
>
> A consequence of this is that another CPU dealing with TLBI
> emulation can observe a translation still flagged as valid, but
> with invalid walk results (such as pgshift being 0). Bad things
> can result from this, such as a BUG() in pgshift_level_to_ttl().
>
> [...]
Applied to next, thanks!
[1/1] KVM: arm64: nv: Hold mmu_lock when invalidating VNCR SW-TLB before translating
commit: d43548f422f27219eff5ce1897336af2c4f15091
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list