OpenBSD/src LQqoqSblib/libc/sys getthrname.2, lib/libpthread/man pthread_set_name_np.3

   Update get/setthrname and pthread_get/set_name_np man pages to advise
   of what buffer sizes to use. After discussion with Theo, _MAXCOMLEN
   was the best value to use for these non-portable interfaces. Also update
   for setthrname(2) no longer failing with EINTVAL.

   ok deraadt@
VersionDeltaFile
1.3+9-20lib/libc/sys/getthrname.2
1.10+18-3lib/libpthread/man/pthread_set_name_np.3
+27-232 files

OpenBSD/src Bjb6o4Llib/librthread rthread_np.c

   Ensure that we always return a null terminated string if the user
   passed us a name buffer smaller than the thread name.

   ok deraadt@
VersionDeltaFile
1.26+5-2lib/librthread/rthread_np.c
+5-21 files

OpenBSD/src Aiw1WMWsys/kern kern_prot.c

   Instead of failing with EINVAL when setthrname(2) is passed a thread
   name longer then _MAXCOMLEN-1, truncate the name to fit. This is likely
   what the user wants and saves them from having to snprintf(3) into a
   buffer sized _MAXCOMLEN first. Man page update to follow.

   This makes pthread_set_name_np(3) succeed with long thread names
   instead of silently failing.

   ok deraadt@ miod@ sthen@ mpi@
VersionDeltaFile
1.84+5-3sys/kern/kern_prot.c
+5-31 files

OpenBSD/src YeVZBTrlibexec/ld.so library.c

   Use the correct start address for the initial immutable address range
   for a shared library.  The code used the load offset of the shared
   library instead of the start address of the mapped memory.  In most case
   that works because the first segment of a shared library typically starts
   at virtual address zero.  But on sparc64 (and possibly other architectures
   that still use ld.bfd) libicudata.so from ports has a non-zero virtual
   address (possibly because it is a data-only library).  So this fixes
   the bug reported by claudio@

   ok deraadt@, jca@, claudio@
VersionDeltaFile
1.97+2-2libexec/ld.so/library.c
+2-21 files

OpenBSD/src JlJzM7Susr.sbin/bgpd rde_filter.c

   This moves the code to lookup and set the pftable_id and rtlabel_id
   from rde_apply_set() to filterset_recv(). This was already done in the
   nexthop case.
   OK tb@
VersionDeltaFile
1.138+20-14usr.sbin/bgpd/rde_filter.c
+20-141 files

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

   rpki-client: convert most of ip.c to opaque ASN1_STRING

   There is still a flag access due to unused bits, fixing this will have to
   wait until we have an API everyone agrees on.

   ok claudio
VersionDeltaFile
1.36+15-12usr.sbin/rpki-client/ip.c
+15-121 files

OpenBSD/src V7VpZMLusr.sbin/bgpd rde_filter.c rde.c

   Factor out filterset_send() (simple rename) and filterset_recv() (common
   code) as a first step to optimise filter_set handling in the RDE.

   OK tb@
VersionDeltaFile
1.137+32-1usr.sbin/bgpd/rde_filter.c
1.673+3-27usr.sbin/bgpd/rde.c
1.286+6-19usr.sbin/bgpd/bgpd.c
1.524+6-4usr.sbin/bgpd/bgpd.h
+47-514 files

OpenBSD/src kRIinmddistrib/sets/lists/man mi

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

OpenBSD/src V6MgXA6sys/arch/loongson/include param.h

   The definition of PAGE_SHIFT should not be limited to defined(_KERNEL); this
   prevents userland from getting a valid PAGE_SIZE definition by including
   <machine/param.h>.

   Reported on bugs@
VersionDeltaFile
1.4+1-5sys/arch/loongson/include/param.h
+1-51 files

OpenBSD/src 8BIRkTcusr.sbin/rpki-client ip.c

   rpki-client: fix ip_addr_afi_parse()

   The somewhat weird length checks would nominally accept an octet string
   of length 1, in which case the subsequent memcpy() would perform a 1-byte
   overread (harmless since libcrypto 'helpfully' adds a trailing NUL) since
   ip.c r1.12.

   The only allowed length for an AFI are 2 and 3 per RFC 3779 and SAFI is
   out, so pull the check for presence of the SAfI up and reject other
   lengths != 2.

   Also convert this function to opaque ASN1_STRING.

   ok job
