From nobody Sat Jun 6 12:32:49 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 4gXd4L2CtCz6gdGw for ; Sat, 06 Jun 2026 12:32:50 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gXd4K6k13z3H8n for ; Sat, 06 Jun 2026 12:32:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780749169; 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=spjYYDoCAgaDe2QVz0O4oBWiwrGRmGjbSF+vGSwcVQk=; b=mdUoaUqXVrSzGJSH+u1A8jlH9Z/p0Ub57Cr7sBOoQsQklna94l0zAQZX632NL8wHgEIZBW Eju7KNq3tAIEPr9YeBE1daM2liUQrHkpxTn3jle7MOoVPZqC7BR8IzssTnC56/9GOLA757 3GGe8Xd5W+mG2zjolaMgm8oxkoHbtRiUwy8BEORp7OqEFN6Y+gFOGaowuslSnJKY0UVyzT Sbs+wBFWB/gfGQlkAUsjLoNHiP9yEmI5x1VVWTRZW8gKNVktUi6oz0JFQMHGcMa28/tW3W sQ378pQrkjZiha5cuRgs9bguHNe7yS/0s9cneQoGpYQ8TTFRxcmLmBS2aX3o4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780749169; a=rsa-sha256; cv=none; b=jQWocDwdklRa0Soc0xG/3L30Jbyf8By1BaaFxrYN+YAxComx6tdbvInN65amam7B4p53sV hwMzjySsE2G7plEVbT7ahUCN54JG6+QfPZnnb8ETWqC1pIAxZrY7yc69u31W5/iy17hUVE Wep9gfioOHHABBsdyr7ZgMNGOgrtG8QWFNlZYa+d16UxZUcN5lwxQ9caSiARJPK4UEV2tD oLqNTzTLUZYxaQaqqqgRjCvY4i8UYUYK/GmkM5JKzms0Lq/RoTsK43soS86TYFWiBUi/ez nsYyyvTFJBs0ab7Mg9CvYj1dEVpSPcheNltInI8dHOHYfqJJE29dLYFU3hxNhA== 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=1780749169; 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=spjYYDoCAgaDe2QVz0O4oBWiwrGRmGjbSF+vGSwcVQk=; b=aD6lWJtSD4SujdnOJkJQust/ZZ/pYNgCz5pya74X03i5WlKm9WMVxJRK9TMXDtfYB8utU6 3STKhNYT3HlBzApQXfq6vJg0TwYTxIh4M/OFXQpzPDZofdDqhnyi9ReGfS2lU5OlRIkwJ4 /s7S0q8DSdhLF6+Q3DmHxUMBDcscvrggXcLu8Z7U/kmyrkQPFLHDIiMVkeKQicndX52ZUG f00IVFazW0SqVnOKjIOtmRjkHUIPURPJP0B0819DIkVW9gaarjakd8KlHM8trZI71P2YCB pkJpDgIDtaxGxS4ZnzH3/x08sOWZ7ABPGkJ5qkvnlnkp6tR+NkpJXbmJTE8F2Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gXd4K6K7VzrH for ; Sat, 06 Jun 2026 12:32:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 27f47 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 06 Jun 2026 12:32:49 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 5a7f41e94b6d - main - if_stf: Free entire mbuf chain on failure 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5a7f41e94b6d47e60e5d76dfb3a61ee2746700ca Auto-Submitted: auto-generated Date: Sat, 06 Jun 2026 12:32:49 +0000 Message-Id: <6a241371.27f47.3ab54ee6@gitrepo.freebsd.org> The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=5a7f41e94b6d47e60e5d76dfb3a61ee2746700ca commit 5a7f41e94b6d47e60e5d76dfb3a61ee2746700ca Author: Ed Maste AuthorDate: 2026-06-05 20:56:51 +0000 Commit: Ed Maste CommitDate: 2026-06-06 12:32:40 +0000 if_stf: Free entire mbuf chain on failure Reported by: Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li, and Ke Xu from Tsinghua University using GLM-5.1 from Z.ai Reviewed by: markj, bz, kp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57476 --- sys/net/if_stf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index c6eea784e158..e35866e4ed99 100644 --- a/sys/net/if_stf.c +++ b/sys/net/if_stf.c @@ -801,13 +801,13 @@ in_stf_input(struct mbuf *m, int off, int proto, void *arg) */ nh = fib6_lookup(sc->sc_fibnum, &ip6->ip6_dst, 0, 0, 0); if (nh == NULL) { - m_free(m); + m_freem(m); SDT_PROBE2(if_stf, , stf_input, out, IPPROTO_DONE, __LINE__); return (IPPROTO_DONE); } if ((nh->nh_ifp == ifp) && (!IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &nh->gw6_sa.sin6_addr))) { - m_free(m); + m_freem(m); SDT_PROBE2(if_stf, , stf_input, out, IPPROTO_DONE, __LINE__); return (IPPROTO_DONE); }