Date: Mon, 22 Jan 2024 16:23:29 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 276526] if_wg: Add missing bpfdetach() in wg_clone_destroy() Message-ID: <bug-276526-7501-YWwewneiBS@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-276526-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-276526-7501@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=3D276526 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D43be2d7aaf25b719aec8f49aab110c006= 1f1edec commit 43be2d7aaf25b719aec8f49aab110c0061f1edec Author: Aaron LI <aly@aaronly.me> AuthorDate: 2024-01-22 16:18:56 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2024-01-22 16:22:44 +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 MFC after: 3 days sys/dev/wg/if_wg.c | 1 + 1 file changed, 1 insertion(+) --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276526-7501-YWwewneiBS>