]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ptrace: Preserve previous 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:54:43 +0000 (14:54 +1100)
commit095a4db8f9b3359fdbbbea40bc983bb88869210d
treed63db8f9b737a2a2cac0e70a030dbfb5cc3fc007
parent846f16ce073e12c9b99fb7bc7993025d96d764fa
powerpc/ptrace: Preserve previous fprs/vsrs on short regset write

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

Fixes: a397e33dfdc6 ("powerpc: Introduce VSX thread_struct and CONFIG_VSX")
Cc: stable@vger.kernel.org # v2.6.27+
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/ptrace.c