OpenBSD/src 3YkrGnksys/netinet ipsec_input.c

   In ipsec_common_input_cb() ensure that the packet size does not overflow
   the maximum packet size before writing the value back to the IP header.
   IPv4 and IPv6 have slightly different rules and so do it per AF.

   OK millert@
VersionDeltaFile
1.223+9-1sys/netinet/ipsec_input.c
+9-11 files

OpenBSD/src zGgJGtklib/libagentx ax.c

   Include the padding length when testing the remaining bytes in an octet
   string, to prevent a size_t underflow on a malformed packet and make us run
   into infinity.

   Same diff as for snmpd
VersionDeltaFile
1.12+2-2lib/libagentx/ax.c
+2-21 files

OpenBSD/src s2mFhhWusr.sbin/bgpd session.c

   Template peers need to check xp->rdesession to know if the RDE has the
   session running or not. Right now it checks the template itself which
   is never synced.

   OK tb@
VersionDeltaFile
1.532+2-2usr.sbin/bgpd/session.c
+2-21 files

OpenBSD/src oAGfINzusr.sbin/snmpd ax.c

   Include the padding length when testing the remaining bytes in an octet
   string, to prevent a size_t underflow on a malformed packet and make us run
   into infinity.

   OK deraadt@
VersionDeltaFile
1.8+2-2usr.sbin/snmpd/ax.c
+2-21 files

OpenBSD/src GEeHBuZusr.sbin/bgpctl parser.c

   Default to STDIN_FILENO for the mrtfd so that the documented behaviour of
   using stdin in show mrt, if no file argument is used, is restored.

   OK tb@
VersionDeltaFile
1.140+3-3usr.sbin/bgpctl/parser.c
+3-31 files

OpenBSD/src mi3MV7Vusr.sbin/bgpd rde_adjout.c

   Typecast idx to size_t so that the comparison is safe on 32bit arch.

   idx < 0 was already checked so casting this value from signed to unsigned
   is safe.

   OK tb@
VersionDeltaFile
1.17+2-2usr.sbin/bgpd/rde_adjout.c
+2-21 files

OpenBSD/src somb7ZPusr.sbin/bgpd session_bgp.c

   KNF
VersionDeltaFile
1.8+2-2usr.sbin/bgpd/session_bgp.c
+2-21 files

OpenBSD/src ru7HHoiusr.sbin/bgpd rde_rib.c rde.h

   Improve path_calc_hash()

   Includes other attributes into the hash calculation and also adjust
   the the span of hashed elements of struct rde_aspath to exclude
   aspa_generation. On top of this reshuffle the siphash calls to
   work on 64bit values first and only then other sizes.

   OK tb@
VersionDeltaFile
1.292+8-2usr.sbin/bgpd/rde_rib.c
1.347+3-4usr.sbin/bgpd/rde.h
+11-62 files

OpenBSD/src zESxcL6usr.sbin/bgpd rde.c

   Fix treat as withdraw handling for invalid ORIGIN attributes

   If a prefix triggers the F_ATTR_PARSE_ERR case and therefor a RFC 7606
   treat as withdraw rde_attr_parse() needs to return a success and not -1.
   The return (-1) was missed when the RFC 7606 handling was added.
   Move the F_ATTR_ORIGIN marker up to be more in line with other attributes.

   OK tb@
VersionDeltaFile
1.696+2-3usr.sbin/bgpd/rde.c
+2-31 files

OpenBSD/src ox8KHIsgnu/llvm/libcxx/include deque, gnu/usr.bin/clang/llvm-tblgen Makefile

   lower std::deque blocksize if _LIBCPP_USE_LOWER_DEQUE_BLOCK_SIZE is defined

   defining _LIBCPP_USE_LOWER_DEQUE_BLOCK_SIZE will make std::deque behave
   more in line with what libstdc++ is doing by using 512 byte blocks instead
   of 4096 to waste less memory

   this can be used by llvm-tblgen to reduce the memory usage of some
   operations which completely blow up with llvm22, so let's prepare now

   https://github.com/llvm/llvm-project/issues/31782
   https://chromium.googlesource.com/android_ndk/+/eecd8c2d681b019efca486f92fdda9a93f52328f%5E%21/#F0

   ok deraadt@
VersionDeltaFile
1.2+2,074-2,488gnu/llvm/libcxx/include/deque
1.16+2-1gnu/usr.bin/clang/llvm-tblgen/Makefile
+2,076-2,4892 files

