Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753225AbaAQS0M (ORCPT ); Fri, 17 Jan 2014 13:26:12 -0500 Received: from terminus.zytor.com ([198.137.202.10]:59343 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752638AbaAQS0J (ORCPT ); Fri, 17 Jan 2014 13:26:09 -0500 Message-ID: <52D975A9.7050201@zytor.com> Date: Fri, 17 Jan 2014 10:25:45 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Borislav Petkov CC: Ren Qiaowei , Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] x86, mpx: hook #BR exception handler to allocate bound tables References: <20140112092019.GA3664@pd.tnic> <52D35ABB.8070904@intel.com> <20140113103808.GC5388@pd.tnic> <52D95AD4.6060603@zytor.com> <20140117164855.GF8715@pd.tnic> <52D95F93.3030000@zytor.com> <20140117165656.GA9024@pd.tnic> <52D96149.8070706@zytor.com> <20140117170410.GH8715@pd.tnic> <52D968C5.9080102@zytor.com> <20140117182321.GJ8715@pd.tnic> In-Reply-To: <20140117182321.GJ8715@pd.tnic> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/17/2014 10:23 AM, Borislav Petkov wrote: > On Fri, Jan 17, 2014 at 09:30:45AM -0800, H. Peter Anvin wrote: >> Yes. It would take some serious effort to get BOUND or MPX >> instructions into the kernel -- you'd have to put them in inline >> assembly, and BOUND doesn't even exist in 64-bit mode. > > Which reminds me - we will have to explicitly turn off any compiler > switches that utilize MPX insns so that they don't get issued when > building the kernel. Provided there will be compiler support, that is. > There will be, whether or not it will be on by default is another matter. Either way, the kernel would have to explicitly enable the use MPX instructions in kernel space or they are simply treated as NOPs. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/