OpenBSD/src 0qUdqFCusr.sbin/vmd vionet.c

   vmd(8): drop packets if tap(4) returns ENOMEM.

   If there are no mbufs available to queue a packet on write(2), we
   should drop the packet instead of toggling the device reset state.

   The virtio network device was inspecting the wrong errno as well.

   Also drop packets if EMSGSIZE is set on error. Only in unexpected
   cases should we flag the device needs a reset.

   Issue reported by Mischa Peters.

   ok bluhm@, jan@, mlarkin@ and makes sense to deraadt@
VersionDeltaFile
1.38+14-4usr.sbin/vmd/vionet.c
+14-41 files

OpenBSD/src SVykrXwusr.bin/ssh packet.c

   Check that compressed payloads don't inflate beyond the maximum payload length

   From a report by Oleh Konko (1seal)

   OK djm@
VersionDeltaFile
1.346+3-1usr.bin/ssh/packet.c
+3-11 files

OpenBSD/src 0Ra3GGDusr.bin/ssh ssh-agent.c

   ssh-agent: no unlink(2) on empty filename

   from markus@ ok me
VersionDeltaFile
1.333+3-2usr.bin/ssh/ssh-agent.c
+3-21 files

OpenBSD/src FQ7KleXusr.bin/ssh misc-agent.c

   ssh-agent: fix socket cleanup for -a option (no pathspec)

   from markus@ ok me
VersionDeltaFile
1.11+4-2usr.bin/ssh/misc-agent.c
+4-21 files

OpenBSD/src 3Kt3LiCregress/lib/libcrypto/test test.h test.c

   test: improve output log and report format

   Bring the test framework output closer to the output of Go's testing
   package, in order to make it easier to trace issues in the output from
   very large tests with many sub-tests.

   Also add test_skipnow(), and make test_skip/test_skipf wrappers around
   test_logf_internal so skip reasons get the same call location prefix as
   other log output.

   This also makes it easier for a followup to add timing for tests, which
   will help determine which tests are slow.

   ok tb
VersionDeltaFile
1.8+276-81regress/lib/libcrypto/test/test.c
1.6+19-7regress/lib/libcrypto/test/test.h
+295-882 files

OpenBSD/src Yk2HsU9usr.sbin/vmd acpi.c acpi.h

   vmd(8): place acpi tables in upper reserved memory

   The original decision to place ACPI tables at 0x90000 caused "legacy" linux
   bootloaders like lilo to overwrite the tables. While this doesn't damage
   the vm, it does cause linux to revert to uniprocessor mode. Place the tables
   in a mem reserved region adjacent to the pci mmio hole instead.

   tested on various guest OSes

   ok dv
VersionDeltaFile
1.27+29-21usr.sbin/vmd/x86_vm.c
1.2+10-11usr.sbin/vmd/acpi.h
1.4+8-7usr.sbin/vmd/acpi.c
+47-393 files

OpenBSD/src Yfvs7dNlib/libssl Makefile tls12_internal.h

   Add TLSv1.2 error handling

   Provide error handling for use with the TLSv1.2 context - for now this
   is a duplicate of the TLSv1.3 error handling, which we may deduplicate
   in the future.

   ok tb@
VersionDeltaFile
1.1+99-0lib/libssl/tls12_error.c
1.7+26-1lib/libssl/tls12_internal.h
1.91+2-1lib/libssl/Makefile
+127-23 files

OpenBSD/src mm0J7SIlib/libssl tls13_lib.c

   Unwrap.
VersionDeltaFile
1.80+2-3lib/libssl/tls13_lib.c
+2-31 files

OpenBSD/src WIdmhRhlib/libssl Makefile tls12_record_layer.c

   Add TLSv1.2 handshake message handling.

   Provide struct tls12_handshake_msg and wire it to the new TLSv1.2
   stack, allowing handshake messages to be built and parsed.

   ok beck@ tb@
