[PATCH] coredump: kill ptrace related stuff
authorOleg Nesterov <oleg@tv-sign.ru>
Mon, 26 Jun 2006 07:26:07 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:27 +0000 (09:58 -0700)
commitd5f70c00ad24cd1158d3678b44ff969b4c971d49
treeb4b71a71b413250fb24cb2d83cbbfd7507da9efc
parent281de339ceb822ca6c04d4373ecb9a45c1890ce4
[PATCH] coredump: kill ptrace related stuff

With this patch zap_process() sets SIGNAL_GROUP_EXIT while sending SIGKILL to
the thread group.  This means that a TASK_TRACED task

1. Will be awakened by signal_wake_up(1)

2. Can't sleep again via ptrace_notify()

3. Can't go to do_signal_stop() after return
   from ptrace_stop() in get_signal_to_deliver()

So we can remove all ptrace related stuff from coredump path.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c
include/linux/ptrace.h
kernel/ptrace.c
kernel/signal.c