OpenBSD cvs log

created 2024-04-12T23:59:30Z
begin 2024-04-10T00:00:00Z
end 2024-04-11T00:00:00Z
path src/sys
commits 10

date 2024-04-10T10:05:26Z
author claudio
files src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/sys_generic.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Unlock dosigsuspend() and with that some aspects of ppoll and pselect

Change p_sigmask from atomic back to non-atomic updates. All changes to
p_sigmask are only allowed by curproc (the owner). There is no need for
atomic instructions here.

p_sigmask is mostly accessed by curproc with the exception of ptsignal().
In ptsignal() p_sigmask is now only read once unless a SSLEEP proc gets
the signal. In that case recheck the p_sigmask before wakeup to ensure
that no unnecessary wakeup happens.

Add some KASSERT(p == curproc) to ensure this precondition.
sigabort() is special since it is also called by ddb but apart from that
only works for curproc.

With and OK mvs@ OK mpi@

date 2024-04-10T10:40:27Z
author mglocker
files src/sys/dev/pci/ufshci_pci.c log diff annotate
message Remove obsolete headers.

Spotted by jsg@

date 2024-04-10T12:04:41Z
author mvs
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/sys/socketvar.h log diff annotate
message Remove `head' socket re-locking in sonewconn().

uipc_attach() releases solock() because it should be taken after
`unp_gc_lock' rwlock(9) which protects the `unp_link' list. For this
reason, the listening `head' socket should be unlocked too while
sonewconn() calls uipc_attach(). This could be reworked because now
`so_rcv' sockbuf relies on `sb_mtx' mutex(9).

The last one `unp_link' foreach loop within unp_gc() discards sockets
previously marked as UNP_GCDEAD. These sockets are not accessed from the
userland. The only exception is the sosend() threads of connected
sending peers, but they only sbappend*() mbuf(9) to `so_rcv'. So it's
enough to unlink mbuf(9) chain with `sb_mtx' held and discard lockless.

Please note, the existing SS_NEWCONN_WAIT logic was never used because
the listening unix(4) socket protected from concurrent unp_detach() by
vnode(9) lock, however `head' re-locked all times.

ok bluhm

date 2024-04-10T13:59:05Z
author naddy
files src/sys/conf/files log diff annotate
src/sys/lib/libkern/Attic/htonl.c log diff annotate
src/sys/lib/libkern/Attic/htons.c log diff annotate
src/sys/lib/libkern/arch/alpha/Attic/htonl.S log diff annotate
src/sys/lib/libkern/arch/alpha/Attic/htons.S log diff annotate
src/sys/lib/libkern/arch/amd64/Attic/htonl.S log diff annotate
src/sys/lib/libkern/arch/amd64/Attic/htons.S log diff annotate
src/sys/lib/libkern/arch/arm/Attic/htonl.S log diff annotate
src/sys/lib/libkern/arch/arm/Attic/htons.S log diff annotate
src/sys/lib/libkern/arch/i386/Attic/htonl.S log diff annotate
src/sys/lib/libkern/arch/i386/Attic/htons.S log diff annotate
src/sys/lib/libkern/arch/mips64/Attic/htonl.S log diff annotate
src/sys/lib/libkern/arch/mips64/Attic/htons.S log diff annotate
src/sys/lib/libkern/arch/sparc64/Attic/htonl.S log diff annotate
src/sys/lib/libkern/arch/sparc64/Attic/htons.S log diff annotate
message remove unused hton[ls] functions from libkern

These have been superseded by inlines from endian.h.

ok miod@ mpi@

date 2024-04-10T15:25:14Z
author mpi
files src/sys/uvm/uvm_aobj.c log diff annotate
message Call uao_dropswap() instead of rerolling it.

ok kn@, kettenis@, miod@

date 2024-04-10T15:26:18Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Use uvmpd_dropswap() in the case of swap shortage.

ok kn@, kettenis@, miod@

date 2024-04-10T15:38:11Z
author mpi
files src/sys/arch/alpha/alpha/cpu.c log diff annotate
message Use km_alloc(9) to allocate USPACE instead of uvm_pglistalloc(9).

ok miod@

date 2024-04-10T19:55:50Z
author jan
files src/sys/dev/pv/if_vio.c log diff annotate
message Implement TCP Segmentation Offload for vio(4)

Tested by Brian Conway and bluhm
With tweaks from bluhm

ok bluhm

date 2024-04-10T22:10:03Z
author bluhm
files src/sys/netinet/tcp_input.c log diff annotate
message Move global variables for TCP debug onto the tcp_input() stack.

OK mvs@

date 2024-04-10T22:24:07Z
author bluhm
files src/sys/netinet/tcp_debug.c log diff annotate
message Make TCP debug code MP safe.

Protect the global variables in TCP debug code with global mutex.
Add a missing include and also fix the -Wunused-but-set-variable
warning.

OK mvs@