VersionDeltaFile
1.1+188-0lib/libssl/tls12_handshake_msg.c
1.2+79-3lib/libssl/tls12_handshake.c
1.6+25-1lib/libssl/tls12_internal.h
1.46+14-1lib/libssl/tls12_record_layer.c
1.90+2-1lib/libssl/Makefile
+308-65 files

OpenBSD/src KCZoWS2lib/libssl tls12_record_layer.c tls12_handshake.h

   Add a TLSv1.2 state machine and skeleton client/server.

   This provides the basis for a new TLSv1.2 stack and is heavily based on
   our TLSv1.3 implementation. All TLSv1.2 handshake messages are included,
   however the state table only includes a minimal TLS connection - additional
   state transitions will be added in due course.

   This code is not currently used and further development will occur in tree.

   ok beck@ tb@
VersionDeltaFile
1.1+528-0lib/libssl/tls12_handshake.c
1.5+125-1lib/libssl/tls12_internal.h
1.1+124-0lib/libssl/tls12_server.c
1.1+118-0lib/libssl/tls12_client.c
1.1+53-0lib/libssl/tls12_handshake.h
1.45+7-1lib/libssl/tls12_record_layer.c
+955-21 files not shown
+959-37 files

OpenBSD/src KcONEh0usr.bin/mandoc out.c

   On some platforms, e.g. Linux Clang 22.1.8 / glibc 2.43, strchr(3)
   now implements the C23 behaviour where passing a const pointer to
   strchr(3) also returns a const pointer.

   Solve this by disentangling the horribly complicated logic in
   tblcalc_literal() that did multiple checks on "mw".  Instead, handle
   the case "maximum width -> parse into words and break lines" which
   needs a mutable copy of the content separately from the case
   "unlimited width" which works with the original const char*.
   This makes the code much more readable.  No functional change.

   Small issue found by Lexi Winter <ivy at FreeBSD.org>,
   reported via Alexander Ziaee <ziaee at freebsd.org>.
VersionDeltaFile
1.60+32-28usr.bin/mandoc/out.c
+32-281 files

OpenBSD/src YW4QqEtusr.bin/tmux screen-redraw.c

   Get x and y the right way round, fixes crash when opening a mode prompt
   when the client is offset into the window; may be the crash reported by
   sthen@.
VersionDeltaFile
1.161+2-2usr.bin/tmux/screen-redraw.c
+2-21 files

OpenBSD/src FRcaGI1sbin/reboot reboot.c

   oops not ready
VersionDeltaFile
1.41+0-6sbin/reboot/reboot.c
+0-61 files

OpenBSD/src sQI4YKxsbin/reboot reboot.c

   tcdrain.diff
VersionDeltaFile
1.40+7-1sbin/reboot/reboot.c
+7-11 files

OpenBSD/src ax4Fqunsys/dev/pci if_ixl.c

   ixl(4): Fix hardmtu and rxmax

   Table 1-3. Link layer Ethernet port features

       Maximum Transmit Unit Size (MTU) is 9728 - Ethernet header/CRC =
       9728 - 18 = 9710 bytes (jumbo frames)
       MTU can be further reduced by additional header fields such as
       Virtual Local Area Network (VLAN) tag(s), etc.

   Table 8-12. LAN Rx Queue Context in the Private Host Memory

       The "rxmax" parameter defines the whole packet size starting at
       the L2 header up to including the Ethernet CRC.
   ...
       The RXMAX must not be set to a larger value than 5 x DBUFF
       (since receive packet must never span on more than 5 buffers).

   Tested by bluhm@

   ok jmatthew@
VersionDeltaFile
1.118+4-3sys/dev/pci/if_ixl.c
+4-31 files

OpenBSD/src Q5iDzKlsys/netinet ip_esp.c

   Fix IPsec AES GMAC crypto.

   The CRYPTO_AES_GMAC algorithm needs an unique initialization vector.
   Replace arc4random_buf() with replay64 counter.

   OK tb@ hshoexer@
VersionDeltaFile
1.202+2-1sys/netinet/ip_esp.c
+2-11 files

OpenBSD/src ibcuspiusr.bin/tmux tmux.h tty-features.c

   Some terminals have extended DECSCUSR to allow it to reset to the
   default style and put that as the Se capability in their terminfo entry.
   Change so that if Ss and Se exist, tmux does not overwrite them with its
   own. GitHub issue 5476.
VersionDeltaFile
1.111+7-3usr.bin/tmux/tty-term.c
1.45+4-4usr.bin/tmux/tty-features.c
1.1447+3-2usr.bin/tmux/tmux.h
+14-93 files

OpenBSD/src rrSwy4gregress/sys/arch/amd64/vmcall vmcall.c, sys/arch/amd64/amd64 vmm_machdep.c

   vmm(4): Skip VMCALL/VMMCALL at CPL 0; otherwise abort by signal

   On Intel we have to use #GP(0), on AMD #UD.  Adjust regression test.
   With Miguel Landaeta (miguel at miguel cc), thanks!

   go ahead mlarkin
VersionDeltaFile
1.2+25-3regress/sys/arch/amd64/vmcall/vmcall.c
1.90+15-5sys/arch/amd64/amd64/vmm_machdep.c
+40-82 files

OpenBSD/src lOqBvumsys/arch/amd64/amd64 vmm_machdep.c, sys/arch/amd64/include vmmvar.h

   fix some issues dv@ found in vmm/vmd

   dv pointed out some correctness issues around lapic and x2apic reserved
   bits in various registers.

   ok dv
VersionDeltaFile
1.89+116-16sys/arch/amd64/amd64/vmm_machdep.c
1.6+95-19usr.sbin/vmd/lapic.c
1.26+15-1usr.sbin/vmd/x86_vm.c
1.123+8-1sys/arch/amd64/include/vmmvar.h
1.4+2-1usr.sbin/vmd/lapic.h
+236-385 files

OpenBSD/src M0KleAVusr.bin/tmux tty-term.c tmux.h

   Add a feature for mintty's application escape to avoid dodgy terminals
   whinging about not supporting it, GitHub issue 5626 from Pete Dietl.
VersionDeltaFile
1.44+15-1usr.bin/tmux/tty-features.c
1.1172+7-2usr.bin/tmux/tmux.1
1.482+3-5usr.bin/tmux/tty.c
1.110+3-1usr.bin/tmux/tty-term.c
1.1446+3-1usr.bin/tmux/tmux.h
+31-105 files

OpenBSD/src WjB1VOdusr.bin/tmux tty-draw.c

   Only rely on the previous line wrapping when the cursor is actually on
   it, GitHub issue 5625 from Ben Maurer.
VersionDeltaFile
1.17+7-2usr.bin/tmux/tty-draw.c
+7-21 files

OpenBSD/src Yw9CqMlusr.bin/tmux layout-custom.c

   Correctly write Z indexes to v2 layouts if zoomed, GitHub issue 5624.
VersionDeltaFile
1.43+37-5usr.bin/tmux/layout-custom.c
+37-51 files

OpenBSD/src c4JDfuNusr.bin/tmux tmux.h server-client.c

   Do not leak waiting clients (in wait-for) if they are killed, GitHub
   issue 5614.
VersionDeltaFile
1.24+35-1usr.bin/tmux/cmd-wait-for.c
1.514+4-1usr.bin/tmux/server-client.c
1.124+4-1usr.bin/tmux/cmd-queue.c
1.1445+2-1usr.bin/tmux/tmux.h
+45-44 files

OpenBSD/src xvsKvMmsys/dev/pci/drm/ttm ttm_bo.c

   drm/ttm: Fix bo resource use-after-free

   From Thadeu Lima de Souza Cascardo
   73867f2536704760dc42671eb508c1fdc7fd9b0b in linux-6.18.y/6.18.53
   91d7e9df42598af28ca440b95b16a4e51a408771 in mainline linux
