]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: x86 emulator: Check CPL level during privilege instruction emulation
authorGleb Natapov <gleb@redhat.com>
Wed, 10 Feb 2010 12:21:35 +0000 (14:21 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:50:16 +0000 (08:50 -0700)
commit0e352d472aeded6dff36d53bdac684a411ee39ee
treed8b4c38437fac431d704127f743e0db2150a1398
parent9a93be43df449153f5504ef94ec6afe82b1ed091
KVM: x86 emulator: Check CPL level during privilege instruction emulation

commit e92805ac1228626c59c865f2f4e9059b9fb8c97b upstream.

Add CPL checking in case emulator is tricked into emulating
privilege instruction from userspace.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/emulate.c