tomoyo: add missing rcu_dereference()
Subsystems (2)
PATCH 1/1 tomoyo: add missing rcu_dereference()
Adds a missed rcu_dereference() around real_parent.
Signed-off-by Kees Cook <[email protected]>
--- security/tomoyo/common.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
security/tomoyo/common.h +1 -1
@@ -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; }
Signature · 1 line
1.7.0.4
James Morris
maintainerQuoted 3 lines · Kees Cook
Adds a missed
rcu_dereference()aroundreal_parent.Signed-off-by Kees Cook <[email protected]>
Applied togit://selinuxproject.org/~jmorris/linux-security next
Signature · 2 lines
James Morris <[email protected]>