Skip to content
Commit 0f02bd0a authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: nVMX: check for required but missing VMCS12 in KVM_SET_NESTED_STATE



A missing VMCS12 was not causing -EINVAL (it was just read with
copy_from_user, so it is not a security issue, but it is still
wrong).  Test for VMCS12 validity and reject the nested state
if a VMCS12 is required but not present.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 93196765
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment