]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: don't load LDTR with VM86 mode attrs during task switch
authorJan Beulich <jbeulich@suse.com>
Tue, 22 Nov 2016 12:45:44 +0000 (13:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Nov 2016 12:45:44 +0000 (13:45 +0100)
commit93aa42b85ae0084ba7b749d0e990c94fbf0c17e3
treeb3e151872186eb3a1ed7f82a1ee8db540aa46b05
parent04beafa8e6c66f5cd814c00e2d2b51cfbc41cb8a
x86/HVM: don't load LDTR with VM86 mode attrs during task switch

Just like TR, LDTR is purely a protected mode facility and hence needs
to be loaded accordingly. Also move its loading to where it
architecurally belongs.

This is CVE-2016-9382 / XSA-192.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c