From nobody Thu Jul 9 16:10:04 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 4gx0Kn0mJQz6kRh4 for ; Thu, 09 Jul 2026 16:10:05 +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 4gx0Km6c69z3TcC for ; Thu, 09 Jul 2026 16:10:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783613405; 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=ckikI9ODvpX/p4A+72NFhnWL4GZdU45/QxddTZSyInQ=; b=JsGzb+jtLytnOXWZ/78Enk6pjLZw5qBaOAMi9MuIC0/jddFxxSFH5Rdy4NGnpTkyWvClpO HiUNJ0fSHV0Db8qS+pb2cb3nUN30XeQI1ZWd7Qmqzmbt8c9Odvv7y2i990OoM+zSgGAqKx ALxakEfvXSQ/31UlvMX73qPxO9UG77UAlNwomhKGqKZC1MDV1yclSY0Z31elkESGLupCU+ jKcYlvfNHZXl2HGRdgLdw2C9P4aF+gN7XBzvumNy6JjTe+LVWPzLtkma9q1NFfcnvayxEb OgrA/h8CeezY4YEYjSKQsdnYMA1Ff+gxTfsl9V70zv/kUXiihYfY9I2sRaUxXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783613405; a=rsa-sha256; cv=none; b=Dk7GrDdbitH8X+mbzv7pg9RTRjXCOJsC8D0qvr8mkYx1ACt7CrQ0IhWM2OIy+A8lud96bE KyPgi7ZQE3HVZZMZ0xjA/tI5vDtPNzSbMyjo7nOjtD+OF6Mgocl9rK83xS9pTEO6C6ZQLC 8Utq5+5rNZgZhy32DOHlc98+os4/AkcDcQW03OO/SaObfTe6M794u+PLa3MmUzgFShq9Be KITcP9WG8KJdi9y/VPm3HEdhux/wiJS3xd1UNz5l52tvDZ7FX0H4QJy8L+UzGqc1w1lZ0A MR8DcUohmsbbdQL11cgbM94YxJt2ImrpZRZ3PC1NO6cp5LvPaM5YPY3Zq/9gUQ== 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=1783613405; 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=ckikI9ODvpX/p4A+72NFhnWL4GZdU45/QxddTZSyInQ=; b=n/yJokDph50fsCWJLLTaGfGqEmQIWLcXIHz+mU2Luza2YNaYMdjHHj94sQxOJOD3WG4DBs BRBl0W74uZWaGGLRYDz/ptvMmyhoOwieatjIIavUtsyGeErfyjp2OfNNQKkvbTxWZPx9t9 VP9gdqdw7RVhoVe75/zarGFXcEbG5NQgAhq5cUChJ8gh0UlWGUcpIX9sJykyn2d7R39tfN tUWZ0mPVylCcm7Tc5NltJdNnbMTsjG9o/AkMdfo9L1ZdrAzoq5sJsKvK9W0UZpewMwce6+ EuVOzLuxO1DoI/zBFpwdq0lA1+XDrghU2Br8sq0lql/RUXk1jlkqM013xsH5eA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gx0Km5FqYz113 for ; Thu, 09 Jul 2026 16:10:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3811d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 09 Jul 2026 16:10:04 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: de8a68da8cee - stable/15 - ipsec: Free entire mbuf chain on failure 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: de8a68da8ceea284c9b6f07690d285b0931f98a3 Auto-Submitted: auto-generated Date: Thu, 09 Jul 2026 16:10:04 +0000 Message-Id: <6a4fc7dc.3811d.7eda3ec8@gitrepo.freebsd.org> The branch stable/15 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=de8a68da8ceea284c9b6f07690d285b0931f98a3 commit de8a68da8ceea284c9b6f07690d285b0931f98a3 Author: Ed Maste AuthorDate: 2026-06-05 20:51:48 +0000 Commit: Ed Maste CommitDate: 2026-07-09 16:09:35 +0000 ipsec: Free entire mbuf chain on failure Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57475 (cherry picked from commit 85195c0c7f8a2926f0ba131178d9231bc33c81b5) --- sys/netipsec/ipsec_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netipsec/ipsec_output.c b/sys/netipsec/ipsec_output.c index b394ff81d9c6..18a25c0feeff 100644 --- a/sys/netipsec/ipsec_output.c +++ b/sys/netipsec/ipsec_output.c @@ -462,7 +462,7 @@ ipsec4_common_output(struct ifnet *ifp, struct mbuf *m, struct inpcb *inp, if (((m->m_flags & M_PKTHDR) != 0 && m->m_pkthdr.len < sizeof(*ip)) || ((m->m_flags & M_PKTHDR) == 0 && m->m_len < sizeof(*ip))) { - m_free(m); + m_freem(m); return (EACCES); } if (ip1 != NULL) {