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-04-28 08:33:46 -07:00
2006-04-28 08:33:46 -07:00
2006-01-03 11:35:26 +01:00
2006-03-31 12:18:54 -08:00
2006-05-01 06:10:01 -04:00
2006-05-01 06:09:36 -04:00
2006-05-01 06:10:01 -04:00
2006-05-01 06:10:07 -04:00
2006-03-25 08:22:56 -08:00
2006-03-27 08:44:49 -08:00
2006-01-03 13:37:51 +01:00
2006-03-27 08:44:50 -08:00
2006-03-31 12:18:55 -08:00
2005-04-16 15:20:36 -07:00
2006-03-24 07:33:30 -08:00
2006-05-01 06:06:13 -04:00
2005-04-16 15:20:36 -07:00
2006-05-01 06:06:13 -04:00
2006-03-31 12:18:59 -08:00
2006-03-31 12:18:59 -08:00
2006-04-26 08:30:03 -07:00
2006-02-05 11:06:52 -08:00
2006-03-26 08:57:03 -08:00
2005-10-30 17:37:32 -08:00
2005-06-23 09:45:10 -07:00
2005-06-25 16:24:45 -07:00
2006-01-11 18:42:13 -08:00
2005-10-08 15:00:57 -07:00
2006-03-28 18:36:41 -08:00
2006-04-20 07:54:03 -07:00
2006-03-24 07:33:31 -08:00
2006-03-25 08:22:57 -08:00
2006-03-27 08:44:49 -08:00
2006-03-31 12:18:56 -08:00
2006-01-11 08:14:16 -08:00
2006-01-09 15:59:20 -08:00
2006-01-10 14:27:59 -08:00
2006-01-09 15:59:19 -08:00
2006-04-11 06:18:40 -07:00
2006-03-28 09:16:03 -08:00
2006-03-31 12:19:00 -08:00
2006-01-10 08:01:38 -08:00
2006-03-26 08:57:03 -08:00
2006-04-01 01:21:17 +02:00
2006-04-26 08:30:03 -07:00
2006-05-07 10:49:33 -07:00
2006-04-26 08:30:03 -07:00
2006-03-28 09:16:05 -08:00
2006-03-23 19:58:45 +01:00
2006-01-10 08:02:02 -08:00
2006-04-26 08:27:50 -07:00
2005-04-16 15:20:36 -07:00
2006-04-14 08:59:13 -07:00
2006-04-26 08:30:03 -07:00
2006-04-26 08:30:03 -07:00
2006-03-23 07:38:16 -08:00
2006-01-10 08:01:25 -08:00
2006-04-11 06:18:33 -07:00
2006-03-31 12:18:59 -08:00
2006-03-24 07:33:20 -08:00
2006-04-01 01:41:22 +02:00
2006-04-26 08:30:03 -07: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
2006-04-26 08:30:03 -07:00