commit | db80927ea1977a845230a161df643b48fd1e1ea4 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Mon May 20 11:55:36 2019 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri May 24 21:27:02 2019 +0200 |
tree | 0ed4f7d6c17c0610b2d1306ee6cc3dd4def070fe | |
parent | 6bff2a3dc9ba6ef1054da1094554cc0c87f377ed [diff] |
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: Paolo Bonzini <pbonzini@redhat.com>