OpenBSD/src jl7MbShsys/netinet6 in6.c

   Fix white spaces and use __func__ in printf().
VersionDeltaFile
1.231+26-26sys/netinet6/in6.c
+26-261 files

OpenBSD/src UDHxHkslib/libkvm kvm_proc2.c, sys/kern kern_acct.c kern_sysctl.c

   struct proc: change ps_start from utc time to uptime

   Allows us to determine how long a process has been running, even if the
   UTC clock jumps.

   With help from bluhm@ and millert@, who squashed several bugs.

   ok bluhm@ millert@

OpenBSD/src 50EO890share/man/man9 microtime.9, sys/kern kern_tc.c

   nanoboottime(9): add and document new interface

   Wanted for upcoming process accounting changes, maybe useful elsewhere.

   ok bluhm@ millert@
VersionDeltaFile
1.49+10-1sys/kern/kern_tc.c
1.19+7-2share/man/man9/microtime.9
1.47+2-1sys/sys/time.h
+19-43 files

OpenBSD/src 1IZMRwGsys/kern uipc_mbuf.c

   Replace the mutex that protects the mbuf allocation limit by an
   atomic operation.
   OK visa@ cheloha@
VersionDeltaFile
1.273+12-26sys/kern/uipc_mbuf.c
+12-261 files

OpenBSD/src H8uQqdUsys/scsi sd.c

   No need to always pass the same thing to sd_get_parms(). One less
   parameter to worry about.
VersionDeltaFile
1.291+8-8sys/scsi/sd.c
+8-81 files

OpenBSD/src 0OqS1qGsys/conf newvers.sh

   6.6-stable
VersionDeltaFile
1.171.2.1+2-2sys/conf/newvers.sh
+2-21 files

OpenBSD/src mbBF80kshare/man/man1 proot.1

   reflect reality. PORTS_PRIVSEP for instance is not a directory value
VersionDeltaFile
1.6+3-3share/man/man1/proot.1
+3-31 files

OpenBSD/src TwbkhTrusr.sbin/httpd server_http.c

   Do not log "(null)" in debug logging.
   OK deraadt
VersionDeltaFile
1.134+3-2usr.sbin/httpd/server_http.c
+3-21 files

OpenBSD/src E6eaf9Vshare/man/man4 pwmbl.4

   fix SEE ALSO;
VersionDeltaFile
1.2+3-3share/man/man4/pwmbl.4
+3-31 files

OpenBSD/src b7g5abLusr.bin/ssh ssh-keygen.1

   fixes from lucas;
VersionDeltaFile
1.172+5-4usr.bin/ssh/ssh-keygen.1
+5-41 files

OpenBSD/src TjI1g3retc moduli, usr.bin/ssh/moduli-gen moduli.2048 moduli.3072

   Import regenerated moduli file.

OpenBSD/src t5ANwF7sys/net bpf.c bpfdesc.h

   put bpfdesc reference counting back, revert change introduced in 1.175 as:
       BPF: remove redundant reference counting of filedescriptors

   Anton@ made problem crystal clear:
       I've been looking into a similar bpf panic reported by syzkaller,
       which looks somewhat related. The one reported by syzkaller is caused
       by issuing ioctl(SIOCIFDESTROY) on the interface which the packet filter
       is attached to. This will in turn invoke the following functions
       expressed as an inverted stacktrace:
         1. bpfsdetach()
         2. vdevgone()
         3. VOP_REVOKE()
         4. vop_generic_revoke()
         5. vgonel()
         6. vclean(DOCLOSE)
         7. VOP_CLOSE()
         8. bpfclose()

       Note that bpfclose() is called before changing the vnode type. In
       bpfclose(), the `struct bpf_d` is immediately removed from the global
       bpf_d_list list and might end up sleeping inside taskq_barrier(systq).
       Since the bpf file descriptor (fd) is still present and valid, another
       thread could perform an ioctl() on the fd only to fault since
       bpfilter_lookup() will return NULL. The vnode is not locked in this path
       either so it won't end up waiting on the ongoing vclean().

    [13 lines not shown]
