OpenBSD/src 3eT2S1Eusr.sbin/ospfctl ospfctl.c, usr.sbin/ospfd ospfd.c area.c

   ospfd(8) must be more paranoid about what it sends
   to its peers using IPC messages (see imsg_add(3)).
   The data passed between processes must not leak
   information on memory address layout from process.
   The process must be sending to its peers either data which
   are needed or, if taking a shortcut, zeroize fields
   which carry pointer (memory addresses) from process.

   The issue has been reported by students
   from British Columbia University earlier this year.

   The fix includes generous feedback from claudio@

   OK claudio@
VersionDeltaFile
1.125+98-6usr.sbin/ospfd/ospfd.c
1.11+23-1usr.sbin/ospfd/area.c
1.74+5-7usr.sbin/ospfctl/ospfctl.c
1.119+6-6usr.sbin/ospfd/rde.c
1.122+8-3usr.sbin/ospfd/ospfe.c
1.24+5-4usr.sbin/ospfd/auth.c
+145-271 files not shown
+149-287 files

OpenBSD/src cs4I0zosys/netinet6 ip6_output.c

   Put back IPV6_RTHDR to ip6_getpcbopt() as no operation.

   Reported-by: syzbot+7788d13ea3345629ceae at syzkaller.appspotmail.com
VersionDeltaFile
1.306+3-1sys/netinet6/ip6_output.c
+3-11 files

OpenBSD/src G1qbnVPlib/libc/asr res_search_async.c

   Reset ar_datalen and ar_data after free(3) like everywhere else.

   From Andrew Griffiths
VersionDeltaFile
1.22+3-1lib/libc/asr/res_search_async.c
+3-11 files

