From owner-freebsd-net@freebsd.org Tue Nov 3 16:39:54 2015 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 20C5FA24474 for ; Tue, 3 Nov 2015 16:39:54 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DF20717ED for ; Tue, 3 Nov 2015 16:39:53 +0000 (UTC) (envelope-from david@catwhisker.org) Received: by mailman.ysv.freebsd.org (Postfix) id D9107A24471; Tue, 3 Nov 2015 16:39:53 +0000 (UTC) Delivered-To: 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 BE154A2446B; Tue, 3 Nov 2015 16:39:53 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8A25417E8; Tue, 3 Nov 2015 16:39:53 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id tA3Gdqki029110; Tue, 3 Nov 2015 08:39:52 -0800 (PST) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id tA3GdqFK029109; Tue, 3 Nov 2015 08:39:52 -0800 (PST) (envelope-from david) Date: Tue, 3 Nov 2015 08:39:52 -0800 From: David Wolfskill To: "Alexander V. Chernikov" Cc: "ipfw@freebsd.org" , "current@freebsd.org" , "net@freebsd.org" Subject: Re: panic: refcount inconsistency: found: 0 total: 1 Message-ID: <20151103163952.GP21127@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , "Alexander V. Chernikov" , "ipfw@freebsd.org" , "current@freebsd.org" , "net@freebsd.org" References: <20151103140436.GJ21127@albert.catwhisker.org> <693401446563735@web30h.yandex.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r/w8vo2lxBmCPGjQ" Content-Disposition: inline In-Reply-To: <693401446563735@web30h.yandex.ru> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2015 16:39:54 -0000 --r/w8vo2lxBmCPGjQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 03, 2015 at 06:15:35PM +0300, Alexander V. Chernikov wrote: > ... > > I tried booting it, and during the transition to multi-user mode, > > once ipfw was being invoked, I got the above-cited panic. Circumvention > > was to leave it disconnected from a network (turn off the WiFi > > switch, in my case), so we don't get a chance to use the network. > It is most probably related with r290334. Would you mind reverting it and= checking if ipfw works correctly ? > .... OK; after: Script started on Tue Nov 3 08:22:37 2015 g1-252(10.2-S)[1] (cd /S4/usr/src/ && svn diff -c 290334 >/tmp/r290334)^M g1-252(10.2-S)[2] (cd /S4/usr/src/ && svn patch --reverse-diff /tmp/r290334= )^M U sys/netpfil/ipfw/ip_fw_sockopt.c U sys/netpfil/ipfw/ip_fw_table.c g1-252(10.2-S)[3] exit followed by a "make buildkernel", I now have: FreeBSD localhost 11.0-CURRENT FreeBSD 11.0-CURRENT #232 r290334M/290334:1= 100086: Tue Nov 3 08:27:20 PST 2015 root@localhost:/common/S4/obj/usr/= src/sys/CANARY amd64 and localhost(11.0-C)[3] ifconfig wlan0=20 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 00:24:d6:7a:03:ce inet 198.135.49.33 netmask 0xfffffc00 broadcast 198.135.51.255=20 =2E.. as I type, and IPFW is isn use at a *guess*, we'll need a bit more effort to keep "found" and "ci->object_opcodes" in sync, at least by the time the KASSERT on src/sys/netpfil/ipfw/ip_fw_table.c:3395 looks at the values. Thanks! 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. --r/w8vo2lxBmCPGjQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJWOONYXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7VRIP/3i6WSUOZHXNnuYmo3Rj5PFK j9X1xP4PRIEYk5nKrrevEEvm7P4BfQ3snhK5dBPXbHwweIjYnzk0wdet38MKKX1u FSK+gJ0/asN0F2kCmudkLyZ3Es63ZdMMEKNRTrVyJQuVejSLLXCPfUJkEs9MSj/K H/TrqhRFMX3yw6PDuN7mumqVeiawylTKz3Cb5qFNcrJSRiY+1WxQRNQ5QJQCGSXx zo3ecXqmzjMm0eijrYV7TyIJ0HJKKa4vIsWu0wpejoBhBP8rJLyXwY26QZxS9WBE jvCApt2zkutYPN2uoq7w6V+Fsk6lN/t5TbQvtneUI2qMHjprRhfJ531i95RCYd98 wWaLe35WUXAA4OdE+zocscd8JF4+2Gn3Ug/Io5c+1IjKY1Tpgm2euQyWy+VD4DJ2 CzlCpwm+HN9REhK1iHfvXeEqT6LEQWd9KS14/AbUzXmXtyq9e/1OAWz/kPPERDQU 6mwSFGeoC+DDGrHyD+OQEbqLOeq+wWPy0dql8n53Y1CDuG/wthTjsxHvnF/4uANw Mv3P8JRVUVHLKscqCIAjqgW9W2wY+VaTG8LUS2cx0drEAlmoamXs+oD+P54HP4tk VDXMIYSJ8UQ3N3KXRTlkMFcGKiQQxososZaTpQiuhG9mEIXQN+WvnzmggoaPo2PU LqUrt3IGlvNmx80daG7F =Tmh8 -----END PGP SIGNATURE----- --r/w8vo2lxBmCPGjQ--