kvm: vmx: handle invvpid vm exit gracefully
authorPetr Matousek <[email protected]>
Tue, 23 Sep 2014 18:22:30 +0000 (20:22 +0200)
committerPaolo Bonzini <[email protected]>
Fri, 24 Oct 2014 11:21:17 +0000 (13:21 +0200)
commita642fc305053cc1c6e47e4f4df327895747ab485
tree48da06189a7291eb22fb92520c75ccf7f5a88e58
parentd1442d85cc30ea75f7d399474ca738e0bc96f715
kvm: vmx: handle invvpid vm exit gracefully

On systems with invvpid instruction support (corresponding bit in
IA32_VMX_EPT_VPID_CAP MSR is set) guest invocation of invvpid
causes vm exit, which is currently not handled and results in
propagation of unknown exit to userspace.

Fix this by installing an invvpid vm exit handler.

This is CVE-2014-3646.

Cc: [email protected]
Signed-off-by: Petr Matousek <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/include/uapi/asm/vmx.h
arch/x86/kvm/vmx.c