Linus Torvalds f5b40e363a Fix ptrace_attach()/ptrace_traceme()/de_thread() race
This holds the task lock (and, for ptrace_attach, the tasklist_lock)
over the actual attach event, which closes a race between attacking to a
thread that is either doing a PTRACE_TRACEME or getting de-threaded.

Thanks to Oleg Nesterov for reminding me about this, and Chris Wright
for noticing a lost return value in my first version.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-05-07 10:49:33 -07:00
..
2006-05-01 06:10:01 -04:00
2006-05-01 06:10:07 -04:00
2006-03-31 12:18:59 -08:00
2006-04-01 01:41:22 +02:00
2006-04-19 16:27:18 -07:00