Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2011 16:59:02 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        src-committers@freebsd.org
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r219399 - head/sys/kern
Message-ID:  <201103081659.02621.jhb@freebsd.org>
In-Reply-To: <201103081418.p28EILZ0076720@svn.freebsd.org>
References:  <201103081418.p28EILZ0076720@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, March 08, 2011 9:18:21 am John Baldwin wrote:
> Author: jhb
> Date: Tue Mar  8 14:18:21 2011
> New Revision: 219399
> URL: http://svn.freebsd.org/changeset/base/219399
> 
> Log:
>   When constructing a new cpuset, apply the parent cpuset's mask to the new
>   set's mask rather than the root mask.  This was causing the root mask to
>   be modified incorrectly.
>   
>   Reviewed by:	jeff
>   MFC after:	1 week

The effect of this bug was that if you started a jail from a thread that had a 
restricted cpuset (e.g. cpuset -l 0 sh /etc/rc.d/jail start), then the root 
cpuset for the entire system would be changed to just be the restricted set 
(e.g. '0').  The existing cpusets such as set 1 were not modified, but if you 
later tried to modify a set such as set 1 or create a new set by something 
like 'cpuset -l 2 foo', then those actions would fail.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103081659.02621.jhb>