OpenBSD cvs log

created 2020-01-16T13:48:06Z
begin 2019-12-31T13:48:32Z
end 2019-12-31T14:09:56Z
path src/sys
commits 1

date 2019-12-31T14:09:56Z
author visa
files src/sys/kern/kern_event.c log diff annotate
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@