]> xenbits.xensource.com Git - xen.git/commit
x86/emul: Reject LGDT/LIDT attempts with non-canonical base addresses
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 2 Nov 2016 14:43:48 +0000 (14:43 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 3 Nov 2016 12:23:23 +0000 (12:23 +0000)
commit12bc22f79117dfae5e59382cdda6b8b6b70a7554
treef9c1fc5a4da891f60c90088b7636695d4e7a8f60
parentff53c65311a32e54dba51f2b8112632e9dd2af3b
x86/emul: Reject LGDT/LIDT attempts with non-canonical base addresses

No sane OS would deliberately try this, but make Xen's emulation match real
hardware by delivering #GP(0), rather than suffering a VMEntry failure.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <JBeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c