mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-05 02:05:32 +07:00
501e279c23
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> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
tm-resched-dscr.c | ||
tm-signal-msr-resv.c | ||
tm-signal-stack.c | ||
tm-syscall-asm.S | ||
tm-syscall.c | ||
tm-vmxcopy.c | ||
tm.h |