OpenBSD cvs log

created 2024-12-22T02:39:25Z
begin 2024-12-19T00:00:00Z
end 2024-12-20T00:00:00Z
path src/sys
commits 3

date 2024-12-19T18:02:47Z
author patrick
files src/sys/dev/fdt/dwmmc.c log diff annotate
message Implement regulator-based signal voltage switch support in dwmmc(4).
This should not have any functional difference on existing setups, as
so far any time this function would have been used, it would have led
to a kernel panic as it's been a NULL pointer.

This fixes bootup on the MNT Reform2 with the RK3588 module.

ok kettenis@

date 2024-12-19T22:10:35Z
author mvs
files src/sys/netinet/in_proto.c log diff annotate
src/sys/netinet/ip_carp.c log diff annotate
src/sys/netinet6/in6_proto.c log diff annotate
message Unlock carp_sysctl().

This is the statistics implemented with per-CPU counters and the
`carp_opts' array of atomically accessed integers.

Replace the `carp_opts' array with individual `carpctl_*' variables
and use sysctl_bounded_arr() instead of sysctl_int(). Keep current
`carpctl_*' variables bounds as is, they would be adjusted with
separate diff.

ok bluhm

date 2024-12-19T22:11:35Z
author mvs
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/netinet/tcp_input.c log diff annotate
src/sys/netinet/tcp_output.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
message Use per-sockbuf mutex(9) to protect `so_rcv' buffer of tcp(4) sockets.

Only unlock soreceive() path, somove() path still locked exclusively. Also
exclusive socket lock will be taken in the soreceive() path each time
before pru_rcvd() call.

Note, both socket and `sb_mtx' locks are held while SS_CANTRCVMORE
modified, so socket lock is enough to check it in the protocol input
path.

ok bluhm