[Bug 291005] knote_fork() NOTE_TRACK path calls kn_fop->f_event() without knlist lock

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 14 Nov 2025 17:12:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291005

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |markj@FreeBSD.org

--- Comment #1 from Mark Johnston <markj@FreeBSD.org> ---
I think this is mostly harmless, but yes, we might as well acquire the proc
lock (i.e., knlist lock) earlier.  It only needs to be dropped while calling
kqueue_register(), everything after that can be locked.

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