CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2025/01/25 15:06:41
Modified files: sys/kern : uipc_socket2.c uipc_usrreq.c sys/netinet : tcp_input.c Log message: Keep socket lock in sonewconn() for new connection. For TCP input unlocking we need a consistent lock of the newly created socket. Instead of releasing the lock in sonewconn() and grabbing it again later, it is better that sonewconn() returns a locked socket. For now only change syn_cache_get() which calls in_pcbsounlock_rele() at the end. Following diffs will push the unlock into tcp_input(). OK mvs@