Re: [PATCH] avoid race condition in pick_next_task_fair in kernel/sched_fair.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Thursday, December 23, 2010 - 5:12 am

On Thu, 2010-12-23 at 10:08 +0800, Yong Zhang wrote:

This appears to be consistently true, I've also found that in between
these two prints, there is a free_sched_group() freeing that exact
entry. So post-print is a use-after-free artifact.

What's interesting is that its freeing a cfs_rq struct with
nr_running=1, that should not be possible...

/me goes stare at the whole cgroup task attach vs cgroup destruction
muck.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] avoid race condition in pick_next_task_fair in ..., Peter Zijlstra, (Thu Dec 23, 5:12 am)
[tip:sched/core] sched, autogroup: Fix reference leak, tip-bot for Mike Gal ..., (Tue Jan 4, 7:19 am)
Re: [tip:sched/core] sched, autogroup: Fix reference leak, Mike Galbraith, (Tue Jan 4, 12:06 pm)