OpenBSD cvs log

created 2023-08-08T14:03:09Z
begin 2022-10-04T00:00:00Z
end 2022-10-11T00:00:00Z
path src/sys
commits 29

date 2022-10-04T19:36:20Z
author kettenis
files src/sys/arch/arm64/include/armreg.h log diff annotate
message Add a few more PSTATE bits.

ok deraadt@

date 2022-10-04T19:38:20Z
author miod
files src/sys/dev/usb/ukbd.c log diff annotate
message Repair Apple-specific translation support broken by mistake in 1.88; reported
by Leonardo Moreno

date 2022-10-04T19:41:21Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
src/sys/arch/arm64/arm64/machdep.c log diff annotate
message On CPUs that support the Data Independent Timing feature, enable this feature
by default in both the kernel and userland. At this point, this feature has
only been seen on Apple's CPU cores, where turning it on has no measurable
impact on performance. Turning this feature on should help to mitigate
timing side-channel attacks.

ok deraadt@, beck@

date 2022-10-06T23:32:17Z
author kn
files src/sys/arch/sparc64/stand/libz/Makefile log diff annotate
message Build CRC calc/static block decode tables when needed to fix netboot

The last libz update broke sparc64's ofwboot.net on at least T4-2 machines
running OpenBoot 4.38.16 as bootblocks grew too big for OBP to load:

# size ofwboot.net.*
60684 596 2472 63752 f908 ofwboot.net.71
71340 596 2472 74408 122a8 ofwboot.net.snap

{0} ok boot net
Boot device: /virtual-devices@100/channel-devices@200/network@0 File and args:
TFTP: Transfer timed out

As suggested by tb, adapt b7dd453d18bbd69c3a22e9c7e44e83163348942a to make
OBP load and execute ofwboot.net over TFTP again on at least T4-2 and T5220
where ofwboot off disk keeps loading and both bootblocks boot plain and
gzipped kernels before.

Overall size is now smaller that 7.1 release:
-current
71340 596 2472 74408 122a8 ofwboot.net/obj/ofwboot.net
119580 532 2512 122624 1df00 ofwboot/obj/ofwboot
71140 532 2472 74144 121a0 ofwbootfd/obj/ofwbootfd
-current with -DDYNAMIC_CRC_TABLE -DBUILDFIXED
59788 608 15040 75436 126ac ofwboot.net/obj/ofwboot.net
108028 544 15080 123652 1e304 ofwboot/obj/ofwboot
59588 544 15040 75172 125a4 ofwbootfd/obj/ofwbootfd

happy kettenis
OK tb

date 2022-10-07T02:52:46Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_shmem.c log diff annotate
message unstub i915_gem_object_create_shmem_from_data()

date 2022-10-07T02:58:01Z
author jsg
files src/sys/dev/pci/drm/include/linux/bsearch.h log diff annotate
message add bsearch() from libc

date 2022-10-07T02:59:25Z
author jsg
files src/sys/dev/pci/drm/i915/gt/uc/intel_guc_ads.c log diff annotate
message unstub guc_mmio_reg_add()

date 2022-10-07T03:00:44Z
author jsg
files src/sys/dev/pci/drm/include/linux/circ_buf.h log diff annotate
message add CIRC_SPACE()

date 2022-10-07T03:05:28Z
author jsg
files src/sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c log diff annotate
message unstub guc_ct_buffer_reset() h2g_has_room()

date 2022-10-07T03:09:26Z
author jsg
files src/sys/dev/pci/drm/include/linux/delay.h log diff annotate
message add msleep_interruptible()

date 2022-10-07T03:12:22Z
author jsg
files src/sys/dev/pci/drm/i915/gt/uc/intel_guc.h log diff annotate
src/sys/dev/pci/drm/i915/gt/uc/intel_guc_ct.c log diff annotate
message unstub intel_guc_send_busy_loop() ct_send()

date 2022-10-07T03:20:58Z
author deraadt
files src/sys/sys/exec_elf.h log diff annotate
message Add identifiers for the new "mutable bss" section, ".openbsd.mutable" is
0x65a3dbe5. Also add PF_MUTABLE as a segment flag for later use.

date 2022-10-07T05:01:44Z
author deraadt
files src/sys/uvm/uvm.h log diff annotate
message new UVM_ET_IMMUTABLE flag marks a uvm entry as immutable.

date 2022-10-07T14:59:39Z
author deraadt
files src/sys/arch/mips64/mips64/trap.c log diff annotate
src/sys/kern/exec_subr.c log diff annotate
src/sys/kern/kern_exec.c log diff annotate
src/sys/kern/kern_pledge.c log diff annotate
src/sys/kern/kern_resource.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
src/sys/sys/mman.h log diff annotate
src/sys/uvm/uvm_extern.h log diff annotate
src/sys/uvm/uvm_io.c log diff annotate
src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_map.h log diff annotate
src/sys/uvm/uvm_mmap.c log diff annotate
message Add mimmutable(2) system call which locks the permissions (PROT_*) of
memory mappings so they cannot be changed by a later mmap(), mprotect(),
or munmap(), which will error with EPERM instead.
ok kettenis

date 2022-10-07T15:00:12Z
author deraadt
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 sync

date 2022-10-07T19:34:40Z
author krw
files src/sys/sys/disklabel.h log diff annotate
message Nuke GPTDOSACTIVE which specified the wrong bit. It was superseded by
GPTPARTATTR_BOOTABLE which specifies the correct one.

Reminded by drahn@

date 2022-10-08T06:53:06Z
author mglocker
files src/sys/dev/usb/usbdevs log diff annotate
src/sys/dev/usb/uwacom.c log diff annotate
message Add Wacom One M CTL-672 USB tablet.

date 2022-10-08T06:55:49Z
author mglocker
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message regen

date 2022-10-08T16:42:41Z
author kettenis
files src/sys/sys/exec_elf.h log diff annotate
message Since the PF_MUTABLE flag is an OpenBSD-specific flag, rename it to
PF_OPENBSD_MUTABLE. While there, add the missing PF_MASKOS, which makes
it obvious this bit is indeed in the space reserved for OS-specific bits.

ok deraadt@

date 2022-10-08T16:58:34Z
author deraadt
files src/sys/kern/kern_exec.c log diff annotate
message The signal trampoline and timekeep regions can be marked immutable at
execve() time
ok kettenis

date 2022-10-08T17:03:09Z
author deraadt
files src/sys/kern/kern_exec.c log diff annotate
message The stack can also be marked immutable, because we expect no sane program
to try to change the permissions of it. We won't know who's trying that
until we enable it and see what breaks.
A tricky piece relating to setrlimit stack size changing was previously commited.
ok kettenis

date 2022-10-08T19:46:52Z
author kettenis
files src/sys/dev/acpi/sdhc_acpi.c log diff annotate
message Add PNP ID to make this attach on Qualcomm SoCs.

ok mglocker@, patrick@

date 2022-10-09T02:32:02Z
author kevlo
files src/sys/dev/pci/if_bge.c log diff annotate
src/sys/dev/pci/if_lge.c log diff annotate
src/sys/dev/pci/if_nge.c log diff annotate
message Fix typo in debug messages.

ok deraadt@

date 2022-10-09T20:30:59Z
author kettenis
files src/sys/dev/fdt/rkpinctrl.c log diff annotate
message RK3566/RK3568 support.

ok patrick@

date 2022-10-09T20:31:30Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message RK3566/RK3568 support.

ok mlarkin@, patrick@

date 2022-10-10T01:58:36Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c log diff annotate
message revert amdgpu dirty fb helper changes from 5.15.71

drm/amdgpu: don't register a dirty callback for non-atomic
drm/amdgpu: use dirty framebuffer helper

kettenis found that these changes made xpdf slow on x395 (picasso).
I can not reproduce this on renoir.

date 2022-10-10T03:01:11Z
author jsg
files src/sys/arch/amd64/amd64/amd64errata.c log diff annotate
src/sys/arch/i386/i386/amd64errata.c log diff annotate
message add references to 10h 12h revision guides

date 2022-10-10T16:43:12Z
author bket
files src/sys/net/pf.c log diff annotate
src/sys/net/pf_norm.c log diff annotate
src/sys/net/pfvar.h log diff annotate
message Recalculate checksum of normalised packet

In 2011, henning@ removed fiddling with the ip checksum of normalised
packets in r1.131 of sys/net/pf_norm.c. Rationale was that the checksum
is always recalculated in all output paths anyway. In 2016, procter@
reintroduced checksum modification to preserve end-to-end checksums in
r1.189 of sys/net/pf_norm.c. Likely soomewhere in that timeslot checksum
recalculation of normalised packets was broken.

With input from bluhm@.

OK sashan@, bluhm@

date 2022-10-10T17:45:35Z
author kettenis
files src/sys/dev/fdt/rkpmic.c log diff annotate
message Add support for the RK817 PMIC.

ok patrick@, mlarkin@