OpenBSD/src xxnVONuinclude fnmatch.h

   FNM_CASEFOLD (and its synonym FNM_IGNORECASE) are now part of POSIX.1-2024

   Flagged by Sortix os-test.

   ok millert@, guenther@
VersionDeltaFile
1.9+6-2include/fnmatch.h
+6-21 files

OpenBSD/src 3iM0BWisys/tmpfs tmpfs_subr.c

   sys/tmpfs: use getnanotime() like FFS and MFS

   Editing files on tmpfs uses nanotime() to update mtime, and touch uses
   utimensat(UTIME_NOW) which uses getnanotime() which is cached and which
   can be smaller.

   So, sed ... A && touch B leads to mtime(A) > mtime(B) which isn't excted.

   "Yep" deraadt@
VersionDeltaFile
1.28+2-2sys/tmpfs/tmpfs_subr.c
+2-21 files

OpenBSD/src TjHPfoClib/libcrypto/mlkem mlkem_internal.c

   ML-KEM: ensure that key_768 is only dereferenced with 768-bit keys

   This looks like a NULL dereference that should crash, but for some reason
   it doesn't, even with -O0 with all compilers i tried.  At the very least it
   may result in compilers deducing that key_768 != NULL and lead to incorrect
   optimizations.

   ok claudio jsing kenjiro miod
VersionDeltaFile
1.8+7-3lib/libcrypto/mlkem/mlkem_internal.c
+7-31 files

OpenBSD/src IpzbTqDregress/lib/libcrypto/assembly Makefile

   Add missing include path required to reach newly added crypto_assembly.h
   include.
VersionDeltaFile
1.3+3-2regress/lib/libcrypto/assembly/Makefile
+3-21 files

OpenBSD/src yy24vB8sys/dev/ic qwx.c qwz.c

   Fix typo.
VersionDeltaFile
1.103+2-2sys/dev/ic/qwx.c
1.23+2-2sys/dev/ic/qwz.c
+4-42 files

OpenBSD/src GUMfoR1usr.bin/ssh progressmeter.c

   switch from int to long long for bandwidth calculations; fixes
   rate display when rate > 2GB/s; based on patch from Cyril Servant
   feedback/ok deraadt@
VersionDeltaFile
1.57+3-3usr.bin/ssh/progressmeter.c
+3-31 files

OpenBSD/src erKbJ16lib/libc/sys pledge.2

   After the kernel-writes-the-buffer changes to profil(2) a year ago, the
   profil(2) call only works for stop/restart of profiling.  So pledge no
   longer interferes and it is available in "stdio".
VersionDeltaFile
1.80+2-7lib/libc/sys/pledge.2
+2-71 files

OpenBSD/src oPRguaousr.sbin/vmd vioqcow2.c

   Remove pthread rwlocks from vmd(8)'s qcow code.

   The users of this code are single threaded today. The locks also
   don't look to fully protect key state in qcow images. If/when virtio
   block emulation ends up with multiple virtqueues, this will need
   to be revisited.

   ok mlarkin@, hshoexer@
VersionDeltaFile
1.27+2-12usr.sbin/vmd/vioqcow2.c
+2-121 files

OpenBSD/src GVnWRrGlib/libcrypto/md5 md5_amd64_generic.S, lib/libcrypto/sha sha256_amd64_generic.S sha256_amd64_shani.S

   Include crypto_assembly.h instead of manually ensuring _CET_ENDBR exists.

   ok kenjiro@ tb@
VersionDeltaFile
1.6+2-6lib/libcrypto/sha/sha256_amd64_generic.S
1.4+2-6lib/libcrypto/sha/sha256_amd64_shani.S
1.4+2-6lib/libcrypto/sha/sha512_amd64_generic.S
1.4+2-6lib/libcrypto/sha/sha1_amd64_shani.S
1.2+2-6lib/libcrypto/md5/md5_amd64_generic.S
1.5+2-6lib/libcrypto/sha/sha1_amd64_generic.S
+12-366 files

