OSDN Git Service

KVM: x86: reset MMU on KVM_SET_VCPU_EVENTS
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Sat, 24 Dec 2016 09:00:42 +0000 (10:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:22:43 +0000 (11:22 +0100)
commit7b95f36fc6fa98afae5cf1450e29482561a11f5b
tree6c1078ef2eb8c946a3302a9c9d1f3b34c80ea24e
parent9b73f43fcef40fa2bc8ceacbffdf040036bf891b
KVM: x86: reset MMU on KVM_SET_VCPU_EVENTS

commit 6ef4e07ecd2db21025c446327ecf34414366498b upstream.

Otherwise, mismatch between the smm bit in hflags and the MMU role
can cause a NULL pointer dereference.

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/x86.c