From owner-freebsd-current@FreeBSD.ORG Fri Aug 6 20:33:42 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 299E316A4CE; Fri, 6 Aug 2004 20:33:42 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2D2743D3F; Fri, 6 Aug 2004 20:33:41 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i76KWJYo067535; Fri, 6 Aug 2004 16:32:19 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i76KWIBb067532; Fri, 6 Aug 2004 16:32:19 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 6 Aug 2004 16:32:18 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Poul-Henning Kamp In-Reply-To: <1078.1091815574@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: sam@freebsd.org cc: current@freebsd.org Subject: Re: Giant lock issue with almost -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 20:33:42 -0000 On Fri, 6 Aug 2004, Poul-Henning Kamp wrote: > Transcribed by hand: > > Giant not owned > mtx_assert() > if_start() > ieee80211_mgmt_output() > ieee80211_send_mgmt() > ieee80211_newstate() > ath_newstate() > ieee80211_end_scan() > ieee80211_next_scan() > ath_next_scan() > softclock() Yeah, I got another report of this this morning. The 802.11 code is calling into the network stack from a Giant-free timeout/callout without first acquiring Giant, and you're running the stack with Giant required (i.e., debug.mpsafenet=0). Exactly where to draw the "Needs Giant" line for debug.mpsafenet=0 is a little vague; generally, it has included the network device drivers, which suggests that ath should use CALLOUT_MPSAFENET only if debug.mpsafenet != 0. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research