Skip to content

KVM: nVMX: tighten some KVM_SET_NESTED_STATE validity checks

Paolo Bonzini kvm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests: kvm: do not set guest mode flagtools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c+9 -80 replies
2/3KVM: nVMX: check for required but missing VMCS12 in KVM_SET_NESTED_STATEarch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/nested.h tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c+26 -40 replies
3/3KVM: nVMX: check for invalid hdr.vmx.flagsarch/x86/kvm/vmx/nested.c tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c+16 -00 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/3] KVM: nVMX: tighten some KVM_SET_NESTED_STATE validity checks

Patch 1 is a fix to the tests so that we can cover the new cases properly. Patches 2-3 check for more cases of invalid nested state data.

Paolo

Paolo Bonzini (3):
selftests: kvm: do not set guest mode flag
KVM: nVMX: check for required but missing VMCS12 in
KVM_SET_NESTED_STATE
KVM: nVMX: check for invalid hdr.vmx.flags

 arch/x86/kvm/vmx/nested.c                     | 16 +++++--
 arch/x86/kvm/vmx/nested.h                     |  5 +++
 .../kvm/x86_64/vmx_set_nested_state_test.c    | 42 +++++++++++++++----
 3 files changed, 51 insertions(+), 12 deletions(-)
Signature · 1 line
2.26.2