OpenBSD/src oN4ahYT — sys/dev/pv if_vio.c

   vio(4): check for csum offload before using TSO

   We need a double check here for this illegal behavior,
   cause not all Hypervisor follow the VirtIO specification.
   And Linux has this check, too.

   Report and diff from Ali Raheem.

   ok stsp@
VersionDeltaFile
1.85+7-6sys/dev/pv/if_vio.c
+7-61 files

OpenBSD/src B4RHmie — sys/net pf_ioctl.c

   pf: compute the /0 IPv4 source-limiter mask without a 32-bit shift

   prefix 0 keeps the zeroed mask: every address in one bucket.
   A shift by 32 is UB.

   OK kn@
VersionDeltaFile
1.440+4-3sys/net/pf_ioctl.c
+4-31 files

OpenBSD/src UM8aFrI — sys/net pf_ioctl.c

   pf_rule_free needs to pf_tag_unref

   pf_rule_copyin() may have taken tag references before the
   caller bailed out; drop them like pf_rm_rule() does for rules
   that made it into a ruleset.

   OK henning
VersionDeltaFile
1.439+4-1sys/net/pf_ioctl.c
+4-11 files

OpenBSD/src QYosIkY — sys/netinet tcp_usrreq.c tcp_subr.c, usr.bin/netstat inet.c

   Limit TCP reassembly list walks.

   To prevent CPU exhaustion by a remote TCP peer, limit the t_segq
   queue length.  The segment at rcv_nxt is still accepted, so the
   missing data can drain a full queue.  Large windows on a high
   bandwidth connection may hit a strict 100 segment maximum in
   legitimate cases, so also make the limit depend on the socket buffer
   size.  Introduce a specific TCP counter for a full reassembly queue.

   from Acts1631; OK claudio@
VersionDeltaFile
1.472+17-1sys/netinet/tcp_input.c
1.197+4-1sys/netinet/tcp_var.h
1.188+2-1usr.bin/netstat/inet.c
1.254+2-1sys/netinet/tcp_usrreq.c
1.217+2-1sys/netinet/tcp_subr.c
1.25+2-1sys/netinet/tcp.h
+29-66 files

OpenBSD/src QIJf08A — usr.sbin/rpki-client rsync.c

   rpki-client: reject rsync hosts starting with '.' as well

   Not all calls to rsync_base_uri() pass through valid_uri(), so reject '.'
   at the start here as well.

   ok claudio job
VersionDeltaFile
1.67+6-1usr.sbin/rpki-client/rsync.c
+6-11 files

OpenBSD/src hWrx16U — usr.sbin/rpki-client validate.c

   rpki-client: validate first host character

   After refactoring to normalize the uri scheme, a check that a host must
   not start with a '.' was missed, which enabled path traversal on systems
   that don't have unveil(). Reject zero-length hosts as well.

   Pointed out by Ties de Kock

   ok claudio job
VersionDeltaFile
1.97+4-1usr.sbin/rpki-client/validate.c
+4-11 files

OpenBSD/src 4xYovzY — sys/kern uipc_proto.c

   Stop setting pr_protocol to PF_UNIX for unix domain sockets.

   This reverts the rev 1.3 commit from 1998:
     Allow PF_LOCAL as the proto arg in socketpair(2).  Previously, only
     PF_UNSPEC would work.  Needed for general sanity as well as XPG4.2.

   PF_LOCAL and AF_LOCAL is dead. So is the idea of passing any value other
   than 0 to socketpair's protocol argument. Set pr_protocol explicitly to
   0 to show that this is intentional.

   This fixes an unexpected return value of 1 for
   getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, ...) calls.

   Reported by robert@
   OK millert@
VersionDeltaFile
1.26+4-4sys/kern/uipc_proto.c
+4-41 files

OpenBSD/src ABd16dS — usr.bin/tmux screen-write.c

   Reorder screen_write_cell1 to avoid work for a cell we are just going to
   ignore anyway.
VersionDeltaFile
1.320+30-29usr.bin/tmux/screen-write.c
+30-291 files

OpenBSD/src 1wKsl3A — sys/kern uipc_socket.c

   Use the correct pr_domain->dom_family == AF_UNIX check in SO_PEERCRED.

   Using pr_protocol instead of checking the pr_domain dom_family field
   will stop working for AF_UNIX.

   OK millert@
VersionDeltaFile
1.390+2-2sys/kern/uipc_socket.c
+2-21 files

OpenBSD/src CutTojm — usr.sbin/httpd server_file.c

   httpd: refactor server_file_access

   split this huge function in two functions with one helper function

   Feedback by armani@, OK kirill
