From owner-cvs-all@FreeBSD.ORG Sat Oct 9 09:32:57 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6979416A4CE; Sat, 9 Oct 2004 09:32:57 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FD9A43D39; Sat, 9 Oct 2004 09:32:57 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id i999VUXf004978; Sat, 9 Oct 2004 05:31:30 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i999VUUd004975; Sat, 9 Oct 2004 05:31:30 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sat, 9 Oct 2004 05:31:30 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Brian Feldman In-Reply-To: <200410090816.i998Gbs5076009@repoman.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern subr_witness.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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, 09 Oct 2004 09:32:57 -0000 On Sat, 9 Oct 2004, Brian Feldman wrote: > green 2004-10-09 08:16:37 UTC > > FreeBSD src repository > > Modified files: > sys/kern subr_witness.c > Log: > Don't "implicitly order all sleep locks before spin locks" in witness > when the spin lock in question isn't -- it's the critical_enter() that > KDB set. No more panic in DDB for console -> syscons -> tty -> knote > operations. I don't have an opinion on whether this is a good change, but I will say that the bug you're seeing is a bug in the syscons code, not the result of a witness bug. syscons should not be calling into the tty code from the polled I/O interface used by the debugger, and hence should never make it to the KQ code. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research