OpenBSD/src i38Iky9usr.bin/mg file.c

   improve the "No changes need to be saved" check

   Instead of checking for the BFCHG flag in buffsave(), bubble it up to
   filesave(), which is the interactive function.  This avoids prompting
   for a filepath for e.g. when attempting to save the *scratch* buffer.

   The only other place where buffsave() is called, anycb in buffer.c is
   already guarding for a set file name and the BFCHG flag.

   Initial diff from Han Boetes (hboetes at gmail), tweaked by me.
VersionDeltaFile
1.105+7-9usr.bin/mg/file.c
+7-91 files

OpenBSD/src ZDlRQGXlib/libc/sys pledge.2, sys/kern kern_pledge.c

   pledge "tmppath" goes away because it sucks.  The history is kind of
   sad:  unveil(2) was invented by Bob Beck and myself because a couple
   of us struggled and couldn't expand the "tmppath" mechanism to general use.
   unveil(2) ended up being kind of "upside down" different, and so we never
   deleted "tmppath" because the refactorings seemed complicated.
   However over the last two weeks, we're removed all the "tmppath" in base
   pretty easily, and the 18 ports using it have also been fixed.
   The majority of situations now use unveil "/tmp" "rwc", unveil "/" "r" or
   similar, and then pledge "rpath wpath cpath", and this is generally needed
   to satisfy the mkstemp(3) family of functions in libc.
   Use of "tmppath" will now cause pledge(2) to return EINVAL.  There is
   no backwards compatible way of mimic the behaviour correctly using
   kernel-internal unveil hackery.
   Prompted by a report from David Leadbeater; and extensive conversations
   with beck and semarie.
   from deraadt@

   Stop the canonicalization of the path in pledge_namei() callback since
   we know is providing strictly normalized paths, and it leads to a subtle

    [17 lines not shown]
VersionDeltaFile
1.323.4.3+13-74sys/kern/kern_pledge.c
1.71.4.1+21-5lib/libc/sys/pledge.2
+34-792 files

OpenBSD/src 63c29t2lib/libc/sys pledge.2, sys/kern kern_pledge.c

   pledge "tmppath" goes away because it sucks.  The history is kind of
   sad:  unveil(2) was invented by Bob Beck and myself because a couple
   of us struggled and couldn't expand the "tmppath" mechanism to general use.
   unveil(2) ended up being kind of "upside down" different, and so we never
   deleted "tmppath" because the refactorings seemed complicated.
   However over the last two weeks, we're removed all the "tmppath" in base
   pretty easily, and the 18 ports using it have also been fixed.
   The majority of situations now use unveil "/tmp" "rwc", unveil "/" "r" or
   similar, and then pledge "rpath wpath cpath", and this is generally needed
   to satisfy the mkstemp(3) family of functions in libc.
   Use of "tmppath" will now cause pledge(2) to return EINVAL.  There is
   no backwards compatible way of mimic the behaviour correctly using
   kernel-internal unveil hackery.
   Prompted by a report from David Leadbeater; and extensive conversations
   with beck and semarie.
   from deraadt@

   Stop the canonicalization of the path in pledge_namei() callback since
   we know is providing strictly normalized paths, and it leads to a subtle

    [17 lines not shown]
VersionDeltaFile
1.333.2.2+13-74sys/kern/kern_pledge.c
1.74.2.1+20-4lib/libc/sys/pledge.2
+33-782 files

OpenBSD/src SbsZx1Usys/dev/pci if_iwx.c

   make iwx_read_firmware() error out if IWX_NUM_UCODE_TLV_CAPA is too small

   The driver would attempt to load an incomplete firmware image if
   this check failed. Make the driver report a proper error instead.

   ok tb@ phessler@
VersionDeltaFile
1.203+2-1sys/dev/pci/if_iwx.c
+2-11 files

OpenBSD/src u64MJepsys/net80211 ieee80211_node.c

   The refcnt DPRINTF in ieee80211_release_node() is too verbose put it
   behind a ieee80211_debug > 1 check.
   OK stsp@
VersionDeltaFile
1.210+6-3sys/net80211/ieee80211_node.c
+6-31 files

OpenBSD/src dgCxGGGsys/net80211 ieee80211_input.c

   Unbreak compiles with IEEE80211_DEBUG defined.

   In ieee80211_recv_probe_resp() the code to print probe responses should be
   called after ieee80211_find_node() and is_new should be used instead of
   checking for ni == NULL.

   OK stsp@
VersionDeltaFile
1.259+11-11sys/net80211/ieee80211_input.c
+11-111 files

OpenBSD/src cXtuWluusr.bin/tmux window-copy.c cmd-send-keys.c

   Allow copy mode to work for readonly clients, except for copy commands,
   from Dane Jensen.
