Re: [GIT pull] x86 mpx support for 3.19

2014-12-12 Thread Pavel Machek
Hi! > + If unsure, say Y. "If you bought your cpu in 2014 or earlier, say N here". :-) > -Note: Currently no hardware with MPX ISA is available but it is always > +Note: As of December 2014, no hardware with MPX is available but it is > possible to use SDE (Intel(R) Software Development

Re: [GIT pull] x86 mpx support for 3.19

2014-12-12 Thread H. Peter Anvin
On 12/10/2014 12:49 PM, Linus Torvalds wrote: > On Wed, Dec 10, 2014 at 12:39 PM, Dave Hansen > wrote: >> >> I misspoke there. I meant SMAP (I placed MPX below its config option). > > Ok, I agree on SMAP, we might want to have that be configurable too, > especially for smaller systems (I *think*

Re: [GIT pull] x86 mpx support for 3.19

2014-12-12 Thread Dave Hansen
On 12/12/2014 04:30 AM, Pavel Machek wrote: >> +depends on CPU_SUP_INTEL >> +---help--- >> + MPX provides hardware features that can be used in >> + conjunction with compiler-instrumented code to check >> + memory references. It is designed to detect buffer >> + overflo

Re: [GIT pull] x86 mpx support for 3.19

2014-12-12 Thread Pavel Machek
> +config X86_INTEL_MPX > + prompt "Intel MPX (Memory Protection Extensions)" > + def_bool y bool? > + depends on CPU_SUP_INTEL > + ---help--- > + MPX provides hardware features that can be used in > + conjunction with compiler-instrumented code to check > + mem

Re: [GIT pull] x86 mpx support for 3.19

2014-12-12 Thread Ingo Molnar
* Dave Hansen wrote: > +config X86_INTEL_MPX > + prompt "Intel MPX (Memory Protection Extensions)" > + def_bool y > + depends on CPU_SUP_INTEL > + ---help--- > + MPX provides hardware features that can be used in > + conjunction with compiler-instrumented code to chec

Re: [GIT pull] x86 mpx support for 3.19

2014-12-11 Thread Dave Hansen
On 12/10/2014 10:19 PM, Ingo Molnar wrote: > * Dave Hansen wrote: >> @@ -1575,6 +1571,27 @@ config X86_SMAP >> >>If unsure, say Y. >> >> +config X86_INTEL_MPX >> +prompt "Intel MPX (Memory Protection Extensions)" if EXPERT > > I think the 'if EXPERT' needs to be dropped. Fine wit

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Ingo Molnar
* Dave Hansen wrote: > @@ -1575,6 +1571,27 @@ config X86_SMAP > > If unsure, say Y. > > +config X86_INTEL_MPX > + prompt "Intel MPX (Memory Protection Extensions)" if EXPERT I think the 'if EXPERT' needs to be dropped. > + def_bool y > + depends on CPU_SUP_INTEL On the

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Dave Hansen
On 12/10/2014 06:14 PM, Eric W. Biederman wrote: > Thomas Gleixner writes: >> please pull the latest x86-mpx-for-linus git tree from: >> >>git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git >> x86-mpx-for-linus >> >> This enables support for x86 MPX: >> >> MPX is a new debug feature

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Eric W. Biederman
Thomas Gleixner writes: > Linus, > > please pull the latest x86-mpx-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mpx-for-linus > > This enables support for x86 MPX: > > MPX is a new debug feature for bound checking in user space. It > requires

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Linus Torvalds
On Wed, Dec 10, 2014 at 12:39 PM, Dave Hansen wrote: > > I misspoke there. I meant SMAP (I placed MPX below its config option). Ok, I agree on SMAP, we might want to have that be configurable too, especially for smaller systems (I *think* SMAP is big-core only, right?). I'm not sure how much of

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Dave Hansen
On 12/10/2014 11:49 AM, Linus Torvalds wrote: > On Wed, Dec 10, 2014 at 11:41 AM, Dave Hansen > wrote: >> But, this is the kind of option that we want to be *sure* is enabled >> unless folks know exactly what they are doing, so we should probably >> hide it behind CONFIG_EXPERT as well, just as SM

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Dave Hansen
On 12/10/2014 11:05 AM, Linus Torvalds wrote: > On Tue, Dec 9, 2014 at 6:08 AM, Thomas Gleixner wrote: > Why would I want to enable this in my kernel when there are no actual > CPU's out yet that support it? And even when there are, why would I do > it if the CPU I have doesn't support it? There'

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Linus Torvalds
On Wed, Dec 10, 2014 at 11:41 AM, Dave Hansen wrote: > > But, this is the kind of option that we want to be *sure* is enabled > unless folks know exactly what they are doing, so we should probably > hide it behind CONFIG_EXPERT as well, just as SMEP is. I disagree. SMEP doesn't have any performa

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Dave Hansen
On 12/10/2014 11:05 AM, Linus Torvalds wrote: > Why would I want to enable this in my kernel when there are no actual > CPU's out yet that support it? And even when there are, why would I do > it if the CPU I have doesn't support it? For folks that build their own kernels and know what CPU they ha

Re: [GIT pull] x86 mpx support for 3.19

2014-12-10 Thread Linus Torvalds
On Tue, Dec 9, 2014 at 6:08 AM, Thomas Gleixner wrote: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mpx-for-linus So I've pulled this (not pushed out yet, I've done all the allmodconfig builds, but I want to reboot into this all too), but I'm not entirely sure I'm happy ab

[GIT pull] x86 mpx support for 3.19

2014-12-09 Thread Thomas Gleixner
Linus, please pull the latest x86-mpx-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mpx-for-linus This enables support for x86 MPX: MPX is a new debug feature for bound checking in user space. It requires kernel support to handle the bound tables