OpenBSD cvs log

created 2022-03-17T10:07:07Z
begin 2021-12-29T00:00:00Z
end 2022-01-05T00:00:00Z
path src/sys
commits 75

date 2021-12-29T07:15:13Z
author anton
files src/sys/dev/kcov.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/sys/kcov.h log diff annotate
message Do not allow send/receive of kcov descriptors as the file descriptor can
be kept alive longer than expected causing syzkaller to no longer being
able to enable remote coverage.

ok visa@

Reported-by: [email protected]

date 2021-12-29T17:52:22Z
author patrick
files src/sys/dev/acpi/dwgpio.c log diff annotate
src/sys/dev/acpi/if_bse_acpi.c log diff annotate
src/sys/dev/acpi/xhci_acpi.c log diff annotate
message acpi_intr_disestablish() is available on all our ACPI platforms which
support interrupts via ACPI, so there's need for an ifdef around it.

ok kettenis@

date 2021-12-29T18:40:19Z
author patrick
files src/sys/dev/acpi/ehci_acpi.c log diff annotate
src/sys/dev/acpi/files.acpi log diff annotate
src/sys/dev/acpi/ohci_acpi.c log diff annotate
message Allow ohci(4) and ehci(4) to attach to acpi(4).

ok kettenis@

date 2021-12-29T18:40:48Z
author patrick
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable ohci(4) and ehci(4) at acpi(4).

date 2021-12-29T18:48:45Z
author patrick
files src/sys/dev/pci/if_em_hw.c log diff annotate
message PHYs that we want to talk to over SGMII need to be switched into SGMII
mode for the link to go up. This is relevant on RJ45 SFPs.

ok sthen@

date 2021-12-29T20:22:06Z
author mpi
files src/sys/uvm/uvm_aobj.c log diff annotate
message Consistently name page argument `pg'.

Reduce differences with NetBSD, no functional changes.

date 2021-12-30T00:25:41Z
author jsg
files src/sys/dev/pci/drm/radeon/radeon_kms.c log diff annotate
message combine ifdef blocks
from Ted Bullock

date 2021-12-30T00:49:41Z
author mvs
files src/sys/net/if_pppx.c log diff annotate
message Prevent concurrent access to incomplete or dying `sc' caused by sleep
points in pppacopen() and pppacclose() paths. Use the same "sc_ready"
logic we use for 'pppx_if' structure.

Reported-by: [email protected]

ok anton@ dlg@

date 2021-12-30T06:55:11Z
author anton
files src/sys/dev/wscons/wskbd.c log diff annotate
src/sys/dev/wscons/wskbdutil.c log diff annotate
src/sys/dev/wscons/wsksymvar.h log diff annotate
message Prevent a double free by assigning the new keymap and corresponding size
after the allocation and initialization is done. Otherwise, a race is
possible if malloc ends up sleeping.

ok sashan@

Reported-by: [email protected]

date 2021-12-30T14:25:39Z
author anton
files src/sys/net/if_pppx.c log diff annotate
message Use a distinct variable while iterating the list of existing devices.

ok mvs@

Reported-by: [email protected]
Reported-by: [email protected]

date 2021-12-30T15:09:49Z
author kevlo
files src/sys/dev/usb/if_mtw.c log diff annotate
message Add Xiaomi MiniWif to list of devices supported by mtw(4).
Works for me on amd64.

ok hastings@

date 2021-12-31T08:15:47Z
author jmatthew
files src/sys/dev/usb/if_uaq.c log diff annotate
message Fix up handling of IFF_ALLMULTI and call uaq_iff() from uaq_init().

from Brad

date 2021-12-31T09:24:18Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
src/sys/dev/pci/if_bwfm_pci.h log diff annotate
message Newer Apple firmware on chipsets without a hardware RNG require the host to
provide a buffer of random bytes to the device on initialization.

date 2021-12-31T10:40:30Z
author jsg
files src/sys/arch/amd64/amd64/locore.S log diff annotate
message specifed -> specified

date 2021-12-31T10:44:05Z
author jsg
files src/sys/arch/amd64/amd64/locore0.S log diff annotate
src/sys/arch/i386/i386/locore0.S log diff annotate
message avaialble -> available

