From: Oleg Nesterov Date: Fri, 8 Feb 2008 12:19:07 +0000 (-0800) Subject: wait_task_continued/zombie: don't use task_pid_nr_ns() lockless X-Git-Tag: v2.6.25-rc1~223 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a515e4a62dbf7e4c213740268a5267faa69e5b2;p=pandora-kernel.git wait_task_continued/zombie: don't use task_pid_nr_ns() lockless Surprise, the other two wait_task_*() functions also abuse the task_pid_nr_ns() function, and may cause read-after-free or report nr == 0 in wait_task_continued(). wait_task_zombie() doesn't have this problem, but it is still better to cache pid_t rather than call task_pid_nr_ns() three times on the saved pid_namespace. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed