]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1eea7259513991473ea8c80adc15d5cdae9bc55c
tree9286a5be696514f307a64bf21328ab7a14d56725
parent4c40b9b397a581e15b4e946ffeaa947f9a9eb57a
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: 5a3fc88905906c02 ("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