The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4c09834afad02f97f7daeabc3c281784a04880a3
commit 4c09834afad02f97f7daeabc3c281784a04880a3 Author: Mark Johnston <[email protected]> AuthorDate: 2026-05-19 00:09:54 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-05-20 19:34:50 +0000 netmap: Drain selinfo sleepers in nm_os_selinfo_uninit() Approved by: so Security: FreeBSD-SA-26:19.file Security: CVE-2026-45251 --- sys/dev/netmap/netmap_freebsd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/netmap/netmap_freebsd.c b/sys/dev/netmap/netmap_freebsd.c index 9fb4370129f3..2241bfc970a6 100644 --- a/sys/dev/netmap/netmap_freebsd.c +++ b/sys/dev/netmap/netmap_freebsd.c @@ -119,6 +119,7 @@ nm_os_selinfo_uninit(NM_SELINFO_T *si) taskqueue_drain(si->ntfytq, &si->ntfytask); taskqueue_free(si->ntfytq); si->ntfytq = NULL; + seldrain(&si->si); knlist_delete(&si->si.si_note, curthread, /*islocked=*/0); knlist_destroy(&si->si.si_note); /* now we don't need the mutex anymore */
