OpenBSD cvs log

created 2024-01-18T22:47:47Z
begin 2023-12-18T00:00:00Z
end 2023-12-19T00:00:00Z
path src/sys
commits 2

date 2023-12-18T13:11:20Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
src/sys/netinet/in_pcb.h log diff annotate
src/sys/sys/protosw.h log diff annotate
message Run bind(2) system call in parallel.

For protocols that care about locking, use the shared net lock to
call sobind(). Use the per socket rwlock together with shared net
lock. This affects protocols UDP, raw IP, and divert. Move the
inpcb mutex locking into soreceive(), it is only used there. Add
a comment to describe the current inmplementation of inpcb locking.

OK mvs@ sashan@

date 2023-12-18T13:30:44Z
author bluhm
files src/sys/netinet/if_ether.c log diff annotate
message Fix race between ifconfig destroy and ARP timer.

After if_detach() has called if_remove(), if_get() will return NULL.
Before if_detach() grabs the net lock, ARP timer can still run. In
this case arptfree() should just return, instead of triggering an
assertion because ifp is NULL. The ARP route will be deleted later
when in_ifdetach() calls in_purgeaddr().

OK kn@ mvs@ claudio@