aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <[email protected]>2016-05-12 10:18:27 +0100
committerRalf Baechle <[email protected]>2016-05-13 15:30:25 +0200
commit4249548454f7ba4581aeee26bd83f42b48a14d15 (patch)
tree26c9495810097533af02fdf8927fa5909bf95150 /lib/string_helpers.c
parent9125f19bbb97e7444b5ea01f8262fa09679e1376 (diff)
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 <[email protected]> Cc: [email protected] # v4.0+ Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/13238/ Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions