OpenBSD/src BdGkrGL — sys/kern kern_sysctl.c

   Unlock KERN_HOSTNAME and KERN_DOMAINNAME sysctl paths.

   Use the new hostname_mtx mutex to protect data. Use the temporary buffer
   for exchange with userland. We have some areas outside sysctl layer
   where we do read-only kernel-locked access to the hostname and the
   domainname, so keep modification under two locks. The mutex could be
   pushed in such areas later.

   We also do hostname and domainname modification during kernel bootstrap
   on diskless stations, but this happens at early startup before rootfs
   mount.

   ok deraadt
VersionDeltaFile
1.499+62-20sys/kern/kern_sysctl.c
+62-201 files

OpenBSD/src CbCSb5z — usr.sbin/smtpd smtpd.c

   fail on usernames that are too long

   and passwords too while we're at it, even if even more unlikely.

   spotted by acts
   okay deraadt, millert
VersionDeltaFile
1.367+4-3usr.sbin/smtpd/smtpd.c
+4-31 files

OpenBSD/src uzuW6aI — usr.sbin/smtpd proxy.c

   fill socket length

   socket length needs to be set when building the various sockaddr
   structures, otherwise m_add_sockaddr() is going to serialize exactly
   zero bytes.

   spotted by acts, thank you!
VersionDeltaFile
1.4+3-0usr.sbin/smtpd/proxy.c
+3-01 files

OpenBSD/src YH43JkU — gnu/llvm/lld/ELF Driver.cpp

   Fix .note.gnu.property values in ld -b binary invocations

   ld.lld -b binary generated bogus .note.gnu.property values because in
   such invocations there are no ELF object files to AND the -1 initial
   value with. Use 0 as a starting value in that case.

   Upstream PR: https://github.com/llvm/llvm-project/pull/238541

   ok robert@ kettenis@
VersionDeltaFile
1.27+8-2gnu/llvm/lld/ELF/Driver.cpp
+8-21 files

OpenBSD/src w5vQlpB — sys/arch/amd64/amd64 vector.S machdep.c, sys/arch/amd64/include vmmvar.h

   SEV-SNP: Register GHCB and handle #VC for unvalidated pages

   More preparations for SEV-SNP: With SNP enabled, the GHCB page needs
   to be registered with the hypervisor through the GHCB MSR protocol.

   When we are an SNP enabled guest and touch a page that has not been
   validated by us, the CPU delivers a #VC with error code
   SVM_VMEXIT_PAGE_NOT_VALIDATED.  In that case we panic.

   vctrap() now takes the faulting address as an additional argument,
   so vctrap_early() has to pass %cr2 in %r8.  While there, also zero
   the arguments sig and code: vctrap_early() is always in kernel mode,
   so user is zero and they are never used.

   ok mlarkin
VersionDeltaFile
1.120+18-5sys/arch/amd64/amd64/trap.c
1.316+15-3sys/arch/amd64/amd64/machdep.c
1.109+4-1sys/arch/amd64/amd64/vector.S
1.124+2-1sys/arch/amd64/include/vmmvar.h
+39-104 files

OpenBSD/src k7l9BWo — sys/net pf_lb.c

   pf(4): depleted source port pool for NAT starves other packets

   The function pf_get_sport() in current selects the source port
   number for network address translation (a.k.a. NAT). It basically
   chooses a random source port and uses pf_find_state_all()
   to check if the chosen port number is already in use for a particular NAT
   address. If the port is already in use, pf_get_sport() selects
   another port number and retries. This process continues as long
   as the chosen port number collides with an existing address:port tuple.
   The problem is that all this happens under the protection of
   PF_LOCK(). This effectively stops pf(4) rule evaluation
   for other packets that enter the firewall and have no state.

   The fix introduces a limit on retries. The limit is set to 128.
   If no free port number is found within 128 attempts, the function
   gives up. The packet is dropped and PF_LOCK() is released so other
   packets waiting for a rule check can be inspected by pf_test().

   The issue was kindly reported and the fix submitted by Acts-1631.

    [2 lines not shown]
VersionDeltaFile
1.79+18-1sys/net/pf_lb.c
+18-11 files

OpenBSD/src 6V1ipQH — sys/kern vfs_subr.c

   Revert sys/vfs: skip DOCLOSE for incomplete spec vnodes

   Since sys/vfs: stop checkalias replacing vnodes we don't need it anymore

   OK: beck@
