]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ptrace: Preserve previous TM fprs/vsrs on short regset write
authorDave Martin <Dave.Martin@arm.com>
Thu, 5 Jan 2017 16:50:57 +0000 (16:50 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Jan 2017 03:55:19 +0000 (14:55 +1100)
commit4d0a4d47c70fd3789ff0c0d5f363191e53674145
tree434266b9f31e68d97566b46a3c777ae2dab3f579
parent095a4db8f9b3359fdbbbea40bc983bb88869210d
powerpc/ptrace: Preserve previous TM fprs/vsrs on short regset write

Ensure that if userspace supplies insufficient data to PTRACE_SETREGSET
to fill all the check pointed registers, the thread's old check pointed
registers are preserved.

Fixes: e388ee910cfb ("powerpc/ptrace: Enable support for NT_PPC_CVSX")
Fixes: 7e6cf5700225 ("powerpc/ptrace: Enable support for NT_PPC_CFPR")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/ptrace.c