[Bug 276526] if_wg: Add missing bpfdetach() in wg_clone_destroy()

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276526

--- Comment #3 from [email protected] ---
A commit in branch stable/13 references this bug:

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

commit 3deeb70f7f70e5fbabde85efc7ea603cde915f6a
Author:     Aaron LI <[email protected]>
AuthorDate: 2024-01-22 16:18:56 +0000
Commit:     Kyle Evans <[email protected]>
CommitDate: 2024-01-30 05:38:01 +0000

    wg: detach bpf upon destroy as well

    bpfattach() is called in wg_clone_create(), but the bpfdetach() is
    missing from wg_close_destroy().  Add the missing bpfdetach() to avoid
    leaking both the associated bpf bits as well as the ifnet that bpf will
    hold a reference to.

    PR:             276526

    (cherry picked from commit 43be2d7aaf25b719aec8f49aab110c0061f1edec)

 sys/dev/wg/if_wg.c | 1 +
 1 file changed, 1 insertion(+)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.