Skip to content
Commit 99dfe80a authored by Dave Martin's avatar Dave Martin Committed by Michael Ellerman
Browse files

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: c6e6771b ("powerpc: Introduce VSX thread_struct and CONFIG_VSX")
Cc: stable@vger.kernel.org # v2.6.27+
Signed-off-by: default avatarDave Martin <Dave.Martin@arm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 27593d72
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment