projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
143b01d
)
apparmor: add missing rcu_dereference()
author
Kees Cook
<keescook@chromium.org>
Fri, 9 Dec 2011 00:25:48 +0000
(16:25 -0800)
committer
James Morris
<jmorris@namei.org>
Fri, 9 Dec 2011 01:08:41 +0000
(12:08 +1100)
Adds a missed rcu_dereference() around real_parent.
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/apparmor/audit.c
patch
|
blob
|
blame
|
history
diff --git
a/security/apparmor/audit.c
b/security/apparmor/audit.c
index 96502b22b268626ee1496057dba45f16c5c2d2ed..f3fafedd798a9abc9734b1e80379b05fe3892daa 100644
(file)
--- a/
security/apparmor/audit.c
+++ b/
security/apparmor/audit.c
@@
-133,7
+133,7
@@
static void audit_pre(struct audit_buffer *ab, void *ca)
struct aa_profile *profile = sa->aad.profile;
pid_t pid;
rcu_read_lock();
- pid =
tsk->real_parent
->pid;
+ pid =
rcu_dereference(tsk->real_parent)
->pid;
rcu_read_unlock();
audit_log_format(ab, " parent=%d", pid);
if (profile->ns != root_ns) {