From nobody Fri Oct 06 16:25:29 2023 X-Original-To: bugs@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 4S2DLL0Rqxz4x0yq for ; Fri, 6 Oct 2023 16:25:30 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S2DLK5gVpz4MB0 for ; Fri, 6 Oct 2023 16:25:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696609529; a=rsa-sha256; cv=none; b=vx5gz3VoMaQWIkFaO00wAlr+1uG8VPeEdW1qxGQ0VOxuqjdzq5FmFtzF+nTXcfvsIqG6On 3KnQw93Rj/ou08tQChDwSiX0wHKZ4JyQXj2mv3ZKxJtQREdvrXBb0G1z0fWr0MTEj43NAv PgVmgniC3lGowFSV4jQq/gKf9hHS8Yfdj8fvlF2gS5Rz4qirXzvwMBU65SAi6K5nB0oBmM PebmK+1szcnBXj76FLrODrUyRJv2yg+cmDreskrIikCl5N3+blSXpAllZmZjASLYkz3NGj Aq/AbzS+9U7HcWSiYvYoeYWz//BDDsDV6xoE3EEVzKiF+uroVJ62AOFaZlwXnA== 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=1696609529; 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=p6bWnlrp6DCPsOiTPeqmmlmr+9M69Hpv+PiEPNYiZro=; b=PQbb3brJw/ZsMT+3j+pRHrFB0HHdT3KFwAmRAawNXvwq2K7w0ejNHT5gnW+C1ZchU0N881 n6a464Rwhf+0K9YnGp0QOPURw9IMbOZ/GW9EP7guTqziogzQJ81IP0cWIvDpy5I7O5AhzN MfPUCP1BsbcKi9YTNGErRDlmF9LDJr4FmIvE3XwVM9yC7IWy0kAnc1ECRk47TwjlnodQQm Te3lXUBt8PA8oOhVvuc3mz1mDI8eqS0lbSzXG/2zzIv3P6DtNEwaldfzSv7TghLHm5DbpA pELdmjvtSA43INHmD0SvbgpY3JH5nBDeuP6Ilh1ALjI9Z8N0D3aB6eToTBvt/w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S2DLK4nhzzvvb for ; Fri, 6 Oct 2023 16:25:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 396GPT7W040666 for ; Fri, 6 Oct 2023 16:25:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 396GPTGb040665 for bugs@FreeBSD.org; Fri, 6 Oct 2023 16:25:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274310] pf leaks memory Date: Fri, 06 Oct 2023 16:25:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: thj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274310 Bug ID: 274310 Summary: pf leaks memory Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: thj@FreeBSD.org Created attachment 245467 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D245467&action= =3Dedit Script to run pf tests and check for module memory leaks pf can leak memory, this can be seen by running the test suite and unloading the pf kernel mode. With the attached script the following pf tests trigger memory leaks: - sys/netpfil/pf/anchor:pr183198=20 - sys/netpfil/pf/anchor:nested_anchor=20 - sys/netpfil/pf/anchor:wildcard=20 - sys/netpfil/pf/nat:nested_anchor=20 - sys/netpfil/pf/pass_block:nested_inline=20 - sys/netpfil/pf/rules_counter:get_clear=20 - sys/netpfil/pf/table:anchor --=20 You are receiving this mail because: You are the assignee for the bug.=