kernel-fxtec-pro1x/Documentation/x86
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
..
i386 doc: spelling error changes 2014-05-05 15:32:05 +02:00
x86_64 x86/mm: Update memory map description to list hypervisor-reserved area 2014-09-19 12:48:02 +02:00
00-INDEX Documentation/: update 00-INDEX files 2014-02-10 16:01:40 -08:00
boot.txt x86, boot: Correct max ramdisk size name 2014-03-13 15:32:42 -07:00
early-microcode.txt x86, microcode, amd: Early microcode patch loading support for AMD 2013-05-30 20:19:25 -07:00
earlyprintk.txt doc: spelling error changes 2014-05-05 15:32:05 +02:00
entry_64.txt x86-64, doc: Remove int 0xcc from entry_64.S documentation 2011-08-16 08:04:08 -07:00
exception-tables.txt Doc: move Documentation/exception.txt into x86 subdir 2009-07-10 19:10:32 -07:00
intel_mpx.txt x86, mpx: Update documentation 2014-12-15 15:58:57 +01:00
mtrr.txt documentation: move mtrr.txt to Doc/x86/ subdir 2008-07-28 14:46:49 +02:00
pat.txt x86: PAT: pfnmap documentation update changes 2008-12-19 15:40:31 -08:00
tlb.txt x86/doc: Fix the 'tlb_single_page_flush_ceiling' sysconfig path 2014-08-10 09:09:26 +02:00
usb-legacy-support.txt x86: doc: move x86-generic documentation from Doc/x86/i386 2008-07-22 15:34:38 -04:00
zero-page.txt x86, boot: Define the 2.12 bzImage boot protocol 2013-01-27 15:56:37 -08:00