VersionDeltaFile
1.339+3-5sys/kern/vfs_subr.c
+3-51 files

OpenBSD/src fKG8Mj6 — regress/sys/kern/sosplice/scapy Makefile, regress/sys/net/pf_forward Makefile

   Use env to run python in regress.  Makes using doas smoother.
VersionDeltaFile
1.12+2-2regress/sys/netinet/frag/Makefile
1.16+2-2regress/sys/netinet/arp/Makefile
1.17+2-2regress/sys/net/pf_state/Makefile
1.31+2-2regress/sys/net/pf_fragment/Makefile
1.37+2-2regress/sys/net/pf_forward/Makefile
1.12+2-2regress/sys/kern/sosplice/scapy/Makefile
+12-124 files not shown
+20-2010 files

OpenBSD/src PU29okT — sys/dev/pci/drm drm_gem.c

   raise the gem object size limit from 512M to 1.5G

   volker@ reports that llama.cpp wants slightly more than 1G sized objects
   when running on inteldrm (Raptor Lake).
VersionDeltaFile
1.36+1-1sys/dev/pci/drm/drm_gem.c
+1-11 files

OpenBSD/src 38LAlXY — distrib/sets/lists/comp mi

   sync
VersionDeltaFile
1.1772+2-1distrib/sets/lists/comp/mi
+2-11 files

OpenBSD/src g7ilFZI — sys/miscfs/fuse fuse_vnops.c, sys/ufs/ext2fs ext2fs_vnops.c

   sys: respect vnode's contract in mknod

   OK: beck@
VersionDeltaFile
1.166+3-2sys/ufs/ufs/ufs_vnops.c
1.96+3-2sys/ufs/ext2fs/ext2fs_vnops.c
1.80+3-2sys/miscfs/fuse/fuse_vnops.c
+9-63 files

OpenBSD/src DnVgjKN — lib/libssl ssl_rsa.c ssl_local.h

   libssl: stop inspecting cert signatures for seclevel

   As pointed out by dadrian to OpenSSL in #31195, it makes no sense
   to inspect our certificate's signatures. Our stack may not even
   know the algorithms our CA used (think some PQ CA, for example).

   What matters to us is that we don't use a key that is too weak,
   so keep the check for that.

   We do not currently inspect the peer's cert for strength either.
   That may be an omission/bug.

   On side effect of this removal is that we do no longer ensure that
   a RSA-PSS cert has a salt length matching the hash length. That's
   not really part of security, and if we care to restore this for
   reasons of compliance, we should think about where to put it in
   a way that throws a better error than 'ca md too weak'

   Prompted by a report by semarie.

    [2 lines not shown]
VersionDeltaFile
1.32+4-70lib/libssl/ssl_seclevel.c
1.54+2-2lib/libssl/ssl_rsa.c
1.52+2-2lib/libssl/ssl_local.h
+8-743 files

OpenBSD/src KrqT0GN — lib/libssl ssl_cert.c

   libssl: stop inspecting our cert chain for "security"

   The chain signing our leaf cert is not crypto we ourselves use. The peer
   can decide that the weak crypto is unacceptable if they care.

   ok beck
VersionDeltaFile
1.109+1-18lib/libssl/ssl_cert.c
+1-181 files

OpenBSD/src ozLm3Sk — lib/libssl ssl_local.h ssl_seclevel.c

   libssl: remove the unused ssl_security_cert_chain()

   ok beck
VersionDeltaFile
1.31+1-33lib/libssl/ssl_seclevel.c
1.51+1-3lib/libssl/ssl_local.h
+2-362 files

OpenBSD/src Vl36uQb — regress/usr.sbin/relayd args-http-tag-persistent.pl args-http-tag-reset-persistent.pl

   Add tag tests

   - test that a tag stays on a persistent connection
   - test that a tag set at the start of each request resets the tag of a
     persistent connection.
VersionDeltaFile
1.1+38-0regress/usr.sbin/relayd/args-http-tag-reset-persistent.pl
1.1+35-0regress/usr.sbin/relayd/args-http-tag-persistent.pl
+73-02 files

OpenBSD/src YkilxKj — regress/usr.sbin/relayd args-http-pattern-query.pl args-http-pattern-url-log.pl

   Add tests for "pattern" patterns(7) matching
