Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions
From: Ricardo Neri
Date: Fri Nov 11 2016 - 20:24:12 EST
On Fri, 2016-11-11 at 11:22 +0100, Borislav Petkov wrote:
> On Thu, Nov 10, 2016 at 08:08:07PM -0800, Ricardo Neri wrote:
> > UMIP is enabled by setting a bit in CR4. If that bit is not supposed
> > to be set, that could cause a #GP fault.
>
> Yeah, you do check CPUID first, AFAICT, so you should be ok...
Right. I missed this detail. Yes, there should not be a problem.
>
> --
> Regards/Gruss,
> Boris.
>
> SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)