commit | 2739b4874165acc5ce07e643c363e6768f44cf4f | [log] [tgz] |
---|---|---|
author | Dave Martin <Dave.Martin@arm.com> | Mon Mar 27 15:10:55 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Mar 31 10:31:46 2017 +0200 |
tree | ff49cc649f535f88a8760134f31505f265acb03d | |
parent | 84b94c4356c668ebe4532b3a999cf375f0089310 [diff] |
metag/ptrace: Preserve previous registers for short regset write 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>