msm-4.14/Documentation
Dave Hansen 010e593b14 x86, mpx: Update documentation
I was writing some MPX test programs and realized that the
current design makes it tricky.  I did something like:

	bndcfgu |= bnd_dir | BNDCFGU_ENABLE;
	xrstor();
	printf("xrstor done");
	// #BR bounds exception here
	prctl(MPX_ENABLE_MANAGEMENT);

and then compiled the app with "-fcheck-pointer-bounds -mmpx"
to enable MPX instrumentation.

The problem is that there is MPX instrumentation inserted in
to the area of the printf().  The kernel gets a bounds exception
and since management isn't yet enabled, it SIGSEGV's.

Add a bit to the documentation to explain a way around this and
where apps need to be careful.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Dave Hansen <dave@sr71.net>
Link: http://lkml.kernel.org/r/20141212183835.8C581B3E@viggo.jf.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2014-12-15 15:58:57 +01:00
..
2014-09-26 08:24:05 +01:00
2014-10-08 17:22:23 -04:00
2014-10-09 22:26:02 -04:00
2014-08-25 03:28:09 -05:00
2014-08-06 23:36:12 -07:00
2014-10-23 23:02:36 +02:00
2014-12-15 15:58:57 +01:00
2014-08-26 09:35:54 +02:00
2014-08-08 15:57:24 -07:00
2014-09-23 23:44:16 -07:00