date 2021-12-31T11:21:45Z
author kettenis
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
message Add missing locking to pmap_extract(9) and pmap_unwire(9).

ok patrick@, mpi@

date 2021-12-31T11:24:24Z
author jsg
files src/sys/dev/pci/pcireg.h log diff annotate
message Interrups -> Interrupts

date 2021-12-31T23:19:50Z
author jsg
files src/sys/dev/usb/uaudio.c log diff annotate
message spelling
ok ratchov@

date 2022-01-01T07:00:57Z
author jsg
files src/sys/kern/init_main.c log diff annotate
message copyright++;

date 2022-01-01T11:45:35Z
author kettenis
files src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
message Add missing locking to pmap_extract(9) and pmap_unwire(9).

ok patrick@, mpi@

date 2022-01-01T14:18:39Z
author kettenis
files src/sys/arch/riscv64/include/cpu.h log diff annotate
message Remove unused function prototype.

date 2022-01-01T18:52:26Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Use correct defines for random seed magic/length.

Spotted by Andreas Schnebinger

date 2022-01-01T18:52:36Z
author kettenis
files src/sys/arch/arm64/arm64/cpuswitch.S log diff annotate
src/sys/arch/arm64/arm64/cryptox.c log diff annotate
src/sys/arch/arm64/arm64/exception.S log diff annotate
src/sys/arch/arm64/arm64/fpu.c log diff annotate
src/sys/arch/arm64/arm64/machdep.c log diff annotate
src/sys/arch/arm64/arm64/process_machdep.c log diff annotate
src/sys/arch/arm64/arm64/syscall.c log diff annotate
src/sys/arch/arm64/arm64/trap.c log diff annotate
src/sys/arch/arm64/arm64/Attic/vfp.c log diff annotate
src/sys/arch/arm64/arm64/vm_machdep.c log diff annotate
message Rewrite the kernel FPU handling code. The new code saves the FPU state
in cpu_switch() instead of at the kernel edge and gets rid of the FPU
state tracking in struct cpu_info and struct pcb. This fixes the random
crashes seen with SMP kernels on Apple M1.

ok patrick@

date 2022-01-01T18:52:37Z
author kettenis
files src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/dev/efi.c log diff annotate
src/sys/arch/arm64/include/armreg.h log diff annotate
src/sys/arch/arm64/include/cpu.h log diff annotate
src/sys/arch/arm64/include/fpu.h log diff annotate
src/sys/arch/arm64/include/pcb.h log diff annotate
src/sys/arch/arm64/include/Attic/vfp.h log diff annotate
message Rewrite the kernel FPU handling code. The new code saves the FPU state
in cpu_switch() instead of at the kernel edge and gets rid of the FPU
state tracking in struct cpu_info and struct pcb. This fixes the random
crashes seen with SMP kernels on Apple M1.

ok patrick@

date 2022-01-01T18:54:09Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message Revert the hack for Apple M1 systems.

ok patrick@

date 2022-01-01T23:47:14Z
author guenther
files src/sys/arch/amd64/include/asm.h log diff annotate
src/sys/arch/sparc64/include/asm.h log diff annotate
message Add ENTRY_NB() macro for doing an ASM function entry without setting
the binding to global (NB == "no binding"), as clang 13 is now
warning about changing the binding from global to weak.

This first pass does amd64 and sparc64 and pulls DEFS.h out of the
per-arch directory to a common directory; others to follow

ok kettenis@

date 2022-01-02T01:01:04Z
author jsg
files src/sys/arch/arm64/arm64/intr.c log diff annotate
src/sys/arch/armv7/armv7/intr.c log diff annotate
src/sys/arch/riscv64/riscv64/intr.c log diff annotate
message establush -> establish

date 2022-01-02T01:59:42Z
author jsg
files src/sys/arch/arm64/stand/efiboot/efiacpi.c log diff annotate
message plaform -> platform

date 2022-01-02T02:13:33Z
author jsg
files src/sys/arch/arm64/stand/efiboot/efiacpi.c log diff annotate
src/sys/dev/acpi/acpireg.h log diff annotate
message preferense -> preference

