From: Pavel Emelyanov Date: Mon, 24 Mar 2008 19:29:52 +0000 (-0700) Subject: bsd_acct: plain current->real_parent access is not always safe X-Git-Tag: v2.6.25-rc7~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a846a1954b6397e844fe1e258af7598897ec6159;p=pandora-kernel.git bsd_acct: plain current->real_parent access is not always safe This is minor, but dereferencing even current real_parent is not safe on debug kernels, since the memory, this points to, can be unmapped - RCU protection is required. Besides, the tgid field is deprecated and is to be replaced with task_tgid_xxx call (the 2nd patch), so RCU will be required anyway. Signed-off-by: Pavel Emelyanov Cc: Oleg Nesterov Cc: "Paul E. McKenney" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed