KVM: nVMX: Add IBPB between L2 and L1 to
Status from this message: Merged to kvm/queue, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 4 repliesApplied
- v12 patches 4 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: VMX: Guest usage of IA32_SPEC_CTRL is likelyarch/ | +1 | 1 reply | |
| 2/2 | KVM: VMX: Execute IBPB on emulated VM-exit when guest has IBRSarch/ arch/ | +15 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Sean Christopherson |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] KVM: nVMX: Add IBPB between L2 and L1 to
Since L1 and L2 share branch prediction modes (guest {kernel,user}), the hardware will not protect indirect branches in L1 from steering by a malicious agent in L2. However, IBRS guarantees this protection. (For basic IBRS, a value of 1 must be written to IA32_SPEC_CTRL.IBRS after the transition from L2 to L1.)
Fix the regression introduced in commit 5c911beff20a ("KVM: nVMX: Skip IBPB when switching between vmcs01 and vmcs02") by issuing an IBPB when emulating a VM-exit from L2 to L1.
This is CVE-2022-2196.
v2: Reworded some comments [Sean].
Jim Mattson (2):
KVM: VMX: Guest usage of IA32_SPEC_CTRL is likely
KVM: VMX: Execute IBPB on emulated VM-exit when guest has IBRS
arch/x86/kvm/vmx/nested.c | 11 +++++++++++ arch/x86/kvm/vmx/vmx.c | 10 ++++++---- 2 files changed, 17 insertions(+), 4 deletions(-)
Signature · 1 line
2.38.0.413.g74048e4d9e-goog