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

OpenBSD/src xjhW9Vuusr.sbin/ospfd ospfd.h name2id.c

   Fix kr_change to add missing rtlabel references and update routes when
   only the label changes.

   rtlabel_tag2id() does not take a reference for the rtlabel id so a call
   to rtlabel_ref() is needed here. This mirrors the rtlabel_unref calls.
   In the nexthop already present case one needs to adjust the kn to update
   the ext_tag and rtlabel in case those changed. With this the rtlabel to
   external-tag mapping should work more reliable.

   OK bluhm@
VersionDeltaFile
1.119+33-20usr.sbin/ospfd/kroute.c
1.3+1-3usr.sbin/ospfd/name2id.c
1.110+2-1usr.sbin/ospfd/ospfd.h
+36-243 files

OpenBSD/src dzsF1rKusr.bin/mandoc cgi.c

   open header.html and footer.html up front,
   in pareparation for pledge/unveil improvements
VersionDeltaFile
1.121+18-18usr.bin/mandoc/cgi.c
+18-181 files

OpenBSD/src hMlyEkklib/libcrypto/rsa rsa_eay.c

   rsa_eay: Replace handrolled BN_bn2binpad with the real thing

   Just a tiny little bit of lipstick on this entelodont. This is simpler
   and does not change behavior as BN_bn2binpad() returns -1 on failure and
   num on success.

   jsing points out that BN_bn2binpad() is constant time.

   ok jsing kenjiro

   PS: henning, you owe me a significant amount of quality beverages for
   making me look at this particular tire fire (and corresponding XS files).
VersionDeltaFile
1.67+7-19lib/libcrypto/rsa/rsa_eay.c
+7-191 files

OpenBSD/src hLWObxllib/libcrypto/cms cms_kari.c

   libcrypto: harden cms_kek_cipher() a bit

   When AES key unwrap with padding is in use, the EVP interface breaks its
   contract and writes more than the outlen it initially reports to the output
   buffer. This is an old, sneaky trap that the muppet set eons ago and many
   victims walked right into it, including the muppet himself.

   If inlen is larger than outlen, allocate inlen bytes to unwrap with padding
   to avoid a buffer overwrite. This is a variant of OpenSSL's fix. Since we
   do not support AES keywrap with padding no actual bufer overwrite occurs
   here at the moment, but if we ever chose to do so (unlikely) this trap
   would be avoided. There's plenty more traps that the next round of scas
   will surely find in this absolute trashfire of CMS support code.

   ok kenjiro
VersionDeltaFile
1.19+8-3lib/libcrypto/cms/cms_kari.c
+8-31 files

OpenBSD/src o6u0FDWgnu/usr.bin/cvs Makefile.bsd-wrapper

   the macintosh subdir was removed from cvs in 1999

   ok jcs@
VersionDeltaFile
1.61+2-2gnu/usr.bin/cvs/Makefile.bsd-wrapper
+2-21 files

OpenBSD/src qbfJQN5sbin/dhcpleased engine.c

   Do not try to configure 0.0.0.0 (INADDR_ANY) on an interface.

   If we indicate a preference for IPv6-only (DHCP option 108), the
   server does not offer an IP address (indicated by INADDR_ANY), so we
   must first check if the server supported option 108 before checking if
   we received an IPv4 offer.

   Logic error pointed out and diff provided by acts1631 at proton.me,
   thanks!
VersionDeltaFile
1.70+10-5sbin/dhcpleased/engine.c
+10-51 files

OpenBSD/src tj4HeK9lib/libcrypto/x509 x509_verify.c

   Don't drop X509_V_ERR_HOSTNAME_MISMATCH when verify callback returns 1

   While not the advised way of using the verify callback (either by OpenSSL
   or by us) in production, sometimes folks like to return 1 from everything
   in the callback and then check the error return and make decicions about
   things.

   This fix ensures that such callbacks will see the hostname mismatch and
   be able to act upon them.

   Reported by Alexander Aleksandrovic Klimov
   ok tb@
VersionDeltaFile
1.79+5-2lib/libcrypto/x509/x509_verify.c
+5-21 files

OpenBSD/src VfTLlWMusr.sbin/bgpd bgpd.conf.5

   RTR sessions support tcp md5sig. Add the config bits to the manpage.

   Noticed by job@
   OK tb@
VersionDeltaFile
1.256+14-2usr.sbin/bgpd/bgpd.conf.5
+14-21 files

OpenBSD/src qBvfe3Isys/arch/arm64/arm64 cpu.c

   Avoid potential null-pointer dereference in calculation of CPU "capacity".

   ok jsg@
VersionDeltaFile
1.150+5-4sys/arch/arm64/arm64/cpu.c
+5-41 files

OpenBSD/src gEjp60Zshare/man/man4/man4.armv7 amdisplay.4

   sync config lines and use .Cd not .Nm
VersionDeltaFile
1.5+5-5share/man/man4/man4.armv7/amdisplay.4
+5-51 files

OpenBSD/src XWXwkzcregress/usr.bin/mandoc/db/makewhatis Makefile, regress/usr.bin/mandoc/db/out topt.dout

   Do not hardcode /usr/src/ in one of the files containing desired output.
   This is expected to fix a test failure that anton@ reported with BSDSRCDIR set.
VersionDeltaFile
1.2+3-3regress/usr.bin/mandoc/db/out/topt.dout
1.2+3-2regress/usr.bin/mandoc/db/makewhatis/Makefile
+6-52 files