VersionDeltaFile
1.182+44-9sys/net/bpf.c
1.39+2-1sys/net/bpfdesc.h
+46-102 files

OpenBSD/src uG9bDnadistrib/sets/lists/man mi

   sync
VersionDeltaFile
1.1540+2-0distrib/sets/lists/man/mi
+2-01 files

OpenBSD/src l02vAMpshare/man/man4 pwmbl.4 sxipwm.4

OpenBSD/src WoAt320sys/arch/arm64/conf GENERIC, sys/dev/fdt sxipwm.c pwmbl.c

   Add sxipwm(4) and pwmbl(4).  Thse two drivers together add support for the
   backlight controller on the Pinebook.

   ok patrick@, jsg@

OpenBSD/src grfWzaZsys/dev/acpi acpithinkpad.c

   On newer ThinkPads reporting HKEY version > 1, don't claim wscons
   backlight controls so that acpivout can.  This allows using all of
   the fine-grained backlight BCL steps defined in ACPI (usually 100)
   instead of the dozen or so available through acpithinkpad's
   proprietary ACPI or CMOS interfaces.

   This is also needed for future amdgpu work.
VersionDeltaFile
1.67+5-3sys/dev/acpi/acpithinkpad.c
+5-31 files

OpenBSD/src JfQVeBjsys/dev/acpi acpivout.c

   When incrementing or decrementing screen brightness, don't just
   adjust by 1 BCL level as there may be 100 levels.  Find the next
   brightness level that is at least 5% up or down and use that.

   ok kettenis
VersionDeltaFile
1.14+20-33sys/dev/acpi/acpivout.c
+20-331 files

OpenBSD/src 7iX7W4Xgnu/usr.bin/binutils/gdb amd64obsd-tdep.c

   Fix backtrace across signals on amd64
   okay guenther@ kettenis@
VersionDeltaFile
1.13+23-13gnu/usr.bin/binutils/gdb/amd64obsd-tdep.c
+23-131 files

OpenBSD/src uD9VXIPsys/kern kern_fork.c, sys/sys proc.h sched.h

   Move `p_estcpu' to the region copied during fork & kill scheduler_fork_hook().

   While here reorder some fields in 'struct proc' to avoid size grow.

   ok bluhm@, visa@
VersionDeltaFile
1.215+1-8sys/kern/kern_fork.c
1.274+4-4sys/sys/proc.h
1.56+1-6sys/sys/sched.h
+6-183 files

OpenBSD/src slJArP2lib/librthread synch.h

   Use process-private futexes to avoid the uvm_map lookup overhead.

   While here kill unused _wait() function.

   ok visa@
VersionDeltaFile
1.5+5-12lib/librthread/synch.h
+5-121 files

OpenBSD/src jbNAbSNlib/libc/thread synch.h

   Kill unused _wait() function.

   ok visa@
VersionDeltaFile
1.4+1-8lib/libc/thread/synch.h
+1-81 files

OpenBSD/src CJQPHqzsys/dev/usb usbdi.c

   Mark recycled USB `xfer' as NOT_STARTED to not confuse HCD abort methods.

   Prevent an infinite loop when aborting ulpt(4)'s pipe after an I/O error.

   Found by and ok stsp@
VersionDeltaFile
1.102+2-1sys/dev/usb/usbdi.c
+2-11 files

OpenBSD/src v5nZ7bmsbin/unwind parse.y unwind.conf.5

   Optionally log blocked queries when using the block list.
   OK benno

OpenBSD/src IV507Bedistrib/special/doas doas.c

   keep in sync with regular doas. req by millert
VersionDeltaFile
1.4+4-2distrib/special/doas/doas.c
+4-21 files

