OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2053c47
)
tomoyo: add missing rcu_dereference()
author
Kees Cook
<keescook@chromium.org>
Fri, 9 Dec 2011 00:30:42 +0000
(16:30 -0800)
committer
James Morris
<jmorris@namei.org>
Mon, 12 Dec 2011 06:21:40 +0000
(17:21 +1100)
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>
security/tomoyo/common.h
patch
|
blob
|
history
diff --git
a/security/tomoyo/common.h
b/security/tomoyo/common.h
index
ed311d7
..
cb9f5c2
100644
(file)
--- 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;
}