Re: [patch] cpuset: fix crash when adding CPUs to an empty set

From: Mike Galbraith
Date: Wed Jan 28 2015 - 20:58:14 EST


On Wed, 2015-01-28 at 12:53 +0100, Peter Zijlstra wrote:
> On Wed, Jan 28, 2015 at 12:24:52PM +0800, Zefan Li wrote:
> > > sched: Fix crash if cpuset_cpumask_can_shrink() is passed an empty cpumask
> > >
> > > While creating an exclusive cpuset, we passed cpuset_cpumask_can_shrink()
> > > an empty cpumask (cur), and dl_bw_of(cpumask_any(cur)) made boom with it.
> > >
>
> Is this the case where a new cpuset doesn't yet have CPUs assigned?

Yes.

-Mike


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/