Path: csiph.com!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail From: Melzzzzz Newsgroups: comp.arch Subject: Re: Intel MPX Date: Thu, 10 Dec 2015 00:41:01 +0100 Organization: albasani.net Lines: 38 Message-ID: <20151210004101.6c82f3bb@maxa-pc> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net 3/UFWBiwobAYeVJQJWqqxNhNpqxOHUlR4QHErcY17JVn8xHJcN8IWAWiPJOwfeD6OOZqT2QLHPj1ETxmEaPAZA== NNTP-Posting-Date: Wed, 9 Dec 2015 23:41:01 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="gHZUreB2vtfp9+Dxj/i4j3zx9zp/dzuo04MYi8DjqhZdUmfULn8DkOJt93q1/cDJQMuCBR/xy7vhZ6Ui1Sn7nHoFSw5QyiU7XG5ZyVgWTpIyGB8eQwZQ2zmFmTouz/gw"; mail-complaints-to="abuse@albasani.net" X-Newsreader: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-unknown-linux-gnu) Cancel-Lock: sha1:Xo/S0DgoEr5wWAh8f9TrejLp3hg= Xref: csiph.com comp.arch:31699 On Wed, 9 Dec 2015 23:27:49 +0100 Terje Mathisen wrote: > Stephen Fuld wrote: > > In Skylake, Intel introduced an extension called MPX. > > > > https://en.wikipedia.org/wiki/Intel_MPX > > > > and the references therein. > > > > It seems to be a step toward higher reliability C programs by > > catching at least some instances of "pointers gone wild". > > > > My guess is, while it is probably useful, and a step in the right > > direction, it is a pretty modest step. > > > > How useful will it be, and is it a start towards even more > > robustness enhancements in commodity hardware? > > > > > > > Not very useful at all, unless you can persuade yourself that the > overhead of implementing this in your compiler and then enable it for > (nearly?) all memory references will not cost too much in the form of > hazzle or performance. > > I suspect that Java JIT style boundary check hoisting away from most > loop bodies is less actual overhead, and no hw support needed. > > Terje > As I read there is already Linux kernel support for MPX accompanying gcc support for applications. https://www.kernel.org/doc/Documentation/x86/intel_mpx.txt https://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler They say no code change is needed, just recompile -fmpx.