powerpc: Fix inverted SET_FULL_REGS bitop
authorNicholas Piggin <npiggin@gmail.com>
Mon, 8 Mar 2021 08:55:30 +0000 (18:55 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:35 +0000 (17:06 +0100)
commit1f372e89567b38ddc9e0b6ff8d792d3bf5a22f36
tree94e504398895d1ba35cc3e2df93c30be22ba87c1
parent9776812ee8611af469f6f1dc3b55c925cab1e828
powerpc: Fix inverted SET_FULL_REGS bitop

commit 73ac79881804eed2e9d76ecdd1018037f8510cb1 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/ptrace.h