OpenBSD/src 0itpZkiusr.sbin/relayctl relayctl.8 relayctl.c

   relayctl: rework show output and add -v flag

   - Added -v flag for more detailed output.
   - Replaced tab separators with space-padded, truncated columns (%.Ns) for
     stable alignment.
   - Added a new "Checks" column for host checks (N/N), replacing the total: N/N
     checks sub-line.
   - Shortened redirect to rdr in the Type column to stay under 80 columns.
   - Without -v: compact status (down); with -v: error inlined (down (tcp connect
     timeout)).
   - Table status shows host count (N hosts) only with -v.
   - retries sub-line only appears with show hosts -v.
   - show hosts no longer lists tables; use show summary for that.

   OK kirill@
VersionDeltaFile
1.67+65-42usr.sbin/relayctl/relayctl.c
1.35+6-3usr.sbin/relayctl/relayctl.8
+71-452 files

OpenBSD/src 4Oau1rdlib/libssl ssl_srvr.c ssl_clnt.c

   libssl: fix API misuse in legacy finished handling

   This looks like a potential out of bounds read or allowing trailing garbage
   in peer_finished. It's harmless because CBS_len() is compared against the
   s->s3->hs.peer_finished_len a few lines up, thus it is only cosmetic.

   discussed with jsing
   ok kenjiro
VersionDeltaFile
1.172+3-2lib/libssl/ssl_srvr.c
1.177+3-2lib/libssl/ssl_clnt.c
+6-42 files

OpenBSD/src 7XACHwvsys/dev/usb uaudio.c

   uaudio: Ignore transfer completions if audio is halted

   When audio is halted, the pipes are closed and the corresponding usb
   transfer completion functions are called immediately. For certain
   devices the status of the feedback pipe is USBD_NORMAL_COMPLETION,
   which triggers further processing of the received data.

   Fixes the harmless "uaudio0: sync play xfer, err = 6" messages on
   the console.
VersionDeltaFile
1.182+18-3sys/dev/usb/uaudio.c
+18-31 files

OpenBSD/src if2m1o3gnu/gcc/gcc opts.c

   Follow llvm / clang and disable -fomit-frame-pointer optimisation by
   default.

   OK kettenis@
VersionDeltaFile
1.10+2-0gnu/gcc/gcc/opts.c
+2-01 files

OpenBSD/src j6280Pkgnu/llvm/clang/lib/Driver/ToolChains CommonArgs.cpp

   Disable the -fomit-frame-pointer optimisation by default.

   The frame-pointer is needed to have good backtraces from e.g ddb or
   ptrace / btrace. Many other distros did something like this as well since
   the benfit of havving easy to work with backtraces outweights the little
   overall speedup gained by having an extra register.

   Also disable -mno-omit-leaf-frame-pointer by default on llvm.

   OK kettenis@
VersionDeltaFile
1.2+2,528-421gnu/llvm/clang/lib/Driver/ToolChains/CommonArgs.cpp
+2,528-4211 files

OpenBSD/src 4EvNZMOlib/libcrypto/man X509_STORE_CTX_get_error.3

   X509_STORE_CTX_get_error.3: zap extraneous if
VersionDeltaFile
1.31+3-3lib/libcrypto/man/X509_STORE_CTX_get_error.3
+3-31 files

OpenBSD/src iFszi1Clib/libcrypto/man X509_STORE_CTX_get_error.3

   X509_STORE_CTX_get_error: validate chain -> validated chain (of certificates)
VersionDeltaFile
1.30+4-4lib/libcrypto/man/X509_STORE_CTX_get_error.3
+4-41 files

OpenBSD/src e4wHBXplib/libssl ssl_tlsext.c

   libssl: ensure server selected ALPN was advertised

   Per RFC 7301, section 3.2, "In the event that the server supports no
   protocols that the client advertises, then the server SHALL respond
   with a fatal "no_application_protocol" alert.

   If a server does not do that and chooses a protocol that we have not
   advertised, we should abort the handshake. The RFC does not specify
   an alert for this case. BoringSSL chose illegal_parameter and OpenSSL
   decode_error. I slightly prefer illegal_parameter, so went with that.

   Reported by Acts1631 with a similar diff.

   ok jsing kenjiro
VersionDeltaFile
1.168+20-6lib/libssl/ssl_tlsext.c
+20-61 files

OpenBSD/src 1tgIZyKregress/lib/libssl/tlsext tlsexttest.c

   tlsext: check we reject unadvertised selected protocol

   This test currently fails and will be fixed in ssl_tlsect.c r1.168
VersionDeltaFile
1.98+24-1regress/lib/libssl/tlsext/tlsexttest.c
+24-11 files

OpenBSD/src hbQrslpregress/lib/libm/msun Makefile

   Purge expected failures on amd64 after recent libm changes.
