s390: fix ptrace of user area if the inferior uses vector registers
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 14 Nov 2014 15:37:47 +0000 (16:37 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 19 Nov 2014 08:46:39 +0000 (09:46 +0100)
commit86c558e8d3b774580faf8250092388d52cfde63e
treeaaa73f4d7007ceec8fa5d0bbc4805693818f572e
parentafaa7d29bc04bf0fcf2e7bda2a802392a38d059b
s390: fix ptrace of user area if the inferior uses vector registers

The floating point registers of a process that uses vector instruction are
not store into task->thread.fp_regs anymore but in the upper halves of the
first 16 vector registers.
The ptrace interface for the peeks and pokes to the user area fails to take
this into account. Fix __peek_user[_compat] and __poke_user[_compat]
to use the vector array for the floating pointer register if the process
has one.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/ptrace.c