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

OpenBSD/src 8306oepusr.sbin/bgpd rde.c

   Fix in the OTC attribute parser for ROLE_PEER.

   For sessions with peer role the ASnum of the OTC attribute is compared to
   the remote ASnum of the session. At that point in the parser the data
   should not be consumed. So use an extra temporary buffer to extract the
   OTC value. This is similar to the case in ATTR_AS4_AGGREGATOR where the
   same trick is used.

   OK tb@
VersionDeltaFile
1.687+3-2usr.sbin/bgpd/rde.c
+3-21 files

OpenBSD/src Mvh1cwrusr.sbin/bgpd printconf.c parse.y

   Adjust mrt config setting of the group id.

   The code in the session engine expect group id to be 0 for any case where
   only a single peer is targeted. Only set the group id for group matches.

   Adjust the logic in printconf.c to follow this behaviour. Add a comment
   to better explain why the logic is the way it is for future me.

   OK tb@
VersionDeltaFile
1.185+9-3usr.sbin/bgpd/printconf.c
1.488+2-2usr.sbin/bgpd/parse.y
+11-52 files

OpenBSD/src chc8CUmusr.bin/tmux format.c

   Revert r1.343 for the moment since it breaks behaviour (#() in
   status-left) that we need to keep.
VersionDeltaFile
1.346+3-5usr.bin/tmux/format.c
+3-51 files

OpenBSD/src uLRuvxVusr.bin/tmux format.c

   Do not leak active/all strings in format_loop_windows; from Huihui Huang
   in GitHub issue 4898.
VersionDeltaFile
1.345+4-1usr.bin/tmux/format.c
+4-11 files

OpenBSD/src y6kLqN7usr.bin/tmux tmux.1

   Fix incorrect placement of It Xo, from Dane Jensen.
VersionDeltaFile
1.1034+3-3usr.bin/tmux/tmux.1
+3-31 files

OpenBSD/src MnoVt02usr.bin/tmux menu.c

   Fix memory leak, from Emmanuel Ugwu in GitHub issue 4900.
VersionDeltaFile
1.61+2-1usr.bin/tmux/menu.c
+2-11 files

OpenBSD/src J4gkXq1usr.bin/ssh monitor.c monitor_wrap.c

   Move banner exchange to sshd-auth process

   Previously, exchange of the initial SSH- banners was performed
   by the privileged sshd-session monitor. This moves it to the
   unprivileged sshd-auth subprocess, removing ~200 LoC from the
   monitor's privileged attack surface.

   The monitor gains a new "setcompat" RPC to allow sshd-auth to
   inform it of bug compat flags picked up from the client's banner.

   feedback dtucker@, ok markus@ deraadt@
VersionDeltaFile
1.253+27-1usr.bin/ssh/monitor.c
1.146+16-1usr.bin/ssh/monitor_wrap.c
1.13+9-1usr.bin/ssh/sshd-auth.c
1.21+1-8usr.bin/ssh/sshd-session.c
1.128+3-2usr.bin/ssh/compat.c
1.106+3-2usr.bin/ssh/packet.h
+59-152 files not shown
+63-178 files

OpenBSD/src 8tBHxXJlibexec/ld.so/ldconfig ldconfig.c

   These programs are using pledge "tmppath" with "rpath wpath cpath".
   The "tmppath" is not needed.
   from deraadt@; ok semarie and others

   this is errata/7.7/023_tmppath.patch.sig
VersionDeltaFile
1.39.16.1+2-2libexec/ld.so/ldconfig/ldconfig.c
+2-21 files

OpenBSD/src doe1Cg9libexec/ld.so/ldconfig ldconfig.c

   These programs are using pledge "tmppath" with "rpath wpath cpath".
   The "tmppath" is not needed.
   from deraadt@; ok semarie and others

   this is errata/7.8/017_tmppath.patch.sig
VersionDeltaFile
1.39.14.1+2-2libexec/ld.so/ldconfig/ldconfig.c
+2-21 files

OpenBSD/src jUGAY7csys/dev/pci pcidevs_data.h pcidevs.h

   regen
VersionDeltaFile
1.2112+5-1sys/dev/pci/pcidevs_data.h
1.2117+2-1sys/dev/pci/pcidevs.h
+7-22 files

OpenBSD/src iW4NPScsys/dev/pci pcidevs

   Add Realtek RTS5765DL NVMe.
VersionDeltaFile
1.2124+2-1sys/dev/pci/pcidevs
+2-11 files

OpenBSD/src lzTjrEgsys/dev/acpi acpidmar.c acpireg.h

   Handle IVMD entries to cater for reserved/excluded DVA ranges on the
   AMD IOMMUs.

   ok chris@
VersionDeltaFile
1.13+55-1sys/dev/acpi/acpidmar.c
1.64+3-3sys/dev/acpi/acpireg.h
+58-42 files

OpenBSD/src mgkPjRlusr.bin/mg re_search.c

   fix replace-regexp issues

   - an infinite loop with (replace-regexp "^.*$" "") because it does not
     advance to the next line

   - replace-regexp replaces all occurrences of ^pattern in a line.

   diff from Mark Willson (mark [at] hydrus.org.uk,) thanks!

   minor tweak by me, I've used gotoeol() instead of setting curwp->w_doto
   manually.
VersionDeltaFile
1.38+7-4usr.bin/mg/re_search.c
+7-41 files