VersionDeltaFile
1.1+32-0regress/usr.sbin/relayd/args-http-pattern-url.pl
1.1+32-0regress/usr.sbin/relayd/args-http-pattern-header.pl
1.1+29-0regress/usr.sbin/relayd/args-http-pattern-query-name.pl
1.1+28-0regress/usr.sbin/relayd/args-http-pattern-url-log.pl
1.1+28-0regress/usr.sbin/relayd/args-http-pattern-cookie-name.pl
1.1+27-0regress/usr.sbin/relayd/args-http-pattern-query.pl
+176-02 files not shown
+230-08 files

OpenBSD/src dFc5wRf — regress/usr.sbin/relayd args-http-path-set-pattern.pl args-http-path-set-glob.pl

   Add tests for path syntax machting
VersionDeltaFile
1.1+31-0regress/usr.sbin/relayd/args-http-path-set-pattern.pl
1.1+31-0regress/usr.sbin/relayd/args-http-path-set-glob.pl
+62-02 files

OpenBSD/src JGEax7r — regress/usr.sbin/relayd args-http-literal-cookie-name.pl args-http-literal-url.pl

   Add tests for literal matching
VersionDeltaFile
1.1+32-0regress/usr.sbin/relayd/args-http-literal-url.pl
1.1+27-0regress/usr.sbin/relayd/args-http-literal-cookie-name.pl
+59-02 files

OpenBSD/src GSERpgt — regress/usr.sbin/relayd args-http-header-log-any.pl args-http-header-remove-glob-icase.pl

   Add tests for header log and header remove syntax
VersionDeltaFile
1.1+31-0regress/usr.sbin/relayd/args-http-header-remove-glob-icase.pl
1.1+22-0regress/usr.sbin/relayd/args-http-header-log-any.pl
+53-02 files

OpenBSD/src mAngS5P — regress/usr.sbin/relayd args-http-glob-header-name-icase.pl args-http-glob-path-value-case.pl

   Add tests for "glob ignorecase" and "glob" syntax and unspecified behaviour
VersionDeltaFile
1.1+33-0regress/usr.sbin/relayd/args-http-glob-url-case.pl
1.1+32-0regress/usr.sbin/relayd/args-http-glob-icase-url.pl
1.1+32-0regress/usr.sbin/relayd/args-http-glob-icase-header-name.pl
1.1+31-0regress/usr.sbin/relayd/args-http-glob-path-value-case.pl
1.1+31-0regress/usr.sbin/relayd/args-http-glob-icase-header-value.pl
1.1+30-0regress/usr.sbin/relayd/args-http-glob-header-name-icase.pl
+189-07 files not shown
+374-013 files

OpenBSD/src dbMUfKU — regress/usr.sbin/relayd args-http-file-value-keyword.in args-http-file-key-header-pattern.in

   Add tests for "file" syntax and handling
VersionDeltaFile
1.1+39-0regress/usr.sbin/relayd/args-http-file-value-keyword.pl
1.1+35-0regress/usr.sbin/relayd/args-http-file-key-header.pl
1.1+32-0regress/usr.sbin/relayd/args-http-file-key-path.pl
1.1+31-0regress/usr.sbin/relayd/args-http-file-key-cookie.pl
1.1+1-0regress/usr.sbin/relayd/args-http-file-value-keyword.in
1.1+1-0regress/usr.sbin/relayd/args-http-file-key-header-pattern.in
+139-01 files not shown
+140-07 files

OpenBSD/src U3kiWVv — regress/usr.sbin/relayd args-http-compat-path-file.pl args-http-compat-header-value-glob.pl

   Add tests to check for backward compatibility in match'ing syntax
VersionDeltaFile
1.1+34-0regress/usr.sbin/relayd/args-http-compat-header-file.pl
1.1+31-0regress/usr.sbin/relayd/args-http-compat-path-file.pl
1.1+31-0regress/usr.sbin/relayd/args-http-compat-header-value-glob.pl
1.1+31-0regress/usr.sbin/relayd/args-http-compat-header-remove-pattern.pl
1.1+31-0regress/usr.sbin/relayd/args-http-compat-header-remove-glob.pl
1.1+31-0regress/usr.sbin/relayd/args-http-compat-header-name-glob.pl
+189-014 files not shown
+472-020 files

