]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
metag/ptrace: Preserve previous registers for short regset write
authorDave Martin <Dave.Martin@arm.com>
Mon, 27 Mar 2017 14:10:55 +0000 (15:10 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 29 Mar 2017 15:54:17 +0000 (08:54 -0700)
commita78ce80d2c9178351b34d78fec805140c29c193e
tree8eaa65759d128a6fb2ff25847fa1ff3170a7938e
parent502585c7555083d4a949c08350306b9ec196779e
metag/ptrace: Preserve previous registers for 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.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/metag/kernel/ptrace.c