tile/ptrace: Preserve previous registers for short regset write
commitd6c83f5607bfcc1420e869cde808caf5b6013964
authorDave Martin <Dave.Martin@arm.com>
Fri, 6 Jan 2017 17:54:51 +0000 (6 17:54 +0000)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 6 Mar 2017 22:29:12 +0000 (6 17:29 -0500)
treee7efc318b83e7a1fd5028f93b7bfb26155e00189
parentf24c4f609ca5b05186a76d9a74522b6f6c3a873f
tile/ptrace: Preserve previous registers for short regset write

[ Upstream commit fd7c99142d77dc4a851879a66715abf12a3193fb ]

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

Cc: stable@vger.kernel.org
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/tile/kernel/ptrace.c