OpenBSD cvs log

created 2024-12-29T02:51:52Z
begin 2024-12-26T00:00:00Z
end 2024-12-27T00:00:00Z
path src/sys
commits 4

date 2024-12-26T02:46:38Z
author krw
files src/sys/kern/subr_hibernate.c log diff annotate
message Make hibernate_write_rle() return -1 on i/o error, not the error number. The
return value was always treated as the number of memory pages to skip.

Tweak the invoking logic to abandon the hibernation if -1 is returned.

ok mglocker@ jmatthew@

date 2024-12-26T10:15:27Z
author bluhm
files src/sys/net/pf.c log diff annotate
src/sys/net/pf_syncookies.c log diff annotate
src/sys/net/pfvar.h log diff annotate
src/sys/netinet/tcp_subr.c log diff annotate
src/sys/netinet/tcp_var.h log diff annotate
message Make access to tcp_mssdflt atomic.

To further unlock TCP sysctl, we need atomic access to tcp_mssdflt.
pf(4) is reading the value multiple times. Better read it once and
pass mssdflt down the call stack.
In pf_calc_mss() was a potential integer underflow. Use the signed
variant imax(9) and imin(9) like it has been fixed it in TCP stack.

OK mvs@

date 2024-12-26T10:24:57Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/netinet/in_proto.c log diff annotate
src/sys/netinet6/in6_proto.c log diff annotate
message Run TCP output in parallel.

When called with shared netlock together with socket lock, tcp_output()
is MP safe. This is the lock for tcpcb. Mark TCP protocol with
PR_MPSOCKET. Also t_oobflags is protected this way, allowing
parallel pru_rcvoob().

OK mvs@

date 2024-12-26T12:16:17Z
author bluhm
files 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_var.h log diff annotate
message Declare TCP variable tcprexmtthresh const.

OK mvs@