Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966169AbcKLBYI (ORCPT ); Fri, 11 Nov 2016 20:24:08 -0500 Received: from mga11.intel.com ([192.55.52.93]:32229 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965980AbcKLBYH (ORCPT ); Fri, 11 Nov 2016 20:24:07 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,475,1473145200"; d="scan'208";a="900563561" Message-ID: <1478913845.2541.0.camel@ranerica-desktop> Subject: Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions From: Ricardo Neri To: Borislav Petkov Cc: Andy Lutomirski , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , X86 ML , "linux-doc@vger.kernel.org" , Andy Lutomirski , Andrew Morton , Brian Gerst , Chen Yucong , Chris Metcalf , Dave Hansen , Fenghua Yu , Huang Rui , Jiri Slaby , Jonathan Corbet , "Michael S . Tsirkin" , Paul Gortmaker , Peter Zijlstra , "Ravi V . Shankar" , Shuah Khan , Vlastimil Babka Date: Fri, 11 Nov 2016 17:24:05 -0800 In-Reply-To: <20161111102255.dabxedhs7kgkn7d2@pd.tnic> References: <1478585533-19406-1-git-send-email-ricardo.neri-calderon@linux.intel.com> <1478585533-19406-2-git-send-email-ricardo.neri-calderon@linux.intel.com> <1478665516.2533.2.camel@ranerica-desktop> <1478748283.2551.5.camel@ranerica-desktop> <20161110085833.zw6qgd7pshbni656@pd.tnic> <1478837287.2542.4.camel@ranerica-desktop> <20161111102255.dabxedhs7kgkn7d2@pd.tnic> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 515 Lines: 15 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)