date 2022-01-02T02:26:50Z
author jsg
files src/sys/arch/arm64/include/armreg.h log diff annotate
message slignment -> alignment

date 2022-01-02T02:31:08Z
author jsg
files src/sys/arch/arm64/dev/rtkit.c log diff annotate
message unhandle -> unhandled

date 2022-01-02T03:41:08Z
author jsg
files src/sys/arch/i386/i386/acpi_wakecode.S log diff annotate
src/sys/arch/riscv64/riscv64/locore.S log diff annotate
src/sys/dev/pci/if_skreg.h log diff annotate
src/sys/dev/pci/pci.c log diff annotate
message addres -> address

date 2022-01-02T05:00:28Z
author jsg
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message spelling

date 2022-01-02T05:30:07Z
author jsg
files src/sys/arch/i386/i386/pmapae.c log diff annotate
message phsyaddr -> physaddr

date 2022-01-02T05:32:00Z
author jsg
files src/sys/arch/i386/conf/files.i386 log diff annotate
message contoller -> controller

date 2022-01-02T05:37:19Z
author jsg
files src/sys/arch/hppa/conf/GENERIC log diff annotate
src/sys/arch/sparc64/conf/GENERIC log diff annotate
message numers -> numbers

date 2022-01-02T05:40:06Z
author jsg
files src/sys/arch/sparc64/dev/iommureg.h log diff annotate
message Nummber -> Number

date 2022-01-02T05:49:50Z
author jsg
files src/sys/arch/amd64/stand/efi32/run_i386.S log diff annotate
src/sys/arch/amd64/stand/efi64/run_i386.S log diff annotate
src/sys/arch/amd64/stand/efiboot/run_i386.S log diff annotate
message convension -> convention

date 2022-01-02T05:59:53Z
author jsg
files src/sys/arch/arm/arm/fault.c log diff annotate
message priveledged -> privileged

date 2022-01-02T06:16:08Z
author jsg
files src/sys/arch/sh/sh/locore_subr.S log diff annotate
message priviledged -> privileged

date 2022-01-02T17:26:14Z
author krw
files src/sys/kern/subr_disk.c log diff annotate
message Stop writing big-endian checksums into the little-endian GPT
header fields gh_csum and gh_part_csum.

Constrain kernel to accepting only correct little-endian
checksums.

Temporarily allow fdisk(8) to read either endian GPTs so that
big-endian GPTs can be made correct by a simple 'fdisk -e' &&
'w'.

Fixes inter-architecture, inter-OS GPT portability and GPT
fdisk(8) on big-endian architectures. Broken since initial GPT
implementation.

Suggestions and ok kettenis@

date 2022-01-02T20:00:21Z
author kettenis
files src/sys/arch/arm64/dev/agintc.c log diff annotate
src/sys/arch/arm64/dev/ampintc.c log diff annotate
src/sys/arch/arm64/dev/bcm2836_intr.c log diff annotate
message Don't use != 0 to check whether a pointer is non-NULL.

date 2022-01-02T20:10:24Z
author kettenis
files src/sys/arch/arm64/dev/aplintc.c log diff annotate
message Grab kernel lock when required.

ok patrick@

date 2022-01-02T21:01:20Z
author tb
files src/sys/kern/kern_sig.c log diff annotate
message immediatly -> immediately

date 2022-01-02T22:36:03Z
author jsg
files src/sys/net/fq_codel.c log diff annotate
src/sys/net/if.c log diff annotate
src/sys/net/if_ppp.h log diff annotate
src/sys/net/if_spppsubr.c log diff annotate
message spelling
ok jmc@ reads ok tb@

