summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2015-01-30 12:09:36 +0000
committerRalf Baechle <ralf@linux-mips.org>2015-03-27 19:42:47 +0100
commitac9ad83bc318635ed7496e9dff30beaa522eaec7 (patch)
treea20d7c8a6902de00b96c14d675a38af8d4b50363 /arch/mips/kernel/asm-offsets.c
parentad70c13a938daf833cad86830f23865ee37aa5c7 (diff)
downloadop-kernel-dev-ac9ad83bc318635ed7496e9dff30beaa522eaec7.zip
op-kernel-dev-ac9ad83bc318635ed7496e9dff30beaa522eaec7.tar.gz
MIPS: prevent FP context set via ptrace being discarded
If a ptracee has not used the FPU and the ptracer sets its FP context using PTRACE_POKEUSR, PTRACE_SETFPREGS or PTRACE_SETREGSET then that context will be discarded upon either the ptracee using the FPU or a further write to the context via ptrace. Prevent this loss by recording that the task has "used" math once its FP context has been written to. The context initialisation code that was present for the PTRACE_POKEUSR case is reused for the other 2 cases to provide consistent behaviour for the different ptrace requests. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9166/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/asm-offsets.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud