[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-msdos
Subject:    Re: [v6 PATCH 19/21] x86/traps: Fixup general protection faults caused by UMIP
From:       Andy Lutomirski <luto () amacapital ! net>
Date:       2017-03-08 15:54:51
Message-ID: CALCETrURiXV6hE+_TjGU_vRZM=dzt1_K7_FgXv+58sTUQ5rNCA () mail ! gmail ! com
[Download RAW message or body]

On Tue, Mar 7, 2017 at 4:32 PM, Ricardo Neri
<ricardo.neri-calderon@linux.intel.com> wrote:
> If the User-Mode Instruction Prevention CPU feature is available and
> enabled, a general protection fault will be issued if the instructions
> sgdt, sldt, sidt, str or smsw are executed from user-mode context
> (CPL > 0). If the fault was caused by any of the instructions protected
> by UMIP, fixup_umip_exception will emulate dummy results for these
> instructions. If emulation is successful, the result is passed to the
> user space program and no SIGSEGV signal is emitted.
>
> Please note that fixup_umip_exception also caters for the case when
> the fault originated while running in virtual-8086 mode.

Reviewed-by: Andy Lutomirski <luto@kernel.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic