summaryrefslogtreecommitdiffstats
path: root/kernel/posix-cpu-timers.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-03-24 20:29:52 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2008-03-25 03:22:19 +0100
commita846a1954b6397e844fe1e258af7598897ec6159 (patch)
treea90b3a593d528c299fd90e9e84fe17a7cdb23733 /kernel/posix-cpu-timers.c
parentrevert "kswapd should only wait on IO if there is IO" (diff)
downloadlinux-a846a1954b6397e844fe1e258af7598897ec6159.tar.xz
linux-a846a1954b6397e844fe1e258af7598897ec6159.zip
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 <xemul@openvz.org> Cc: Oleg Nesterov <oleg@tv-sign.ru> Cc: "Paul E. McKenney" <paulmck@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/posix-cpu-timers.c')
0 files changed, 0 insertions, 0 deletions