OpenBSD/src gyRC9uRsys/dev/pci if_mwxreg.h

   MT_DMASHDL_SW_CONTROL is accessed via remapping.  Define it with
   the explicit address 0x7c026004 as Linux does to avoid confusion.

   While here, remove duplicate definitions of MT_PCIE_MAC_BASE and
   MT_PCIE_MAC_INT_ENABLE.

   ok claudio@
VersionDeltaFile
1.4+1-4sys/dev/pci/if_mwxreg.h
+1-41 files

OpenBSD/src prxJ2jAusr.bin/awk run.c

   split: allocate space for NUL terminator in CSV mode

   Found by Frank Denis
VersionDeltaFile
1.90+4-2usr.bin/awk/run.c
+4-21 files

OpenBSD/src zZPVUWylib/libc/asr getrrsetbyname_async.c

   Avoid recursive cleanup in getrrsetbyname()

   Instead of freeing struct dns_query and struct dns_rr by walking the
   linked lists recursively, use a simple loop. This avoids a possible
   stack exhaustion unlikely to be reachable with the limits modern
   resolvers impose.

   From Dhiraj Mishra

   ok djm
VersionDeltaFile
1.15+14-13lib/libc/asr/getrrsetbyname_async.c
+14-131 files

OpenBSD/src mroSkezsys/net if_tun.c

   avoid leaking memory when mbuf chain allocations fail in tun_dev_write()

   the mbufs built by tun_dev_write used to be limited to a single
   mbuf and cluster, but has grown in complexity now that it supports
   tun_hdr and tso, which required building mbuf chains. some of the
   error handling when allocating mbuf bits wasnt adapted to free the
   preceding chain when later allocaitons failed, resulting in a memory
   leak.

   reported by frank denis
VersionDeltaFile
1.257+3-3sys/net/if_tun.c
+3-31 files

OpenBSD/src EC4DoVtusr.sbin/rpki-client ip.c

   rpki-client: fix ip_addr_check_overlap()

   There is an off-by-one in the ip_addr_check_overlap() logic which allows
   a newly added interval to overlap in a common end point with an interval
   already in the list. Disallow equality in the two memcmp to avoid this.

   This bug dates back to the initial import of rpki-client where malformed
   certificates would be accepted. In modern rpki-client, the impact of this
   has been minimal ever since we started requiring that libcrypto support
   the RFC 3779 extensions in early 2022 by disallowing unknown critical
   extensions (rpki-client 7.6):

   For certificates this duplicates a check in the X.509 verifier (where it
   is correct). For TA constraints we have a canonicalization procedure that
   ensures the absence of overlaps. For ROAs no such check can be made since
   standards historically haven't required that addresses are canonical and
   still don't. The only remaining use of this API is from rsc.c where the
   overlap condition is indeed a small problem.


    [3 lines not shown]
VersionDeltaFile
1.40+3-3usr.sbin/rpki-client/ip.c
+3-31 files

OpenBSD/src XmLxHobusr.sbin/rpki-client main.c

   rpki-client: fix shortlist and skiplist checks

   Ensure that each le->fqdn is fully matched. If the the host in the SIA
   is short and matches a prefix of an FQDN in the shortlist or skiplist,
   the current checks in queue_add_from_cert() will incorrectly trigger.

   Compute the host length once and by checking it against the length of
   each le->fqdn ensure that it is an exact case sensitive match, rather
   than only a prefix.

   Found by Frank Denis

   ok claudio job
VersionDeltaFile
1.306+7-4usr.sbin/rpki-client/main.c
+7-41 files

OpenBSD/src Aa4OYgzsys/net bpf_filter.c

   detect out of bound reads from an int overflow in the bpf_mem backends.

   frank denis reported a problem in bpf_mem_ldw where a large indirect
   load offset could have the end of buffer calculation land at UINT_MAX
   and wrap, allowing a read of memory outside the buffer.

   this change tweaks the buffer checks by checking if the load offset
   is in range, taking that away from the buffer length, and then
   checking if the size of the load is in the remaining buffer length.
   this is the pattern that the bpf_mbuf_ops backend uses.

   this problem also exists in bpf_mem_ldh, so this code is factored
   out and used in all the bpf_mem_ops load backends.

   note that this issue is specific to the bpf_mem_ops backend used
   for running bpf filters against a vanilla memory buffer. this backend
   is largely unused in the kernel, which almost always uses the
   bpf_mbuf_ops backend to run filters against network packets in
   mbufs. the bpf_mem_ops are only used by ppp(4) for the "active-filter"

    [8 lines not shown]
VersionDeltaFile
1.37+29-18sys/net/bpf_filter.c
+29-181 files

OpenBSD/src JS0oaa4regress/lib/libc Makefile, regress/lib/libc/open_wmemstream open_wmemstreamtest.c Makefile

   Add wide version of open_memstream regress.
VersionDeltaFile
1.1+189-0regress/lib/libc/open_wmemstream/open_wmemstreamtest.c
1.1+5-0regress/lib/libc/open_wmemstream/Makefile
1.63+2-2regress/lib/libc/Makefile
+196-23 files

OpenBSD/src 7udkLZklib/libc/stdio open_wmemstream.c

   Adapt the negative seek fix from rev 1.8 of open_memstream.c
VersionDeltaFile
1.12+4-3lib/libc/stdio/open_wmemstream.c
+4-31 files

OpenBSD/src pB1wqg1sys/arch/riscv64/dev plic.h

   remove unused plic.h; ok kettenis@
VersionDeltaFile
1.4+1-1sys/arch/riscv64/dev/plic.h
+1-11 files

OpenBSD/src YivbRbwusr.sbin/bgpd parse.y rde.c

   bgpd: continue converting loop counters from uint8_t to u_int

   ok claudio
VersionDeltaFile
1.492+8-5usr.sbin/bgpd/parse.y
1.698+5-5usr.sbin/bgpd/rde.c
1.9+5-4usr.sbin/bgpd/session_bgp.c
1.72+3-3usr.sbin/bgpd/rde_peer.c
1.534+3-3usr.sbin/bgpd/session.c
1.101+3-3usr.sbin/bgpd/util.c
+27-232 files not shown
+31-278 files