VersionDeltaFile
1.86+155-120usr.sbin/httpd/server_file.c
+155-1201 files

OpenBSD/src On3BLKn — sbin/ifconfig sff.c

   In upper_media_map, .dist_om2 should be UPPER_DIST_OM2 rather than
   UPPER_DIST_OM1.

   ok dlg@
VersionDeltaFile
1.26+2-2sbin/ifconfig/sff.c
+2-21 files

OpenBSD/src 6aNMUFy — usr.sbin/bgpd bgpd.h util.c

   Rework aspath_verify error handling and expand what AS_ERR_SOFT covers

   Instead of AS_ERR_SOFT as a catchall for various soft errors split
   the aspath_verify error into negative and positive errors. Negative
   errors are hard errors and reset the session. Positive errors are
   soft errors and use treat-with-withdraw.
   Introduce AS_IS_HARD_ERROR() macro to quickly check for hard errors.
   Treat AS_ERR_MAX as a soft-error to prevent a reset in this specific
   case. The path is valid but too large and could cause downstream issues.

   Reported by Özgün Kültekin
   OK tb@
VersionDeltaFile
1.715+21-13usr.sbin/bgpd/rde.c
1.106+10-6usr.sbin/bgpd/util.c
1.551+7-3usr.sbin/bgpd/bgpd.h
+38-223 files

OpenBSD/src lywpR3R — usr.bin/tmux tmux.h cmd-source-file.c

   Clean up data and client if client is killed when processing file,
   GitHub issue 5916.
VersionDeltaFile
1.24+14-9usr.bin/tmux/file.c
1.398+9-9usr.bin/tmux/window.c
1.65+10-6usr.bin/tmux/cmd-source-file.c
1.1497+2-1usr.bin/tmux/tmux.h
+35-254 files

OpenBSD/src 0DbUdyJ — usr.sbin/rpki-client parser.c

   rpki-client: fix previous file1 vs file2

   Pointed out by claudio, and fixed in another tree. If only we could finally
   ditch cvs(1).
VersionDeltaFile
1.214+2-2usr.sbin/rpki-client/parser.c
+2-21 files

OpenBSD/src GNFrErk — usr.sbin/rpki-client parser.c

   rpki-client: check auth_insert() return value in proc_parser_root_cert()

   Plugs a leak that should be unreachable because TALs are inserted before
   anything else.

   ok claudio
VersionDeltaFile
1.213+13-3usr.sbin/rpki-client/parser.c
+13-31 files

OpenBSD/src HwTMYI4 — usr.sbin/rpki-client encoding.c

   rpki-client: ensure hex_encode() fills the provided buffer

   Since the decoded buffer is binary data, the caller must know how much of
   the buffer will be valid. All the callers pass a properly sized buffer, so
   enforce this in the API.

   This is a second way of fixing a report of Ties de Kock and should prevent
   further errors.

   ok claudio
VersionDeltaFile
1.16+4-2usr.sbin/rpki-client/encoding.c
+4-21 files

OpenBSD/src 4w1RzFA — usr.sbin/rpki-client rrdp_delta.c rrdp_notification.c

   rpki-client: ensure that PP send a properly sized "hash"

   Do not trust the PP and check that the hash has a chance of being a hex
   encoded SHA-256. Per RFC 8182, 3.5.1.3:

      o  The hash attribute in snapshot and delta elements MUST be the
         hexadecimal encoding of the SHA-256 [SHS] hash of the referenced
         file.

   Reported by Ties de Kock

   ok claudio
VersionDeltaFile
1.28+5-3usr.sbin/rpki-client/rrdp_notification.c
1.19+3-2usr.sbin/rpki-client/rrdp_delta.c
+8-52 files

OpenBSD/src xf6EgBP — usr.sbin/rpki-client main.c extern.h

   rpki-client: reworks spl_insert_vsp()

   The insertion logic here was adapted from ASPA, which is very confusing.
   Rework this to be like the new ASPA code, mirroring the logic with the
   obvious tweaks, also avoiding a zero-sized allocation.

   Cap to the size of an SPL and overflow it so as to avoid unbounded memory
   growth. Again, none of this exists in the wild right now. Improved limits
   and addition of stats can be dealt with in quieter times.

   ok claudio
VersionDeltaFile
1.26+62-30usr.sbin/rpki-client/spl.c
1.331+3-2usr.sbin/rpki-client/extern.h
1.345+2-2usr.sbin/rpki-client/main.c
+67-343 files

OpenBSD/src 0r5JUDy — usr.sbin/rpki-client http.c

   rpki-client: free redir_uri before assignment

   Plugs a leak reported by Ties de Kock

   ok claudio
