Date: Fri, 12 Aug 2016 14:37:44 -0700 From: Adrian Chadd <adrian@freebsd.org> To: David Wolfskill <david@catwhisker.org> Cc: FreeBSD Net <freebsd-net@freebsd.org>, Andriy Voskoboinyk <avos@freebsd.org> Subject: Re: Panic in stable/11 (amd64) @r303903: page fault while in kernel mode Message-ID: <CAJ-VmokUd6sEbG_igXgcLLqMdhn%2BmC8Ukp5YS7C9U=oPDYHovw@mail.gmail.com> In-Reply-To: <20160812211841.GY1112@albert.catwhisker.org> References: <20160810165458.GB1112@albert.catwhisker.org> <570bda1e-d4d7-42dc-6037-7c321ba9e97d@FreeBSD.org> <CAJ-Vmon6Rak07ux%2BZX8ySnxkgn5Sv9Jtcus4SSv=J_sXTWQ%2BgQ@mail.gmail.com> <20160811234250.GC1112@albert.catwhisker.org> <CAJ-VmonLmpgV1Max-V2nZ5wi-RSa6rQ2QGaMQf6GO%2BS3XEF05g@mail.gmail.com> <20160812023744.GE1112@albert.catwhisker.org> <CAJ-Vmo=cnZvrT=c12xhOPHNtc%2Bs-02LBCvvxy8ENv157Qh4zTQ@mail.gmail.com> <CAJ-VmonWWjHy9sDzU_rRTHErkF26WWN_xOn2qyX-sJEOOjX4=w@mail.gmail.com> <20160812180521.GW1112@albert.catwhisker.org> <CAJ-Vmon95MkDQjW0QSOh0WX2-2_2PNHZPEL9H7KSBu9%2B57%2B1Ag@mail.gmail.com> <20160812211841.GY1112@albert.catwhisker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Just #if 0 that whole chunk out and see if that improves wireless at work? -a On 12 August 2016 at 14:18, David Wolfskill <david@catwhisker.org> wrote: > On Fri, Aug 12, 2016 at 11:40:03AM -0700, Adrian Chadd wrote: >> EIther stable/11 or head. Both are fine. >> >> >> >> -a >> >> >> On 12 August 2016 at 11:05, David Wolfskill <david@catwhisker.org> wrote= : >> > On Fri, Aug 12, 2016 at 11:01:25AM -0700, Adrian Chadd wrote: >> >> David, >> >> >> >> Totally untested; will need manual application as I bet this patch is= mangled. >> >> >> >> Would you mind testing this? I have a feeling we need to add if_addr >> >> lock calls in a few places. >> > >> > Sure; I'll test. Which branch? >> > >> > Please note that "lack of recurrence" of the panic isn't especially >> > indiciative, as I hadn't seen it previously or since. (Then again, >> > yestrday & today, I've been using the wired NIC on the laptop while I'= m >> > at work, as the laptop has been unable to get a DHCP lease here. (It >> > worked OK at Hacker Dojo last night, and works OK at home.) >> > >> ... > > OK; up & runing: > > FreeBSD localhost 11.0-PRERELEASE FreeBSD 11.0-PRERELEASE #72 r303979M/3= 04004:1100500: Fri Aug 12 13:57:30 PDT 2016 root@localhost:/common/S2/o= bj/usr/src/sys/CANARY amd64 > > [Copy/paste...] > localhost(11.0-P)[1] cd /usr/src/ > localhost(11.0-P)[2] svn diff sys/net80211/ > Index: sys/net80211/ieee80211_ioctl.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/net80211/ieee80211_ioctl.c (revision 304004) > +++ sys/net80211/ieee80211_ioctl.c (working copy) > @@ -3389,15 +3389,16 @@ > /* Wait for parent ioctl handler if it was queued */ > if (wait) { > ieee80211_waitfor_parent(ic); > - > /* > * Check if the MAC address was changed > * via SIOCSIFLLADDR ioctl. > */ > + if_addr_rlock(ifp); > if ((ifp->if_flags & IFF_UP) =3D=3D 0 && > !IEEE80211_ADDR_EQ(vap->iv_myaddr, IF_LLADDR(= ifp))) > IEEE80211_ADDR_COPY(vap->iv_myaddr, > IF_LLADDR(ifp)); > + if_addr_runlock(ifp); > } > break; > case SIOCADDMULTI: > localhost(11.0-P)[3] > > > That said, I am unable to test use of wireless here at work at this > time, as I am unable to obtain a DHCP lease now (I am presently > connected via em0 NIC): > > ... > Aug 12 21:04:15 console-kit-daemon[970]: WARNING: Error waiting for nati= ve console 1 activation: Inappropriate ioctl for device > Aug 12 21:04:15 kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument= #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160527/nsarg= uments-97) > Aug 12 21:04:15 last message repeated 11 times > Aug 12 21:04:22 wpa_supplicant[373]: wlan0: CTRL-EVENT-SSID-REENABLED id= =3D25 ssid=3D"$work_SSID" > Aug 12 21:04:22 wpa_supplicant[373]: wlan0: Trying to associate with 04:= bd:88:18:18:82 (SSID=3D'$work_SSID' freq=3D2462 MHz) > Aug 12 21:04:22 wpa_supplicant[373]: wlan0: Associated with 04:bd:88:18:= 18:82 > Aug 12 21:04:22 kernel: wlan0: link state changed to UP > Aug 12 21:04:22 dhclient: /etc/dhclient-enter-hooks invoked with reason = EXPIRE > Aug 12 21:04:22 dhclient: Ignoring claimed EXPIRE dhclient invocation > Aug 12 21:04:22 dhclient[393]: send_packet: No buffer space available > Aug 12 21:04:22 dhclient[393]: send_packet: No buffer space available > Aug 12 21:04:22 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-STARTED EAP a= uthentication started > Aug 12 21:04:22 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PROPOSED-METH= OD vendor=3D0 method=3D13 -> NAK > Aug 12 21:04:22 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PROPOSED-METH= OD vendor=3D0 method=3D25 > Aug 12 21:04:22 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-METHOD EAP ve= ndor 0 method 25 (PEAP) selected > Aug 12 21:04:23 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-CERT dep= th=3D2 subject=3D'/C=3DUS/O=3DVeriSign, Inc./OU=3DVeriSign Trust Network/OU= =3D(c) 2006 VeriSign, Inc. - For authorized use only/CN=3DVeriSign Class 3 = Public Primary Certification Authority - G5' hash=3D8420dfbe376f414bf4c0a81= e6936d24ccc03f304835b86c7a39142fca723a689 > Aug 12 21:04:23 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-CERT dep= th=3D1 subject=3D'/C=3DUS/O=3DVeriSign, Inc./OU=3DVeriSign Trust Network/OU= =3DTerms of use at https://www.verisign.com/rpa (c)10/CN=3DVeriSign Class 3= Secure Server CA - G3' hash=3D64903546a58058d1e6f1bead1134ede66a6831d231f0= df8d4e28535d7a300496 > Aug 12 21:04:23 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-CERT dep= th=3D0 subject=3D'/C=3DUS/ST=3DCalifornia/L=3DLos Gatos/O=3DNetflix, Inc./O= U=3DNetEng/CN=3Dwifi.netflix.com' hash=3D27ffd334788bcee10fd242f99781c4d39e= ba66827096c52e551b6c627881f0fd > Aug 12 21:04:23 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-ALT dept= h=3D0 DNS:wifi.netflix.com > Aug 12 21:04:23 wpa_supplicant[373]: EAP-MSCHAPV2: Password not configur= ed > Aug 12 21:04:23 wpa_supplicant[373]: wlan0: CTRL-REQ-PASSWORD-25:Passwor= d needed for SSID $work_SSID > Aug 12 21:04:28 dhclient[393]: send_packet: No buffer space available > Aug 12 21:04:31 console-kit-daemon[970]: WARNING: Error waiting for nati= ve console 1 activation: Inappropriate ioctl for device > Aug 12 21:04:31 console-kit-daemon[970]: WARNING: Error waiting for nati= ve console 9 activation: Inappropriate ioctl for device > Aug 12 21:04:42 dhclient[393]: send_packet: No buffer space available > Aug 12 21:04:43 devd: notify_clients: send() failed; dropping unresponsi= ve client > Aug 12 21:04:47 dhclient[393]: send_packet: No buffer space available > Aug 12 21:05:17 last message repeated 3 times > Aug 12 21:05:24 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-FAILURE EAP a= uthentication failed > Aug 12 21:05:26 dhclient[393]: send_packet: No buffer space available > Aug 12 21:05:26 wpa_supplicant[373]: wlan0: Authentication with 04:bd:88= :18:18:82 timed out. > Aug 12 21:05:26 wpa_supplicant[373]: wlan0: CTRL-EVENT-DISCONNECTED bssi= d=3D04:bd:88:18:18:82 reason=3D3 locally_generated=3D1 > Aug 12 21:05:26 wpa_supplicant[373]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLE= D id=3D25 ssid=3D"$work_SSID" auth_failures=3D2 duration=3D31 reason=3DAUTH= _FAILED > Aug 12 21:05:26 kernel: wlan0: link state changed to DOWN > Aug 12 21:05:29 kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument= #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160527/nsarg= uments-97) > Aug 12 21:05:29 last message repeated 11 times > Aug 12 21:05:38 dhclient[393]: send_packet: Network is down > Aug 12 21:05:43 dhclient: /etc/dhclient-enter-hooks invoked with reason = TIMEOUT > Aug 12 21:05:43 dhclient: Ignoring claimed TIMEOUT dhclient invocation > Aug 12 21:05:50 devd: notify_clients: send() failed; dropping unresponsi= ve client > Aug 12 21:05:50 kernel: GEOM_ELI: Device ada0s4j.eli created. > Aug 12 21:05:50 kernel: GEOM_ELI: Encryption: AES-XTS 128 > Aug 12 21:05:50 kernel: GEOM_ELI: Crypto: software > Aug 12 21:06:01 wpa_supplicant[373]: wlan0: CTRL-EVENT-SSID-REENABLED id= =3D25 ssid=3D"$work_SSID" > Aug 12 21:06:01 wpa_supplicant[373]: wlan0: Trying to associate with 04:= bd:88:18:68:a2 (SSID=3D'$work_SSID' freq=3D2412 MHz) > Aug 12 21:06:01 kernel: wlan0: link state changed to UP > Aug 12 21:06:01 wpa_supplicant[373]: wlan0: Associated with 04:bd:88:18:= 68:a2 > Aug 12 21:06:01 dhclient: /etc/dhclient-enter-hooks invoked with reason = EXPIRE > Aug 12 21:06:01 dhclient: Ignoring claimed EXPIRE dhclient invocation > Aug 12 21:06:01 dhclient[393]: send_packet: No buffer space available > Aug 12 21:06:04 last message repeated 2 times > Aug 12 21:06:06 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-STARTED EAP a= uthentication started > Aug 12 21:06:10 dhclient[393]: send_packet: No buffer space available > Aug 12 21:06:16 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-STARTED EAP a= uthentication started > Aug 12 21:06:20 dhclient[393]: send_packet: No buffer space available > Aug 12 21:06:27 dhclient[393]: send_packet: No buffer space available > Aug 12 21:06:31 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-STARTED EAP a= uthentication started > Aug 12 21:06:36 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PROPOSED-METH= OD vendor=3D0 method=3D13 -> NAK > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PROPOSED-METH= OD vendor=3D0 method=3D25 > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-METHOD EAP ve= ndor 0 method 25 (PEAP) selected > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-CERT dep= th=3D2 subject=3D'/C=3DUS/O=3DVeriSign, Inc./OU=3DVeriSign Trust Network/OU= =3D(c) 2006 VeriSign, Inc. - For authorized use only/CN=3DVeriSign Class 3 = Public Primary Certification Authority - G5' hash=3D8420dfbe376f414bf4c0a81= e6936d24ccc03f304835b86c7a39142fca723a689 > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-CERT dep= th=3D1 subject=3D'/C=3DUS/O=3DVeriSign, Inc./OU=3DVeriSign Trust Network/OU= =3DTerms of use at https://www.verisign.com/rpa (c)10/CN=3DVeriSign Class 3= Secure Server CA - G3' hash=3D64903546a58058d1e6f1bead1134ede66a6831d231f0= df8d4e28535d7a300496 > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-CERT dep= th=3D0 subject=3D'/C=3DUS/ST=3DCalifornia/L=3DLos Gatos/O=3DNetflix, Inc./O= U=3DNetEng/CN=3Dwifi.netflix.com' hash=3D27ffd334788bcee10fd242f99781c4d39e= ba66827096c52e551b6c627881f0fd > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-ALT dept= h=3D0 DNS:wifi.netflix.com > Aug 12 21:06:41 wpa_supplicant[373]: EAP-MSCHAPV2: Password not configur= ed > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-REQ-PASSWORD-25:Passwor= d needed for SSID $work_SSID > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-EVENT-DISCONNECTED bssi= d=3D04:bd:88:18:68:a2 reason=3D3 locally_generated=3D1 > Aug 12 21:06:41 kernel: wlan0: link state changed to DOWN > Aug 12 21:06:41 devd: notify_clients: send() failed; dropping unresponsi= ve client > Aug 12 21:06:41 wpa_supplicant[373]: wlan0: CTRL-EVENT-TERMINATING > Aug 12 21:06:53 david: /etc/rc.d/dhclient: WARNING: failed to start dhcl= ient > Aug 12 21:07:42 kernel: em0: Link is up 1000 Mbps Full Duplex > Aug 12 21:07:42 kernel: em0: link state changed to UP > .... > > > [I hand-replaced ocuurences of the actual SSID iwth "$work_SSID" > in the above.] > > Up to Tuesday (10 Aug), I was using wireless at work (though I would > sometimes see authentication timeouts). As of yesterday, I've just > been unable to get a DHCP lease at all (running stable/11). > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > Those who would murder in the name of God or prophet are blasphemous cowa= rds. > > See http://www.catwhisker.org/~david/publickey.gpg for my public key.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokUd6sEbG_igXgcLLqMdhn%2BmC8Ukp5YS7C9U=oPDYHovw>