From: Sean Christopherson <seanjc@google.com>
To: Yosry Ahmed <yosry@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Jim Mattson <jmattson@google.com>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/4] KVM: x86/mmu: Don't sync cached roots created for a different MMU context
Date: Fri, 4 Dec 2026 11:22:10 -0800 [thread overview]
Message-ID: <axMS4khcuVeWWEAG@seanjc-mac.roam.internal> (raw)
In-Reply-To: <CAO9r8zOnLJdXtCmMaft40W-RrO9ZrOQmpQEPVUoAjbEDhxAwvg@mail.gmail.com>
On Thu, Dec 03, 2026, Yosry Ahmed wrote:
> On Tue, Oct 13, 2026 at 4:17 PM Yosry Ahmed <yosry@kernel.org> wrote:
> >
> > When invalidating an address, KVM walks and syncs cached roots using the
> > current MMU context, but cached roots may have been created for a
> > different context after a nested transition. With TDP disabled, this
> > lets a guest trigger a BUG_ON() and crash the host (see patch 3 for
> > details).
> >
> > Patch 1 downgrades the BUG_ON() to a WARN_ON_ONCE(), patch 2 is prep
> > work, patch 3 is the fix, and patch 4 drops a TODO that isn't worth
> > pursuing.
> >
> > Sashiko flagged the issue while reviewing the INVLPGA emulation patch in
> > my nested SVM TLB series [1]. The host crash is easy to reproduce with an
> > AI-generated repro (with TDP disabled), and no longer triggers with this
> > series.
> >
> > [1] https://lore.kernel.org/kvm/sashiko-outbox-163479@kernel.org/
> >
> > Yosry Ahmed (4):
> > KVM: x86/mmu: WARN, don't BUG, when walking a cached root with a PAE
> > MMU
> > KVM: x86/mmu: Drop for_each_shadow_entry_using_root()
> > KVM: x86/mmu: Don't sync cached roots created for a different MMU
> > context
> > KVM: nVMX: Drop the TODO to sync only the affected SPTEs for INVVPID
>
> Do I need to send a new version for this?
No, just give me a comment for patch 1 I can squash.
next prev parent reply other threads:[~2026-12-04 19:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 23:17 [PATCH 0/4] KVM: x86/mmu: Don't sync cached roots created for a different MMU context Yosry Ahmed
2026-10-13 23:17 ` [PATCH 1/4] KVM: x86/mmu: WARN, don't BUG, when walking a cached root with a PAE MMU Yosry Ahmed
2026-10-14 12:48 ` Jim Mattson
2026-10-14 14:27 ` Yosry Ahmed
2026-10-14 14:40 ` Jim Mattson
2026-10-13 23:17 ` [PATCH 2/4] KVM: x86/mmu: Drop for_each_shadow_entry_using_root() Yosry Ahmed
2026-10-14 12:54 ` Jim Mattson
2026-10-13 23:17 ` [PATCH 3/4] KVM: x86/mmu: Don't sync cached roots created for a different MMU context Yosry Ahmed
2026-10-13 23:17 ` [PATCH 4/4] KVM: nVMX: Drop the TODO to sync only the affected SPTEs for INVVPID Yosry Ahmed
2026-12-04 0:01 ` [PATCH 0/4] KVM: x86/mmu: Don't sync cached roots created for a different MMU context Yosry Ahmed
2026-12-04 19:22 ` Sean Christopherson [this message]
2026-12-04 20:12 ` Yosry Ahmed
2026-12-04 20:47 ` Sean Christopherson
2026-12-04 20:52 ` Yosry Ahmed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=axMS4khcuVeWWEAG@seanjc-mac.roam.internal \
--to=seanjc@google.com \
--cc=jmattson@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=yosry@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox