From owner-freebsd-net@FreeBSD.ORG Thu Mar 25 16:20:07 2010 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15EDB106566B for ; Thu, 25 Mar 2010 16:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DF1BD8FC08 for ; Thu, 25 Mar 2010 16:20:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2PGK6Oh005861 for ; Thu, 25 Mar 2010 16:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2PGK6KR005860; Thu, 25 Mar 2010 16:20:06 GMT (envelope-from gnats) Date: Thu, 25 Mar 2010 16:20:06 GMT Message-Id: <201003251620.o2PGK6KR005860@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Henry Hu Cc: Subject: Re: kern/138427: [wpi] [panic] Kernel panic after trying set monitor wlanmode on Intel 3945 ABG (wpi driver) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Henry Hu List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2010 16:20:07 -0000 The following reply was made to PR kern/138427; it has been noted by GNATS. From: Henry Hu To: bug-followup@FreeBSD.org, marcin.nowak@simplusnet.pl Cc: Subject: Re: kern/138427: [wpi] [panic] Kernel panic after trying set monitor wlanmode on Intel 3945 ABG (wpi driver) Date: Fri, 26 Mar 2010 00:19:14 +0800 --00163628426c61e9260482a26872 Content-Type: text/plain; charset=ISO-8859-1 OK, maybe I've found the problem. In wpi_set_channel, when in monitor mode, wpi_config is called without locks. However, it thinks that the lock is held. So the problem occurs. See the attached patch. Now I'm capturing in monitor mode with wireshark. -- Cheers, Henry --00163628426c61e9260482a26872 Content-Type: application/octet-stream; name="wpi.diff" Content-Disposition: attachment; filename="wpi.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g77rnz290 LS0tIGlmX3dwaS5jLm9yaWcJMjAxMC0wMy0yNSAyMzo1NTo0MC4wMDAwMDAwMDAgKzA4MDAKKysr IGlmX3dwaS5jCTIwMTAtMDMtMjUgMjM6NTU6NTcuMDAwMDAwMDAwICswODAwCkBAIC0zNTUyLDcg KzM1NTIsOSBAQAogCSAqIGFyZSBhbHJlYWR5IHRha2VuIGNhcmUgb2YgYnkgdGhlaXIgcmVzcGVj dGl2ZSBmaXJtd2FyZSBjb21tYW5kcy4KIAkgKi8KIAlpZiAoaWMtPmljX29wbW9kZSA9PSBJRUVF ODAyMTFfTV9NT05JVE9SKSB7CisJCVdQSV9MT0NLKHNjKTsKIAkJZXJyb3IgPSB3cGlfY29uZmln KHNjKTsKKwkJV1BJX1VOTE9DSyhzYyk7CiAJCWlmIChlcnJvciAhPSAwKQogCQkJZGV2aWNlX3By aW50ZihzYy0+c2NfZGV2LAogCQkJICAgICJlcnJvciAlZCBzZXR0dGluZyBjaGFubmVsXG4iLCBl cnJvcik7Cg== --00163628426c61e9260482a26872--