]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
kvm: vmx: Check value written to IA32_BNDCFGS
authorJim Mattson <jmattson@google.com>
Tue, 23 May 2017 18:52:54 +0000 (11:52 -0700)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 7 Jun 2017 14:28:55 +0000 (16:28 +0200)
commit4531662d1abf6c1f0e5c2b86ddb60e61509786c8
tree9286a5be696514f307a64bf21328ab7a14d56725
parent4439af9f911ae0243ffe4e2dfc12bace49605d8b
kvm: vmx: Check value written to IA32_BNDCFGS

Bits 11:2 must be zero and the linear addess in bits 63:12 must be
canonical. Otherwise, WRMSR(BNDCFGS) should raise #GP.

Fixes: 0dd376e709975779 ("KVM: x86: add MSR_IA32_BNDCFGS to msrs_to_save")
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/include/asm/msr-index.h
arch/x86/kvm/vmx.c