OpenBSD/src EWD8S8Qsys/kern sysv_sem.c

   Do sleeping malloc() and copyin() before checks within sys_semop().
   Otherwise the semaphore id referenced by `semaptr' could be destroyed
   or replaced during context switch.

   ok cludwig
VersionDeltaFile
1.67+36-22sys/kern/sysv_sem.c
+36-221 files

OpenBSD/src Kvk2UUddistrib/sets/lists/comp mi

   sync
VersionDeltaFile
1.1763+0-1distrib/sets/lists/comp/mi
+0-11 files

OpenBSD/src Drf4H7dusr.bin/tmux status.c tmux.h

   Do not cache format for status line because it stores various pointers
   that might be stale, instead cache the cmd_find_state and rebuild the
   formats every time they are needed. Reported by Marcel Partap in GitHub
   isue 5065.
VersionDeltaFile
1.263+35-20usr.bin/tmux/status.c
1.1312+2-2usr.bin/tmux/tmux.h
+37-222 files

OpenBSD/src QrIUaa8usr.bin/patch pch.c

   Solve an infinite loop on malformed ed script input

   OK kirill
VersionDeltaFile
1.67+8-1usr.bin/patch/pch.c
+8-11 files

OpenBSD/src 143pua1sys/net pf_lb.c

   pf(4): load balancer rpool->weight is never zero, state that
   explicitly in code to make future reviews more smooth.

   OK @deraadt
VersionDeltaFile
1.77+9-1sys/net/pf_lb.c
+9-11 files

OpenBSD/src AaJ3HDzusr.sbin/bgpd parse.y

   bgpd: switch last u_int8_t to uint8_t

   ok claudio
VersionDeltaFile
1.491+4-4usr.sbin/bgpd/parse.y
+4-41 files

OpenBSD/src yE48yAAusr.sbin/bgpd parse.y

   bgpd: switch two for loop index from u8 to u_int

   ok claudio
VersionDeltaFile
1.490+3-3usr.sbin/bgpd/parse.y
+3-31 files

OpenBSD/src 7A7WhnJlib/libcrypto/ripemd ripemd.h

   remove bogus ifdefs; ok tb@
VersionDeltaFile
1.21+1-8lib/libcrypto/ripemd/ripemd.h
+1-81 files

OpenBSD/src vmFWyKclib/libcrypto/x509 x509_purp.c

   x509_purp: fix doc comment for check_ca()

   This comment has gotten out of sync with reality. The "I don't know..."
   fallback was removed and a special case for netscape CAs was added.
   Sync from the manual and add some more details.

   Pointed out by Maximilian Radoy in
   https://github.com/libressl/portable/issues/1274

   ok kenjiro
VersionDeltaFile
1.45+7-3lib/libcrypto/x509/x509_purp.c
+7-31 files

OpenBSD/src dcLRPCZregress/lib/libc/asr regress.sh

   asr regress: workaround due to removal of . from the path

   Since . is no longer part of the default path, . regress.subr no longer
   works. Use ${PWD}.

   With this, the regress appears to mostly work except for what looks like
   ordering issues and of course it isn't using bsd.regress.mk. I leave the
   former to the DNS experts and the latter to the regress experts if they're
   interested.
VersionDeltaFile
1.8+2-2regress/lib/libc/asr/regress.sh
+2-21 files

OpenBSD/src Ne4H7nxregress/lib/libc/asr regress.subr

   asr regress: /etc/networks was removed in 2018
VersionDeltaFile
1.5+1-2regress/lib/libc/asr/regress.subr
+1-21 files

OpenBSD/src 4y6pFkUregress/lib/libc/asr/bin Makefile.inc

   asr regress: set -Wno-unused-but-set-variables in CFLAGS

   This allows building without modifying some debugging code.
VersionDeltaFile
1.3+2-1regress/lib/libc/asr/bin/Makefile.inc
+2-11 files

OpenBSD/src ZA7qqbDregress/lib/libc/asr/bin threads.c

   asr regress: extern three variables to fix build with -fcommon
VersionDeltaFile
1.2+4-4regress/lib/libc/asr/bin/threads.c
+4-41 files

OpenBSD/src JToRF5ksys/net trunklacp.c trunklacp.h

   remove unused trunklacp code

   trunklacp.c is not built since January's
   'remove lacp support from trunk(4)'

   ok dlg@
VersionDeltaFile
1.35+1-1sys/net/trunklacp.c
1.15+1-1sys/net/trunklacp.h
+2-22 files

OpenBSD/src SCYT7ghsbin/ifconfig ifconfig.c, sys/net if_trunk.h

   make ifconfig build without trunklacp.h

   The only used part of trunklacp.h in ifconfig is LACP_STATE_BITS.
   Add it to if_trunk.h so trunklacp.h can be removed.

   ok dlg@
VersionDeltaFile
1.34+12-1sys/net/if_trunk.h
1.481+1-2sbin/ifconfig/ifconfig.c
+13-32 files

OpenBSD/src taetC1Qregress/usr.sbin/bgpd/integrationtests Makefile

   Add forgotten addpath regress test.
VersionDeltaFile
1.28+2-2regress/usr.sbin/bgpd/integrationtests/Makefile
+2-21 files

OpenBSD/src 5sCH7Yyusr.sbin/bgpd rde_attr.c rde.c

   Use unsigned int for the length variable when traversing the others array.

   Doing this in all places now after fixing an overflow in attr_optadd().

   OK tb@ deraadt@
VersionDeltaFile
1.144+14-8usr.sbin/bgpd/rde_attr.c
1.697+3-3usr.sbin/bgpd/rde.c
1.135+3-2usr.sbin/bgpd/mrt.c
1.194+3-2usr.sbin/bgpd/rde_update.c
+23-154 files

OpenBSD/src dATIJ9Tusr.sbin/bgpd bgpd.h

   Convert grestart.timeout to uint16_t while the value can never be negative
   the compiler trips over this in a comparison with u_int.

   OK tb@
VersionDeltaFile
1.541+5-5usr.sbin/bgpd/bgpd.h
+5-51 files

OpenBSD/src lY1vYJsusr.sbin/bgpd parse.y

   Reduce maximum configurable stale time to CAPA_GR_TIMEMASK (4095) since
   that is the maximum anyway.

   OK tb@
VersionDeltaFile
1.489+5-5usr.sbin/bgpd/parse.y
+5-51 files