OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Mar 2017 07:49:54 +0000 (09:49 +0200)
commit573341eba9c44b0b2198373cb453bbbb5b3f066a
treead97afdffbba456796e781e4db9f2cc75ac46e17
parente441102d8c074d63d44329a59f3278573cdc1477
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/metag/kernel/ptrace.c