Modifying a knote must be done with the corresponding lock held. Assert
authormpi <mpi@openbsd.org>
Sat, 24 Jul 2021 09:16:51 +0000 (09:16 +0000)
committermpi <mpi@openbsd.org>
Sat, 24 Jul 2021 09:16:51 +0000 (09:16 +0000)
commit7ab9343735febf44ccd0034b35ab25fee4d5c37e
tree7f411ecf2a42dd4d640d8f49b30f73c517a962c3
parentf016eb6377a451cc975f0ec2341063807e1e2c31
Modifying a knote must be done with the corresponding lock held.  Assert
that the KERNEL_LOCK() is held unless the filter is marked as MPSAFE.

Should help finding missing locks when unlocking various filters.

ok visa@
sys/kern/kern_event.c