VersionDeltaFile
1.17+2-2regress/lib/libm/msun/Makefile
+2-21 files

OpenBSD/src qlavi74lib/libssl ssl_tlsext.c

   tlsext_alpn_client_process(): rename list and proto

   Use server_list and selected instead of list and proto to reduce noise
   in the next commit.

   ok jsing kenjiro
VersionDeltaFile
1.167+8-8lib/libssl/ssl_tlsext.c
+8-81 files

OpenBSD/src Hbq5gnblib/libm/src/ld80 s_nexttoward.c

   Use isnan() to detect NaNs.  Fixes a bug exposed by the sortix testsuite
   where we wouldn't detect a NaN.

   ok millert@, daniel@
VersionDeltaFile
1.3+4-4lib/libm/src/ld80/s_nexttoward.c
+4-41 files

OpenBSD/src k5UU8G0sys/arch/luna88k/conf Makefile.luna88k

   Make sure to build kernel files with -fno-pie; this had been forgotten while
   switching the m88k toolchain to PIE by default, and I am quite impressed
   kernels built with PIE objects run without problems.
VersionDeltaFile
1.91+2-2sys/arch/luna88k/conf/Makefile.luna88k
+2-21 files

OpenBSD/src x3a9YFusys/arch/m88k/m88k sig_machdep.c

   Remove replaying of the 88100 data pipeline in sigreturn().

   This had been added during the r1.18->r1.22 changes to let the testcases from
   the devel/libsigsegv run.

   Contrary to what I wrote then, the pipeline gets replayed when returning to
   userland to invoke the signal handler, so there is no need to do this once more
   in sigreturn.

   The real fix needed for these testcases to run reliably, was to make sure that
   the address used to spill the sigcontext on the process stack would not get
   modified while running data_access_emulation(); this logic was eventually
   fixed in r1.21, and nothing more is needed.

   Thanks to Andrew Griffiths for pointing to my attention that the data fed to
   sigreturn() was partially user-controllable, and that carefully crafted
   signal handlers could use this behaviour as unprivileged kernel memory read
   and write operations.
VersionDeltaFile
1.33+3-20sys/arch/m88k/m88k/sig_machdep.c
+3-201 files

OpenBSD/src fkUcwkyregress/usr.bin/pkg-config Makefile, regress/usr.bin/pkg-config/pcdir corrupt1.pc cflags-2.pc

   Remove regress/usr.bin/pkg-config, it is for a tool we no longer
   have.  New test is in regress/usr.bin/pkgconf.
   OK tb@
VersionDeltaFile
1.66+1-1regress/usr.bin/pkg-config/Makefile
1.3+0-0regress/usr.bin/pkg-config/pcdir/corrupt1.pc
1.2+0-0regress/usr.bin/pkg-config/pcdir/cflags-2.pc
1.2+0-0regress/usr.bin/pkg-config/pcdir/cflags-1.pc
1.2+0-0regress/usr.bin/pkg-config/pcdir/beta.pc
1.3+0-0regress/usr.bin/pkg-config/pcdir/alpha.pc
+1-140 files not shown
+1-146 files

OpenBSD/src ZKhturPbin/stty stty.1

   list DISCARD control character
VersionDeltaFile
1.50+3-2bin/stty/stty.1
+3-21 files

OpenBSD/src e2cPPX9regress/usr.bin Makefile

   link pkgconf to regress tree
VersionDeltaFile
1.54+2-2regress/usr.bin/Makefile
+2-21 files

OpenBSD/src FMDx3ZDregress/usr.bin/pkgconf/tests test-runner.c, regress/usr.bin/pkgconf/tests/api test-dependency.c test-buffer.c

   import upstream pkgconf regress

   The Makefile is adapted to bsd.regress.mk from upstream's Makefile.lite
   (also imported) in such a way that the diff is as small as possible, so
   that it should be reasonably easy for me to keep it in sync with upstream
   releases.
VersionDeltaFile
1.1+1,591-0regress/usr.bin/pkgconf/tests/test-runner.c
1.1+696-0regress/usr.bin/pkgconf/tests/api/test-bytecode.c
1.1+623-0regress/usr.bin/pkgconf/tests/lib-sbom-files/meta_package.json
1.1+623-0regress/usr.bin/pkgconf/tests/lib-sbom-files/meta_package-use-uri-spdx-base-id.json
1.1+558-0regress/usr.bin/pkgconf/tests/api/test-buffer.c
1.1+551-0regress/usr.bin/pkgconf/tests/api/test-dependency.c
+4,642-01,278 files not shown
+14,343-01,284 files

OpenBSD/src 5jIyc1kregress/usr.sbin/relayd Makefile

   Fix dependencies to create remote ec certificate.
