diff options
| author | Rui Wang <[email protected]> | 2017-12-18 08:34:10 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-02-15 00:15:52 +0000 |
| commit | 961888b1d76d84efc66a8f5604b06ac12ac2f978 (patch) | |
| tree | 86b0a55fa18b843cf21efa3a7c98e055567e72a4 /arch/x86/platform/atom/punit_atom_debug.c | |
| parent | x86/mm: Rename flush_tlb_single() and flush_tlb_one() to __flush_tlb_one_[use... (diff) | |
| download | kernel-961888b1d76d84efc66a8f5604b06ac12ac2f978.tar.gz kernel-961888b1d76d84efc66a8f5604b06ac12ac2f978.zip | |
selftests/x86/mpx: Fix incorrect bounds with old _sigfault
For distributions with old userspace header files, the _sigfault
structure is different. mpx-mini-test fails with the following
error:
[root@Purley]# mpx-mini-test_64 tabletest
XSAVE is supported by HW & OS
XSAVE processor supported state mask: 0x2ff
XSAVE OS supported state mask: 0x2ff
BNDREGS: size: 64 user: 1 supervisor: 0 aligned: 0
BNDCSR: size: 64 user: 1 supervisor: 0 aligned: 0
starting mpx bounds table test
ERROR: siginfo bounds do not match shadow bounds for register 0
Fix it by using the correct offset of _lower/_upper in _sigfault.
RHEL needs this patch to work.
Signed-off-by: Rui Wang <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Fixes: e754aedc26ef ("x86/mpx, selftests: Add MPX self test")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'arch/x86/platform/atom/punit_atom_debug.c')
0 files changed, 0 insertions, 0 deletions