VersionDeltaFile
1.35+14-12usr.sbin/rpki-client/ip.c
+14-121 files

OpenBSD/src B4MAUIfusr.sbin/rpki-client ccr.c

   rpki-client: initialize a variable to appease stupid old gcc

   Somewhat surprisingly, gcc 15 grew the smarts to avoid a false positive
   here.

   ok job
VersionDeltaFile
1.29+2-2usr.sbin/rpki-client/ccr.c
+2-21 files

OpenBSD/src GoMHhbxsys/net80211 ieee80211_node.c ieee80211_ioctl.c

   enable 802.11 AKM SHA256-PSK by default if the driver supports PMF

   test + ok kevlo@
VersionDeltaFile
1.206+12-4sys/net80211/ieee80211_node.c
1.84+5-2sys/net80211/ieee80211_ioctl.c
1.81+3-1sys/net80211/ieee80211_crypto.c
+20-73 files

OpenBSD/src NL5MoUCusr.sbin/rpki-client cms.c

   rpki-client: convert cms.c to opaque ASN1_STRING

   Add length checks for the eContent to avoid malloc(0) and malloc(huge).
   Neither of these should be reachable, but who knows for sure...

   feedback/ok claudio
VersionDeltaFile
1.59+13-4usr.sbin/rpki-client/cms.c
+13-41 files

OpenBSD/src bPwEFSrsbin/ifconfig ifconfig.8 ifconfig.c

   add support for 802.11 AKM SHA256-PSK to ifconfig

   test + ok kevlo@
VersionDeltaFile
1.413+10-4sbin/ifconfig/ifconfig.8
1.480+12-1sbin/ifconfig/ifconfig.c
+22-52 files

OpenBSD/src M2KuvhFusr.sbin/bgpd rde_update.c

   Fix possible use-after-free in up_generate_addpath()

   adjout_prefix_withdraw() is too complex to be sure that there is never a
   case where the prefix is removed and freed. So use the safe idiom and fetch
   the next element before calling adjout_prefix_withdraw().

   Fix for CID 500335
   OK tb@
VersionDeltaFile
1.187+4-3usr.sbin/bgpd/rde_update.c
+4-31 files

OpenBSD/src rkmSJHtsys/uvm uvm_pdaemon.c uvm_aobj.c

   Let the page daemon recover when uao_set_swslot() returns ENOMEM.

   When all available pages have been exhausted it might not be possible for the
   aobj layer to allocate a new element for a hash table.  In that case simply
   skip the page.  The page daemon will likely find a page that can be added to
   the cluster without requiring any allocation in uao_set_swslot().

   Not that this edge case, reported by bluhm@, can be triggered because the
   aiodone daemon releases the memory reserved for the page daemon asynchronously.
   So there might always be a window where no page are available to write pages
   to disk.

   Tested by and ok bluhm@
VersionDeltaFile
1.139+118-41sys/uvm/uvm_pdaemon.c
1.120+14-21sys/uvm/uvm_aobj.c
+132-622 files

OpenBSD/src K447Nlnusr.bin/tmux colour.c

   Improve code readability in colour_palette_get and colour_palette_set.
   GitHub issue 4730 from Pavel Roskin.
VersionDeltaFile
1.31+14-15usr.bin/tmux/colour.c
+14-151 files

OpenBSD/src Z9sdrROusr.bin/tmux window.c

   Add check that the pane is not in alternate screen mode when in
   copy-mode. From Michael Grant in GitHub issue 4728.
VersionDeltaFile
1.306+2-2usr.bin/tmux/window.c
+2-21 files

OpenBSD/src YcpSuTBusr.bin/tmux layout.c

   Fix the size caluation for left-right windows used to spread out cells
   horizontally evenly. From Michael Grant in GitHub issue 4724.
VersionDeltaFile
1.53+4-10usr.bin/tmux/layout.c
+4-101 files

OpenBSD/src tL3GvXTusr.bin/ssh scp.c

   correctly quote filenames in verbose output for local->local
   copies; from Colin Watson via bz3900; ok dtucker@
