metag/ptrace: Reject partial NT_METAG_RPIPE writes
authorDave Martin <Dave.Martin@arm.com>
Mon, 27 Mar 2017 14:10:57 +0000 (15:10 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 29 Mar 2017 15:54:17 +0000 (08:54 -0700)
commit7195ee3120d878259e8d94a5d9f808116f34d5ea
treeb985c17e25a8c43beae84495672ed5447270b34a
parent5fe81fe98123ce41265c65e95d34418d30d005d1
metag/ptrace: Reject partial NT_METAG_RPIPE writes

It's not clear what behaviour is sensible when doing partial write of
NT_METAG_RPIPE, so just don't bother.

This patch assumes that userspace will never rely on a partial SETREGSET
in this case, since it's not clear what should happen anyway.

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