From owner-svn-src-all@FreeBSD.ORG Tue Mar 8 21:59:04 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 181651065672; Tue, 8 Mar 2011 21:59:04 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E45CD8FC1F; Tue, 8 Mar 2011 21:59:03 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 8B4DF46B8E; Tue, 8 Mar 2011 16:59:03 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.10]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 2CAED8A01B; Tue, 8 Mar 2011 16:59:03 -0500 (EST) From: John Baldwin To: src-committers@freebsd.org Date: Tue, 8 Mar 2011 16:59:02 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.4-CBSD-20110107; KDE/4.4.5; amd64; ; ) References: <201103081418.p28EILZ0076720@svn.freebsd.org> In-Reply-To: <201103081418.p28EILZ0076720@svn.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201103081659.02621.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 08 Mar 2011 16:59:03 -0500 (EST) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r219399 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2011 21:59:04 -0000 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