OpenBSD/src pIx1lur — usr.bin/ssh krl.c

   reorder comparison functions to be simpler and faster, requested by
   markus@ and tb@, ok tb@
VersionDeltaFile
1.68+9-15usr.bin/ssh/krl.c
+9-151 files

OpenBSD/src KTlN0s1 — sys/dev/pci/drm/amd/pm/powerplay/hwmgr process_pptables_v1_0.c

   drm/amdgpu/powerplay: Align get_tonga_state_array() header with prototype

   From Srinivasan Shanmugam
   34bdda87c1890b18f0dc40211ec755e392168c6c in linux-6.18.y/6.18.61
   4986757d3207383c052689532e505edccc6df7c8 in mainline linux
VersionDeltaFile
1.7+4-3sys/dev/pci/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c
+4-31 files

OpenBSD/src v9ksRp9 — sys/dev/pci/drm/amd/amdgpu uvd_v3_1.c

   drm/amdgpu/uvd3.1: Fix checking whether UVD firmware keyselect was already set

   From Timur Kristof
   b97686f158517c81b3936ac28b987cbdaf0b7f8e in linux-6.18.y/6.18.61
   800ea86e83e137395eba54103e5c459c2bc9965f in mainline linux
VersionDeltaFile
1.3+1-1sys/dev/pci/drm/amd/amdgpu/uvd_v3_1.c
+1-11 files

OpenBSD/src CKdrjoA — sys/dev/pci/drm/amd/display/amdgpu_dm amdgpu_dm_mst_types.c

   drm/amd/display: guard dc_sink dereferences in MST mode validation

   From Hari Mishal
   5684a6c24c0d7c40ef2c4ccb3e4a64cffe76a791 in linux-6.18.y/6.18.61
   217f64f348c90cba62164e7ff38e0ccf78a5ca09 in mainline linux
VersionDeltaFile
1.41+3-0sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
+3-01 files

OpenBSD/src ISq8R9t — sys/dev/pci/drm/amd/amdgpu gmc_v12_0.c

   drm/amdgpu/gmc12: properly pass flush_type to gmc_v12_0_flush_vm_hub()

   From Alex Deucher
   81a1c7eba334786aed6806a29699bd284fc12029 in linux-6.18.y/6.18.61
   0bfb1bfc82e8fa386d4fad1caa5812b6afafa626 in mainline linux
VersionDeltaFile
1.8+1-1sys/dev/pci/drm/amd/amdgpu/gmc_v12_0.c
+1-11 files

OpenBSD/src P12wlpg — sys/dev/pci/drm/amd/amdgpu gmc_v12_0.c

   drm/amdgpu: remove gart_window_lock usage from gmc v12

   From Pierre-Eric Pelloux-Prayer
   84cc155bf4cd4ab518bb91b517c1b760b0de6c04 in linux-6.18.y/6.18.61
   c79cf5a7d903a16459846b4296fc3cd988837c54 in mainline linux
VersionDeltaFile
1.7+0-2sys/dev/pci/drm/amd/amdgpu/gmc_v12_0.c
+0-21 files

OpenBSD/src stB5alK — sys/dev/pci/drm/amd/display/dc/resource/dce60 dce60_resource.c

   drm/amd/display: Fix fast updates on DCE 6.x

   From Timur Kristof
   bdb5784531b2148f00a5ff5df0fc61bceebf4525 in linux-6.18.y/6.18.61
   88427119e1f039c8cdffd63726c136a986ef519f in mainline linux
VersionDeltaFile
1.5+7-0sys/dev/pci/drm/amd/display/dc/resource/dce60/dce60_resource.c
+7-01 files

OpenBSD/src l2iYy4y — sys/dev/pci/drm/amd/amdkfd kfd_mqd_manager_vi.c kfd_mqd_manager_v9.c

   drm/amdkfd: Avoid integer underflow in EOP ring size calculation.

   From David Francis
   3c97f7cb6c48826663648b6081b614c2befc8ac7 in linux-6.18.y/6.18.61
   8ee521b8b189799e361d4233c5180ba56656d4d4 in mainline linux
VersionDeltaFile
1.14+5-1sys/dev/pci/drm/amd/amdkfd/kfd_mqd_manager_v9.c
1.9+4-1sys/dev/pci/drm/amd/amdkfd/kfd_mqd_manager_vi.c
+9-22 files