VersionDeltaFile
1.25+4-2regress/usr.sbin/relayd/Makefile
+4-21 files

OpenBSD/src buXzONlusr.bin/mandoc mandocdb.c

   Use unveil(2) to restrict write access to mandoc.db(5) and /tmp/
   and read access to the selected manpath directory or directories,
   but leave global read access open in -t mode.
   Tweaks from and looks correct to deraadt@.
VersionDeltaFile
1.224+65-15usr.bin/mandoc/mandocdb.c
+65-151 files

OpenBSD/src RXhxk2Nusr.bin/pkgconf/cli main.c core.c, usr.bin/pkgconf/libpkgconf libpkgconf.h libpkgconf-api.h

   Update to pkgconf 3.0.6

   This mostly adds OS/2 support. The only change relevant for OpenBSD is

     - --variable accepts multiple modules and prints the requested
       variable's value for each module, in argument order.  --path and
       --print-variables remain limited to a single module.

   Which is the diff in cli/core.c. Apart from that little to nothing
   changes for us (some #ifdefs cause line numbers to change).

   ok djm
VersionDeltaFile
1.4+16-8usr.bin/pkgconf/libpkgconf/stdinc.h
1.4+7-3usr.bin/pkgconf/libpkgconf/pkg.c
1.3+2-6usr.bin/pkgconf/cli/core.c
1.2+6-0usr.bin/pkgconf/libpkgconf/libpkgconf-api.h
1.3+2-2usr.bin/pkgconf/libpkgconf/libpkgconf.h
1.4+2-2usr.bin/pkgconf/cli/main.c
+35-212 files not shown
+38-248 files

OpenBSD/src 1KdLDI4usr.bin/pkgconf/cli tuple.c

   pkgconf: remove stale file

   This somewhat outdated file snuck in by mistake in the last update.
   It was not compiled into the binary because libpkgconf precedes cli
   in .PATH, so the up-to-date libpkgconf/tuple.c file was used.

   Found while working on hooking up upstream pkgconf regress where the
   .PATH order was inverted in my WIP.
VersionDeltaFile
1.2+0-0usr.bin/pkgconf/cli/tuple.c
+0-01 files

OpenBSD/src 2GNd0bFusr.bin/tmux grid.c

   Do not walk off end of grid lines if last line is wrapped, reported by
   Moe Khalilov.
VersionDeltaFile
1.157+3-3usr.bin/tmux/grid.c
+3-31 files

OpenBSD/src p5R09jxusr.bin/tmux popup.c

   Do no free input context if it is NULL when popup create fails.
VersionDeltaFile
1.77+3-2usr.bin/tmux/popup.c
+3-21 files

OpenBSD/src rlkY7TWusr.bin/tmux server-client.c

   Ignore focus events earlier to avoid them interfering with prefix,
   GitHub issue 5539.
VersionDeltaFile
1.509+5-1usr.bin/tmux/server-client.c
+5-11 files

OpenBSD/src mczaJosusr.sbin/fw_update patterns.c

   Drop rsu from fw_update patterns; it has been in base since 2021.

   ok afresh1@
VersionDeltaFile
1.21+1-2usr.sbin/fw_update/patterns.c
+1-21 files

OpenBSD/src DJ34HLfbin/ls print.c, usr.bin/find ls.c

   find,ls: Ensure -ls output matches ls -dils as documented; print the
   epoch if localtime() fails. Synchronize the code with ls, so it always
   checks localtime()'s return value.

   ok tb@
VersionDeltaFile
1.20+6-2usr.bin/find/ls.c
1.42+3-2bin/ls/print.c
+9-42 files

OpenBSD/src hw401Wausr.bin/stat stat.c

   stat: Show the stringified epoch if localtime() fails. Avoids segfault
   on out of range time values. The raw value can still be obtained with
   stat -f %m.

   ok tb@
VersionDeltaFile
1.26+8-2usr.bin/stat/stat.c
+8-21 files

OpenBSD/src TxSxNo5usr.sbin/fw_update fw_update.sh

   fw_update could be tricked into treating the untrusted comment as data.
   In some situations (-a) this could be passed into fetch(), which did not
   validate what it passed to su(1). Use the trusted output of signify and
   add stricter validation.

   with & ok afresh1@
VersionDeltaFile
1.68+15-9usr.sbin/fw_update/fw_update.sh
+15-91 files

OpenBSD/src phPdMbtsbin/mountd mountd.c

   Rewrite the imsg code to be more modern.

   Split the code into independent send and recv functions that properly
   send some of the more complex messages without leaking extra data or
   causing problems on recv (e.g. by passing string buffers).
   This also kills the send_imsg wrapper which kind of is the cause that
   everything was passed as one big blob.

   OK rsadowski@
VersionDeltaFile
1.99+220-153sbin/mountd/mountd.c
+220-1531 files