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, syzbot@google.com
Subject: [PATCH 0/2] KVM: VMX: Clear vmx->fail on exit to userspace
Date: Thu, 22 Oct 2026 12:05:28 -0700 [thread overview]
Message-ID: <20261022190530.541789-1-seanjc@google.com> (raw)
Clear vmx->fail before exiting to userspace to report a failed VM-Entry to
fix a splat triggered by syzkaller where the stale vmx->fail confuses the
force nested VM-Exit flow. Found on a Google-internal kernel, but the
reproducer (will attach) works on upstream (but only on CPUs without CET,
because it generates a VM-Fail by injecting #UD with an error code).
Sean Christopherson (2):
KVM: VMX: Clear vmx->fail before exiting to userspace on failed
VM-Enter
KVM: VMX: Dedup VM-Enter error handling for VM-Fail and VM-Exit
arch/x86/kvm/vmx/vmx.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
base-commit: 164405e8e9a0378c7e1aff2254625a6553a291f1
--
2.56.0.257.gf7497c7d27-goog
next reply other threads:[~2026-10-22 19:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 19:05 Sean Christopherson [this message]
2026-10-22 19:05 ` [PATCH 1/2] KVM: VMX: Clear vmx->fail before exiting to userspace on failed VM-Enter Sean Christopherson
2026-10-22 19:05 ` [PATCH 2/2] KVM: VMX: Dedup VM-Enter error handling for VM-Fail and VM-Exit Sean Christopherson
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=20261022190530.541789-1-seanjc@google.com \
--to=seanjc@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=syzbot@google.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®