]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: VMX: Fix host GDT.LIMIT corruption
authorAvi Kivity <avi@redhat.com>
Fri, 17 Sep 2010 16:13:18 +0000 (13:13 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Sep 2010 00:18:34 +0000 (17:18 -0700)
commitd963ca2b66d33935a858dc01a899dec0b3c77fc9
treec2f340079a84fdef22573f1556b0c1562ec04b50
parent291e06417553bbca9d6cf59d5ac1040a9d71da99
KVM: VMX: Fix host GDT.LIMIT corruption

commit 3444d7da1839b851eefedd372978d8a982316c36 upstream.

vmx does not restore GDT.LIMIT to the host value, instead it sets it to 64KB.
This means host userspace can learn a few bits of host memory.

Fix by reloading GDTR when we load other host state.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/vmx.c