OpenBSD cvs log

created 2022-10-03T14:16:34Z
begin 2022-09-02T00:00:00Z
end 2022-09-03T00:00:00Z
path src/sys
commits 27

date 2022-09-02T07:37:57Z
author deraadt
files src/sys/kern/tty_pty.c log diff annotate
message openpty() family of functions use /dev/ptm PTMGET to open a master+slave fd
pair, and also provides their names. Internally, 3 NDINIT+namei operations
access /dev/[tp]ty[p-zP-T][0-9a-zA-Z], of these 2 followed unveil restrictions.
I argue if you unveil /dev/ptm, (and not the 372 other nodes), you still want
openpty() to provide you with working fd's, and the names, which the caller
will probably never open manually, because the fd's are given.
So change all NDINIT to use KERNELPATH, bypassing unveil.
ok semarie

date 2022-09-02T07:46:03Z
author krw
files src/sys/arch/amd64/stand/mbr/mbr.S log diff annotate
src/sys/arch/i386/stand/mbr/mbr.S log diff annotate
message Adopt a terser specification of an MBR partition table of
64 zeros, suggested by miod@ a while ago.

ok mlarkin@

date 2022-09-02T08:13:03Z
author kn
files src/sys/arch/sparc64/stand/ofwboot/boot.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/softraid_sparc64.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/vers.c log diff annotate
message Add softraid(4) RAID 1C boot support

Equivalent of sys/arch/arm64/stand/efiboot/softraid_arm64.c r1.4:
(commitid: Ka484R3swI5xSRWO) "Add softraid(4) RAID 1C boot support".

Tell the boot loader to decrypt 1C like C volumes and check the number of
disks in 1C like in 1C volumes -- no new code rquired.

Tested on T4-2 guest domains
"Looks reasonable" kettenis
OK stsp

NB: While kernel and boot loader support root on softraid on sparc64,
installboot(8) still needs a pending fix for installations on multi-chunk
softraid volumes. Until then, the usual installation process will fail on
1C volumes and requires manual fixup.

date 2022-09-02T09:02:37Z
author mlarkin
files src/sys/arch/amd64/amd64/hibernate_machdep.c log diff annotate
src/sys/arch/amd64/conf/ld.script log diff annotate
src/sys/kern/subr_hibernate.c log diff annotate
message Get the retguard region's phys address from pmap, instead of using linker
script symbols. This is needed since we don't have those symbols on all
archs where we want hibernate.

ok kettenis, and input and help from miod.

date 2022-09-02T10:12:46Z
author miod
files src/sys/lib/libkern/arch/sh/sdivsi3.S log diff annotate
src/sys/lib/libkern/arch/sh/udivsi3.S log diff annotate
message Remove non-_KERNEL code path for division by zero. This will allow the
bootblocks to shrink a little.

date 2022-09-02T10:14:02Z
author miod
files src/sys/lib/libsa/Makefile log diff annotate
message Add ufs2 to the list of filesystem, for the sake of boot blocks which do not
provide an explicit list of files to build in libsa.

date 2022-09-02T10:15:35Z
author miod
files src/sys/arch/landisk/stand/boot/conf.c log diff annotate
src/sys/arch/landisk/stand/boot/getsecs.c log diff annotate
src/sys/arch/landisk/stand/boot/srt0.S log diff annotate
src/sys/arch/landisk/stand/xxboot/Makefile log diff annotate
src/sys/arch/landisk/stand/xxboot/boot1.c log diff annotate
src/sys/arch/landisk/stand/xxboot/ufs12.c log diff annotate
src/sys/arch/landisk/stand/xxboot/ufs12.h log diff annotate
message Add UFS2 support, with libsa for boot and with a specific ufs-and-ufs2-in-one
flavour for xxboot, due to its size constraints.

date 2022-09-02T10:34:07Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message sync Intel ADL-S devices with Mesa git
adds 0x468b, removes 0x4691

date 2022-09-02T10:34:43Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2022-09-02T10:39:31Z
author jsg
files src/sys/dev/pci/drm/include/drm/i915_pciids.h log diff annotate
message drm/i915: Add new ADL-S pci id

From Jose Roberto de Souza
in drm-intel-next

date 2022-09-02T10:41:05Z
author jsg
files src/sys/dev/pci/drm/i915/i915_devlist.h log diff annotate
message sync

date 2022-09-02T12:24:26Z
author krw
files src/sys/kern/subr_disk.c log diff annotate
message Relax GTP header validity check by allowing 1 sector size usable
LBA area (gh_lba_start == gh_lba_end) and allowing either or both
of gh_lba_start and gh_lba_end to exceed the size of the disk the
GPT currently inhabits.

Reduces false negatives and inappropriate fall through to MBR
spoofing and allows repair of otherwise valid GPT.

date 2022-09-02T12:28:12Z
author krw
files src/sys/kern/subr_disk.c log diff annotate
message Nuke variable partlba that is set but not used.

date 2022-09-02T12:46:18Z
author mlarkin
files src/sys/arch/i386/i386/hibernate_machdep.c log diff annotate
message Reduce differences to amd64.

ok kettenis

date 2022-09-02T13:12:31Z
author mvs
files src/sys/kern/sys_socket.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/net/if.c log diff annotate
message Move PRU_CONTROL request to (*pru_control)().

The 'proc *' arg is not used for PRU_CONTROL request, so remove it from
pru_control() wrapper.

Split out {tcp,udp}6_usrreqs from {tcp,udp}_usrreqs and use them for
inet6 case.

ok guenther@ bluhm@