OpenBSD/src JSqHMZ9lib/libcrypto crypto_assembly.h

   Provide a crypto_assembly.h internal header.

   This will contain defines and macros that we need for assembly code,
   without polluting other headers that are primarily used for C code.

   For now, this just unconditionally provides _CET_ENDBR on amd64.

   ok kenjiro@ tb@
VersionDeltaFile
1.1+30-0lib/libcrypto/crypto_assembly.h
+30-01 files

OpenBSD/src hIObrY5lib/libtls tls_ocsp.c

   libtls: const workarounds for X509_NAME in OCSP for OpenSSL 4

   The API to look up a cert by subject or issuer name clearly only needs to
   do name comparisons in a collection of certs so should by all means take a
   const X509_NAME * as an argument. However, this isn't all that easy to do
   and hence it's only in OpenSSL 4 that this obvious step was reached.

   This means that there is no way around casting for older code. One could
   cast the return value of X509_get_issuer_name() or the argument passed to
   the two lookups by subject. jsing slightly prefers the second approach,
   so this is what we do here.

   ok djm jsing kenjiro
VersionDeltaFile
1.27+5-4lib/libtls/tls_ocsp.c
+5-41 files

OpenBSD/src uTH9Jerlib/libtls tls_conninfo.c tls_verify.c

   libtls: simple cases of const for X509_NAME *

   After the const sprinkling in OpenSSL 1.1, X509_get_{issuer,subject}_name()
   still returned a non-const pointer for unclear reasons. In OpenSSL 4,
   the return value also grew a const qualifier, so move the two "name" in
   tls_conninfo.c and the "subject_name" in tls_verify.c to const. They are
   only used for further processing by already const correct functions (at
   least as far as X509_NAME is concerned).

   ok djm jsing kenjiro
VersionDeltaFile
1.29+3-3lib/libtls/tls_conninfo.c
1.33+3-3lib/libtls/tls_verify.c
+6-62 files

OpenBSD/src dqBqidjregress/sys/kern/pledge/open open.c Makefile

   Test that __pledge_open can bypass unveil.
VersionDeltaFile
1.2+11-3regress/sys/kern/pledge/open/open.c
1.2+5-1regress/sys/kern/pledge/open/Makefile
+16-42 files

OpenBSD/src svsPpnYusr.bin/ssh channels.c

   ensure c->local_window doesn't underflow during updates;
   similar to checks performed elsewhere. From Renaud Allard
VersionDeltaFile
1.458+5-2usr.bin/ssh/channels.c
+5-21 files

OpenBSD/src TQttVmHusr.bin/ssh sshbuf-misc.c

   fix base16 parsing; currently unused. From Renaud Allard
VersionDeltaFile
1.23+2-2usr.bin/ssh/sshbuf-misc.c
+2-21 files

OpenBSD/src ciB6F3iusr.bin/ssh sshd_config.5

   mention that RevokedKeys is read by the server at each
   authentication time and should only ever be replaced
   atomically.
VersionDeltaFile
1.397+7-2usr.bin/ssh/sshd_config.5
+7-21 files

OpenBSD/src GFHSR4Jusr.bin/ssh monitor.c

   fix potential hang if /etc/moduli doesn't contain the requested
   DH group values; from 77c9ca, ok dtucker@, markus@
VersionDeltaFile
1.255+1-2usr.bin/ssh/monitor.c
+1-21 files

OpenBSD/src Vu0aW4Rlib/libc/sys open.2

   improve explanation of when it __pledge_open works
VersionDeltaFile
1.55+6-3lib/libc/sys/open.2
+6-31 files

OpenBSD/src pkvhQbPlib/libc/locale iswctype.c

   wcwidth(3): fix return value for L'\0'

   wcwidth(3) doesn't return the correct result for the NUL wide character.
   Fix this by special casing the check for this value.

   Interestingly our man page documents this special case explicitly, but it
   looks like the function was broken in rev 1.2 from 2011 when support for
   non-printable characters was added.

   Flagged by Sortix os-test.

   ok stsp@
VersionDeltaFile
1.10+3-1lib/libc/locale/iswctype.c
+3-11 files

OpenBSD/src ris2Nw2lib/libc/nls catgets.c

   catgets(3): set errno when a message isn't found as per POSIX.

   The same change was made by NetBSD in rev 1.13 in 1998.

   Flagged by Sortix os-test.

   ok guenther@
