]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] fix zap_thread's ptrace related problems
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 15 Feb 2006 19:50:10 +0000 (22:50 +0300)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 15 Feb 2006 19:05:43 +0000 (11:05 -0800)
commit5ecfbae093f0c37311e89b29bfc0c9d586eace87
treeeabd0a145af64e26c900578c95175ab313828661
parentdadac81b1b86196fcc48fb87620403c4a7174f06
[PATCH] fix zap_thread's ptrace related problems

1. The tracee can go from ptrace_stop() to do_signal_stop()
   after __ptrace_unlink(p).

2. It is unsafe to __ptrace_unlink(p) while p->parent may wait
   for tasklist_lock in ptrace_detach().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c
include/linux/ptrace.h
kernel/ptrace.c