Commit bb80d880 authored by Kees Cook's avatar Kees Cook Committed by James Morris

tomoyo: add missing rcu_dereference()

Adds a missed rcu_dereference() around real_parent.
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 2053c472
...@@ -1122,7 +1122,7 @@ static inline pid_t tomoyo_sys_getppid(void) ...@@ -1122,7 +1122,7 @@ static inline pid_t tomoyo_sys_getppid(void)
{ {
pid_t pid; pid_t pid;
rcu_read_lock(); rcu_read_lock();
pid = task_tgid_vnr(current->real_parent); pid = task_tgid_vnr(rcu_dereference(current->real_parent));
rcu_read_unlock(); rcu_read_unlock();
return pid; return pid;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment