From nobody Fri Jan 2 18:57:52 2026 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4djXyp0BXnz6M5r0 for ; Fri, 02 Jan 2026 18:58:26 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "prime.gushi.org", Issuer "E7" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djXym36Plz3SvM; Fri, 02 Jan 2026 18:58:24 +0000 (UTC) (envelope-from freebsd@gushi.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gushi.org header.s=prime2014 header.b=W1ZQfRMk; dmarc=pass (policy=none) header.from=gushi.org; spf=pass (mx1.freebsd.org: domain of freebsd@gushi.org designates 2620:137:6000:10::142 as permitted sender) smtp.mailfrom=freebsd@gushi.org Received: from smtpclient.apple ([IPv6:2001:500:6b:200:c000:0:0:75a]) (authenticated bits=0) by prime.gushi.org (8.18.1/8.18.1) with ESMTPSA id 602IwEpY096909 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Jan 2026 18:58:15 GMT (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 602IwEpY096909 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1767380296; bh=/uLPDv8xhQtm4vimLWk6xLLrE2haK+VG+sDknfCg5f4=; h=Subject:From:In-Reply-To:Date:Cc:References:To; z=Subject:=20Re:=20CURRENT:=20kernel=20panic=20in=20IPFW=20while=20 stopping=20jails|From:=20"Dan=20Mahoney=20(ports)"=20|In-Reply-To:=20|Date:=20Fri,=202=20Jan=202026=2012:57:52=20-0600|Cc:=20Alasta ir=20Hogge=20,=0D=0A=20FreeBSD=20User=20,=0D=0A=20Ronald=20Klop=20,=0D =0A=20FreeBSD=20CURRENT=20|References :=20=0D=0A=20<6ed6434fce515fb9dab6 94bb649da95b@riseup.net>=0D=0A=20= 0D=0A=20|To:=20Gle b=20Smirnoff=20; b=W1ZQfRMktmG1gbr4eOzOHJpxGA3I9EzecTdSAMJ6Y2RYPz4z6bWKimxED1IXtK/t5 NmIjSBIwb4JC7I53QlKF8iVHuW36e02O9xr5jt2m4kmZXNBB8MeHGHHGmqsk8ZLEnf jQ2F2h2g0B5uT9efZGimlegmNknBcU4BHdJU3bClkmGuGDkpcwjtDgby4huqSa6qzT hhnj6YBvnT5m8GtNjLMaf9CFp6+Y4SJus05iMJFiqffmi0UHSp0UWFUoqF54TIxKDL abyeZuklvpQEFbRwhuR/XsChe9SD+vqLnPw49dHjYuPL3iMbh38tDrHAWmUxtrNiFC a7DnVqBdHpm1g== X-Authentication-Warning: prime.gushi.org: Host [IPv6:2001:500:6b:200:c000:0:0:75a] claimed to be smtpclient.apple Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.300.41.1.7\)) Subject: Re: CURRENT: kernel panic in IPFW while stopping jails From: "Dan Mahoney (ports)" In-Reply-To: Date: Fri, 2 Jan 2026 12:57:52 -0600 Cc: Alastair Hogge , FreeBSD User , Ronald Klop , FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <39862682-0F6D-4563-A9CE-276CF61556B8@gushi.org> References: <6ed6434fce515fb9dab694bb649da95b@riseup.net> To: Gleb Smirnoff X-Mailer: Apple Mail (2.3864.300.41.1.7) X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[gushi.org:dkim]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gushi.org,none]; MV_CASE(0.50)[]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[gushi.org:s=prime2014]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_HAS_DN(0.00)[]; HAS_XAW(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gushi.org:+] X-Rspamd-Queue-Id: 4djXym36Plz3SvM Glebius Confirmed, this now fixes the issue (which apparently involves = auto-numbered rules and the "log" keyword). At some point, I'll make sure I have the process down to capture a core = dump more easily for you. Welcome to the fun of tracking MAIN :) Thanks for all your quick work. Please do let me know then this change = makes it into git. -Dan > On Jan 1, 2026, at 7:57=E2=80=AFPM, Dan Mahoney (ports) = wrote: >=20 > Building now. Sorry for delay, I've been doing a long cross-country = drive. >=20 > -Dan >=20 >> On Dec 31, 2025, at 12:00=E2=80=AFPM, Gleb Smirnoff = wrote: >>=20 >> On Wed, Dec 31, 2025 at 03:06:38AM +0000, Alastair Hogge wrote: >> A> > I have found the problem, thanks to Alastair for a core file. >> A> >=20 >> A> > The problem affects rules with automatic rule numbers and = logging. >> A> >=20 >> A> > The attached patch should fix the problem, but it is not a final = version. >> A>=20 >> A> Is there a special patch incantation I should be aware of? I have = tried >> A> the patch against both = 8e951583936980909d34a6104ace781541fb62b1[1], and >> A> 4fecc8e3fe9408621429777b1028c9afb83c3925[2], and observed the = following: >> ... >> A> 3 out of 3 hunks failed while patching = sys/netpfil/ipfw/ip_fw_sockopt.c >>=20 >> The only explanation I have is that your email agent has mangled the = patch. >>=20 >> A> > Dan & Alastair, if any of you can confirm that the patch heals = your setup - I >> A> > will appreciate. >> A>=20 >> A> I manually patched in your work, and was able to boot a sync'd >> A> -CURRENT[2], with logging counters re-enabled, there has been no = panics >> A> for ~20 minutes now. >>=20 >> Great! The patch as is isn't final. I will find out something better = after >> the holidays. >>=20 >> --=20 >> Gleb Smirnoff >=20 >=20