From owner-freebsd-net@freebsd.org Fri Aug 12 21:37:46 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D35A5BB8E7E for ; Fri, 12 Aug 2016 21:37:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E23F1DA2; Fri, 12 Aug 2016 21:37:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x230.google.com with SMTP id q83so36315127iod.1; Fri, 12 Aug 2016 14:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=ucz1paFfgy5siQzf8CZRQIlQLprbD3W6aOtZP8gIKUI=; b=LCqoAiib8EEeyosM8/MFoElJ5Al2KHEsbdCYhPP1xmxFq+nB3YqQUDJ+1nr/GDCDfU NSwzYpJVjm7OXVPZouvrC+e1OTerSdfaqWrVnCp4ErE59vAzdWoEZccp+6LN2qKaNI5H P0udinxzD336BGx6nQBUD5uPIjRSlIuKSYnMfepfD9nF4fPu6TkKieOzf36SPwCvRt80 y/0nnL2oufk+c3EzgzML+Aq50VBgiekCf7gImNAj+yTPTNTNot6JLON5KqDGdG3XFnUY 15ACAr9w1XognavufzVaWCqKT+aSuquVXjBYi0OhQT+1WldEBrfL9fD/+W627KxtARVe 3IDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=ucz1paFfgy5siQzf8CZRQIlQLprbD3W6aOtZP8gIKUI=; b=ToatnK0aEUhKT5dJ0cTSG7yiEy1Gm/2tpY2fwtLuJFYf6rNlYhecenqIuGM6DOqxn7 ziXmEcWwyw5ImecC/yMogi5bR/fkXJjOkX9onWkajvEm6jXyZIia4pZBdaX7JxI7Ykbn bPu5X/vUVf2trtH6sBl3rRb/gRypV8YMRKU3Xd2k06FfXAc03AZRTQD0cbw++ywtl1N8 /AkqND/YZ/yoUM+z70vSZH1nQVox2lEM6dVTv8Ntqi2w0jkPQsgJLx5eXi0vVUe4gwV2 SG8xT+4r0OSAE7TWcDWZ6ZZYGU1MO1CFo2SgtQSnQzkb8TEczMpH4yJ43n6RXaoeLnsy oOWQ== X-Gm-Message-State: AEkooutdk3x2NL8BNyTTyLxEYnm2GnDOmQC9CtGZiGP4916IOmB2rBWB3sHmWSdqQORQELPfoTcl5yGOQp86Zg== X-Received: by 10.107.144.10 with SMTP id s10mr19890677iod.165.1471037865745; Fri, 12 Aug 2016 14:37:45 -0700 (PDT) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.36.141.129 with HTTP; Fri, 12 Aug 2016 14:37:44 -0700 (PDT) In-Reply-To: <20160812211841.GY1112@albert.catwhisker.org> References: <20160810165458.GB1112@albert.catwhisker.org> <570bda1e-d4d7-42dc-6037-7c321ba9e97d@FreeBSD.org> <20160811234250.GC1112@albert.catwhisker.org> <20160812023744.GE1112@albert.catwhisker.org> <20160812180521.GW1112@albert.catwhisker.org> <20160812211841.GY1112@albert.catwhisker.org> From: Adrian Chadd Date: Fri, 12 Aug 2016 14:37:44 -0700 X-Google-Sender-Auth: _CjSkRtYnGARwtvY5PL5x9MnEKk Message-ID: Subject: Re: Panic in stable/11 (amd64) @r303903: page fault while in kernel mode To: David Wolfskill Cc: FreeBSD Net , Andriy Voskoboinyk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2016 21:37:46 -0000 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 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 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.