From owner-freebsd-current@freebsd.org Fri Oct 18 05:51:10 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2113B167266; Fri, 18 Oct 2019 05:51:10 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anubis.delphij.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vZs84tvMz4BBm; Fri, 18 Oct 2019 05:51:08 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from p51.home.us.delphij.net (unknown [IPv6:2601:646:8600:d04a:e670:b8ff:fe5c:4e69]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by anubis.delphij.net (Postfix) with ESMTPSA id 140634A2BE; Thu, 17 Oct 2019 22:51:01 -0700 (PDT) Reply-To: d@delphij.net To: freebsd-net , freebsd-current@freebsd.org From: Xin Li Autocrypt: addr=delphij@delphij.net; keydata= mQINBFuSR4oBEACvvEgwRIHs6IcSP/yaDtySF78Ji3rP29qdiQsxhMsOtvtffdbS56VApIWO UFb3/iN2gA8HwLvrmjijN0HEoLVX7na1WARmxRYzQMtApsZIUTtx7hnUYlsi2F5odZa6CDW9 a954DLRzYxiUwYDcu5Zjl9bglK1H8e/N9uC0Vuigr4teWfh86brzOyf819QzwFVYfMIK4ihw QGwMvTzbyVuCFy+LENkmcVYni70oQy6rZ5ktSuYbuOFvu7inRRfhSWPHziV7k+bW88sJ7xhv lBlegcnhkSudWX2M8tZ3MO1PJOcyys0CJlsBY5Weiog2lIPi05h/E9pZ9mc1Vud17iqDaL6w RaggOUhuPfDGCdO5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wwbYWUiDFYth 83XGglOExg+1ShTW5XjQPRrdyJAO+aUW4o3lVjfyUJXMgI4rmhMiLVm06GuNrbpKIF0s+4Vd jQAjhrDQjfoXi9CkfsA/cONseuHNv1JGj3RqHiqHJq1dbrpodXp925zGDAnUGxCOBPoFopAH gVzR89GTut059GpwqsddZmU6y7rqifuam/ekJ+QRwc16vgt7pHqCrTY8WPxRZr2UpFU1wlTo COdeiFep1gq1F9jzFjJnoMaAdmC6k7bgAA+RQusOgIhJL0jIej7DoAHxmxFFCfRy+lDtpXwF gQ8HMvzHI65QWmQnMo7s6SQH/ZH5s1yR6SJq8+3lDz+dCuT42qJVqIPVvxd10LW0FNN+t7HF eLadU6ekSgD13/EYMYXlvNHkw7dAItSDxIzgRyykLz0bCU9xwNWoS4Z43+ifF9anJ+uR0ltW El1j++h6ZrD3LLuCgJIt1so0m49GzdcSpOI7LCwMlacyvafiEyjUn+tSNDsnfw== Organization: The FreeBSD Project Subject: in6_mcast: in6_joingroup attempts to acquire IN6_MULTI_LOCK when sleeping prohibited Message-ID: <51c89593-a34b-46f8-bb4b-d1793ce6d1ae@delphij.net> Date: Thu, 17 Oct 2019 22:50:54 -0700 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OFr6YL2so5qjQgyO6vj1aS3sQAFcMdUT1" X-Rspamd-Queue-Id: 46vZs84tvMz4BBm X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.47 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[delphij.net:s=m7e2]; HAS_REPLYTO(0.00)[d@delphij.net]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; REPLYTO_DOM_EQ_FROM_DOM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ORG_HEADER(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; DKIM_TRACE(0.00)[delphij.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[delphij.net,reject]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; IP_SCORE(-2.37)[ip: (-9.88), ipnet: 64.62.128.0/18(1.51), asn: 6939(-3.41), country: US(-0.05)]; ASN(0.00)[asn:6939, ipnet:64.62.128.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2019 05:51:10 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --OFr6YL2so5qjQgyO6vj1aS3sQAFcMdUT1 Content-Type: multipart/mixed; boundary="eDZYHAvp7PvqvfeHmUszNYVsJ5LoydURo"; protected-headers="v1" From: Xin Li Reply-To: d@delphij.net To: freebsd-net , freebsd-current@freebsd.org Message-ID: <51c89593-a34b-46f8-bb4b-d1793ce6d1ae@delphij.net> Subject: in6_mcast: in6_joingroup attempts to acquire IN6_MULTI_LOCK when sleeping prohibited --eDZYHAvp7PvqvfeHmUszNYVsJ5LoydURo Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable I have seen this on boot of my laptop. It appears that in6_joingroup() was called in netisr_dispatch_src codepath, and it tried to acquire IN6_MULTI_LOCK(), which happened to sleep because we failed to acquire the sx, thus triggered the panic. =3D=3D=3D panic: sleepq_add: td 0xfffff8000ecd6000 to sleep on wchan 0xffffffff81dedfe0 with sleeping prohibited #1 0xffffffff80bbff90 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:479 #2 0xffffffff80bc03e6 in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:908 #3 0xffffffff80bc0143 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:835 #4 0xffffffff80c1a2bf in sleepq_add (wchan=3D0xffffffff81dedfe0, lock=3D= 0x0, wmesg=3D0xffffffff8110f331 "in6_multi_sx", flags=3D3, queue=3D0) at /usr/src/sys/kern/subr_sleepqueue.c:318 #5 0xffffffff80bc9ce4 in _sx_xlock_hard (sx=3D0xffffffff81dedfe0, x=3D18446735277856440320, opts=3D, file=3D, line=3D) at /usr/src/sys/kern/kern_sx.c:841 #6 0xffffffff80bc983f in _sx_xlock (sx=3D0xffffffff81dedfe0, opts=3D0, file=3D0xffffffff8113a568 "/usr/src/sys/netinet6/in6_mcast.c", line=3D= 1185) at /usr/src/sys/kern/kern_sx.c:325 #7 0xffffffff80e17dd1 in in6_joingroup (ifp=3D0xfffff80003b99800, mcaddr=3D0xfffffe00e1612e58, imf=3D, pinm=3D0xfffff80019e17300, delay=3D2) at /usr/src/sys/netinet6/in6_mcast.c:1185 #8 0xffffffff80e0fa72 in in6_update_ifa (ifp=3D0xfffff80003b99800, ifra=3D, ia=3D, flags=3D) at /usr/src/sys/netinet6/in6.c:752 #9 0xffffffff80e374c5 in nd6_ra_input (m=3D0xfffff800191d4a00, off=3D, icmp6len=3D) at /usr/src/sys/netinet6/nd6_rtr.c:2274 #10 0xffffffff80e096d5 in icmp6_input (mp=3D, offp=3D0xfffffe00e161335c, proto=3D) at /usr/src/sys/netinet6/icmp6.c:767 #11 0xffffffff80e22dff in ip6_input (m=3D0xfffff800191d4a00) at /usr/src/sys/netinet6/ip6_input.c:963 #12 0xffffffff80ceff11 in netisr_dispatch_src (proto=3D6, source=3D0, m=3D0xfffff800191d4a00) at /usr/src/sys/net/netisr.c:1127 #13 0xffffffff80cd399e in ether_demux (ifp=3D0xfffff80003b99800, m=3D) at /usr/src/sys/net/if_ethersubr.c:916 #14 0xffffffff80cd4f88 in ether_nh_input (m=3D) at /usr/src/sys/net/if_ethersubr.c:705 #15 0xffffffff80ceff11 in netisr_dispatch_src (proto=3D5, source=3D0, m=3D0xfffff800191d4a00) at /usr/src/sys/net/netisr.c:1127 #16 0xffffffff80cd3e8d in ether_input (ifp=3D0xfffff8000397a800, m=3D0x0)= at /usr/src/sys/net/if_ethersubr.c:824 #17 0xffffffff80d429f0 in sta_input (ni=3D, m=3D0xfffff800191d4a00, rxs=3D, rssi=3D, nf=3D) at /usr/src/sys/net80211/ieee80211_sta.c:891 #18 0xffffffff80d1ec2a in ieee80211_input_mimo (ni=3D0xfffffe0106c66000, m=3D0xfffff800191d4a00) at /usr/src/sys/net80211/ieee80211_input.c:10= 1 #19 0xffffffff848e55a2 in iwm_mvm_rx_rx_mpdu (sc=3D0xfffffe00e2c00000, m=3D0xfffff800191d4a00, offset=3D, stolen=3D) at /usr/src/sys/dev/iwm/if_iwm.c:3245= #20 0xffffffff848e3fee in iwm_intr (arg=3D) at /usr/src/sys/dev/iwm/if_iwm.c:5151 --eDZYHAvp7PvqvfeHmUszNYVsJ5LoydURo-- --OFr6YL2so5qjQgyO6vj1aS3sQAFcMdUT1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.2.17 (FreeBSD) iQIzBAEBCgAdFiEEceNg5NEMZIki80nQQHl/fJX0g08FAl2pUsQACgkQQHl/fJX0 g0+lxw/+LOegOl2SbY654sqOk2YAetgj3KUlDN8wyQ/xko23Z/zC86Ivjs9dTSQB R56FWF3i1aZRtxlr5U4Vz8i0TNO1zP+IqtvXf1K1nc3Bp9hK7IAzE9LqlhNc1A13 zxsWNWMy9FK6XG10I3lf8YNYEJjJWHRsgCjq7jPjXypwnQ2+KT1H7c1zBzk/zaac GYxemhbo+B7T9zo+YNe1krhLBdnV1BvGNX7uweJCL/hSKkVdGJGdeT2Mm/etPwqI PYEjxp+Wsf1hjCOLMOnMVluOYOv4ZLhhkl9fabchbMrkBfZ+FnktUGjIXmGFHKg7 PeZoLX2gEJw9NWq+//bguByC1f5JpQ6TNPcvCUFuXjcftHfn2h0ehVoGLz1lWuXe s/JcPRZw6idPLCXgqU0ikapjNo3+jPEeyBnhgbriRd1H5cYIgjKava6Glu2Kr0Os iRZmwQi5383MT1aNk96bWZnS9DI1TJBn1ucP6NQOYqYBiDQLs1gfn3im9sG4LNd8 7Bb6ZjyIBT0zr555UF6ka0tBjlwpeE3iQvLK/Z33MILrQ50LSnXrG8ZFLWqiB9xT 21xUOXgnvrQLnc5/adiUNR2b95LIqAMi2rFhVStSOq8DvyQXd4ruIdZTX4XaCdNt gtrm8ZORiyVTwAw5ya1OCsnyiCcYer0C4Vd0Mu5DZH9oH1U2XCM= =6vOo -----END PGP SIGNATURE----- --OFr6YL2so5qjQgyO6vj1aS3sQAFcMdUT1--