summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2011-12-08 16:30:42 -0800
committerJames Morris <jmorris@namei.org>2011-12-12 17:21:40 +1100
commitbb80d880ad2b11cd4ea5f28f815016b1548224a4 (patch)
tree70ab38ab2d388f39efd9cd4f7f91859f0f3cf5e2
parent2053c4727c5a891bf182397e425b6cb87b2ae613 (diff)
downloadlinux-stable-bb80d880ad2b11cd4ea5f28f815016b1548224a4.tar.gz
linux-stable-bb80d880ad2b11cd4ea5f28f815016b1548224a4.tar.bz2
linux-stable-bb80d880ad2b11cd4ea5f28f815016b1548224a4.zip
tomoyo: add missing rcu_dereference()
Adds a missed rcu_dereference() around real_parent. Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
-rw-r--r--security/tomoyo/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h
index ed311d7a8ce0..cb9f5c2d6f3a 100644
--- a/security/tomoyo/common.h
+++ b/security/tomoyo/common.h
@@ -1122,7 +1122,7 @@ static inline pid_t tomoyo_sys_getppid(void)
{
pid_t pid;
rcu_read_lock();
- pid = task_tgid_vnr(current->real_parent);
+ pid = task_tgid_vnr(rcu_dereference(current->real_parent));
rcu_read_unlock();
return pid;
}