Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2022 09:04:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        pf@FreeBSD.org
Subject:   [Bug 257218] pfi_ifnet leak on interface removal
Message-ID:  <bug-257218-16861-X9joA41KmD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257218-16861@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257218-16861@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257218

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D5f7454d8904ca68697dda569f71af6ef5=
ec178c7

commit 5f7454d8904ca68697dda569f71af6ef5ec178c7
Author:     Nick Reilly <nreilly@blackberry.com>
AuthorDate: 2022-11-30 14:19:44 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-12-28 04:56:08 +0000

    pf: fix pfi_ifnet leak on interface removal

    The detach of the interface and group were leaving pfi_ifnet memory
    behind. Check if the kif still has references, and clean it up if it
    doesn't

    On interface detach, the group deletion was notified first and then a
    change notification was sent. This would recreate the group in the kif
    layer. Reorder the change to before the delete.

    PR:             257218
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D37569

    (cherry picked from commit bfeef0d32a0036bf6bec93a439e0466efe6f4482)

 sys/net/if.c           |  3 +--
 sys/netpfil/pf/pf_if.c | 23 ++++++++++++++++++-----
 2 files changed, 19 insertions(+), 7 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257218-16861-X9joA41KmD>