From nobody Sat Aug 8 09:07:23 2026 X-Original-To: dev-commits-src-main@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 4hHFXC57xHz6nLQM for ; Sat, 08 Aug 2026 09:07:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hHFXC4Cnpz44cG for ; Sat, 08 Aug 2026 09:07:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786180043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qSYPM2yhN8va24wY0hzS0IGoR16emggpGe+blm308oE=; b=ydXN0xT3m1PdGA0O+upf3yok3VHXBkP8EZOMVPW+HzNmCdVJJtMdKbQ5cAR46uds4SeB0b Wf+m0FtnDWDZDJdXmEE1otmoXQjjsGT7TGDoY0OrR/n/YzU+3YZvL586tBriO0LhxkohjA B6kJdzkS0qFJxE2PUdmSDKHXrfUioR4Jl74HxV7miQDv385S4QBYAIDU8sHFfKdIbIit9i 0u1dud/LHuIcwGcVLhu0/K7nul0coKtNBYN1YqRwzgCNxCtTWaC9kM0jjxijGM+Y+TnLU/ K7KHkXdnV9i8kscLKTB0Pg78JQd0UkOJmERvSCc59QnB51O5YhU0MG6bVKFoTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786180043; a=rsa-sha256; cv=none; b=rQ+kucbJfmooF27qLuxKPEFGPi+hA/ZcQ+QWdCVuXX5VElDXmcMJNC0MjZGLU5bhTXV3rh YcbIHeApspLtxBbIvNtZYyANGg2JSvFu4GOT0jSM08D3c8g/07Fxug6Y2X/uQvN/S3KNCt jZWeHKGSjjNcI1cgFPo9JW2u/tX06gjUE7JGZyjRho5HlRSyBWUqtkpQCwkwc5Jj7nPWH/ E5e+WWbeRpZJ3vLO0lmSlg6p3Ob+fFoaeGTk2UnHsVHC1yEd3qwP+XraJNZoloyt8sV/0F 4Ok/+4hPZtCZFnlg+/K9yhRbJ0pOKiIE1qzT3XimH9YeEf1dQJQt2t1EvEFMxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786180043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qSYPM2yhN8va24wY0hzS0IGoR16emggpGe+blm308oE=; b=KQ2Y33oNlfe6zGzKyCP5VdfbkO+t9mMLnMbyNblqu8arN9LWOEdPcno/oHOYfxol8A1hg7 CzkKBlF+uivLx4d/RdTzMRcqIgxUY9EhmsfEdaNVF7lbcHJPXQ6KY7ZgfzCS9Gi4QiuZT2 qImDmHfYKW4el0XRjmpLpAKVDVd6wxMul5sxmJypGN6ZLhbiITA6IlpCPluPQdF7Bou/Cz VUkEZjQraKHrpF0GjWXxyR+6gTchMuZySCEK14qvfARpdPCGPzrx54HpLtTyP/xxmXcsls zujnuKp/wQEtPXBxTgmJOQX9vKrnUaPrj69Ic6w1Tb0dqQyzN7B+6FmjFYHeiw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hHFXC2xltzXXP for ; Sat, 08 Aug 2026 09:07:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e401 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 08 Aug 2026 09:07:23 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 8ea4e92945d3 - main - net: don't panic on ifconfig pfsync0 mtu 9000 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ea4e92945d312bd5d19714e070f695230037660 Auto-Submitted: auto-generated Date: Sat, 08 Aug 2026 09:07:23 +0000 Message-Id: <6a76f1cb.1e401.3c91c91a@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=8ea4e92945d312bd5d19714e070f695230037660 commit 8ea4e92945d312bd5d19714e070f695230037660 Author: Kristof Provost AuthorDate: 2026-08-07 12:39:59 +0000 Commit: Kristof Provost CommitDate: 2026-08-08 09:02:34 +0000 net: don't panic on ifconfig pfsync0 mtu 9000 pfsync interfaces do not have ifp->if_inet6 set, so when we update the MTU for those interfaces we panicked. Add an explicit check for this. This should be temporary, until pfsync is no longer a struct ifnet (as we've already done for pflog). Reviewed by: glebius Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D58701 --- sys/net/route.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/net/route.c b/sys/net/route.c index cbe84ba5fba9..2034c298d273 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -516,7 +516,9 @@ rt_updatemtu(struct ifnet *ifp) #ifdef INET6 uint32_t in6mtu; - in6mtu = in6_ifmtu(ifp); + /* For IFT_PFSYNC */ + if (ifp->if_inet6 != NULL) + in6mtu = in6_ifmtu(ifp); #endif for (u_int j = 0; j < rt_numfibs; j++) {