Eric W. Biederman
19fd4bb2a0
proc: remove races from proc_id_readdir()
...
Oleg noticed that the call of task_pid_nr_ns() in proc_pid_readdir
is racy with respect to tasks exiting.
After a bit of examination it also appears that the call itself
is completely unnecessary.
So to fix the problem this patch modifies next_tgid() to return
both a tgid and the task struct in question.
A structure is introduced to return these values because it is
slightly cleaner and easier to optimize, and the resulting code
is a little shorter.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-29 09:24:52 -08:00
..
2007-11-06 08:02:53 -06:00
2007-10-17 08:42:45 -07:00
2007-10-17 08:42:47 -07:00
2007-11-05 15:12:32 -08:00
2007-10-19 11:53:43 -07:00
2007-10-19 11:53:37 -07:00
2007-10-17 08:42:45 -07:00
2007-11-14 18:45:40 -08:00
2007-11-25 10:01:00 +00:00
2007-10-19 11:53:37 -07:00
2007-10-17 08:43:04 -07:00
2007-10-18 14:37:29 -07:00
2007-10-21 02:37:18 -04:00
2007-11-07 04:11:42 -08:00
2007-11-14 18:45:36 -08:00
2007-10-22 08:13:21 -07:00
2007-10-22 08:13:21 -07:00
2007-11-14 18:45:38 -08:00
2007-11-14 18:45:43 -08:00
2007-11-14 18:45:38 -08:00
2007-10-22 08:13:21 -07:00
2007-07-20 10:11:58 +09:00
2007-11-14 18:45:42 -08:00
2007-10-22 08:13:21 -07:00
2007-10-17 08:42:45 -07:00
2007-10-17 08:42:45 -07:00
2007-10-16 09:43:07 -07:00
2007-10-17 08:42:45 -07:00
2007-11-14 18:45:40 -08:00
2007-10-22 08:13:21 -07:00
2007-10-19 11:53:35 -07:00
2007-10-17 18:49:59 -04:00
2007-10-27 10:36:44 -04:00
2007-11-14 18:45:38 -08:00
2007-10-09 17:17:53 -04:00
2007-10-17 08:42:53 -07:00
2007-10-17 08:42:45 -07:00
2007-11-26 16:32:40 -05:00
2007-11-12 14:28:08 -08:00
2007-10-18 14:37:31 -07:00
2007-11-03 12:27:21 -07:00
2007-11-27 16:47:03 -08:00
2007-10-17 08:42:45 -07:00
2007-10-14 12:41:51 -07:00
2007-11-29 09:24:52 -08:00
2007-10-17 08:42:45 -07:00
2007-10-17 08:42:56 -07:00
2007-11-14 18:45:41 -08:00
2007-10-17 08:42:47 -07:00
2007-11-14 18:45:43 -08:00
2007-11-28 13:53:53 -08:00
2007-10-17 08:42:45 -07:00
2007-10-17 08:43:00 -07:00
2007-10-30 08:06:55 -07:00
2007-10-22 08:13:21 -07:00
2007-10-18 14:37:20 -07:00
2007-10-17 08:43:00 -07:00
2007-10-18 14:37:22 -07:00
2007-10-17 08:42:50 -07:00
2007-10-19 11:53:40 -07:00
2007-10-19 11:53:40 -07:00
2007-10-19 23:21:04 +02:00
2007-10-17 08:42:54 -07:00
2007-10-19 23:21:04 +02:00
2007-10-19 23:21:04 +02:00
2007-10-17 08:42:50 -07:00
2007-10-16 11:03:52 +02:00
2007-10-17 08:42:45 -07:00
2007-10-21 08:54:05 -07:00
2007-10-17 08:42:45 -07:00
2007-10-30 21:29:42 -07:00
2007-07-19 10:04:45 -07:00
2007-10-22 08:13:18 -07:00
2007-07-29 17:09:29 -07:00
2007-10-16 09:42:53 -07:00
2007-07-20 10:11:58 +09:00
2007-10-17 08:42:56 -07:00
2007-10-19 11:53:38 -07:00
2007-11-28 10:58:01 -08:00
2007-10-19 11:53:40 -07:00
2007-10-19 11:53:38 -07:00
2007-10-19 11:53:43 -07:00
2007-07-17 12:00:03 -07:00
2007-10-17 08:43:02 -07:00
2007-10-17 08:43:00 -07:00
2007-10-21 02:37:38 -04:00
2007-11-07 13:54:07 +01:00
2007-11-27 16:47:02 -08:00
2007-10-22 08:13:19 -07:00
2007-10-30 09:04:18 -07:00
2007-10-17 08:42:56 -07:00
2007-10-25 15:18:29 -07:00
2007-10-16 09:42:54 -07:00
2007-10-21 02:37:18 -04:00
2007-10-21 02:37:25 -04:00
2007-07-19 10:04:45 -07:00
2007-11-14 18:45:42 -08:00
2007-10-15 17:00:19 +02:00
2007-10-21 02:37:25 -04:00
2007-07-27 15:40:13 -07:00
2007-11-14 18:45:42 -08:00
2007-10-19 11:53:41 -07:00
2007-10-10 16:55:33 -07:00
2007-10-17 08:43:01 -07:00
2007-10-17 08:43:07 -07:00
2007-10-19 23:21:04 +02:00
2007-07-26 11:35:17 -07:00
2007-10-17 08:42:52 -07:00
2007-10-21 02:37:18 -04:00