date 2022-01-02T22:36:04Z
author jsg
files src/sys/net/if_types.h log diff annotate
src/sys/net/if_wg.c log diff annotate
src/sys/net/pf.c log diff annotate
src/sys/net/pfvar_priv.h log diff annotate
src/sys/net/pipex.c log diff annotate
src/sys/net/pipex.h log diff annotate
src/sys/net/pipex_local.h log diff annotate
src/sys/net/ppp_tty.c log diff annotate
src/sys/net/radix.c log diff annotate
src/sys/net/route.c log diff annotate
src/sys/net/rtable.c log diff annotate
src/sys/netinet/ip_ipip.c log diff annotate
src/sys/netinet/ipsec_output.c log diff annotate
src/sys/netinet/tcp_input.c log diff annotate
src/sys/netinet/tcp_subr.c log diff annotate
src/sys/netinet/tcp_timer.c log diff annotate
src/sys/netinet6/icmp6.c log diff annotate
src/sys/netinet6/in6.c log diff annotate
src/sys/netinet6/in6_var.h log diff annotate
src/sys/netinet6/ip6_forward.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
src/sys/netinet6/ip6_output.c log diff annotate
message spelling
ok jmc@ reads ok tb@

date 2022-01-02T22:36:05Z
author jsg
files src/sys/netinet6/ip6protosw.h log diff annotate
message spelling
ok jmc@ reads ok tb@

date 2022-01-02T23:14:26Z
author jsg
files src/sys/arch/alpha/conf/GENERIC log diff annotate
src/sys/arch/amd64/conf/GENERIC log diff annotate
src/sys/arch/amd64/conf/RAMDISK_CD log diff annotate
message Prism54 (only full-mac varients) -> Prism54 Full-MAC

date 2022-01-02T23:14:27Z
author jsg
files src/sys/arch/i386/conf/GENERIC log diff annotate
src/sys/arch/i386/conf/RAMDISK_CD log diff annotate
src/sys/arch/sparc64/conf/GENERIC log diff annotate
message Prism54 (only full-mac varients) -> Prism54 Full-MAC

date 2022-01-02T23:29:12Z
author jsg
files src/sys/arch/armv7/armv7/locore0.S log diff annotate
message excuted -> executed

date 2022-01-02T23:31:10Z
author jsg
files src/sys/arch/macppc/macppc/ofwreal.S log diff annotate
message firmare -> firmware

date 2022-01-02T23:34:15Z
author jsg
files src/sys/arch/sparc64/sparc64/locore.s log diff annotate
message Resore -> Restore

date 2022-01-02T23:39:48Z
author jsg
files src/sys/arch/sparc64/sparc64/pmap.c log diff annotate
message approprate -> appropriate

date 2022-01-03T00:44:30Z
author jsg
files src/sys/arch/i386/i386/locore.s log diff annotate
message happend -> happened

date 2022-01-03T02:10:57Z
author jsg
files src/sys/arch/i386/conf/RAMDISK_CD log diff annotate
message reuse gcu(4) comment from GENERIC fixing spelling

date 2022-01-03T03:06:49Z
author jsg
files src/sys/arch/arm/cortex/ampintc.c log diff annotate
src/sys/arch/armv7/broadcom/bcm2836_intr.c log diff annotate
message Don't use != 0 to check whether a pointer is non-NULL.

date 2022-01-03T03:06:50Z
author jsg
files src/sys/arch/armv7/omap/intc.c log diff annotate
src/sys/arch/armv7/sunxi/sxiintc.c log diff annotate
src/sys/arch/riscv64/dev/plic.c log diff annotate
message Don't use != 0 to check whether a pointer is non-NULL.

date 2022-01-03T09:48:41Z
author jsg
files src/sys/dev/isa/isapnpdebug.c log diff annotate
message ansi

date 2022-01-03T12:01:32Z
author jsg
files src/sys/dev/ic/pgt.c log diff annotate
message the prism54 domain is long abandoned
don't give any traffic to whoever registered it afterwards

ok claudio@ stsp@

date 2022-01-03T15:50:16Z
author visa
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
message SOCs -> SoCs

date 2022-01-04T05:50:43Z
author gnezdo
files src/sys/arch/amd64/conf/GENERIC log diff annotate
message Remove commented out gtp from amd64 GENERIC

It has long been irrelevant as pointed out by Crystal Kolipe
kolipe.c AT exoticsilicon.com

ok mlarkin

