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
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-26 08:57:03 -08:00
2005-10-30 17:37:32 -08:00
2006-01-11 18:42:13 -08:00
2005-10-08 15:00:57 -07:00
2006-01-09 15:59:19 -08:00
2005-04-16 15:20:36 -07: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
2006-03-24 07:33:20 -08:00
2005-04-16 15:20:36 -07:00