OpenBSD cvs log

created 2024-01-25T07:44:58Z
begin 2024-01-19T00:00:00Z
end 2024-01-20T00:00:00Z
path src/sys
commits 12

date 2024-01-19T01:43:26Z
author bluhm
files src/sys/kern/kern_exit.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
message Backout priterator() for walking allprocess list.

This approach does not work as LIST_NEXT() of a removed element
does not return NULL. I causes a crash in syzcaller and triggers
kernel diagnostic assertion "vp->v_uvcount == 0" in sys/kern/kern_unveil.c
line 845 during reboot. Unfortunately the backout brings back the
race in fill_file() and fstat(1) may crash the kernel.

Reported-by: [email protected]

date 2024-01-19T01:43:27Z
author bluhm
files src/sys/kern/kern_proc.c log diff annotate
src/sys/kern/kern_sysctl.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Backout priterator() for walking allprocess list.

This approach does not work as LIST_NEXT() of a removed element
does not return NULL. I causes a crash in syzcaller and triggers
kernel diagnostic assertion "vp->v_uvcount == 0" in sys/kern/kern_unveil.c
line 845 during reboot. Unfortunately the backout brings back the
race in fill_file() and fstat(1) may crash the kernel.

Reported-by: [email protected]

date 2024-01-19T02:24:07Z
author bluhm
files src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
message Unify inpcb API for inet and inet6.

Many functions for IPv4 call their IPv6 counterpart if INP_IPV6 is
set at the socket's pcb. By using the generic API consistently,
the logic is not in the caller it gets more readable.

OK mvs@

date 2024-01-19T03:25:13Z
author jmatthew
files src/sys/dev/pci/if_bnxt.c log diff annotate
message Add TSO support. Previous commit fixed up a bug that could only be
triggered with TCP socket splicing and TSO, and with that fixed, it
works reliably.

tested by hrvoje, jan@, mbuhl@, bluhm@, feedback from jan@ and bluhm@,
ok jan@ mbuhl@ bluhm@

date 2024-01-19T03:46:14Z
author dlg
files src/sys/dev/ic/re.c log diff annotate
message consolidate pci and cardbus detach code, and have it detach kstats.

this solves one probably with an re(4) going away.

date 2024-01-19T03:46:15Z
author dlg
files src/sys/dev/cardbus/if_re_cardbus.c log diff annotate
src/sys/dev/ic/revar.h log diff annotate
src/sys/dev/pci/if_re_pci.c log diff annotate
message consolidate pci and cardbus detach code, and have it detach kstats.

this solves one probably with an re(4) going away.

date 2024-01-19T06:59:10Z
author mlarkin
files src/sys/arch/arm64/conf/GENERIC log diff annotate
message add iwn(4) to arm64 GENERIC

ok kettenis

date 2024-01-19T17:51:15Z
author kettenis
files src/sys/dev/fdt/rkdrm.c log diff annotate
src/sys/dev/wscons/wsconsio.h log diff annotate
message Rename WSDISPLAY_TYPE_RKDRM to WSDISPLAY_TYPE_KMS such that we can use it
for other generic KMS drivers.

ok jsg@, matthieu@

date 2024-01-19T18:38:16Z
author kettenis
files src/sys/arch/amd64/amd64/i8259.c log diff annotate
src/sys/arch/amd64/amd64/intr.c log diff annotate
src/sys/arch/amd64/amd64/machdep.c log diff annotate
src/sys/arch/amd64/include/pci_machdep.h log diff annotate
src/sys/arch/amd64/include/pic.h log diff annotate
src/sys/arch/amd64/include/segments.h log diff annotate
src/sys/arch/amd64/pci/pci_machdep.c log diff annotate
src/sys/dev/pci/pcireg.h log diff annotate
message Implement Multiple Message MSI support on amd64. This is experimental code
to assist qwx(4) development. We may remove this code again at some point
in the future.

Multiple Message MSI has some serious design flaws, especially when
combined with the APIC interrupt controller architecture. It was
superseded by MSI-X. Unfortunately qwx(4) does not implement MSI-X.

ok stsp@, deraadt@

date 2024-01-19T18:58:17Z
author deraadt
files src/sys/ufs/ffs/ffs_vfsops.c log diff annotate
message ugly whitespace

date 2024-01-19T21:20:35Z
author deraadt
files src/sys/uvm/uvm_extern.h log diff annotate
src/sys/uvm/uvm_mmap.c log diff annotate
message remove the guts of pinsyscall(2), it just returns 0 now.
It has been made redundant by the introduction of pinsyscalls(2) which
handles all system calls, rather than just 1.

date 2024-01-19T22:12:24Z
author kettenis
files src/sys/kern/subr_extent.c log diff annotate
src/sys/sys/extent.h log diff annotate
message Implement extent_alloc_region_with_descr(9) which is the equivalent of
extent_alloc_region(9) that uses a pre-allocated region descriptor.

ok patrick@