]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sys_getppid: add missing rcu_dereference
authorMandeep Singh Baines <msb@chromium.org>
Thu, 8 Dec 2011 22:34:44 +0000 (14:34 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Dec 2011 15:50:29 +0000 (07:50 -0800)
commit031af165b1cd295ef04d2bfbcae9bc3cb9180735
treefc5abaa84eb1135cae41e8ab0d3356171fc0a760
parent1cee22b7f385b6c4f716846203a96e1f302132aa
sys_getppid: add missing rcu_dereference

In order to safely dereference current->real_parent inside an
rcu_read_lock, we need an rcu_dereference.

Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/timer.c