VersionDeltaFile
1.113+2-1usr.sbin/rpki-client/http.c
+2-11 files

OpenBSD/src JFwqneW — usr.sbin/rpki-client spl.c

   rpki-client: fix VSP expiry

   Use the same approach like in ASPAs and expire the VSP when the first part
   expires, not when there is nothing left in it. None of that stuff exists,
   so let us reconsider when people show interest in deploying this.

   ok claudio
VersionDeltaFile
1.25+2-2usr.sbin/rpki-client/spl.c
+2-21 files

OpenBSD/src DJGTpB6 — usr.bin/tmux cmd-queue.c

   Do not set payload if current not valid.
VersionDeltaFile
1.127+2-2usr.bin/tmux/cmd-queue.c
+2-21 files

OpenBSD/src gWRcM0k — usr.sbin/rpki-client extern.h repo.c

   rpki-client: fix rsync_base_uri()

   claudio noticed that the string passed to this function is not always
   NUL-terminated, so be more careful by adding length checks everywhere.
   This isn't pretty but unfortunately necessary. URIs are almost as bad
   as X.501 distinguished names.

   ok claudio
VersionDeltaFile
1.66+31-12usr.sbin/rpki-client/rsync.c
1.20+5-5usr.sbin/rpki-client/ca.c
1.96+4-3usr.sbin/rpki-client/validate.c
1.103+3-3usr.sbin/rpki-client/repo.c
1.330+2-2usr.sbin/rpki-client/extern.h
+45-255 files

OpenBSD/src 5ccofiw — usr.bin/tmux tty-features.c tmux.h

   Forward active pane OSC 7501 status, GitHub issue 5907 from Brian
   Cosgrove.
VersionDeltaFile
1.224+63-1usr.bin/tmux/tty-keys.c
1.503+53-1usr.bin/tmux/tty.c
1.397+22-11usr.bin/tmux/window.c
1.541+28-1usr.bin/tmux/server-client.c
1.1496+20-6usr.bin/tmux/tmux.h
1.56+10-2usr.bin/tmux/tty-features.c
+196-223 files not shown
+209-379 files

OpenBSD/src 9wBSmK0 — usr.bin/tmux screen.c tmux.h

   Grow extended cell array geometrically, GitHub issue 5853 from Andrea
   Cappuccio.
VersionDeltaFile
1.168+33-5usr.bin/tmux/grid.c
1.442+3-3usr.bin/tmux/format.c
1.1495+3-1usr.bin/tmux/tmux.h
1.110+2-1usr.bin/tmux/screen.c
+41-104 files

OpenBSD/src 9PaDBPk — usr.bin/tmux cmd-capture-pane.c

   Fix capture-pane -P with signed char.
VersionDeltaFile
1.73+2-2usr.bin/tmux/cmd-capture-pane.c
+2-21 files

OpenBSD/src zTxGDk0 — usr.sbin/relayd check_icmp.c

   relayd: ignore foreign ICMP packets in recv_icmp() instead of warning

   Only accept ICMP echo replies in recv_icmp() and log foreign packets
   at debug level instead of log_warn().

   Reported and diff by Kapetanakis Giannis, OK kirill@
VersionDeltaFile
1.52+9-8usr.sbin/relayd/check_icmp.c
+9-81 files

OpenBSD/src lgSUSJa — usr.sbin/relayd relay_http.c

   relayd: refactor split relay_http_parse_startline by directions

   Tweak and OK op@
VersionDeltaFile
1.112+122-88usr.sbin/relayd/relay_http.c
+122-881 files

OpenBSD/src VZFV7aJ — regress/lib/libcrypto/mldsa mldsa_unittest.c

   Verify both randomized signatures in the ML-DSA regression test

   The test comment says both signatures should verify. Add the missing
   verification check for the first signature.

   ok tb@
VersionDeltaFile
1.3+6-1regress/lib/libcrypto/mldsa/mldsa_unittest.c
+6-11 files

OpenBSD/src hvB1EDN — sys/kern subr_disk.c

   avoid uninitialised use of is_ufs2 in sbfulllabel()
   ok krw@
VersionDeltaFile
1.293+2-2sys/kern/subr_disk.c
+2-21 files

OpenBSD/src 9nWZW1n — regress/lib/libcrypto/mlkem mlkem_tests.c

   Fix the ML-KEM keygen test error message

   Report MLKEM_private_key_new when private key allocation fails.
VersionDeltaFile
1.12+2-2regress/lib/libcrypto/mlkem/mlkem_tests.c
+2-21 files