]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 3 Apr 2017 09:05:51 +0000 (10:05 +0100)
commit2035cb4ec721949cf1769a98fba6b7d5fca156df
treec5ee60f48d008c5749813c94e669748ca18ea45c
parent57d73d2655309664f1e85278df9307bd7289706a
metag/ptrace: Preserve previous registers for short regset write

BugLink: http://bugs.launchpad.net/bugs/1678930
commit a78ce80d2c9178351b34d78fec805140c29c193e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/metag/kernel/ptrace.c