OpenBSD/src PBupKnZsys/kern subr_disk.c

   Reject d_secsize exceeding MAXPHYS in (init|set)disklabel

   readdisklabel() reads one sector into one buffer with
   geteblk(d_secsize), and vnd(4) takes d_secsize from userland.  The
   buffer cache allocates kva one MAXPHYS slot per buffer but maps and
   unmaps b_bufsize worth of it, so an oversize sector lays one buffer
   across the slots that follow and unmaps them when it is freed, leaving
   other buffer users with a b_data that is no longer mapped.

   ok krw@

   Reported-by: syzbot+aed2c23886430a6eaedb at syzkaller.appspotmail.com
VersionDeltaFile
1.287+4-2sys/kern/subr_disk.c
+4-21 files

OpenBSD/src dWRnW3bshare/man/man7 man.7

   Some corrections and updates in the introductory paragraph:
   * From 1979 to 1989, not only AT&T UNIX used man(7), but so did all other
   Unix-like systems including BSD, SunOS, and all the others.
   * While the statement that man(7) was "purely presentational" was
   mostly (though not entirely) true when written, it is no longer
   accurate.  A number of semantic macros have since been added, even
   though far less systematically than in mdoc(7).
   * Mention the situation in Linux and GNU roff.  Knowing about that is
   relevant for all, including our users, because it means people will
   continue to find many man(7) pages in the wild, including some that
   will fail badly with old versions of groff(1).
   * Point to GNU roff documentation for the unlikely case that someone
   sees themselves forced to write new man(7) code.

   About half of the the ideas and a few wordings were suggested to me
   by G. Branden Robinson.
VersionDeltaFile
1.68+13-10share/man/man7/man.7
+13-101 files

OpenBSD/src U9TSBHBlibexec/getty ttys.5

   ttys(5): a few editorial cleanups

   - name init(8) as the primary consumer of /etc/ttys and use login(1) and
     ttyflags(8) as example users of the getttyent(3) interface.
   - rewrite the on/off/secure more simply
   - modernize EXAMPLES
   - add .Xr terminfo(5) to SEE ALSO
   - minor grammatical tweaks

   ok sthen@
VersionDeltaFile
1.15+25-26libexec/getty/ttys.5
+25-261 files

OpenBSD/src 5ynKJV1usr.bin/mandoc mandoc.1

   Clarify that the -T ps and -T pdf output formats are experimental,
   produce low-quality output, and that mandoc(1) is not a
   typesetting system.  This should really have been clarified
   in this manual page many years ago because producing a typesetting
   system has never been a development goal, not even a long-term goal.

   Also delete the EXAMPLES entry involving -T ps because that entry puts
   undue emphasis on it and can be misconstrued as a recommendation
   to use that mode for any particular purpose.

   The general idea for this clarification came up talking
   to G. Branden Robinson on <groff at gnu.org>.
VersionDeltaFile
1.200+31-16usr.bin/mandoc/mandoc.1
+31-161 files

OpenBSD/src RV0lWrUlib/libcrypto/arch/aarch64 crypto_cpu_caps.c

   switch aarch64 CPU feature detection to elf_aux_info()

   ok kettenis@ tb@

   Restore commit; install media build error is not reproducible (deraadt@)
   or was operator error (naddy@)
VersionDeltaFile
1.5+19-63lib/libcrypto/arch/aarch64/crypto_cpu_caps.c
+19-631 files

OpenBSD/src a1R5vausys/uvm uvm_amap.c

   sys/uvm: unwind failed amap copies

   A PR_NOWAIT chunk allocation in amap_copy() may fail after earlier
   chunks already contain copied anons; amap_free() requires an empty amap,
   so direct cleanup trips its diagnostic assertion or leaves copied anon
   references orphaned which may end who knows how.

   Uuse amap_wipeout() instead to reverse the partial copy, release the
   shared lock, and free the temporary amap.

   OK: kettenis@
VersionDeltaFile
1.100+3-4sys/uvm/uvm_amap.c
+3-41 files

OpenBSD/src 2ywdwB4regress/usr.bin/mandoc/roff/esc Makefile argmiss.out_lint

   test handling of missing escape sequence arguments at EOL,
   related to roff_escape.c rev. 1.16
VersionDeltaFile
1.1+51-0regress/usr.bin/mandoc/roff/esc/argmiss.in
1.1+30-0regress/usr.bin/mandoc/roff/esc/argmiss.out_ascii
1.1+22-0regress/usr.bin/mandoc/roff/esc/argmiss.out_lint
1.26+6-5regress/usr.bin/mandoc/roff/esc/Makefile
+109-54 files

OpenBSD/src 74DDVl1usr.bin/mandoc roff_escape.c

   When an escape sequence that requires an argument occurs at the end of an
   input line and the argument is missing, abort parsing the line and report
   an "incomplete escape sequence" error.

   This fixes a read buffer overrun that Josiah Frentsos <jfrent at tilde.team>
   sent a different patch for.  Instead of always entering the argument
   parsing code and detecting that there is no argument at two places in
   the middle of that code, as Josiah proposed, i chose to instead check
   up front that there is anything that can be parsed to begin with.
   Also reminded by deraadt@, thanks!
