Skip to content

KVM: x86: Fix WFS vs. pending SMI WARN

Sean Christopherson kvm lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: x86: Drop pending_smi vs. INIT_RECEIVED check when setting MP_STATEarch/x86/kvm/x86.c+2 -30 replies
2/4KVM: x86: WARN and reject KVM_RUN if vCPU's MP_STATE is SIPI_RECEIVEDarch/x86/kvm/x86.c+15 -10 replies
3/4KVM: x86: Move INIT_RECEIVED vs. INIT/SIPI blocked check to KVM_RUNarch/x86/kvm/x86.c+8 -160 replies
4/4KVM: x86: Refactor handling of SIPI_RECEIVED when setting MP_STATEarch/x86/kvm/x86.c+9 -30 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/4] KVM: x86: Fix WFS vs. pending SMI WARN

Fix a user-triggerable WARN that syzkaller found by stuffing INIT_RECEIVED, a.k.a. WFS, and then putting the vCPU into VMX Root Mode (post-VMXON). Use the same approach KVM uses for dealing with "impossible" emulation when running a !URG guest, and simply wait until KVM_RUN to detect that the vCPU has architecturally impossible state.

Sean Christopherson (4):
KVM: x86: Drop pending_smi vs. INIT_RECEIVED check when setting
MP_STATE
KVM: x86: WARN and reject KVM_RUN if vCPU's MP_STATE is SIPI_RECEIVED
KVM: x86: Move INIT_RECEIVED vs. INIT/SIPI blocked check to KVM_RUN
KVM: x86: Refactor handling of SIPI_RECEIVED when setting MP_STATE

 arch/x86/kvm/x86.c | 49 ++++++++++++++++++++++++++++------------------
 1 file changed, 30 insertions(+), 19 deletions(-)

base-commit: 61374cc145f4a56377eaf87c7409a97ec7a34041

Signature · 1 line
2.50.0.rc0.604.gd4ff7b7c86-goog