OpenBSD/src tbfbOPolibexec/ld.so/hppa Makefile.inc, libexec/ld.so/mips64 Makefile.inc

   Whoops: backout mips64+hppa CHECK_LDSO bits: they weren't done and weren't
   part of the review.  My fail for forgetting to diff my tree against what
   was reviewed

   problem noted by deraadt@

OpenBSD/src fUG5PBXsys/arch/amd64/stand/boot boot.8, sys/arch/hppa/stand/boot boot.8

   Improve previous

   From and OK jmc

OpenBSD/src Kiqoc9Ketc/etc.sparc64 MAKEDEV

   regen
VersionDeltaFile
1.199+2-1etc/etc.sparc64/MAKEDEV
+2-11 files

OpenBSD/src GvMfwSyetc/etc.sparc64 MAKEDEV.md

   Add /dev/pri.
VersionDeltaFile
1.88+2-1etc/etc.sparc64/MAKEDEV.md
+2-11 files

OpenBSD/src F3RMYWisys/arch/sparc64/include mdesc.h hypervisor.h, sys/arch/sparc64/sparc64 mdesc.c openprom.c

   Firmware that supports the "parallel boot" feature allows us to read the PRI
   using a simple hypervisor call.  Implement this.

   Tested by jmatthew@

OpenBSD/src nKgyu08usr.sbin/slaacctl slaacctl.c

   Remove redundant newline.
   pointed out by deraadt@
VersionDeltaFile
1.16+1-2usr.sbin/slaacctl/slaacctl.c
+1-21 files

OpenBSD/src ZkGGLzbusr.sbin/ldomd ds.c

   Print LDC protocol version in debug message.
VersionDeltaFile
1.9+2-2usr.sbin/ldomd/ds.c
+2-21 files

OpenBSD/src I1FS3Kesys/arch/amd64/stand/boot boot.8, sys/arch/hppa/stand/boot boot.8

   Document "set db_console 0|1"

   OK deraadt

OpenBSD/src LlfpuTjusr.sbin/cron atrun.c

   Use strtonum(3) in atrun.  Also limit uid/gid to UID_MAX-1 and
   GID_MAX-1 for good measure.  OK deraadt@
VersionDeltaFile
1.52+99-76usr.sbin/cron/atrun.c
+99-761 files

OpenBSD/src 8dmoQFUusr.sbin/syspatch syspatch.sh, usr.sbin/sysupgrade sysupgrade.sh

   Tweak and sync comment.

OpenBSD/src cPYWpgSusr.sbin/pkg_add/OpenBSD PackingElement.pm

   I didn't check robert's fix closely enough.
   fix it so commands are run when several fontdirs are involved
   also streamline the alias code a little bit, and have it report actual
   issues in opening files
VersionDeltaFile
1.272+28-19usr.sbin/pkg_add/OpenBSD/PackingElement.pm
+28-191 files

OpenBSD/src F3TYnF6sys/dev/pci/drm/amd/amdgpu amdgpu_ttm.c

   unstub amdgpu_ttm_bo_eviction_valuable()

   The remaining commented block of code calls amdkfd_fence_check_mm()
   which does nothing when not built with CONFIG_HSA_AMD.

OpenBSD/src 6SW0NlQlibexec/ld.so boot.c Makefile, libexec/ld.so/hppa boot_md.c Makefile.inc

   For more archs, ld.so itself only needs/uses the arch's "just add load offset"
   'relative' relocation.  Take advantage of that to simplify ld.so's self-reloc
   code:
    * give the exceptional archs (hppa and mips64) copies of the current boot.c
      as boot_md.c
    * teach the Makefile to use boot_md.c when present
    * reduce boot.c down to the minimum necessary to handle just relative reloc
    * teach the Makefile to fail if the built ld.so has other types of relocs

   ok visa@ kettenis@

OpenBSD/src ERuojFXusr.bin/tmux window-copy.c tmux.1

   Add formats for cursor and selection position in copy mode, from Jason Felice.
