OpenBSD cvs log

created 2025-02-07T03:34:45Z
begin 2025-01-25T19:21:40Z
end 2025-01-25T22:06:41Z
path src/sys
commits 1

date 2025-01-25T22:06:41Z
author bluhm
files src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/netinet/tcp_input.c log diff annotate
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@