OpenBSD/src tjiWjneusr.sbin/bgpd chash.c

   Fix two memory accounting issues in chash

   - ch_table_resize() did not increase the global cc_num_extendible value

   - ch_sub_free() can be called with NULL pointer arguments and in that
     case the accounting must be skipped

   OK tb@
VersionDeltaFile
1.10+9-6usr.sbin/bgpd/chash.c
+9-61 files

OpenBSD/src Z8We867usr.bin/tmux layout-custom.c window-copy.c

   Require layout prefix to be 5 characters, GitHub issue 5067 from
   cglosner at gmail dot com.
VersionDeltaFile
1.25+4-3usr.bin/tmux/layout-custom.c
1.398+2-2usr.bin/tmux/window-copy.c
+6-52 files

OpenBSD/src wtV9Bgfusr.sbin/bgpd rde_peer.c

   Use simpler logic to ensure path_id_tx is never 0

   There is a theoretical case where the 0 conflict would be missed if
   this arc4random() returned 0 for the first peer.

   OK tb@
VersionDeltaFile
1.71+4-4usr.sbin/bgpd/rde_peer.c
+4-41 files

OpenBSD/src noZpsltusr.sbin/bgpd control.c session.c

   Convert the control_accept pauseaccept timeout to a deadline.

   In rev. 1.525 of session.c the pauseaccept was converted to a deadline.
   This part was missed in this conversion.

   OK tb@
VersionDeltaFile
1.139+3-2usr.sbin/bgpd/control.c
1.531+1-2usr.sbin/bgpd/session.c
1.196+2-1usr.sbin/bgpd/session.h
+6-53 files

OpenBSD/src 0q2Qw1susr.bin/tmux window-copy.c tmux.1

   Add Emacs-style recentre-top-bottom, GitHub issue 5053 from sinyax75 at
   gmail dot com.
VersionDeltaFile
1.397+74-2usr.bin/tmux/window-copy.c
1.1053+7-2usr.bin/tmux/tmux.1
1.168+2-2usr.bin/tmux/key-bindings.c
+83-63 files

OpenBSD/src X0iqCY4sys/dev/pci/drm/amd/amdgpu amdgpu_ttm.c

   drm/amdgpu: fix zero-size GDS range init on RDNA4

   From Arjan van de Ven
   30c000a49094ec568c9b51b7421f7a4a3f0b0298 in linux-6.18.y/6.18.27
   095a8b0ad3c3b5cdc3850d961adb8a8f735220bb in mainline linux
VersionDeltaFile
1.31+3-0sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c
+3-01 files

OpenBSD/src 8t53Icosys/dev/pci/drm/amd/amdgpu jpeg_v4_0_3.c

   amdgpu/jpeg: fix deepsleep register for jpeg 5_0_0 and 5_0_2

   From David (Ming Qiang) Wu
   f7d9d0e4a64fe42c4f25e2a4fbabe3887efbb490 in linux-6.18.y/6.18.27
   e90dc3b2d73986610476b02c29d0074aa4d92fb0 in mainline linux
VersionDeltaFile
1.6+46-6sys/dev/pci/drm/amd/amdgpu/jpeg_v4_0_3.c
+46-61 files

OpenBSD/src TYAIdNSsys/dev/pci/drm/amd/amdgpu amdgpu_vcn.h amdgpu_gart.c, sys/dev/pci/drm/amd/display/dc dc_dmub_srv.c

   drm/amd: Fix set but not used warnings

   From Tiezhu Yang
   77eb3e79a3e75b1dff8d8a8a6772a7d0ceaeccb5 in linux-6.18.y/6.18.27
   46791d147d3ab3262298478106ef2a52fc7192e2 in mainline linux
VersionDeltaFile
1.10+3-6sys/dev/pci/drm/amd/display/dc/dc_dmub_srv.c
1.11+4-2sys/dev/pci/drm/amd/amdgpu/amdgpu_vcn.h
1.9+1-3sys/dev/pci/drm/amd/amdgpu/amdgpu_gart.c
+8-113 files

OpenBSD/src 6At728ousr.sbin/vmd vmd.c

   fix copy-paste error assigning vmc owner fields

   from Jan Schreiber, thanks
VersionDeltaFile
1.174+2-2usr.sbin/vmd/vmd.c
+2-21 files

