OpenBSD cvs log

created 2025-02-04T07:22:51Z
begin 2025-01-24T00:00:00Z
end 2025-01-25T00:00:00Z
path src/sys
commits 6

date 2025-01-24T09:16:55Z
author mvs
files src/sys/net/rtsock.c log diff annotate
message Move copyout(9) out of netlock within sysctl_source().

Netlock required only to store data to local variable, the rest could be
done lockless. Use union of sockaddr_in and sockaddr_in6 as temporary
buffer.

ok bluhm

date 2025-01-24T09:19:07Z
author mvs
files src/sys/net/if.c log diff annotate
src/sys/net/if_var.h log diff annotate
message Move interface groups copyout(9)s out of netlock within ifioctl_get().

The interface groups use complicated linking scheme with special data
structures allowing to link multiple interfaces with multiple groups.
We can't use iterators here, because some path are netlock covered and
we can't sleep in refcnt_finalize(9). We also can't use double locking
to protect this linking data because this new lock will cover very wide
area in kernel.

Link desired interface groups or interfaces from group into temporary
lists, protected by new dedicated `if_tmplist_lock' rwlock(9). Bump the
reference counter to make concurrent destruction thread wait until
temporary linked data became unused.

Delivered data are immutable, so netlock required only while filling
temporary lists.

ok bluhm

date 2025-01-24T10:29:43Z
author yasuoka
files src/sys/dev/pci/if_vmx.c log diff annotate
message Set OACTIVE before putting the final packet on the tx ring. This
fixes a race that keeps OACTIVE set forever if the tx completion
happens parallelly. Found by IIJ.

ok jmatthew

date 2025-01-24T18:13:29Z
author krw
files src/sys/kern/subr_hibernate.c log diff annotate
message Nuke pointless #define ROUNDUP() and just use equivalent roundup()
as rest of subr_hibernate.c does.

ok mlarkin@

date 2025-01-24T19:29:54Z
author claudio
files src/sys/kern/kern_sig.c log diff annotate
message Make process_continue take a process as argument.

If curproc is part of the process to continue then that thread is already
running and should be skipped. On top of this add an extra check to only
continue threads in state SSTOP to prevent a possible panic in setrunnable.

OK mpi@

date 2025-01-24T20:17:28Z
author kettenis
files src/sys/arch/arm64/dev/agintc.c log diff annotate
message Add support for multiple redistributor regions.

ok patrick@