Maciej W. Rozycki 9a3a92ccfe
MIPS: Fix ptrace(2) PTRACE_PEEKUSR and PTRACE_POKEUSR accesses to o32 FGRs
Check the TIF_32BIT_FPREGS task setting of the tracee rather than the
tracer in determining the layout of floating-point general registers in
the floating-point context, correcting access to odd-numbered registers
for o32 tracees where the setting disagrees between the two processes.

Fixes: 597ce1723e0f ("MIPS: Support for 64-bit FP with O32 binaries")
Signed-off-by: Maciej W. Rozycki <macro@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 3.14+
Signed-off-by: James Hogan <jhogan@kernel.org>
2018-05-14 23:54:25 +01:00
..
2018-04-10 11:39:22 -07:00
2018-02-19 10:55:36 +00:00
2018-04-10 11:39:22 -07:00
2016-08-03 08:16:30 +02:00
2017-01-25 02:51:11 +01:00
2018-04-20 08:25:31 -07:00
2017-11-03 09:02:30 -07:00
2018-02-19 10:55:36 +00:00
2017-04-10 11:56:07 +02:00
2018-04-10 11:39:22 -07:00