VersionDeltaFile
1.16+8-1usr.bin/mandoc/roff_escape.c
+8-11 files

OpenBSD/src Kv7rAmeusr.sbin/relayd parse.y

   relayd: add missing BRIEF token after last commit
VersionDeltaFile
1.268+2-2usr.sbin/relayd/parse.y
+2-21 files

OpenBSD/src 1W8Qr9ushare/man/man5 cargo-module.5

   devel/cargo module: add MODCARGO_LIBTEST_ARGS variable

   in order to pass arguments to LIBTEST (cargo test subsystem) and not to cargo
   itself, provides a specific variable.

   from Andrew Kloet (.net)
VersionDeltaFile
1.12+4-2share/man/man5/cargo-module.5
+4-21 files

OpenBSD/src 7JfPik6usr.bin/ssh kex.h kex-names.c

   remove mlkem768brainpoolp256r1-sha256; requested by markus
VersionDeltaFile
1.402+2-4usr.bin/ssh/sshd_config.5
1.10+1-3usr.bin/ssh/kex-names.c
1.134+1-2usr.bin/ssh/kex.h
+4-93 files

OpenBSD/src z9dhfVYusr.bin/ssh sshconnect2.c

   move comment to a better place; suggested by markus@
VersionDeltaFile
1.393+2-2usr.bin/ssh/sshconnect2.c
+2-21 files

OpenBSD/src lsWYzy8usr.sbin/relayd parse.y

   relayd: improve token ordering and readability

   OK kirill@
VersionDeltaFile
1.267+25-13usr.sbin/relayd/parse.y
+25-131 files

OpenBSD/src 8A7ySJesys/kern subr_disk.c

   Fix for KASAN: invalid memory access in setdisklabel

   ok krw@

   Reported-by: syzbot+4b34bf468172c62700f3 at syzkaller.appspotmail.com
VersionDeltaFile
1.286+6-3sys/kern/subr_disk.c
+6-31 files

OpenBSD/src CAhdJ8blib/libcrypto/x509 x509_local.h x509_lib.c

   Restore the OCSP no-check extension method

   The conversion of X509V3_EXT_get_nid() from a table to a switch
   omitted the OCSP no-check extension method.

   Add the missing accessor declaration and switch case.

   ok tb@
VersionDeltaFile
1.26+3-1lib/libcrypto/x509/x509_lib.c
1.40+2-1lib/libcrypto/x509/x509_local.h
+5-22 files

OpenBSD/src iQpwSb1usr.sbin/ypldap ypldap.h ypldap_dns.c

   Improve imsg code, switch to imsgbuf_get and use more imsg_get_data

   Switch the IMSG_HOST_DNS call to use imsg_add_strbuf and imsg_get_strbuf.
   Also use NI_MAXHOST for the name length.
   Also rework IMSG_PW_ENTRY and IMSG_GRP_ENTRY to use imsg_get_len()
   and imsg_get_data() to fetch the record. Ensure that the data length
   is large enough but not too large to fit into &ir.

   ok jmatthew@
VersionDeltaFile
1.56+27-25usr.sbin/ypldap/ldapclient.c
1.33+16-9usr.sbin/ypldap/ypldap.c
1.22+8-15usr.sbin/ypldap/ypldap_dns.c
1.26+6-2usr.sbin/ypldap/ypldap.h
+57-514 files

OpenBSD/src HYbOD4qsys/arch/arm64/arm64 bus_dma.c, sys/arch/riscv64/riscv64 bus_dma.c

   The previous fix to bus_dmamap_load() wasn't quite right.  We do need
   virtual address continuity when we're bouncing.  So a !bounce check
   was correct, but only in the case when DMA is cache coherent.  Note that
   this becomes identical to the amd64 equivalent of this code when one
   considers that on amd64 DMA is always cache coherent.

   ok deraadt@, jca@
VersionDeltaFile
1.12+3-3sys/arch/riscv64/riscv64/bus_dma.c
1.18+3-3sys/arch/arm64/arm64/bus_dma.c
+6-62 files

OpenBSD/src eg2By6Busr.sbin/crunchgen crunched_main.c

   one more prototype

   ok deraadt@ tb@
VersionDeltaFile
1.8+2-2usr.sbin/crunchgen/crunched_main.c
+2-21 files

OpenBSD/src vts3W6lusr.bin/pkgconf/cli core.c, usr.bin/pkgconf/libpkgconf pkg.c

   pkgconf: simplify unveil handling

   Instead of giving fine-grained read access by iterating, use a simple
   unveil("/", "r"). pkgconf runs with pledge "stdio rpath wpath cpath unveil"
   with closed unveil, and only /dev/null and an optional log file have "rwc".

   discussed with deraadt a long time ago, agreement by claudio
   ok sthen