date 2022-09-02T13:12:32Z
author mvs
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/net/rtsock.c log diff annotate
src/sys/netinet/ip_divert.c log diff annotate
src/sys/netinet/ip_gre.c log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/tcp_var.h log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet/udp_var.h log diff annotate
src/sys/netinet6/in6_proto.c log diff annotate
src/sys/netinet6/ip6_divert.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
src/sys/sys/protosw.h log diff annotate
message Move PRU_CONTROL request to (*pru_control)().

The 'proc *' arg is not used for PRU_CONTROL request, so remove it from
pru_control() wrapper.

Split out {tcp,udp}6_usrreqs from {tcp,udp}_usrreqs and use them for
inet6 case.

ok guenther@ bluhm@

date 2022-09-02T13:18:06Z
author mbuhl
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
message add the recvmmsg syscall that allows receiving multiple msghdrs at
once. libc, man page, and regress parts to come.
With input from jca@, guenther@, bluhm@.
OK bluhm@

date 2022-09-02T13:18:07Z
author mbuhl
files src/sys/sys/ktrace.h log diff annotate
src/sys/sys/socket.h log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message add the recvmmsg syscall that allows receiving multiple msghdrs at
once. libc, man page, and regress parts to come.
With input from jca@, guenther@, bluhm@.
OK bluhm@

date 2022-09-02T13:20:46Z
author kettenis
files src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable apldc(4), apldchidev(4), apldckbd(4) and aplrtk(4) here as well.

date 2022-09-02T13:23:33Z
author mbuhl
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message regen

date 2022-09-02T14:08:09Z
author jan
files src/sys/dev/pci/if_ix.c log diff annotate
message Fix TSO large receive offloading in ix(4).

Without this diff it might happen that content of different
TCP connection get mixed up, when reading coalesced buffers
from the receive ring.

Thanks, for a lot of testing effort to mbuhl.

OK mbuhl@

date 2022-09-02T14:18:47Z
author krw
files src/sys/kern/subr_disk.c log diff annotate
message Don't ignore an OpenBSD GPT partition just because the GPT says
it extends beyond the edge of the disk the GPT currently
inhabits. We only care if enough of it is addressable that a
disklabel is accessible.

Brings GPT handling of 'OpenBSD partitions extending too far'
into line with the MBR handling of the same situation.

date 2022-09-02T16:53:28Z
author kettenis
files src/sys/dev/fdt/tascodec.c log diff annotate
src/sys/dev/ofw/ofw_misc.h log diff annotate
message Add a callback for setting the TDM slot used by an audio codec.
Implement this callback in tascodec(4) such that we can pick the audio
channel that it outputs. This will override the default which is to
downmix stereo input from TDM channels 0 and 1 to mono output.

ok ratchov@

date 2022-09-02T17:46:37Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/dev/dt/dt_prov_static.c log diff annotate
message vmm(4): add tracepoint for in/out handler.

Inserts a new static dt(4) tracepoint in vmm(4) to report details
on in/out instructions (direction, port, and data).

ok mlarkin@

date 2022-09-02T17:54:42Z
author kettenis
files src/sys/arch/arm64/dev/aplaudio.c log diff annotate
src/sys/arch/arm64/dev/aplmca.c log diff annotate
message First attempt at supporting audio on machines with multiple speakers.
Probably needs more work as the device tree bindings evolve.
Note that speakers are currently disabled in the device tree for all
Apple Silicon machines except for the Mac mini.

date 2022-09-02T20:06:55Z
author miod
files src/sys/arch/alpha/alpha/autoconf.c log diff annotate
src/sys/arch/alpha/alpha/conf.c log diff annotate
src/sys/arch/amd64/amd64/autoconf.c log diff annotate
src/sys/arch/amd64/amd64/conf.c log diff annotate
src/sys/arch/arm/arm/conf.c log diff annotate
src/sys/arch/arm64/arm64/autoconf.c log diff annotate
src/sys/arch/arm64/arm64/conf.c log diff annotate
src/sys/arch/armv7/armv7/autoconf.c log diff annotate
src/sys/arch/hppa/hppa/autoconf.c log diff annotate
src/sys/arch/hppa/hppa/conf.c log diff annotate
src/sys/arch/i386/i386/autoconf.c log diff annotate
message Constify nam2blk[], chrtoblktbl[] and octeon devmap[].
ok mpi@ millert@

date 2022-09-02T20:06:56Z
author miod
files src/sys/arch/i386/i386/conf.c log diff annotate
src/sys/arch/landisk/landisk/autoconf.c log diff annotate
src/sys/arch/landisk/landisk/conf.c log diff annotate
src/sys/arch/loongson/loongson/autoconf.c log diff annotate
src/sys/arch/loongson/loongson/conf.c log diff annotate
src/sys/arch/luna88k/luna88k/autoconf.c log diff annotate
src/sys/arch/luna88k/luna88k/conf.c log diff annotate
src/sys/arch/macppc/macppc/autoconf.c log diff annotate
src/sys/arch/macppc/macppc/conf.c log diff annotate
src/sys/arch/octeon/octeon/autoconf.c log diff annotate
src/sys/arch/octeon/octeon/conf.c log diff annotate
src/sys/arch/powerpc64/powerpc64/autoconf.c log diff annotate
src/sys/arch/powerpc64/powerpc64/conf.c log diff annotate
src/sys/arch/riscv64/riscv64/autoconf.c log diff annotate
src/sys/arch/riscv64/riscv64/conf.c log diff annotate
src/sys/arch/sparc64/sparc64/autoconf.c log diff annotate
src/sys/arch/sparc64/sparc64/conf.c log diff annotate
src/sys/kern/subr_disk.c log diff annotate
src/sys/sys/conf.h log diff annotate
message Constify nam2blk[], chrtoblktbl[] and octeon devmap[].
ok mpi@ millert@