CVSROOT:        /cvs
Module name:    src
Changes by:     v...@cvs.openbsd.org    2019/12/31 07:09:56

Modified files:
        sys/kern       : kern_event.c 

Log message:
Fix some races in kqueue_register().

Mark knote with KN_PROCESSING before calling .f_event() in
kqueue_register(). This prevents other threads from freeing the knote
too early.

Rearrange memory allocations so that there is no sleeping point between
the knote lookup and insert. Also take into account that multiple
threads can attempt expanding the kqueue at the same time.

Input and OK mpi@
OK anton@

Reply via email to