VersionDeltaFile
1.391+102-1usr.bin/tmux/window-copy.c
1.79+8-2usr.bin/tmux/cmd-send-keys.c
1.50+2-2usr.bin/tmux/cmd-copy-mode.c
1.163+2-1usr.bin/tmux/key-bindings.c
+114-64 files

OpenBSD/src ZtOWhqEusr.bin/tmux server-fn.c

   Check window is not NULL, from Chema Gonzalez in GitHub issue 4908.
VersionDeltaFile
1.143+7-3usr.bin/tmux/server-fn.c
+7-31 files

OpenBSD/src mTO9HF4regress/usr.sbin/bgpd/unittests rde_aspa_test.c

   Define rdemem for this test too since we now account for aspa objects as well.

   As usual noticed by anton@
VersionDeltaFile
1.7+3-1regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
+3-11 files

OpenBSD/src mhXrq6ksys/dev/pci if_iwx.c if_iwxreg.h

   Add support for MCC update firmware response v4 to iwx(4).

   This will be needed to support BZ devices.

   ok kettenis@ phessler@

   Tested:
   AX210 (MA): kettenis
   AX211: phessler
   AX211 (BZ): stsp
VersionDeltaFile
1.202+56-17sys/dev/pci/if_iwx.c
1.61+29-1sys/dev/pci/if_iwxreg.h
+85-182 files

OpenBSD/src Uwmskpjusr.bin/ssh sftp-server.c misc.c

   Replace all remaining instances of u_intXX_t types with the C99
   equivalent uintXX_t types.  ok djm@
VersionDeltaFile
1.153+83-83usr.bin/ssh/sftp-server.c
1.213+33-33usr.bin/ssh/misc.c
1.35+30-30usr.bin/ssh/sshbuf.h
1.384+26-26usr.bin/ssh/sshconnect2.c
1.334+26-26usr.bin/ssh/packet.c
1.41+25-25usr.bin/ssh/moduli.c
+223-22340 files not shown
+480-48046 files

OpenBSD/src F8WFGCxsys/kern kern_pledge.c

   incorrectly nested break for latest zoneinfo check
   spotted by david leadbeater
VersionDeltaFile
1.340+3-3sys/kern/kern_pledge.c
+3-31 files

OpenBSD/src 3SEd1bZlib/libc/time localtime.c

   In tzpath_ok(), also reject a path ending in "/..".  This replaces
   strstr() with a loop that matches "/../" in the name as well as
   "/.." at the end.  OK deraadt@
VersionDeltaFile
1.73+10-4lib/libc/time/localtime.c
+10-41 files

OpenBSD/src 5H0mdLeusr.sbin/relayd log.h

   relayd/log.h: missed cvs add
VersionDeltaFile
1.1+46-0usr.sbin/relayd/log.h
+46-01 files

OpenBSD/src LaGUCmssys/kern kern_pledge.c

   In pledge_namei, improve the scanning for ".." in zoneinfo paths
   with millert
VersionDeltaFile
1.339+7-8sys/kern/kern_pledge.c
+7-81 files

OpenBSD/src 3G3xGRGsys/dev/fdt rkpinctrl.c

   Rework rkpinctrl(4) to delay the lookup of the regmaps until we actually
   need them.  This should fix issues with Linux device tree changes that
   make us attach rkpinctrl(4) before the syscon(4) that provides the
   regmap.

   ok patrick@
VersionDeltaFile
1.17+29-34sys/dev/fdt/rkpinctrl.c
+29-341 files

OpenBSD/src 98NYNDCgnu/lib/libcompiler_rt Makefile

   amd64 needs the quad-precision support functions as well (for __float128
   support).  From Brad (with a small comment tweak).

   ok rsadowski@
VersionDeltaFile
1.15+6-1gnu/lib/libcompiler_rt/Makefile
+6-11 files

OpenBSD/src 9HNSU4Jlib/libutil imsg.c

   While in practice the ibuf_skip() call can not fail it is better to check
   it. If the ibuf header can't be skipped it is better to not forward the
   message and return an error.
   Fix for CID 492354
   OK tb@
VersionDeltaFile
1.43+3-2lib/libutil/imsg.c
+3-21 files

OpenBSD/src 9rfkXIsusr.bin/mg fileio.c funmap.c

   two more strdup() failure handling

   original diff from Han Boetes (hboetes at gmail), I've just simplified
   it a tiny bit.
VersionDeltaFile
1.113+3-5usr.bin/mg/fileio.c
1.68+6-2usr.bin/mg/funmap.c
+9-72 files

OpenBSD/src WvnXqhousr.sbin/relayd log.c relayd.h

   Standardize logging with bgpd

   OK claudio@
VersionDeltaFile
1.36+9-28usr.sbin/relayd/log.c
1.278+1-23usr.sbin/relayd/relayd.h
1.23+2-1usr.sbin/relayd/check_script.c
1.62+2-1usr.sbin/relayd/check_tcp.c
1.4+2-1usr.sbin/relayd/check_tls.c
1.48+2-1usr.sbin/relayd/config.c
+18-5517 files not shown
+52-7223 files