date 2022-01-04T06:32:39Z
author yasuoka
files src/sys/net/if_bridge.c log diff annotate
src/sys/net/if_veb.c log diff annotate
src/sys/netinet/ip_ipsp.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
src/sys/netinet/ip_output.c log diff annotate
src/sys/netinet/ip_spd.c log diff annotate
src/sys/netinet/ipsec_input.c log diff annotate
src/sys/netinet/tcp_input.c log diff annotate
message Add `ipsec_flows_mtx' mutex(9) to protect `ipsp_ids_*' list and
trees. ipsp_ids_lookup() returns `ids' with bumped reference
counter. original diff from mvs

ok mvs

date 2022-01-04T06:32:40Z
author yasuoka
files src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet6/ip6_output.c log diff annotate
message Add `ipsec_flows_mtx' mutex(9) to protect `ipsp_ids_*' list and
trees. ipsp_ids_lookup() returns `ids' with bumped reference
counter. original diff from mvs

ok mvs

date 2022-01-04T06:48:46Z
author jsg
files src/sys/arch/alpha/isa/Attic/isafcns_jensen.c log diff annotate
message remove unused file

date 2022-01-04T11:01:24Z
author jsg
files src/sys/dev/ic/Attic/ad1843reg.h log diff annotate
src/sys/dev/ic/Attic/dp8573areg.h log diff annotate
src/sys/dev/ic/Attic/ds1286reg.h log diff annotate
src/sys/dev/ic/Attic/ds1687reg.h log diff annotate
src/sys/dev/ic/Attic/seeq8003reg.h log diff annotate
message remove files missed when sgi was removed
ok visa@

date 2022-01-04T11:31:42Z
author jsg
files src/sys/conf/files log diff annotate
src/sys/dev/ic/Attic/aic6250.c log diff annotate
src/sys/dev/ic/Attic/aic6250reg.h log diff annotate
src/sys/dev/ic/Attic/aic6250var.h log diff annotate
message remove the last part of driver for aic-6250 scsi on aviion

date 2022-01-04T13:40:58Z
author patrick
files src/sys/dev/acpi/acpi.c log diff annotate
message acpi_getprop() needs to actually make sure that we're looking at the
correct property. While there adjust acpi_getpropint() as well to
increase similarity with acpi_getprop().

ok kettenis@

date 2022-01-04T15:53:57Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
message fix Rx Block Ack session validity checks in iwm(4) and iwx(4)

I ported a NULL pointer check from iwlwifi rxmq.c which cannot
happen in our version of this code. Instead we need to check
the BA session ID to determine whether a BA session is valid.

Patch by Christian Ehrhardt.

date 2022-01-04T15:55:28Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
message fix length boundary checks for incoming packets in iwm/iwx

The minimum length and the maximum length required were both too low,
due to an error in accounting for the 4-byte packet length+flags header.

Patch by Christian Ehrhardt

date 2022-01-04T16:15:28Z
author kettenis
files src/sys/dev/pci/pci.c log diff annotate
message Restrict the pci(4) ioctl interface to devices detected by the kernel.
This fixes issues on the M1 Macs where the PCI probe done by Xorg
breaks the WiFi chip.

ok patrick@

date 2022-01-04T18:13:31Z
author guenther
files src/sys/kern/subr_hibernate.c log diff annotate
message Use the device we read the hibernate signature from for the entire
resume. This fixes setups where a umass device no longer attaching
at resume results in a softraid device being renumbered so the
hibernate-time device is no longer correct

ok mlarkin@ jsing@

date 2022-01-04T20:41:42Z
author deraadt
files src/sys/arch/alpha/include/bus.h log diff annotate
message hide more things behind _KERNEL, in case userland manages to include
this file

date 2022-01-04T20:41:44Z
author deraadt
files src/sys/arch/landisk/include/bus.h log diff annotate
src/sys/arch/sparc64/include/bus.h log diff annotate
message hide more things behind _KERNEL, in case userland manages to include
this file

date 2022-01-04T20:43:44Z
author deraadt
files src/sys/dev/pci/pcivar.h log diff annotate
message struct pci_matchid is useful an upcoming userland program that wants
to includes pcivar.h because it inspects vid/pid tables

date 2022-01-04T20:55:48Z
author kettenis
files src/sys/arch/arm64/dev/aplmbox.c log diff annotate
src/sys/arch/arm64/dev/aplns.c log diff annotate
message Future-proof by adding some proposed compatible strings to match on.