mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
x86/mpx/selftests: Adjust the self-test to fresh distros that export the MPX ABI
[ Upstream commit 73bb4d6cd1 ]
Fix this warning:
mpx-mini-test.c:422:0: warning: "SEGV_BNDERR" redefined
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akpm@linux-foundation.org
Cc: dave.hansen@intel.com
Cc: linux-mm@kvack.org
Cc: linuxram@us.ibm.com
Cc: mpe@ellerman.id.au
Cc: shakeelb@google.com
Cc: shuah@kernel.org
Link: http://lkml.kernel.org/r/20180514085908.GA12798@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2361f1f4ff
commit
c25b160c8d
@@ -368,6 +368,11 @@ static int expected_bnd_index = -1;
|
|||||||
uint64_t shadow_plb[NR_MPX_BOUNDS_REGISTERS][2]; /* shadow MPX bound registers */
|
uint64_t shadow_plb[NR_MPX_BOUNDS_REGISTERS][2]; /* shadow MPX bound registers */
|
||||||
unsigned long shadow_map[NR_MPX_BOUNDS_REGISTERS];
|
unsigned long shadow_map[NR_MPX_BOUNDS_REGISTERS];
|
||||||
|
|
||||||
|
/* Failed address bound checks: */
|
||||||
|
#ifndef SEGV_BNDERR
|
||||||
|
# define SEGV_BNDERR 3
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The kernel is supposed to provide some information about the bounds
|
* The kernel is supposed to provide some information about the bounds
|
||||||
* exception in the siginfo. It should match what we have in the bounds
|
* exception in the siginfo. It should match what we have in the bounds
|
||||||
@@ -419,8 +424,6 @@ void handler(int signum, siginfo_t *si, void *vucontext)
|
|||||||
br_count++;
|
br_count++;
|
||||||
dprintf1("#BR 0x%jx (total seen: %d)\n", status, br_count);
|
dprintf1("#BR 0x%jx (total seen: %d)\n", status, br_count);
|
||||||
|
|
||||||
#define SEGV_BNDERR 3 /* failed address bound checks */
|
|
||||||
|
|
||||||
dprintf2("Saw a #BR! status 0x%jx at %016lx br_reason: %jx\n",
|
dprintf2("Saw a #BR! status 0x%jx at %016lx br_reason: %jx\n",
|
||||||
status, ip, br_reason);
|
status, ip, br_reason);
|
||||||
dprintf2("si_signo: %d\n", si->si_signo);
|
dprintf2("si_signo: %d\n", si->si_signo);
|
||||||
|
|||||||
Reference in New Issue
Block a user