OpenBSD/src JkssGI8usr.sbin/httpd log.h log.c

   Standardize logging with bgpd

   Tweak and OK claudio@
VersionDeltaFile
1.1+46-0usr.sbin/httpd/log.h
1.15+9-28usr.sbin/httpd/log.c
1.169+1-23usr.sbin/httpd/httpd.h
1.69+2-1usr.sbin/httpd/config.c
1.22+2-1usr.sbin/httpd/control.c
1.77+2-1usr.sbin/httpd/httpd.c
+62-546 files not shown
+74-6012 files

OpenBSD/src VLS4sGisys/kern kern_pledge.c

   Stop the canonicalization of the path in pledge_namei() callback since
   we know is providing strictly normalized paths, and it leads to a subtle
   problem a little bit like a TOCTOU.  However, this pathcode can also be
   reached by non-libc callers, so we need one validation step: the zoneinfo
   sub-directory inspections may not attempt walks upwards through "..", we
   don't need to consider symbolic links because root does not place them there.
   From discussions with david leadbeater, ok beck
VersionDeltaFile
1.338+10-50sys/kern/kern_pledge.c
+10-501 files

OpenBSD/src ewtkcaZregress/usr.sbin/bgpd/config bgpd.conf.18.ok bgpd.conf.18.in

   Add mrt config check
VersionDeltaFile
1.1+117-0regress/usr.sbin/bgpd/config/bgpd.conf.18.ok
1.1+73-0regress/usr.sbin/bgpd/config/bgpd.conf.18.in
1.16+2-2regress/usr.sbin/bgpd/config/Makefile
+192-23 files

OpenBSD/src fJ7bnPPusr.sbin/bgpctl output_ometric.c output_json.c

   Print the new statistics added to the RDE.
   OK tb@
VersionDeltaFile
1.25+33-2usr.sbin/bgpctl/output_ometric.c
1.61+23-2usr.sbin/bgpctl/output_json.c
1.70+17-2usr.sbin/bgpctl/output.c
+73-63 files

OpenBSD/src TAtHakOusr.sbin/bgpd rde_peer.c bgpd.h

   Add following statistics:

   - ASPA table size and count
   - RIB entry queue lenght (both per-peer and global)
   - ibuf queue length and size (both per-peer and global)

   OK tb@
VersionDeltaFile
1.70+23-1usr.sbin/bgpd/rde_peer.c
1.534+9-1usr.sbin/bgpd/bgpd.h
1.7+7-1usr.sbin/bgpd/rde_aspa.c
1.137+4-1usr.sbin/bgpd/control.c
1.194+4-1usr.sbin/bgpd/session.h
+47-55 files

OpenBSD/src H2qEyHUusr.sbin/bgpd rde_peer.c

   In peer_delete ensure that the rib_pq_head TAILQ is empty by concatenating
   it onto the peerself queue.

   In general this should never happen since the peer is down for 1h before
   being removed and during that time the queue should empty but better safe
   than sorry.

   OK tb@
VersionDeltaFile
1.69+3-1usr.sbin/bgpd/rde_peer.c
+3-11 files

OpenBSD/src Urw0wqxusr.sbin/bgpd rde_peer.c

   In peer_up() call peer_down() instead of inlineing the work.

   This is now possible since the split of peer_down() and peer_delete()
   changed peer_down() to no longer free the peer.
   OK tb@
VersionDeltaFile
1.68+2-6usr.sbin/bgpd/rde_peer.c
+2-61 files

OpenBSD/src 0C0icqFusr.sbin/acme-client revokeproc.c

   acme-client: use accessors instead of reaching into ASN1_STRING

   ok sthen
VersionDeltaFile
1.28+7-6usr.sbin/acme-client/revokeproc.c
+7-61 files

OpenBSD/src KSvTAeJsys/dev/pci if_iwxreg.h if_iwx.c

   Send the new system statistics command if supported by iwx(4) firmware.

   This will be needed for BZ devices.

   ok phessler@, kettenis@

   Tested:
   AX200: stsp
   AX201: kirill
   AX210 (MA): kettenis
   AX211: phessler
   AX211 (BZ): stsp
VersionDeltaFile
1.60+242-1sys/dev/pci/if_iwxreg.h
1.201+83-2sys/dev/pci/if_iwx.c
1.44+3-1sys/dev/pci/if_iwxvar.h
+328-43 files

OpenBSD/src 39lrD06usr.sbin/bgpd rde.c

   Further improve the log messages for attribute parse errors.

   Add an extra case for the case where the length of the attribute
   overflows the attribute buffer. This is a reasonably common issues
   and therefor the extra message that includes attribute, flags and length.

   OK tb@
VersionDeltaFile
1.688+11-4usr.sbin/bgpd/rde.c
+11-41 files