Re: [PATCH v3 0/2] KVM: arm64: Fix spurious warn, null ptr deref on S2 teardown race

From: Oliver Upton

Date: Tue Sep 15 2026 - 18:28:47 EST


On Tue, 01 Sep 2026 18:28:58 +0100, Lorenzo Stoakes (ARM) wrote:
> When GFNs are invalidated in L0 an MMU notifier triggers
> kvm_unmap_gfn_range() which tears down all of the stage 2 shadow page
> tables for nested guests via kvm_nested_s2_unmap().
>
> To avoid lockup, the kvm->mmu_lock is dropped while doing this and the task
> rescheduled once for each block of physical address space (32 MiB for 16
> KiB page size), with the lock being reacquired once the task is scheduled
> again.
>
> [...]

Applied to fixes, thanks!

[1/2] KVM: arm64: Fix spurious warning for benign stage 2 teardown race
https://git.kernel.org/kvmarm/kvmarm/c/38b70fc453c3
[2/2] KVM: arm64: nv: Fix null ptr deref on nested wp/unmap, teardown race
https://git.kernel.org/kvmarm/kvmarm/c/4c74e233cded

--
Best,
Oliver