Skip to content
Snippets Groups Projects
Commit db80927e authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: nVMX: really fix the size checks on KVM_SET_NESTED_STATE


The offset for reading the shadow VMCS is sizeof(*kvm_state)+VMCS12_SIZE,
so the correct size must be that plus sizeof(*vmcs12).  This could lead
to KVM reading garbage data from userspace and not reporting an error,
but is otherwise not sensitive.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 6bff2a3d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment