OpenBSD cvs log

created 2024-04-06T15:32:19Z
begin 2024-03-31T00:00:00Z
end 2024-04-01T00:00:00Z
path src/sys
commits 6

date 2024-03-31T07:23:29Z
author miod
files src/sys/arch/alpha/include/cpu.h log diff annotate
src/sys/arch/m88k/include/cpu.h log diff annotate
src/sys/arch/sh/include/cpu.h log diff annotate
message Stop referring to dead-since-30-years gatherstats() in comments.

date 2024-03-31T09:49:33Z
author miod
files src/sys/arch/powerpc/isa/Attic/isa_machdep.h log diff annotate
src/sys/dev/isa/isavar.h log diff annotate
message Remove long dead isa-on-powerpc leftovers.

date 2024-03-31T13:50:00Z
author mvs
files src/sys/kern/sys_socket.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
src/sys/nfs/nfs_syscalls.c log diff annotate
message Mark `so_rcv' sockbuf of udp(4) sockets as SB_OWNLOCK.

sbappend*() and soreceive() of SB_MTXLOCK marked sockets uses `sb_mtx'
mutex(9) for protection, meanwhile buffer usage check and corresponding
sbwait() sleep still serialized by solock(). Mark udp(4) as SB_OWNLOCK
to avoid solock() serialization and rely to `sb_mtx' mutex(9). The
`sb_state' and `sb_flags' modifications must be protected by `sb_mtx'
too.

ok bluhm

date 2024-03-31T14:01:28Z
author mvs
files src/sys/kern/uipc_socket.c log diff annotate
message Allow listen(2) only on sockets of type SOCK_STREAM or SOCK_SEQPACKET.
listen(2) man(1) page clearly prohibits sockets of other types.

Reported-by: [email protected]

ok bluhm

date 2024-03-31T15:53:12Z
author bluhm
files src/sys/net/route.c log diff annotate
src/sys/net/route.h log diff annotate
src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet6/in6_pcb.c log diff annotate
src/sys/netinet6/in6_src.c log diff annotate
message Combine route_cache() and rtalloc_mpath() in new route_mpath().

Fill and check the cache and call rtalloc_mpath() together. Then
the caller of route_mpath() does not have to care about the uint32_t
*src pointer and just pass struct in_addr. All the conversions are
done inside the functions.

A previous version of this diff was backed out. There was an
additional rtisvalid() in rtalloc_mpath() that prevented packet
output via interfaces that were not up. Now the route in the cache
has to be valid, but after new lookup, rtalloc_mpath() may return
invalid routes. This generates less errors in userland an preserves
existing behavior.

OK sashan@

date 2024-03-31T19:17:53Z
author kettenis
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
message Enable rge(4).