From: Sean Christopherson <seanjc@google.com>
To: Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
Jim Mattson <jmattson@google.com>
Subject: Re: [PATCH v2 0/2] KVM: nVMX: Fix ept=n bugs where KVM runs L2 with guest CR3
Date: Tue, 14 Jul 2026 11:41:13 -0700 [thread overview]
Message-ID: <178405353768.3120713.14326474027099250936.b4-ty@google.com> (raw)
In-Reply-To: <20260612145642.452392-1-seanjc@google.com>
On Fri, 12 Jun 2026 07:56:40 -0700, Sean Christopherson wrote:
> Fix two bugs where KVM can run L2 with a guest-controlled CR3. The underlying
> flaw dates back to commit f087a02941fe ("KVM: nVMX: Stash L1's CR3 in
> vmcs01.GUEST_CR3 on nested entry w/o EPT"). Past me claimed:
>
> Smashing vmcs01.GUEST_CR3 is safe because nested VM-Exits, and the unwind,
> reset KVM's MMU, i.e. vmcs01.GUEST_CR3 is guaranteed to be overwritten with
> a shadow CR3 prior to re-entering L1.
>
> [...]
Applied to kvm-x86 fixes, thanks!
[1/2] KVM: nVMX: Move vTPR vs. TPR Threshold consistency check into "normal" checks
https://github.com/kvm-x86/linux/commit/ebdac7554abb
[2/2] KVM: nVMX: Don't use vmcs01.GUEST_CR3 to snapshot L1's CR3 when EPT is disabled
https://github.com/kvm-x86/linux/commit/3e6dd2b9b7b2
--
https://github.com/kvm-x86/linux/tree/next
prev parent reply other threads:[~2026-07-14 18:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-12 14:56 Sean Christopherson
2026-06-12 14:56 ` [PATCH v2 1/2] KVM: nVMX: Move vTPR vs. TPR Threshold consistency check into "normal" checks Sean Christopherson
2026-06-12 14:56 ` [PATCH v2 2/2] KVM: nVMX: Don't use vmcs01.GUEST_CR3 to snapshot L1's CR3 when EPT is disabled Sean Christopherson
2026-07-14 18:41 ` Sean Christopherson [this message]
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=178405353768.3120713.14326474027099250936.b4-ty@google.com \
--to=seanjc@google.com \
--cc=jmattson@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
/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
all inboxes | Powered by JetHome®