Skip to content

KVM: x86: Fastpath userspace exit fix and hardening

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 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Ensure vendor's exit handler runs before fastpath userspace exitsarch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/vmx.c arch/x86/kvm/x86.c+6 -32 replies
2/2KVM: SVM: Refresh vcpu->arch.cr{0,3} prior to invoking fastpath handlerarch/x86/kvm/svm/svm.c+6 -81 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKai HuangNikunj A. Dadhania
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: x86: Fastpath userspace exit fix and hardening

Fix a found-by-inspection bug where KVM could fail to flush the PML buffer (VMX) or fail to grab the most recet CR0/CR3 (SVM) prior to exiting to userspace, which could prove to be fatal if that exit is that last exit prior to save/restore, e.g. the last exit before userspace commits to migrating the VM.

Patch 2 is related hardening, i.e. isn't fixing any existing bugs (AFAIK).

Sean Christopherson (2):
KVM: x86: Ensure vendor's exit handler runs before fastpath userspace
exits
KVM: SVM: Refresh vcpu->arch.cr{0,3} prior to invoking fastpath
handler

 arch/x86/kvm/svm/svm.c | 15 ++++++++-------
 arch/x86/kvm/vmx/vmx.c |  3 +++
 arch/x86/kvm/x86.c     |  3 ---
 3 files changed, 11 insertions(+), 10 deletions(-)

base-commit: 85f871f6ba46f20d7fbc0b016b4db648c33220dd

Signature · 1 line
2.54.0.545.g6539524ca2-goog