Do not grab the socket lock in doaccept() twice. Pass NOTE_SUBMIT
authorbluhm <bluhm@openbsd.org>
Mon, 3 Jul 2017 23:05:21 +0000 (23:05 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 3 Jul 2017 23:05:21 +0000 (23:05 +0000)
commit879c51079d0c11d6b8c1e4847af11e498717740d
tree806df07f7d51ea09ad0829333c00506c2b80f35b
parent24a428033320b52f022fd6c36aa7b2d7f88a1605
Do not grab the socket lock in doaccept() twice.  Pass NOTE_SUBMIT
to KNOTE() as we are already holding the lock.  Fixes "panic:
rw_enter: netlock locking against myself" reported by Gregor Best
and reproduced with src/regress/lib/libtls/gotls.
OK millert@
sys/kern/uipc_syscalls.c