Re: [PATCH v2] KVM: arm64: Do not free split_page_cache in kvm_arch_flush_shadow_all()

From: Marc Zyngier

Date: Fri Dec 04 2026 - 10:36:31 EST


On Mon, 30 Nov 2026 14:16:38 -0800, Aashish Sharma wrote:
> kvm_arch_flush_shadow_all() is called from the MMU notifier ->release()
> callback, which can run concurrently from __mmu_notifier_release() and
> mmu_notifier_unregister() when the last mm and KVM fd references are
> dropped at the same time. Calling kvm_uninit_stage2_mmu() there invokes
> kvm_mmu_free_memory_cache() without locking, which is not thread-safe
> and can double-free split_page_cache.
>
> [...]

Applied to fixes, thanks!

[1/1] KVM: arm64: Do not free split_page_cache in kvm_arch_flush_shadow_all()
commit: 69d2d6dede2d6e424c58d74031a2680994374b73

Cheers,

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