OpenBSD/src Y5hmtqqsys/dev/acpi acpidmar.c

   Remove the IOMMU-specific bus_dmamap_sync() implementation and just call
   the default implementation instead.  The current #ifdef'ed out code just
   doesn't make sense.

   ok chris@
VersionDeltaFile
1.12+1-25sys/dev/acpi/acpidmar.c
+1-251 files

OpenBSD/src OP0j2iNusr.sbin/httpd server_http.c server.c

   remove empty server_http_init

   OK claudio
VersionDeltaFile
1.160+1-7usr.sbin/httpd/server_http.c
1.131+1-2usr.sbin/httpd/server.c
1.168+1-2usr.sbin/httpd/httpd.h
+3-113 files

OpenBSD/src 2jbX11Qsys/kern kern_pledge.c

   delete pledge_sysctl() printing of the failing mibs, because it truncates
   it's buffer, produces misleading output, and is pointless tty output,
   Like with other system calls failuress, the standard pledge_fail() tty output
   should lead the user to use ktrace which will provide an accurate view.
   from deraadt@; discussed with bluhm

   this is errata/7.7/022_pledge_sysctl.patch.sig
VersionDeltaFile
1.323.4.2+1-11sys/kern/kern_pledge.c
+1-111 files

OpenBSD/src 9cQd0vjsys/kern kern_pledge.c

   delete pledge_sysctl() printing of the failing mibs, because it truncates
   it's buffer, produces misleading output, and is pointless tty output,
   Like with other system calls failuress, the standard pledge_fail() tty output
   should lead the user to use ktrace which will provide an accurate view.
   from deraadt@; discussed with bluhm

   this is errata/7.8/016_pledge_sysctl.patch.sig
VersionDeltaFile
1.333.2.1+1-11sys/kern/kern_pledge.c
+1-111 files

OpenBSD/src G9pKZa8usr.bin/calendar calendar.c, usr.bin/diff diff.c

   replace pledge "stdio rpath tmppath" with unveil "/tmp" "rwc" to satisfy
   mktemp(3) type operations, unveil "/" "r" for reading all over the tree,
   and pledge "stdio rpath wpath cpath" to permit both unveils subject to
   their own limitations.

   pledge "rpath tmppath" is replace with unveil "/" "r", unveil "/tmp" "rwc",
   and "rpath wpath cpath"
   from deraadt@; ok semarie

   This was using pledge "tmppath" with "rpath wpath cpath".
   The "tmppath" is not needed.
   from deraadt@; ok semarie and others

   uses tmpfile(), which is why it used "tmppath", which is why it now
   needs "rpath wpath cpath"
   from deraadt@; spotted by brynet

   Instead of pledge "tmppath rpath", setup a "rwc" unveil on "/tmp", a
   "r" unveil on "/", and then pledge "rpath wpath cpath".

    [28 lines not shown]
VersionDeltaFile
1.265.6.1+37-9usr.bin/mandoc/main.c
1.37.28.1+7-3usr.bin/calendar/calendar.c
1.68.12.1+6-2usr.bin/diff/diff.c
1.21.6.1+4-2usr.sbin/smtpd/smtpc.c
1.77.6.1+3-3usr.bin/patch/patch.c
1.229.4.1+4-2usr.bin/nc/netcat.c
+61-218 files not shown
+80-3614 files

OpenBSD/src F3kMYCfgnu/usr.bin/binutils-2.17/binutils objdump.c, usr.bin/calendar calendar.c

   replace pledge "stdio rpath tmppath" with unveil "/tmp" "rwc" to satisfy
   mktemp(3) type operations, unveil "/" "r" for reading all over the tree,
   and pledge "stdio rpath wpath cpath" to permit both unveils subject to
   their own limitations.

   pledge "rpath tmppath" is replace with unveil "/" "r", unveil "/tmp" "rwc",
   and "rpath wpath cpath"
   from deraadt@; ok semarie

   This was using pledge "tmppath" with "rpath wpath cpath".
   The "tmppath" is not needed.
   from deraadt@; ok semarie and others

   uses tmpfile(), which is why it used "tmppath", which is why it now
   needs "rpath wpath cpath"
   from deraadt@; spotted by brynet

   Instead of pledge "tmppath rpath", setup a "rwc" unveil on "/tmp", a
   "r" unveil on "/", and then pledge "rpath wpath cpath".

    [28 lines not shown]
VersionDeltaFile
1.267.2.1+37-9usr.bin/mandoc/main.c
1.37.26.1+7-3usr.bin/calendar/calendar.c
1.68.10.1+6-2usr.bin/diff/diff.c
1.2.38.1+5-1gnu/usr.bin/binutils-2.17/binutils/objdump.c
1.234.2.1+4-2usr.bin/nc/netcat.c
1.77.4.1+3-3usr.bin/patch/patch.c
+62-208 files not shown
+80-3614 files

OpenBSD/src jBvQJPlusr.bin/sndiod sysex.h

   sndiod: Use chars (instead of uint8_t's) for the MIDI slot name

   No behavior change
VersionDeltaFile
1.4+2-2usr.bin/sndiod/sysex.h
+2-21 files

OpenBSD/src A33Vk70usr.bin/sndiod dev.c

   sndiod: Fix ctl_match() when arg0 == NULL

   No behavior change as sndiod doesn't call ctl_match() with
   arg0 == NULL (yet).
VersionDeltaFile
1.128+2-2usr.bin/sndiod/dev.c
+2-21 files