From owner-cvs-all@FreeBSD.ORG Sat Jul 26 18:58:57 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 844E810657FD; Sat, 26 Jul 2008 18:58:56 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AED7D8FC18; Sat, 26 Jul 2008 18:58:56 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m6QIwudh037139; Sat, 26 Jul 2008 18:58:56 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m6QIwuL8037138; Sat, 26 Jul 2008 18:58:56 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200807261858.m6QIwuL8037138@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Sat, 26 Jul 2008 18:58:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/kern kern_thread.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2008 18:58:57 -0000 kib 2008-07-26 18:58:50 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern kern_thread.c Log: SVN rev 180830 on 2008-07-26 18:58:50Z by kib Although being recorded as MFC of the r177369, this change was introduced for the KSE case in the r177083. Both were done by jeff, MFC is needed due to recent cpuset(2) commit to RELENG_7. r177083: KSE may free a thread that was never actually forked. This will leave td_cpuset NULL. Check for this condition before dereferencing the cpuset. r177369: Restore the NULL check for td_cpuset. This can happen if a partially constructed thread was torn down as is the case when we fail to allocate a kernel stack. Revision Changes Path 1.255.2.6 +2 -1 src/sys/kern/kern_thread.c