summaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorOleg Nesterov2006-10-02 11:18:59 +0200
committerLinus Torvalds2006-10-02 16:57:25 +0200
commit1a657f78dcc8ea7c53eaa1f2a45ea2315738c15f (patch)
treea19972027792082fed505c8d540f7d877e37c0ab /init/main.c
parent[PATCH] proc: comment what proc_fill_cache does (diff)
downloadkernel-qcow2-linux-1a657f78dcc8ea7c53eaa1f2a45ea2315738c15f.tar.gz
kernel-qcow2-linux-1a657f78dcc8ea7c53eaa1f2a45ea2315738c15f.tar.xz
kernel-qcow2-linux-1a657f78dcc8ea7c53eaa1f2a45ea2315738c15f.zip
[PATCH] introduce get_task_pid() to fix unsafe get_pid()
proc_pid_make_inode: ei->pid = get_pid(task_pid(task)); I think this is not safe. get_pid() can be preempted after checking "pid != NULL". Then the task exits, does detach_pid(), and RCU frees the pid. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'init/main.c')
0 files changed, 0 insertions, 0 deletions