]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sys_getppid: add missing rcu_dereference
authorMandeep Singh Baines <msb@chromium.org>
Thu, 8 Dec 2011 04:32:06 +0000 (15:32 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Dec 2011 04:52:21 +0000 (15:52 +1100)
commit1ac653100ed6cb3b5c1264237b1a9b0bfdd88531
treee23c555041325e7c65957b9ddc2c5ab5ea3cd00e
parentae47e8a9e8e7ea534edfe677f445d5a177fe1980
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>
kernel/timer.c