From nobody Sat Aug 8 09:07:23 2026 X-Original-To: dev-commits-src-all@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 4hHFXK42mdz6nLDr for ; Sat, 08 Aug 2026 09:07:29 +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 4hHFXJ4jY3z44l3 for ; Sat, 08 Aug 2026 09:07:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786180048; 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=H8uw3SRgOIfkQT7ni7pzChz+OJ0TcdYi+GYX1dDTYo1ERvxqv0PW56YIF/eyD4O2I7OWKq U2nM3b1XG9JJww1dm+djGgNQeZcmKihkaak+LC5+ErkE9hDW2OewEnXHemSTYXyI7Xntdr 1zIJ16PDHkEw4gCS4Es6HwlYajUgJD+KCHFMwqd41TYLzo3epLHO8gpfBs80ATon+79q7X RMAaiRhTqf6NdTHG2POEX/+GGoPaIZi6D1ChpuH53I8RVZca2itnXx6Hw7x9lI5TUXv1ef L8oI/w4Xp08Z9aMW62+OiHLQs6o9fYR8ZwmqiVVDPNvmMmISwLT4+7FGr558hQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786180048; a=rsa-sha256; cv=none; b=KISxe6VV66VSM2LUvUke/QPgSXLGn4WuPC8r7W/ZdoZPFaHPSPv5JFQOVLSdwwZPt+X1k/ XiUPr8c23GynoMDUzG8pgoB5ykFLYMGYhwzj7LAsKgT51i9A5yNw2zJWcWlufPi7aqLHBg XYj1qfZOJbOXAs8W7j/G+NkqLLv9IEUGVZlMqXInB59SEj2kdVLj7D0iui9XCPTG0WkoJW L9LAeFOg9fkP6j3YJ6e1Gdwtd3Imm8i15LFZkgz0t0JxftfXbKd9jw2QaNix143j4xv9Lb Ljh1QpmTKGlb6+qq16y6p4+cWxUcWZ1Qro5tpKCSfZop3AbUV6Gj1M09UiAEGQ== 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=1786180048; 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=r5x/FxLi4XbhwdxED/E9Sxr15f8FLOt5ANCnpy/98H/sJOUMnp8rN04zDmwU05qXnEa/3w +Zz+R8h/yOHRcHZJ+G2ytEdEJRIoDDpbcfdMHmlen2gD7cmbMbsBsveGPqYZMg/+AvbKPl k4xk/HF0ih6UqpjJiPuIq5awezW6VJWGoeM9pGOvrZTTtm7LT4V7AsPuLnAr/7N2Ne3Nyf rIUfF/jf/uLA4DKiC3aTK6YncUGAfCZwafCDl/VdHtyIrrOzuONVofO6ow00fwJtGPBJkG BM+KZtmTTuhZwe8X2QJCosfdoMyFNjadXITQDdKgUa+5jhhQSb1dJGS6ZmTkEg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hHFXJ2wkPzXjT for ; Sat, 08 Aug 2026 09:07:28 +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 all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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++) {