VersionDeltaFile
1.236+12-2usr.bin/tmux/window-copy.c
1.691+8-2usr.bin/tmux/tmux.1
+20-42 files

OpenBSD/src 9Xmsvx9sbin/unwind resolver.c

   Plug mem leak when the list of dhcp resolvers didn't change. ok florian@
VersionDeltaFile
1.46+8-2sbin/unwind/resolver.c
+8-21 files

OpenBSD/src mwINDbnsys/scsi sd.c

   Use !ISSET() for unset flag checks.
VersionDeltaFile
1.290+17-17sys/scsi/sd.c
+17-171 files

OpenBSD/src mMacXjKsys/scsi sd.c

   Use ISSET() for the easier flag checks.
VersionDeltaFile
1.289+54-54sys/scsi/sd.c
+54-541 files

OpenBSD/src ZgYt1rRsys/scsi sd.c

   Fix typo in previous, link->flag is link->flags.
VersionDeltaFile
1.288+2-2sys/scsi/sd.c
+2-21 files

OpenBSD/src TbsnmIzsys/scsi sd.c

   Resolve mix of '&=' and CLR() usage in favour of CLR().
VersionDeltaFile
1.287+6-6sys/scsi/sd.c
+6-61 files

OpenBSD/src p4Lp3VPsys/scsi sd.c

   Resolve mix of '|=' and SET() usage in favour of SET().
VersionDeltaFile
1.286+12-12sys/scsi/sd.c
+12-121 files

OpenBSD/src dhDpjModistrib/miniroot install.sub, usr.sbin/syspatch syspatch.sh

   Determine the OS version in a way that won't break after 9.9.
   Do it the same way in all three copies of the code.

   Based on a patch from Chris Waddey.
   with & ok ajacoutot

OpenBSD/src LX50VOkusr.bin/tmux layout-custom.c

   Do not crash trying to fix layout size if only one cell, from Azat Khuzhin.
VersionDeltaFile
1.18+2-2usr.bin/tmux/layout-custom.c
+2-21 files

OpenBSD/src LCQGXRmusr.sbin/bgpctl bgpctl.8

   The size limit of the shutdown reason was relaxed to 255 characters but
   instead of mentioning the limit, remove it. bgpctl will properly error
   out if the reason is too long.
   OK job@ sthen@
VersionDeltaFile
1.93+2-8usr.sbin/bgpctl/bgpctl.8
+2-81 files

OpenBSD/src O2b3xH7sys/miscfs/deadfs dead_vnops.c

   Unlock the vnode in vop_inactive of deadfs. The unlock operation is
   a no-op at the moment, but future work will introduce an actual lock
   that has to be released.

   OK mpi@ anton@
VersionDeltaFile
1.30+12-2sys/miscfs/deadfs/dead_vnops.c
+12-21 files

OpenBSD/src 5U8SGzKsys/netinet6 nd6_nbr.c

   Don't check that the ipv6 source address of a neighbor advertisment is
   from a neighbor's address. Sthen@ dug out RFC 4861 4.4 that says that
   the source address is "An address assigned to the interface from which
   the advertisement is sent." -- which can be from a network that the
   receiver does not know about. Indeed my provider sends such a neighbor
   advertisment for my default gateway, which breaks my uplink.

   Claudio@ added this check for symetry with NetBSD code when he added
   the same check to nd6_ns_input(), where it is needed to fix
   CVE-2008-2476. See also OpenBSD 4.2 errata 15.

   ok claudio@, kn@
VersionDeltaFile
1.128+1-10sys/netinet6/nd6_nbr.c
+1-101 files

OpenBSD/src gQDYu0rusr.bin/doas doas.c

   add some checks to avoid UID_MAX (-1) here. this is not problematic with
   the current code, but it's probably safer this way.
   ok deraadt
VersionDeltaFile
1.82+7-3usr.bin/doas/doas.c
+7-31 files