VersionDeltaFile
1.47+5-6sys/dev/pci/drm/ttm/ttm_bo.c
+5-61 files

OpenBSD/src 8dDcqHlsys/dev/pci/drm/ttm ttm_pool.c

   drm/ttm: Drop tt->restore after successful restore

   From Matthew Brost
   329ddc5d438f991f49e4fd24c704d1c7288d5e03 in linux-6.18.y/6.18.53
   941ac10529b3be5965a88d432a161ab459672ba8 in mainline linux
VersionDeltaFile
1.17+12-3sys/dev/pci/drm/ttm/ttm_pool.c
+12-31 files

OpenBSD/src 8n2fTjgusr.bin/ssh packet.c

   Disable LZ77 dictionary coder to avoid a potential side-channel leak

   A chosen-plaintext attack method exists which makes use of
   dictionary-based compression to recover secrets from one channel by
   interacting with the SSH session's shared compression dictionary through
   another channel.

   Attacker-controlled input can recognizably reflect into the total length
   of transmitted ciphertexts by virtue of LZ77 replacing repeated strings
   with back-references into the SSH session's encoder search buffer,
   which is shared across all channels. For this reason, the documentation
   already recommended against enabling compression for connections that
   share trusted and untrusted traffic.

   As an extra precaution, use only Huffman coding when compressing
   plaintexts, as this algorithm does not use a dictionary. But, this
   results in a reduction of compression effectiveness.

   Inspired by "Crossing the Streams: SSH Plaintext Recovery via a Common

    [4 lines not shown]
VersionDeltaFile
1.345+8-9usr.bin/ssh/packet.c
+8-91 files

OpenBSD/src 8Uevl4Gsys/dev/pci/drm/ttm ttm_resource.c ttm_bo_vm.c

   drm/ttm: Tidy usage of local variables a little bit

   From Tvrtko Ursulin
   b21c971e4cb11c0c7ea74261f966814280c02647 in linux-6.18.y/6.18.53
   c06da4b3573a2d3c906c185450d0b1059d02820e in mainline linux
VersionDeltaFile
1.46+32-30sys/dev/pci/drm/ttm/ttm_bo.c
1.39+23-24sys/dev/pci/drm/ttm/ttm_bo_util.c
1.16+14-12sys/dev/pci/drm/ttm/ttm_pool.c
1.36+5-7sys/dev/pci/drm/ttm/ttm_bo_vm.c
1.11+3-3sys/dev/pci/drm/ttm/ttm_resource.c
+77-765 files

OpenBSD/src AEpVOl8sys/dev/pci/drm/amd/display/amdgpu_dm amdgpu_dm.c

   drm/amd/display: Honor Broadcast RGB for BT.2020 RGB output

   From Satyajit Roy
   037a00dfd5838d616bc04195b182055da1b33fe6 in linux-6.18.y/6.18.53
   7fca7acd60a228b62b4e9efa5f184738041e9564 in mainline linux
VersionDeltaFile
1.214+7-3sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+7-31 files

OpenBSD/src dgOn69zsys/dev/pci/drm/amd/display/amdgpu_dm amdgpu_dm_helpers.c

   drm/amd/display: Propagate HDMI RGB quantization selectability

   From Satyajit Roy
   6194e1b536dc624e05412507fb84c6c880e1f8b5 in linux-6.18.y/6.18.53
   bdcd0411d7d186225a52458fd42bb70d54ca917a in mainline linux
VersionDeltaFile
1.22+3-0sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
+3-01 files

OpenBSD/src AXb6tjZsys/dev/pci/drm/amd/display/dc/core dc.c

   drm/amd/display: Rebuild InfoFrames on output color space changes

   From Satyajit Roy
   925d9aa99a69ddf461f256c397590957d35dee8a in linux-6.18.y/6.18.53
   8cfd9e22eb5c04b15b82985ff913944f84673d4f in mainline linux
VersionDeltaFile
1.5+1-0sys/dev/pci/drm/amd/display/dc/core/dc.c
+1-01 files