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,
Fabio Coatti <fabio.coatti@gmail.com>
Subject: Re: [PATCH] KVM: x86/mmu: Grab memslot for correct address space in NX recovery worker
Date: Fri, 2 Jun 2023 17:52:28 -0700 [thread overview]
Message-ID: <168574912392.1016815.8543067517884131468.b4-ty@google.com> (raw)
In-Reply-To: <20230602010137.784664-1-seanjc@google.com>
On Thu, 01 Jun 2023 18:01:37 -0700, Sean Christopherson wrote:
> Factor in the address space (non-SMM vs. SMM) of the target shadow page
> when recovering potential NX huge pages, otherwise KVM will retrieve the
> wrong memslot when zapping shadow pages that were created for SMM. The
> bug most visibly manifests as a WARN on the memslot being non-NULL, but
> the worst case scenario is that KVM could unaccount the shadow page
> without ensuring KVM won't install a huge page, i.e. if the non-SMM slot
> is being dirty logged, but the SMM slot is not.
>
> [...]
Applied to kvm-x86 fixes, thanks!
[1/1] KVM: x86/mmu: Grab memslot for correct address space in NX recovery worker
https://github.com/kvm-x86/linux/commit/817fa998362d
--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes
prev parent reply other threads:[~2023-06-03 0:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-02 1:01 [PATCH] KVM: x86/mmu: Grab memslot for correct address space in NX recovery worker Sean Christopherson
2023-06-03 0:52 ` 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=168574912392.1016815.8543067517884131468.b4-ty@google.com \
--to=seanjc@google.com \
--cc=fabio.coatti@gmail.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;
as well as URLs for NNTP newsgroup(s).