OpenBSD/src nlGH1CMdistrib/sets/lists/man mi

   sync
VersionDeltaFile
1.1767+1-0distrib/sets/lists/man/mi
+1-01 files

OpenBSD/src 7L2cYZGlib/libssl d1_both.c dtls_local.h

   Get rid of struct dtls1_retransmit_state.

   In order to retransmit DTLS messages we potentially need to use the
   record protection from a previous epoch. However, DTLS currently also
   saves and restores the session, which is unnecessary - all of the
   record protection and keys are handled in the TLS record layer.

   Remove the rather useless dtls1_retransmit_state struct and just
   keep the epoch - keeping pointers hanging around to sessions is pretty
   nasty and unnecessary.

   ok kenjiro@ tb@
VersionDeltaFile
1.93+8-19lib/libssl/d1_both.c
1.4+2-7lib/libssl/dtls_local.h
+10-262 files

OpenBSD/src 1jXOor1lib/libssl tls_key_share.c

   Avoid use of uninitialised decode_error variable.

   Pull initialisation of decode_error and invalid_key up to
   tls_key_share_{client,server}_peer_public(), which are the entry points
   for the key share code. The entry point was previously
   tls_key_share_peer_public(), however with the introduction of MLKEM this
   was split into separate client and server functions, without the
   initialisation being included. Also initialise decode_error and
   invalid_params on entry to tls_key_share_peer_params().

   Code that reaches tls_key_share_client_peer_public_mlkem768x25519() could
   previously result in code branching based on decode_error, which is
   uninitialised stack based memory.

   Thanks to Guido Vranken of Aisle Research for reporting this issue.

   With and ok tb@
VersionDeltaFile
1.11+14-10lib/libssl/tls_key_share.c
+14-101 files

OpenBSD/src E1Ndyitusr.bin/tmux format.c

   Add time limit to a couple of other loops.
VersionDeltaFile
1.364+47-29usr.bin/tmux/format.c
+47-291 files

OpenBSD/src 36IcmrKlibexec/ld.so/arm rtld_machine.c

   Add missing bounds check for the relocation flags table.
   ok kettenis@
VersionDeltaFile
1.43+5-2libexec/ld.so/arm/rtld_machine.c
+5-21 files

OpenBSD/src 5zs84CNbin/chmod chmod.c

   High Severity end-of-line whitespace found by GrepTechnologies AI
   ok guenther mlarkin
VersionDeltaFile
1.44+2-2bin/chmod/chmod.c
+2-21 files

OpenBSD/src fdmy5XZusr.bin/rsync sender.c

   callloc -> calloc

   from Jan Schreiber
VersionDeltaFile
1.34+2-2usr.bin/rsync/sender.c
+2-21 files

OpenBSD/src i0lEocbsys/netinet ip_output.c

   fix build with ENCDEBUG defined, broken by rev 1.409
   from Jan Schreiber
VersionDeltaFile
1.417+2-2sys/netinet/ip_output.c
+2-21 files

OpenBSD/src xdddKE3libexec/ld.so library.c library_mquery.c

   Add checks to make sure that the ELF header and program header fit into
   the data we read from the on-disk shared library.  These checks should
   only fail for malformed shared libraries, but failing to load a shared
   library is better than crashing the program because of an out-of-bounds
   access.

   Issue found by Frank Denis using the Swival Security Scanner.

   ok guenther@
VersionDeltaFile
1.98+16-2libexec/ld.so/library.c
1.77+16-2libexec/ld.so/library_mquery.c
+32-42 files

OpenBSD/src 00OMrrlusr.bin/mandoc main.c

   Fix a regression in rev. 1.269 reported by anton@.

   Due to unveil(2), mansearch() can no longer change back to the initial
   working directory.  But check_xr() calls mansearch(), so the main program
   needs to change back if -T lint or -W style is requested, such that these
   work even when multiple relative file names are given on the command line.
VersionDeltaFile
1.271+28-9usr.bin/mandoc/main.c
+28-91 files

OpenBSD/src eb0zU1wlibexec/ld.so/sparc64 rtld_machine.c

   Add missing bounds check for the relocation flags table.
   Found by Frank Denis using the Swival Security Scanner.

   ok guenther@, jsg@
VersionDeltaFile
1.72+4-1libexec/ld.so/sparc64/rtld_machine.c
+4-11 files