Date: Thu, 25 Mar 2010 16:20:06 GMT From: Henry Hu <henry.hu.sh@gmail.com> To: freebsd-net@FreeBSD.org Subject: Re: kern/138427: [wpi] [panic] Kernel panic after trying set monitor wlanmode on Intel 3945 ABG (wpi driver) Message-ID: <201003251620.o2PGK6KR005860@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/138427; it has been noted by GNATS. From: Henry Hu <henry.hu.sh@gmail.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003251620.o2PGK6KR005860>