Re: [PATCH] KVM: x86/mmu: WARN and flush TLBs if TDP MMU replaces present SPTE with MMIO SPTE
From: Sean Christopherson
Date: Fri Nov 13 2026 - 10:31:13 EST
On Wed, 21 Oct 2026 19:22:09 -0700, Sean Christopherson wrote:
> If KVM is buggy and manages to replace a shadow-present SPTE with an MMIO
> SPTE in the TDP MMU, WARN but emit a TLB flush to prevent a potential use-
> after-free. It should be impossible for KVM to resolve a GFN to a memslot
> and then later find no memslot, but due to flaws in KVM's handling of GFNs
> that can be generated by the guest[*], KVM can/wrap truncate GFNs when
> walking SPTEs and resolve two different GFNs to the same SPTE.
>
> [...]
Applied to kvm-x86 mmu, thanks!
[1/1] KVM: x86/mmu: WARN and flush TLBs if TDP MMU replaces present SPTE with MMIO SPTE
https://github.com/kvm-x86/linux/commit/94b5cb50abec
--
https://github.com/kvm-x86/linux/tree/next