Maciej W. Rozycki 4249548454 MIPS: ptrace: Fix FP context restoration FCSR regression
Fix a floating-point context restoration regression introduced with
commit 9b26616c8d9d ("MIPS: Respect the ISA level in FCSR handling")
that causes a Floating Point exception and consequently a kernel oops
with hard float configurations when one or more FCSR Enable and their
corresponding Cause bits are set both at a time via a ptrace(2) call.

To do so reinstate Cause bit masking originally introduced with commit
b1442d39fac2 ("MIPS: Prevent user from setting FCSR cause bits") to
address this exact problem and then inadvertently removed from the
PTRACE_SETFPREGS request with the commit referred above.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: stable@vger.kernel.org # v4.0+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13238/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-05-13 15:30:25 +02:00
..
2016-05-13 15:30:25 +02:00
2016-02-19 09:51:43 +01:00
2016-05-13 15:30:25 +02:00
2016-04-03 12:32:09 +02:00
2013-11-26 12:12:27 +01:00
2016-04-03 12:32:09 +02:00
2016-05-13 14:02:18 +02:00
2016-05-13 15:30:25 +02:00
2016-02-25 14:41:20 -08:00
2016-05-13 14:02:18 +02:00
2015-11-11 08:36:36 +01:00