VersionDeltaFile
1.10+3-1lib/libc/nls/catgets.c
+3-11 files

OpenBSD/src nehkpUvregress/usr.sbin/rpki-client/openssl Makefile unistd.h, regress/usr.sbin/rpki-client/openssl/build Makefile

   rpki-client regress: initial plumbing to make this work with OpenSSL 4.0
VersionDeltaFile
1.9+5-1regress/usr.sbin/rpki-client/openssl/Makefile
1.6+5-1regress/usr.sbin/rpki-client/openssl/build/Makefile
1.5+3-1regress/usr.sbin/rpki-client/openssl/unistd.h
+13-33 files

OpenBSD/src pgJG43Bregress/usr.sbin/rpki-client/openssl/build Makefile

   rpki-client regress: drop unused EOPENSSL_PATH
VersionDeltaFile
1.5+1-2regress/usr.sbin/rpki-client/openssl/build/Makefile
+1-21 files

OpenBSD/src pCecn2jregress/usr.sbin/rpki-client/openssl/build Makefile

   rpki-client regress: drop another hardcoded eopenssl35
VersionDeltaFile
1.4+3-3regress/usr.sbin/rpki-client/openssl/build/Makefile
+3-31 files

OpenBSD/src lrB0g6jsbin/nfsd nfsd.c

   Fix unveil in NFS daemon.

   With process accouting, nfsd(8) complains about unveil(2) violations.
   It happens during daemon(3) in the child process.  Instead of
   unveiling / and /dev/null, move unveil(2) after daemon(3).

   OK deraadt@
VersionDeltaFile
1.48+10-10sbin/nfsd/nfsd.c
+10-101 files

OpenBSD/src X6w0bTEregress/usr.sbin/rpki-client/openssl Makefile

   rpki-client regress: avoid hardcoding eopenssl35
VersionDeltaFile
1.8+3-3regress/usr.sbin/rpki-client/openssl/Makefile
+3-31 files

OpenBSD/src Fe9x6dgusr.sbin/rdate rdate.c rdate.8

   after a report from 'K r' on bugs that the manual page section rfc868 '-o'
   option has incorrect dates, let's recognize that this is no longer a good
   way to get time information and only the ntp interface is needed.
   ok sthen florian henning
VersionDeltaFile
1.38+9-23usr.sbin/rdate/rdate.c
1.41+5-15usr.sbin/rdate/rdate.8
1.8+2-2usr.sbin/rdate/Makefile
1.14+1-1usr.sbin/rdate/rfc868time.c
+17-414 files

OpenBSD/src l3iSCxvlib/libc/thread rthread_sync.c rthread_mutex.c

   Make pthread_mutex_destroy() not error out for mutexes that were initalized
   with PTHREAD_MUTEX_INITIALIZER but not used.

   Unify handling of mutexp == NULL in both version of pthread_mutex_destroy()
   and ensure that *mutexp == NULL is not considered an error.

   Problem found by tb@ with rpki-client.
   OK kettenis@ tb@
VersionDeltaFile
1.7+4-2lib/libc/thread/rthread_sync.c
1.8+2-2lib/libc/thread/rthread_mutex.c
+6-42 files

OpenBSD/src 8JfUwvrusr.bin/tmux tmux.1

   Ql -> Fl, from arza at arza dot us in GitHub issue 4949.
VersionDeltaFile
1.1043+3-3usr.bin/tmux/tmux.1
+3-31 files

OpenBSD/src DEtDqpjusr.bin/tmux format.c tmux.1

   Add a format flag for bracket paste, from George Nachman in GitHub issue
   4951.
VersionDeltaFile
1.349+16-1usr.bin/tmux/format.c
1.1042+3-2usr.bin/tmux/tmux.1
+19-32 files

OpenBSD/src 5xkPms8usr.sbin/rpki-client http.c

   Properly reset accounting in HTTP gzip compression detection

   OK tb@
VersionDeltaFile
1.101+6-4usr.sbin/rpki-client/http.c
+6-41 files