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)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:04:38 +0000 (14:04 +0200)
commit80fb16c096858f6bb6aac539644bc474cf276281
tree608edcf5d35e082e28b223716c616518faa6cd72
parent137b9e272f4c4f93a7681c20b109663b45e22ada
metag/ptrace: Reject partial NT_METAG_RPIPE writes

commit 7195ee3120d878259e8d94a5d9f808116f34d5ea upstream.

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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/metag/kernel/ptrace.c