s390/kernel: fix ptrace peek/poke for floating point registers
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 27 Oct 2015 12:13:38 +0000 (13:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 19:34:33 +0000 (14:34 -0500)
commitc2ec9e3a2cfe513efcd08d0492295124a9677ae2
treebd7b100a70dfb7c4e917b2527a2b53f83eeb4817
parent97f367a3193fa5d4e85a469a3d862396c5484c3e
s390/kernel: fix ptrace peek/poke for floating point registers

commit 55a423b6f105fa323168f15f4bb67f23b21da44e upstream.

git commit 155e839a814834a3b4b31e729f4716e59d3d2dd4
"s390/kernel: dynamically allocate FP register save area"
introduced a regression in regard to ptrace.

If the vector register extension is not present or unused the
ptrace peek of a floating pointer register return incorrect data
and the ptrace poke to a floating pointer register overwrites the
task structure starting at task->thread.fpu.fprs.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kernel/ptrace.c