Maciej W. Rozycki 71e909c0cd
MIPS: ptrace: Expose FIR register through FP regset
Correct commit 7aeb753b5353 ("MIPS: Implement task_user_regset_view.")
and expose the FIR register using the unused 4 bytes at the end of the
NT_PRFPREG regset.  Without that register included clients cannot use
the PTRACE_GETREGSET request to retrieve the complete FPU register set
and have to resort to one of the older interfaces, either PTRACE_PEEKUSR
or PTRACE_GETFPREGS, to retrieve the missing piece of data.  Also the
register is irreversibly missing from core dumps.

This register is architecturally hardwired and read-only so the write
path does not matter.  Ignore data supplied on writes then.

Fixes: 7aeb753b5353 ("MIPS: Implement task_user_regset_view.")
Signed-off-by: James Hogan <jhogan@kernel.org>
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.13+
Patchwork: https://patchwork.linux-mips.org/patch/19273/
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