x86/umip: Add emulation/spoofing for SLDT and STR instructions
authorBrendan Shanks <bshanks@codeweavers.com>
Fri, 10 Jul 2020 22:45:25 +0000 (15:45 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 20 Aug 2020 17:10:26 +0000 (19:10 +0200)
commitb91e7089ae70d2f7c81a4456e5b78fef498663d9
tree0c98673273a9797db78841616aceab6a38bb1353
parent40eb0cb4939e462acfedea8c8064571e886b9773
x86/umip: Add emulation/spoofing for SLDT and STR instructions

Add emulation/spoofing of SLDT and STR for both 32- and 64-bit
processes.

Wine users have found a small number of Windows apps using SLDT that
were crashing when run on UMIP-enabled systems.

Originally-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Reported-by: Andreas Rammhold <andi@notmuch.email>
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Tested-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Link: https://lkml.kernel.org/r/20200710224525.21966-1-bshanks@codeweavers.com
arch/x86/kernel/umip.c