aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-05-19 00:09:54 +0000
committerMark Johnston <markj@FreeBSD.org>2026-05-20 19:34:50 +0000
commit4c09834afad02f97f7daeabc3c281784a04880a3 (patch)
treecfa15ea24b5fb7871aab8f59cff0c6f2d698901d
parentf95da272b8b7138008542022af3dc7ead3ff2ce2 (diff)
netmap: Drain selinfo sleepers in nm_os_selinfo_uninit()
Approved by: so Security: FreeBSD-SA-26:19.file Security: CVE-2026-45251
-rw-r--r--sys/dev/netmap/netmap_freebsd.c1
1 files changed, 1 insertions, 0 deletions
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 */