VersionDeltaFile
1.270+5-6usr.bin/ssh/scp.c
+5-61 files

OpenBSD/src bmSNPhUsys/net if_veb.c

   unbreak the build, if_input_proto isn't in the tree (yet).

   pointed out by deraadt@
VersionDeltaFile
1.65+2-2sys/net/if_veb.c
+2-21 files

OpenBSD/src Co2p3hwsys/net if_veb.c

   the blocknonip flag is supposed to filter outgoing packets too.
VersionDeltaFile
1.64+18-5sys/net/if_veb.c
+18-51 files

OpenBSD/src 221y4M9sys/net if_veb.c

   add veb-port kstats to count which of the many reasons a packet was dropped

   this adds them to the per cpu mem on each port that the refcnt
   "hazards" are on.
VersionDeltaFile
1.63+231-23sys/net/if_veb.c
+231-231 files

OpenBSD/src BFCnrwzshare/man/man4/man4.riscv64 sgmsi.4 Makefile

   sgmsi(4)
VersionDeltaFile
1.1+42-0share/man/man4/man4.riscv64/sgmsi.4
1.12+2-2share/man/man4/man4.riscv64/Makefile
+44-22 files

OpenBSD/src Bde0iAksys/arch/riscv64/conf files.riscv64 RAMDISK, sys/arch/riscv64/dev sgmsi.c

   Add sgmsi(4), a driver for the MSI controller implementation on Sophgo
   SG2042 SoCs.

   ok jca@
VersionDeltaFile
1.1+192-0sys/arch/riscv64/dev/sgmsi.c
1.31+6-1sys/arch/riscv64/conf/files.riscv64
1.47+4-1sys/arch/riscv64/conf/RAMDISK
1.54+4-1sys/arch/riscv64/conf/GENERIC
+206-34 files

OpenBSD/src 2gAblYdsys/netinet in.c in_var.h

   Replace macro IFP_TO_IA() with function in_ifp2ia().

   OK claudio@
VersionDeltaFile
1.190+23-1sys/netinet/in.c
1.44+2-18sys/netinet/in_var.h
1.415+6-6sys/netinet/ip_output.c
1.93+4-4sys/netinet/igmp.c
1.322+2-2sys/netinet/in_pcb.c
+37-315 files

OpenBSD/src HIC6MkLshare/man/man5 port-modules.5

   Drop MODTCL_CONFIG and MODTK_CONFIG.

   Replace with equivalents in the only ports affected:
   math/graphviz and math/R.

   Tcl/Tk-dependent ports normally need the location,
   not the full path to the config files.


   ok sthen@
VersionDeltaFile
1.278+4-6share/man/man5/port-modules.5
+4-61 files

OpenBSD/src d5j8wDAusr.sbin/bgpctl output.c output_json.c

   Mechanical rename of prefix_adjout to adjout_prefix.

   OK tb@
VersionDeltaFile
1.64+2-2usr.sbin/bgpctl/output.c
1.55+2-2usr.sbin/bgpctl/output_json.c
1.19+2-2usr.sbin/bgpctl/output_ometric.c
+6-63 files

OpenBSD/src 7IKVNA2usr.sbin/bgpd rde_adjout.c rde_update.c

   Mechanical rename of prefix_adjout to adjout_prefix.

   All the things for the Adj-RIB-Out handling should use adjout_ as prefix.
   So both the struct and the various functions are renamed. This makes it
   clearer what belongs to the adjout code.

   OK tb@
VersionDeltaFile
1.8+82-82usr.sbin/bgpd/rde_adjout.c
1.186+31-31usr.sbin/bgpd/rde_update.c
1.327+30-30usr.sbin/bgpd/rde.h
1.672+22-22usr.sbin/bgpd/rde.c
1.59+7-7usr.sbin/bgpd/rde_peer.c
1.284+3-3usr.sbin/bgpd/rde_rib.c
+175-1756 files

OpenBSD/src QCM3v4Jusr.sbin/rpki-client tak.c

   rpki-client: ensure TAK certificateURIs are https or rsync

   As required by RFC 9691, section 2.2.1. Gets rid of an old XXX.

   ok claudio
VersionDeltaFile
1.29+4-4usr.sbin/rpki-client/tak.c
+4-41 files