aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/Makefile
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2016-03-02 23:28:54 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-03-02 23:34:45 +1100
commit501e279c231bd8d5eed4ecea5a18dcd79d51b026 (patch)
treef79f022804411c90145b96bd90c87def2b8fd63c /tools/testing/selftests/powerpc/Makefile
parentpowerpc/mm: Split hash page table sizing heuristic into a helper (diff)
downloadlinux-dev-501e279c231bd8d5eed4ecea5a18dcd79d51b026.tar.xz
linux-dev-501e279c231bd8d5eed4ecea5a18dcd79d51b026.zip
selftests/powerpc: Fix out of bounds access in TM signal test
Gcc helpfully points out that we're accessing past the end of the gprs array: tm-signal-msr-resv.c: In function 'signal_usr1': tm-signal-msr-resv.c:43:37: error: array subscript is above array bounds [-Werror=array-bounds] ucp->uc_mcontext.regs->gpr[PT_MSR] |= (7ULL); We haven't noticed previously because -flto was hiding it somehow. The code is confused, PT_MSR isn't a gpr, instead it's in uc_regs->gregs, so fix it. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/Makefile')
0 files changed, 0 insertions, 0 deletions