powerpc: Fix inverted SET_FULL_REGS bitop
authorNicholas Piggin <npiggin@gmail.com>
Mon, 8 Mar 2021 08:55:30 +0000 (18:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Mar 2021 20:59:30 +0000 (07:59 +1100)
commit73ac79881804eed2e9d76ecdd1018037f8510cb1
treecf62b6ecde02b1ad6b763f35b11d0fa59eadf853
parent7aed41cff35a9aaf3431b8c0c23daa7d8bb77cd3
powerpc: Fix inverted SET_FULL_REGS bitop

This bit operation was inverted and set the low bit rather than
cleared it, breaking the ability to ptrace non-volatile GPRs after
exec. Fix.

Only affects 64e and 32-bit.

Fixes: feb9df3462e6 ("powerpc/64s: Always has full regs, so remove remnant checks")
Cc: stable@vger.kernel.org # v5.8+
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210308085530.3191843-1-npiggin@gmail.com
arch/powerpc/include/asm/ptrace.h