Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Aug 2016 14:18:41 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Adrian Chadd <adrian@freebsd.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:  <20160812211841.GY1112@albert.catwhisker.org>
In-Reply-To: <CAJ-Vmon95MkDQjW0QSOh0WX2-2_2PNHZPEL9H7KSBu9%2B57%2B1Ag@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--F5PMopVgTaFKhUu5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 12, 2016 at 11:40:03AM -0700, Adrian Chadd wrote:
> EIther stable/11 or head. Both are fine.
>=20
>=20
>=20
> -a
>=20
>=20
> 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/304=
004:1100500: Fri Aug 12 13:57:30 PDT 2016     root@localhost:/common/S2/obj=
/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(if=
p)))
                                IEEE80211_ADDR_COPY(vap->iv_myaddr,
                                    IF_LLADDR(ifp));
+                       if_addr_runlock(ifp);
                }
                break;
        case SIOCADDMULTI:
localhost(11.0-P)[3]=20


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):

=2E..
Aug 12 21:04:15  console-kit-daemon[970]: WARNING: Error waiting for native=
 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/nsargum=
ents-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 EX=
PIRE
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 aut=
hentication started
Aug 12 21:04:22  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD=
 vendor=3D0 method=3D13 -> NAK
Aug 12 21:04:22  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD=
 vendor=3D0 method=3D25
Aug 12 21:04:22  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-METHOD EAP vend=
or 0 method 25 (PEAP) selected
Aug 12 21:04:23  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=
=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 depth=
=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 depth=
=3D0 subject=3D'/C=3DUS/ST=3DCalifornia/L=3DLos Gatos/O=3DNetflix, Inc./OU=
=3DNetEng/CN=3Dwifi.netflix.com' hash=3D27ffd334788bcee10fd242f99781c4d39eb=
a66827096c52e551b6c627881f0fd
Aug 12 21:04:23  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-ALT depth=
=3D0 DNS:wifi.netflix.com
Aug 12 21:04:23  wpa_supplicant[373]: EAP-MSCHAPV2: Password not configured
Aug 12 21:04:23  wpa_supplicant[373]: wlan0: CTRL-REQ-PASSWORD-25:Password =
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 native=
 console 1 activation: Inappropriate ioctl for device
Aug 12 21:04:31  console-kit-daemon[970]: WARNING: Error waiting for native=
 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 unresponsive=
 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 aut=
hentication 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:1=
8:18:82 timed out.
Aug 12 21:05:26  wpa_supplicant[373]: wlan0: CTRL-EVENT-DISCONNECTED bssid=
=3D04:bd:88:18:18:82 reason=3D3 locally_generated=3D1
Aug 12 21:05:26  wpa_supplicant[373]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED =
id=3D25 ssid=3D"$work_SSID" auth_failures=3D2 duration=3D31 reason=3DAUTH_F=
AILED
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/nsargum=
ents-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 TI=
MEOUT
Aug 12 21:05:43  dhclient: Ignoring claimed TIMEOUT dhclient invocation
Aug 12 21:05:50  devd: notify_clients: send() failed; dropping unresponsive=
 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 EX=
PIRE
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 aut=
hentication 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 aut=
hentication 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 aut=
hentication started
Aug 12 21:06:36  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD=
 vendor=3D0 method=3D13 -> NAK
Aug 12 21:06:41  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD=
 vendor=3D0 method=3D25
Aug 12 21:06:41  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-METHOD EAP vend=
or 0 method 25 (PEAP) selected
Aug 12 21:06:41  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=
=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 depth=
=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 depth=
=3D0 subject=3D'/C=3DUS/ST=3DCalifornia/L=3DLos Gatos/O=3DNetflix, Inc./OU=
=3DNetEng/CN=3Dwifi.netflix.com' hash=3D27ffd334788bcee10fd242f99781c4d39eb=
a66827096c52e551b6c627881f0fd
Aug 12 21:06:41  wpa_supplicant[373]: wlan0: CTRL-EVENT-EAP-PEER-ALT depth=
=3D0 DNS:wifi.netflix.com
Aug 12 21:06:41  wpa_supplicant[373]: EAP-MSCHAPV2: Password not configured
Aug 12 21:06:41  wpa_supplicant[373]: wlan0: CTRL-REQ-PASSWORD-25:Password =
needed for SSID $work_SSID
Aug 12 21:06:41  wpa_supplicant[373]: wlan0: CTRL-EVENT-DISCONNECTED bssid=
=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 unresponsive=
 client
Aug 12 21:06:41  wpa_supplicant[373]: wlan0: CTRL-EVENT-TERMINATING=20
Aug 12 21:06:53  david: /etc/rc.d/dhclient: WARNING: failed to start dhclie=
nt
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
=2E...


[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
--=20
David H. Wolfskill				david@catwhisker.org
Those who would murder in the name of God or prophet are blasphemous coward=
s.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--F5PMopVgTaFKhUu5
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJXrj0xXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix
NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XZ8UIAL9Qd4gghMdBrs28TS/yOefC
EPEGyjq5fr32CbabZUrh0q1zeysgfIJ0Rn0TtwFVQdlvQsXXC+og1YDGOMDDf/uA
sABrIaO2keL/2MQjpLYZ1mzxomPSorukMhMLQqkihylKm+Y0aP1Lq4ueYMS6oB96
Yvs7+4jKevZpMy2afeX0gAcZHbejMDG8os7eliU02v2//TR2l6TLvMDxrzmyP6KT
xC/mkjphICiFpM1lXLcXbTO27YJhYxPuYSAH8v7ynbo54v4+GSu9v2da32ZANV4U
0famZuwSXnT0oHaU3YanOYm3EomABtD5QaneMwnXkmXSt3rjuV5ZxG/lNHP2PbA=
=koyO
-----END PGP SIGNATURE-----

--F5PMopVgTaFKhUu5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160812211841.GY1112>