OpenBSD cvs log

created 2025-02-16T05:00:10Z
begin 2025-02-13T00:00:00Z
end 2025-02-14T00:00:00Z
path src/sys
commits 4

date 2025-02-13T12:39:15Z
author bluhm
files src/sys/kern/sys_socket.c log diff annotate
message Remove socket lock from soo_ioctl(FIOASYNC).

The socket buffer flags are protected by socket buffer mutex.
Neither socket lock nor net lock are needed anymore.

OK mvs@

date 2025-02-13T14:44:33Z
author mvs
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/sys/socketvar.h log diff annotate
message Get rid of unused `so' argument in sbrelease(). No functional changes.

ok bluhm

date 2025-02-13T19:54:44Z
author miod
files src/sys/dev/acpi/pckbc_acpi.c log diff annotate
message Remove leftover code from a previous iteration of this and which should have
been removed before committing this in the first place.

date 2025-02-13T21:01:34Z
author bluhm
files src/sys/net/if_gre.c log diff annotate
src/sys/net/route.c log diff annotate
src/sys/net/route.h log diff annotate
src/sys/net/rtsock.c log diff annotate
src/sys/netinet/if_ether.c log diff annotate
src/sys/netinet6/nd6.c log diff annotate
message Fix route entry race when accessing rt_gwroute.

Kassert in rt_getll() was triggered as rt_gwroute could be NULL.
Problem was introduced by shared netlock around tcp_timer_rexmt().
PMTU discovery calls rtrequest_delete() which was missing proper
locking around rt_gwroute.
As rt_getll() is called by ARP and ND6 resolve in the hot path, use
SMR to provide the pointer to rt_gwroute lockless. Reference count
of the returned route is incremented, caller has to free it.
Modifying rt_gwroute or rt_cachecnt in rt_putgwroute() is protected
by per route lock.

OK mvs@