From: Oleg Nesterov Date: Thu, 2 Apr 2009 23:58:36 +0000 (-0700) Subject: pids: improve get_task_pid() to fix the unsafe sys_wait4()->task_pgrp() X-Git-Tag: v2.6.30-rc1~311 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ae448efc87df6d328f5835969076c7f9fce59c3;p=pandora-kernel.git pids: improve get_task_pid() to fix the unsafe sys_wait4()->task_pgrp() sys_wait4() does get_pid(task_pgrp(current)), this is not safe. We can add rcu lock/unlock around, but we already have get_task_pid() which can be improved to handle the special pids in more reliable manner. Signed-off-by: Oleg Nesterov Cc: Louis Rilling Cc: "Eric W. Biederman" Cc: Pavel Emelyanov Cc: Sukadev Bhattiprolu Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed