From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 11 11:58:04 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 993EE1065704; Wed, 11 Feb 2009 11:58:04 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6EA248FC20; Wed, 11 Feb 2009 11:58:04 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1BBw4cv002846; Wed, 11 Feb 2009 11:58:04 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1BBw4dv002842; Wed, 11 Feb 2009 11:58:04 GMT (envelope-from gavin) Date: Wed, 11 Feb 2009 11:58:04 GMT Message-Id: <200902111158.n1BBw4dv002842@freefall.freebsd.org> To: huntting@glarp.com, gavin@FreeBSD.org, freebsd-bugs@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: kern/131573: [mtx] lock_init() assumes zero-filled struct X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2009 11:58:05 -0000 Old Synopsis: lock_init() assumes zero-filled struct New Synopsis: [mtx] lock_init() assumes zero-filled struct State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Wed Feb 11 11:53:10 UTC 2009 State-Changed-Why: Mark as feedback: I'm not sure this is a bug, although I do understand why the submitter believes it is. I think you're probably best bringing this up on the -current mailing list, and getting some discussion or a consensus as to if this is correct or not. FWIW, a lot of mutexes are not necessarily initialise just in attach routines, and I know this check has been triggered before for real bugs. http://www.freebsd.org/cgi/query-pr.cgi?pr=131573