[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-07cde2608a3b5c66515363f1b53623b1536b9785@git.kernel.org>
Date: Fri, 16 Dec 2011 03:35:23 -0800
From: tip-bot for Kees Cook <keescook@...omium.org>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
glommer@...allels.com, a.p.zijlstra@...llo.nl,
keescook@...omium.org, suresh.b.siddha@...el.com,
tglx@...utronix.de, kamezawa.hiroyu@...fujitsu.com, mingo@...e.hu
Subject: [tip:sched/core] sched: Add missing rcu_dereference() around ->
real_parent usage
Commit-ID: 07cde2608a3b5c66515363f1b53623b1536b9785
Gitweb: http://git.kernel.org/tip/07cde2608a3b5c66515363f1b53623b1536b9785
Author: Kees Cook <keescook@...omium.org>
AuthorDate: Thu, 15 Dec 2011 08:49:18 -0800
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Fri, 16 Dec 2011 09:42:09 +0100
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@...omium.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Glauber Costa <glommer@...allels.com>
Cc: Suresh Siddha <suresh.b.siddha@...el.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
Link: http://lkml.kernel.org/r/20111215164918.GA13003@www.outflux.net
[ tidied up the changelog ]
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/sched/core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 3c5b21e..c7ea688 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists