summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2011-12-15 08:49:18 -0800
committerIngo Molnar <mingo@elte.hu>2011-12-16 09:42:09 +0100
commit07cde2608a3b5c66515363f1b53623b1536b9785 (patch)
tree1ef46b4a852a79c9a44f08b177ee256a776a6ad6 /kernel/sched
parentabd63bc3a0f65ae9d85bc3b1bb067d3e3c2b2cc2 (diff)
downloadblackbird-op-linux-07cde2608a3b5c66515363f1b53623b1536b9785.tar.gz
blackbird-op-linux-07cde2608a3b5c66515363f1b53623b1536b9785.zip
sched: Add missing rcu_dereference() around ->real_parent usage
Wrap another ->real_parent dereference while under rcu_read_lock. Signed-off-by: Kees Cook <keescook@chromium.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Glauber Costa <glommer@parallels.com> Cc: Suresh Siddha <suresh.b.siddha@intel.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Link: http://lkml.kernel.org/r/20111215164918.GA13003@www.outflux.net [ tidied up the changelog ] Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 3c5b21e2ef20..c7ea688faff4 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4784,7 +4784,7 @@ void sched_show_task(struct task_struct *p)
free = stack_not_used(p);
#endif
printk(KERN_CONT "%5lu %5d %6d 0x%08lx\n", free,
- task_pid_nr(p), task_pid_nr(p->real_parent),
+ task_pid_nr(p), task_pid_nr(rcu_dereference(p->real_parent)),
(unsigned long)task_thread_info(p)->flags);
show_stack(p, NULL);
OpenPOWER on IntegriCloud