OpenBSD cvs log

created 2024-07-20T20:30:14Z
begin 2024-07-14T00:00:00Z
end 2024-07-15T00:00:00Z
path src/sys
commits 12

date 2024-07-14T07:57:42Z
author dv
files src/sys/arch/amd64/amd64/vmm_machdep.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4)/vmx: update host cr3, invept on cpu migration.

Since vmm handles nested page faults in the vcpu run loop, trying
to avoid trips back to userland, it's possible for the thread to
move host cpus. vmm(4) already updates some local cpu state when
this happens, but also needs to update the host cr3 in the vmcs to
allow vmx to restore the proper cr3 value on the next vm exit.

Additionally, we should be flushing the ept cache on the new cpu.
If the single context flush is available, use that instead of the
global flush.

ok mlarkin@

date 2024-07-14T09:48:48Z
author jca
files src/sys/arch/alpha/include/elf.h log diff annotate
src/sys/arch/amd64/include/elf.h log diff annotate
src/sys/arch/arm/include/elf.h log diff annotate
src/sys/arch/arm64/arm64/cpu.c log diff annotate
src/sys/arch/arm64/include/elf.h log diff annotate
src/sys/arch/hppa/include/elf.h log diff annotate
src/sys/arch/i386/include/elf.h log diff annotate
src/sys/arch/m88k/include/elf.h log diff annotate
src/sys/arch/mips64/include/elf.h log diff annotate
src/sys/arch/powerpc/include/elf.h log diff annotate
message Add elf_aux_info(3)

Designed to let userland peek at AT_HWCAP and AT_HWCAP2 using an already
existing interface coming from FreeBSD. Headers bits were snatched from
there. Input & ok kettenis@

libc bump and sets sync will follow soon

date 2024-07-14T09:48:49Z
author jca
files src/sys/arch/powerpc64/include/elf.h log diff annotate
src/sys/arch/riscv64/include/elf.h log diff annotate
src/sys/arch/riscv64/riscv64/cpu.c log diff annotate
src/sys/arch/sh/include/elf.h log diff annotate
src/sys/arch/sparc64/include/elf.h log diff annotate
src/sys/sys/auxv.h log diff annotate
src/sys/sys/exec_elf.h log diff annotate
message Add elf_aux_info(3)

Designed to let userland peek at AT_HWCAP and AT_HWCAP2 using an already
existing interface coming from FreeBSD. Headers bits were snatched from
there. Input & ok kettenis@

libc bump and sets sync will follow soon

date 2024-07-14T10:48:55Z
author kettenis
files src/sys/dev/acpi/acpipwrres.c log diff annotate
message Upon first suspend, turn off all power resources that haven't been
referenced.

ok deraadt@

date 2024-07-14T10:50:39Z
author kettenis
files src/sys/dev/acpi/acpi.c log diff annotate
message In addition to setting the PCI power state, also run the appropriate _PSx
method that matches the target state.

ok deraadt@

date 2024-07-14T11:14:29Z
author jca
files src/sys/kern/exec_elf.c log diff annotate
message Actually set up hwcap AUX_* entries when available

Erroneously dropped from the last elf_aux_info(3) diff I sent on tech@.
Lack of this chunk would affect arm64 and riscv64 as they're the two
architectures providing hwcap*.

Should have been ok kettenis@

date 2024-07-14T11:36:54Z
author jca
files src/sys/kern/exec_elf.c log diff annotate
message Actually provide *definitions* for hwcap & hwcap2

Double checked by kettenis@

Sorry for the time window with breakage visible on arm64 and riscv64. :-/

date 2024-07-14T13:58:57Z
author jmatthew
files src/sys/dev/acpi/acpi.c log diff annotate
message For specific hids (currently only ACPI0007, acpicpu(4)), use a print
function that always returns QUIET so instances that don't get matched
are not reported.

ok kettenis@

date 2024-07-14T14:04:16Z
author jmatthew
files src/sys/dev/acpi/acpicpu.c log diff annotate
message Only match if we can find a corresponding cpu device. This means the
many extra ACPI0007 instances found in current generation servers no
longer fill up dmesg with noise.

ok kettenis@

date 2024-07-14T15:42:23Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
message Fix source and drain confusion in socket splicing somove().

If a large mbuf in the source socket buffer does not fit into the
drain buffer, split the mbuf. But if the drain buffer still has
some data in it, stop moving data and try again later. This skips
a potentially expensive mbuf operation.
When looking which socket buffer has to be locked, I found that the
length of the source send buffer was checked. Change it to drain.
As this is a performance optimization for a special corner case,
noone noticed the bug.

OK sashan@

date 2024-07-14T18:53:39Z
author bluhm
files src/sys/net/if.c log diff annotate
src/sys/net/pf.c log diff annotate
src/sys/net/pf_norm.c log diff annotate
src/sys/netinet/ip_carp.c log diff annotate
src/sys/netinet/ip_icmp.c log diff annotate
src/sys/netinet/ip_input.c log diff annotate
src/sys/netinet6/icmp6.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
src/sys/netinet6/nd6.c log diff annotate
src/sys/netinet6/nd6.h log diff annotate
src/sys/netinet6/nd6_nbr.c log diff annotate
src/sys/netinet6/nd6_rtr.c log diff annotate
message Unlock IPv6 sysctl net.inet6.ip6.forwarding from net lock.

Use atomic operations to read ip6_forwarding while processing packets
in the network stack.
To make clear where actually the router property is needed, use the
i_am_router variable based on ip6_forwarding. It already existed
in nd6_nbr. Move i_am_router setting up the call stack until all
users are independent.
The forwarding decisions in pf_test, pf_refragment6, ip6_input do
also not interfere.
Use a new array ipv6ctl_vars_unlocked to make transition of all the
integer sysctls easier. Adapt IPv4 to the new style.

OK mvs@

date 2024-07-14T19:33:59Z
author miod
files src/sys/arch/armv7/include/elf.h log diff annotate
src/sys/arch/landisk/include/elf.h log diff annotate
src/sys/arch/loongson/include/elf.h log diff annotate
src/sys/arch/luna88k/include/elf.h log diff annotate
src/sys/arch/macppc/include/elf.h log diff annotate
src/sys/arch/octeon/include/elf.h log diff annotate
message Add missing <machine/elf.h> for compound arches.

The spice^Wkernel must flow^Wbuild.