From nobody Thu Nov 19 16:59:56 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 4jVl7x3HlGz71RKg for ; Thu, 19 Nov 2026 16:59:57 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jVl7w6kDNz4Hwm for ; Thu, 19 Nov 2026 16:59:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795107596; 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=sb0LtMUgGFivlYmxhhGjnAB2Xxa/HhHg37qHzdmBlmU=; b=LPJtm0sZKLOtvDX4zn6EKz7978vFtf6XZS2se8PALgeVJPtZJCRIV7gKSWfxWM9V4/p2+w 9wG2nmwEsxqz0acJULdBsxDHKbWEhsRHPUytspgJNcruDesiYdRipb23HnNd75q37iz4M2 tqeNPEyRh7cXMMalgfhH0ogjCVEwFS5dMRdHkl/x1FFyJ3DqmO1QJIPZxzmrgSlGOvdoxd fiOAUmab1Fae9baeLoeI4O94o9PmzUwyI2qAVEmKYOd28kVRE6sdUmH6iCzwRprMPD6OrI 7Tw7cCQ5O0HNuUgIREKYq2dpceGkewfN9/9aUgvCN8uOEHtNITTjypZ6tQlO+w== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795107596; b=AaCzmAnu8SUAKTKtAmWx61lp0TXes2rxL3RQxxr3cmRKRcyQ9FrAOoIoZ6ouuXXbjBb72q ItPWWnmz9/XwVeaBlWXPhN7S4eDXIWqxoOiH0eREAntXb+Z4xYe+jHcVWSoOXTwBKwDIQH Beu6rKaatDDnSYwzJkltSUV3nSbabBiBf1hBb3BcPkv146NlBQsZJsp8MReHESJ3LKJ3cJ 6/gshg/vb9PK6j1nWemG+KuS0u9WS5uMdkmTfoZqOtUqBTtb0nEnAGFBfU1LcAnqGR3kxm bQu+sPQwOrNMO8j6AtjQZPTRj0cUAoqoFSFSz+2Sut5/TxOOMxWWtR7FmdOhhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795107596; 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=sb0LtMUgGFivlYmxhhGjnAB2Xxa/HhHg37qHzdmBlmU=; b=yiiJR5DwJCmXUbxhPky+b4OTN60Q9Rzi/WXUoPp1M6cVJqBeqJZy0L0MkxkH71DDJkwxQD c1IwrtWiEmG+nVQmwxjJ0tqll2VZG9VON8kWGGFKJmX1f1riR6kRlE2MxTLovdCEXIsTGd wmoXm2mctb9Yfb39x5FyJjzoQ5h4vy3aVA7FV1jwPSL/CDpUjroz4QW1QBNbPTmRBxZmvN GKCzLI/UZBruiZ2tp2zucaTMnfWR6tF1s5wCi+A47tREpqO6uV0XC2lrf4oqjQPrAZFef3 wwiwjbMstvIQelMEBUCP4Qw7Y3nqLXIzSK+sF0i9le3Dc0YJYR+d7QFaYV84yg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jVl7w5jQ4z18md for ; Thu, 19 Nov 2026 16:59:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 14da9 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Nov 2026 16:59:56 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: e53632189f09 - main - pf: fix sctp normalisation cleanup List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository 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: e53632189f09d7b5c6664fef51cbe4429e4b3243 Auto-Submitted: auto-generated Date: Thu, 19 Nov 2026 16:59:56 +0000 Message-Id: <6aff2b0c.14da9.7b8b97f6@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=e53632189f09d7b5c6664fef51cbe4429e4b3243 commit e53632189f09d7b5c6664fef51cbe4429e4b3243 Author: Kristof Provost AuthorDate: 2026-11-19 13:14:36 +0000 Commit: Kristof Provost CommitDate: 2026-11-19 16:59:22 +0000 pf: fix sctp normalisation cleanup If we fail to allocate the dst scrub structure we should free the src one too, but we passed src rather than src->scrub. Reported by: llm-postcr MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netpfil/pf/pf_norm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/pf/pf_norm.c b/sys/netpfil/pf/pf_norm.c index 4683078acd48..baad40d44c8a 100644 --- a/sys/netpfil/pf/pf_norm.c +++ b/sys/netpfil/pf/pf_norm.c @@ -1611,7 +1611,7 @@ pf_normalize_sctp_init(struct pf_pdesc *pd, struct pf_state_peer *src, dst->scrub = uma_zalloc(V_pf_state_scrub_z, M_ZERO | M_NOWAIT); if (dst->scrub == NULL) { - uma_zfree(V_pf_state_scrub_z, src); + uma_zfree(V_pf_state_scrub_z, src->scrub); return (1); }