VersionDeltaFile
1.2+1-14usr.bin/pkgconf/cli/core.c
1.3+0-6usr.bin/pkgconf/libpkgconf/pkg.c
+1-202 files

OpenBSD/src H8s5x4pusr.bin/pkgconf/cli core.c main.c, usr.bin/pkgconf/libpkgconf libpkgconf.h buffer.c

   Update pkgconf to 3.0.5

   https://github.com/pkgconf/pkgconf/blob/main/NEWS

   ok sthen
VersionDeltaFile
1.3+207-1,429usr.bin/pkgconf/cli/main.c
1.1+1,501-0usr.bin/pkgconf/cli/core.c
1.2+784-573usr.bin/pkgconf/libpkgconf/pkg.c
1.2+817-299usr.bin/pkgconf/libpkgconf/fragment.c
1.2+671-30usr.bin/pkgconf/libpkgconf/buffer.c
1.2+482-75usr.bin/pkgconf/libpkgconf/libpkgconf.h
+4,462-2,40631 files not shown
+8,302-3,22237 files

OpenBSD/src ph0vfFjlib/libcrypto/arch/aarch64 crypto_cpu_caps.c

   revert switch to elf_aux_info(); it breaks the install media
VersionDeltaFile
1.4+62-18lib/libcrypto/arch/aarch64/crypto_cpu_caps.c
+62-181 files

OpenBSD/src RCXsyorusr.sbin/relayd ca.c relayd.conf.5

   relayd: allow setting log level from relayd.conf

   Add "log level (brief|verbose)" which sets or clears RELAYD_OPT_VERBOSE
   just like relayctl log verbose|brief does at runtime.

   This makes sense now because the recent DPRINTF removal turned all
   DPRINTF calls into real log_debug calls. Some debug logs moved to
   warning. Some remained DPRINF().

   Before that change the toggle had almost nothing to gate. All debug
   output was compiled out unless relayd was built with DEBUG > 1. So
   "log verbose" in relayctl was practically a no-op for users.
   It was impossible for the user to work out why the setup/config wasn't
   working.

   Now the toggle actually does what its name suggests. Pinning the
   level in the config file lets it survive restarts and SIGHUP reloads.

   OK kirill@
VersionDeltaFile
1.103+26-27usr.sbin/relayd/relay_http.c
1.269+19-23usr.sbin/relayd/relay.c
1.55+21-19usr.sbin/relayd/config.c
1.206+23-15usr.sbin/relayd/relayd.c
1.58+11-5usr.sbin/relayd/ca.c
1.222+14-2usr.sbin/relayd/relayd.conf.5
+114-9110 files not shown
+141-11516 files

OpenBSD/src rbu6HV0sys/dev/pci/drm/include/linux mm.h

   remove nth_page(), no longer in linux
VersionDeltaFile
1.14+0-1sys/dev/pci/drm/include/linux/mm.h
+0-11 files

OpenBSD/src lFl3A3Fsys/dev/pci/drm/include/linux dma-fence.h

   remove DMA_FENCE_TRACE(), no longer in linux
VersionDeltaFile
1.15+0-2sys/dev/pci/drm/include/linux/dma-fence.h
+0-21 files

OpenBSD/src cZkiJfqsys/dev/pci/drm/include/linux shrinker.h

   remove synchronize_shrinkers(), no longer in linux
VersionDeltaFile
1.5+0-5sys/dev/pci/drm/include/linux/shrinker.h
+0-51 files

OpenBSD/src lz01Jbnsys/dev/pci/drm/include/linux console.h

   remove vgacon_text_force(), no longer in linux
VersionDeltaFile
1.4+0-6sys/dev/pci/drm/include/linux/console.h
+0-61 files

OpenBSD/src y8fPqF2sys/dev/pci/drm/include/linux aer.h

   remove pci_enable_pcie_error_reporting(), no longer in linux
VersionDeltaFile
1.3+0-5sys/dev/pci/drm/include/linux/aer.h
+0-51 files

OpenBSD/src 83vOzzgusr.bin/tmux cmd-split-window.c

   Only unzoom in the floating-split case, modal panes take care of themselves.
VersionDeltaFile
1.148+2-3usr.bin/tmux/cmd-split-window.c
+2-31 files

OpenBSD/src IPoCLrpsys/dev/pci/drm/include/linux mutex.h

   remove mutex_trylock_recursive(), no longer in linux
VersionDeltaFile
1.9+0-16sys/dev/pci/drm/include/linux/mutex.h
+0-161 files

OpenBSD/src zToGoPIusr.bin/ssh ssh-keygen.1 ssh-keygen.c

   add some options to allow setting or clearing the touch-required
   and verify-required flags on FIDO private keys when resetting
   the passphrase.

   feedback/ok tb@
VersionDeltaFile
1.493+36-3usr.bin/ssh/ssh-keygen.c
1.240+33-2usr.bin/ssh/ssh-keygen.1
+69-52 files