Skip to content

KVM: VMX: Clear vmx->fail on exit to userspace

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 vmx, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: VMX: Clear vmx->fail before exiting to userspace on failed VM-Enterarch/x86/kvm/vmx/vmx.c+1 -00 replies
2/2KVM: VMX: Dedup VM-Enter error handling for VM-Fail and VM-Exitarch/x86/kvm/vmx/vmx.c+3 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: VMX: Clear vmx->fail on exit to userspace

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

Signature · 1 line
2.56.0.257.gf7497c7d27-goog