]> git.karo-electronics.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 16:07:11 +0000 (09:07 -0700)
commit065bc5cd9917ac5ae2c26c4ac9adecdae437a17a
treed752004d8e7ecaf0c422471c35d67cae54834b46
parent5832b65a5cbed395d469f77859d9a26e7265254d
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