OpenBSD/src 4Pi210uusr.bin/tmux status.c prompt.c

   Major rework of prompts. The basic prompt mechanics (draw, editing, etc)
   are now wrapped up in prompt*.c and do not depend on a client. These
   functions are used to provide the original client prompt but also to
   allow panes to have their own prompts, which works much much better for
   floating panes. The mode prompts for both the tree modes and copy mode
   are switched over to be per pane.

   There are some visible changes (some of these may be changed if they
   don't seem to be working well):

   - Prompts in modes now appear in the bottom line, covering whatever
     content was there.

   - command-prompt has a -P flag to open a pane prompt.

   - Because they cover the content, the default style for prompts in modes
     now does not fill the entire line; the main command prompt stays the
     same.


    [5 lines not shown]
VersionDeltaFile
1.271+139-1,512usr.bin/tmux/status.c
1.1+1,595-0usr.bin/tmux/prompt.c
1.1+264-0usr.bin/tmux/prompt-history.c
1.92+231-32usr.bin/tmux/mode-tree.c
1.348+171-1usr.bin/tmux/window.c
1.1370+115-44usr.bin/tmux/tmux.h
+2,515-1,58913 files not shown
+2,832-1,75419 files

OpenBSD/src VEpqtExsbin/mount mount.c

   mount: preserve DUID when updating file system

   "Oops" deraadt@
VersionDeltaFile
1.80+2-2sbin/mount/mount.c
+2-21 files

OpenBSD/src vS18JJisbin/mount mount.c

   mount: support DUIDs with -u

   "Looks good" deraadt@
VersionDeltaFile
1.79+3-2sbin/mount/mount.c
+3-21 files

OpenBSD/src 12PxT3Ysys/uvm uvm_map.c

   Initialize uvm_maxkaddr to VM_MIN_KERNEL_ADDRESS.  This fixes a problem
   where uvm_map() with the UVM_FLAG_FIXED flag would miscalculate the amount
   to grow the kernel pmap if uvm_maxkaddr was still zero, which happens on
   amd64 (and possibly other architectures that use PMAP_STEAL_MEMORY).  This
   would result in the kernel pmap growing to its maximum which would consume
   all memory on small memory machines now that we've given amd64 512G of KVA.

   ok deraadt@
VersionDeltaFile
1.356+2-3sys/uvm/uvm_map.c
+2-31 files

OpenBSD/src 9LJ7WDxsys/kern kern_exit.c

   Always untrace traced children even when they're exiting.  But do skip
   sending them a SIGKILL.  This prevents triggering a KASSERT in a convuluted
   scenario reported by Yuxiang Yang.

   "looks right" deraadt@
   ok claudio@
VersionDeltaFile
1.253+15-13sys/kern/kern_exit.c
+15-131 files

OpenBSD/src Lkty2pmusr.sbin/rpki-client mft.c aspa.c

   rpki-client: add some signed object boilerplate

   This adds new/free/obj functions and introduces struct signed_obj
   containing the handlers. Pass signtime and der_len into the new()
   function for now and rewrite *_parse() using that.

   discussed with claudio
   ok job
VersionDeltaFile
1.141+36-6usr.sbin/rpki-client/mft.c
1.44+35-5usr.sbin/rpki-client/aspa.c
1.46+35-5usr.sbin/rpki-client/rsc.c
1.18+35-5usr.sbin/rpki-client/spl.c
1.31+35-5usr.sbin/rpki-client/tak.c
1.90+35-5usr.sbin/rpki-client/roa.c
+211-311 files not shown
+229-327 files

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

   No more flang
VersionDeltaFile
1.286+3-3share/man/man5/port-modules.5
+3-31 files

OpenBSD/src zeNbOkxusr.bin/tmux mode-tree.c

   Ignore mouse when help is open.
VersionDeltaFile
1.91+5-1usr.bin/tmux/mode-tree.c
+5-11 files

OpenBSD/src j4PM9vyusr.bin/tmux window.c

   Free modes rather than going through reset when pane is destroyed as the
   reset path may try to destroy the pane again.
VersionDeltaFile
1.347+17-2usr.bin/tmux/window.c
+17-21 files

OpenBSD/src KyryLQQgnu/llvm/clang/lib/Driver/ToolChains Clang.cpp

   Fix merge botch which accidentally broke -mfix-loongson2f-btb on loongson.

   ok robert@ visa@
VersionDeltaFile
1.18+6-5gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
+6-51 files

OpenBSD/src RINO8aqsys/arch/sparc64/sparc64 clock.c autoconf.c

   Long ago, we took advantage of the "status" property to avoid attaching
   drivers to devices reporting themselves as in failing state.

   However, doing this on Mostek chips with dead batteries would cause no
   clock source to attach, and the kernel would then assume it is running on
   sun4v with the unix-gettod? OFW method being available, causing spurious
   (and puzzling) warnings on console on non-sun4v systems.

   Relax this logic to allow clock(4) to always attach regardless of its state,
   but distrust the clock value on devices reported as failing.

   This allow e.g. Enterprise 4000 systems with dead batteries on all
   motherboards to correctly attach clocks and hold the date on warm reboots,
   without scaring users.

   ok kettenis@ quite some time ago.
VersionDeltaFile
1.89+13-2sys/arch/sparc64/sparc64/clock.c
1.156+12-2sys/arch/sparc64/sparc64/autoconf.c
+25-42 files

OpenBSD/src lsgxSoiusr.sbin/bgpd rde_peer.c rde.h

   Rename EVAL_RECONF to EVAL_REEVAL since this is a re-evaluation of the RIB
   that is triggered. Also use EVAL_REEVAL in the peer_dump upcall since
   there the re-evaluation also happens but just for a single peer.

   Adjust the peer_generate_update() prototype and drop the newpath and
   old_pathid_tx arguments. Those will no longer be used. Also adjust
   up_generate_addpath_all() which is currently unreachable.

   OK tb@
VersionDeltaFile
1.76+7-9usr.sbin/bgpd/rde_peer.c
1.354+3-4usr.sbin/bgpd/rde.h
1.199+5-2usr.sbin/bgpd/rde_update.c
1.707+2-2usr.sbin/bgpd/rde.c
+17-174 files

OpenBSD/src 0e90cuPsys/dev/ata wd.c, sys/kern kern_pledge.c

   More prep for 52 disk partitions.

   Remove O_disklabel and O_DIOCGDINFO now that the ABI
   crossover should be complete. Lest these XXX bits take
   root.
VersionDeltaFile
1.343+1-7sys/scsi/sd.c
1.136+1-7sys/dev/ata/wd.c
1.15+1-5sys/sys/dkio.h
1.359+1-2sys/kern/kern_pledge.c
+4-214 files

OpenBSD/src qVqIGGgsys/netinet ip_divert.c, sys/netinet6 ip6_divert.c

   Make divert-packet / divert(4) properly rdomain aware.

   divert(4) only partially handled rtables / rdomains. While it was used
   outbound, inbound packets did not check the rdomain. This is confusing
   and incorrect.

   Now inbound packets need to match the rdomain of the listening socket
   so one needs to listen on the rdomain the packets come in.
   If packets from multiple rdomains match the rule then userland
   needs to listen on each rdomain. If not the packet will be dropped.

   Report by Y Yang, et al from Tsinghua University
   With and OK bluhm@ OK sashan@ mvs@
VersionDeltaFile
1.109+6-2sys/netinet6/ip6_divert.c
1.108+6-2sys/netinet/ip_divert.c
+12-42 files

OpenBSD/src 50sETm4lib/libsndio aucat.c amsg.h, usr.bin/sndiod sock.c

   sndiod: Refactor and simplify the hello message handling

   Use proper enums for the resource type (audio device, midithru port,
   etc) in place of magic numbers and factor duplicated code.

   No behavior change.
   CCVS: ----------------------------------------------------------------------
VersionDeltaFile
1.64+50-47usr.bin/sndiod/sock.c
1.83+5-5lib/libsndio/aucat.c
1.19+8-1lib/libsndio/amsg.h
+63-533 files

OpenBSD/src SUjNMzeusr.bin/sndiod opt.c dev.c

   sndiod: Don't use midi_send() to generate MIDI messages

   midi_in() is the right function to do so. It handles multiple sources
   and does flow control.
VersionDeltaFile
1.21+5-8usr.bin/sndiod/opt.c
1.141+2-2usr.bin/sndiod/dev.c
+7-102 files

OpenBSD/src 3W8pzMtusr.bin/sndiod opt.c

   sndiod: Initialize the array of unused opt_app structures
VersionDeltaFile
1.20+2-1usr.bin/sndiod/opt.c
+2-11 files

OpenBSD/src 4vA2PpNsys/dev/ic ncr53c9x.c

   sc_imlen is allowed to be >= NCR_MAX_MSG_LEN.

   Fixes subtle ncr53c9x_msgin breakage in previous.

   Pointed out by, tweak & ok miod@
VersionDeltaFile
1.84+4-3sys/dev/ic/ncr53c9x.c
+4-31 files

OpenBSD/src c91v748sys/netinet ip_mroute.c ip_mroute.h, sys/netinet6 ip6_mroute.c ip6_mroute.h

   Extend multicast router counter.

   ip_mforward() contained a static variable that poorly implements a
   rate limited log message.  Replace the log with a counter, which
   is MP-safe.
   Also count drops due to time-to-live and hop-limit.  As the default
   ttl is 1, this is the most common pitfall when configuring a multicast
   router.  This counter helps debugging.

   OK claudio@ deraadt@
VersionDeltaFile
1.153+6-5sys/netinet/ip_mroute.c
1.30+5-1usr.bin/netstat/mroute.c
1.35+5-1sys/netinet/ip_mroute.h
1.158+4-1sys/netinet6/ip6_mroute.c
1.26+3-1sys/netinet6/ip6_mroute.h
1.28+3-1usr.bin/netstat/mroute6.c
+26-106 files

OpenBSD/src JQuQImlregress/lib/libc/illumos/oclo Makefile

   Test runs out of file descriptors.  Increase ulimit number to 256.
VersionDeltaFile
1.3+3-1regress/lib/libc/illumos/oclo/Makefile
+3-11 files

OpenBSD/src Okmvpyvusr.bin/ssh channels.c

   Avoid printf("%s", NULL) since it's not guaranteed to be safe and will
   segfault on some -portable platforms.
VersionDeltaFile
1.463+2-2usr.bin/ssh/channels.c
+2-21 files

OpenBSD/src miC9sPQsys/dev/ic ncr53c9x.c

   Fix FIFO handling to avoid overflowing sc_imess.

   Original diff from Stanislav Fort.

   ok deraadt@ claudio@
VersionDeltaFile
1.83+10-11sys/dev/ic/ncr53c9x.c
+10-111 files

OpenBSD/src 64sXs8Lregress/usr.sbin/pkg_add Makefile

   pkg_add: add regression test reproducing the recent gcc15 issue

   from espie
VersionDeltaFile
1.91+15-5regress/usr.sbin/pkg_add/Makefile
+15-51 files

OpenBSD/src JZinTqqsys/kern sysv_shm.c

   For IPC_STAT (and KERN_SYSVIPC_SHM_INFO) the three fields
   __shm_atimensec/__shm_dtimensec/_shm_ctimensec fields leak kernel memory
   contents because we never initialize them, they should clearly be zero
   until such time as we add more precision.  The Tsinghua University group
   suggested clearing these at export time, but the real problem is the
   memory is being allocated without PR_ZERO.
   ok kettenis mvs
VersionDeltaFile
1.85+4-4sys/kern/sysv_shm.c
+4-41 files

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

   Replace two-value prompt_mode enum with a flag.
VersionDeltaFile
1.270+9-10usr.bin/tmux/status.c
1.1369+2-5usr.bin/tmux/tmux.h
+11-152 files

OpenBSD/src wgJ1RD8usr.bin/tmux status.c window-customize.c

   Add some enums for prompt return values to make them a bit less confusing.
VersionDeltaFile
1.269+41-34usr.bin/tmux/status.c
1.25+29-29usr.bin/tmux/window-customize.c
1.90+18-14usr.bin/tmux/mode-tree.c
1.83+15-15usr.bin/tmux/window-tree.c
1.1368+23-6usr.bin/tmux/tmux.h
1.74+11-11usr.bin/tmux/cmd-command-prompt.c
+137-1092 files not shown
+151-1178 files

OpenBSD/src kNaxhvdsys/arch/arm64/conf RAMDISK

   Attach aplmbox(4) early in RAMDISK kernels too.
VersionDeltaFile
1.242+2-2sys/arch/arm64/conf/RAMDISK
+2-21 files