Oleg Nesterov
12a3de0a96
pids: sys_getpgid: fix unsafe *pid usage, s/tasklist/rcu/
...
1. sys_getpgid() needs rcu_read_lock() to derive the pgrp _nr, even if
the task is current, otherwise we can race with another thread which
does sys_setpgid().
2. Use rcu_read_lock() instead of tasklist_lock when pid != 0, make sure
that we don't use the NULL pid if the task exits right after successful
find_task_by_vpid().
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-30 08:29:49 -07:00
..
2008-04-29 08:06:04 -07:00
2008-04-28 08:58:36 -07:00
2008-04-29 08:06:22 -07:00
2008-03-24 19:22:20 -07:00
2008-04-28 06:28:30 -04:00
2008-04-28 06:28:04 -04:00
2008-04-29 11:41:22 -07:00
2008-04-28 06:28:37 -04:00
2008-04-29 08:06:29 -07:00
2008-04-29 08:06:09 -07:00
2008-04-29 08:06:10 -07:00
2008-04-30 08:29:37 -07:00
2008-04-29 08:06:22 -07:00
2008-04-29 08:06:11 -07:00
2008-04-29 08:06:11 -07:00
2008-04-29 08:06:22 -07:00
2008-04-30 08:29:49 -07:00
2008-04-30 08:29:35 -07:00
2008-03-30 14:18:41 -07:00
2008-03-30 14:18:41 -07:00
2008-04-28 22:22:21 +02:00
2008-04-29 08:06:22 -07:00
2008-03-10 18:01:20 -07:00
2008-04-28 08:58:23 -07:00
2008-04-17 20:05:43 +02:00
2008-04-19 19:44:58 +02:00
2008-04-28 08:58:32 -07:00
2008-04-30 08:29:48 -07:00
2008-04-29 08:06:22 -07:00
2008-04-29 08:06:22 -07:00
2008-04-29 08:06:22 -07:00
2008-04-29 08:06:04 -07:00
2008-04-18 22:17:04 -04:00
2008-04-29 08:06:13 -07:00
2008-04-29 08:06:07 -07:00
2008-04-29 08:06:14 -07:00
2008-04-29 08:05:59 -07:00
2008-04-28 17:29:18 -07:00
2008-04-30 08:29:48 -07:00
2008-04-17 12:22:30 +02:00
2008-04-30 08:29:36 -07:00
2008-04-30 08:29:47 -07:00
2008-04-29 08:06:22 -07:00
2008-04-30 08:29:38 -07:00
2008-04-19 19:44:59 +02:00
2008-04-29 08:06:04 -07:00
2008-04-29 08:18:03 -07:00
2008-04-29 08:06:10 -07:00
2008-04-29 08:06:22 -07:00
2008-04-29 08:06:22 -07:00
2008-04-19 19:45:00 +02:00
2008-04-19 19:45:00 +02:00
2008-04-19 19:45:00 +02:00
2008-04-19 19:44:59 +02:00
2008-04-29 08:06:09 -07:00
2008-04-17 10:43:01 -04:00
2008-04-30 08:29:37 -07:00
2008-04-19 19:44:58 +02:00
2008-02-29 18:46:53 +01:00
2008-04-21 16:36:46 -07:00
2008-04-30 08:29:49 -07:00
2008-04-29 08:06:23 -07:00
2008-04-30 08:29:48 -07:00
2008-04-29 08:06:04 -07:00
2008-04-17 12:22:31 +02:00
2008-04-10 17:28:26 -07:00
2008-04-29 08:06:07 -07:00
2008-04-29 08:06:17 -07:00
2008-04-29 08:06:04 -07:00
2008-04-29 08:06:11 -07:00