OpenBSD/src xx0MrJAsys/kern vfs_syscalls.c

   also allow O_CLOEXEC flag in __pledge_open()
VersionDeltaFile
1.383+3-3sys/kern/vfs_syscalls.c
+3-31 files

OpenBSD/src gCPtvEnsys/dev/ic qwz.c

   sys/qwz: handle QoS in native WiFi frames

   Rebuild the QoS control field for native WiFi RX frames from descriptor
   metadata before passing them to net80211.

   On TX, strip the hostside QoS control field when using native WiFi
   encapsulation, after deriving the TID for the firmware descriptor.

   OK: mglocker@
VersionDeltaFile
1.34+112-27sys/dev/ic/qwz.c
+112-271 files

OpenBSD/src pyHircJsys/dev/i2c ietp.c ihidev.c

   Use the global 'nowake' variable for tsleep which doesn't require wakeup.

   Suggested and ok jsg@
VersionDeltaFile
1.5+2-2sys/dev/i2c/ietp.c
1.43+2-2sys/dev/i2c/ihidev.c
1.3+2-2sys/dev/i2c/sambat.c
+6-63 files

OpenBSD/src OeWBme4sys/sys sem.h

   Add missing include for struct refcnt.

   Spotted while building ipcs(1).  ok tb@
VersionDeltaFile
1.29+2-1sys/sys/sem.h
+2-11 files

OpenBSD/src MVww7qGusr.bin/tmux screen-redraw.c layout.c

   Some code tidying up.
VersionDeltaFile
1.119+38-47usr.bin/tmux/screen-redraw.c
1.57+2-2usr.bin/tmux/layout.c
1.29+2-2usr.bin/tmux/layout-custom.c
+42-513 files

OpenBSD/src erOY66Osys/dev/i2c ihidev.c ietp.c

   Use the real sc address for tsleep identification instead of the stack
   pointer address.

   ok deraadt@
VersionDeltaFile
1.42+2-2sys/dev/i2c/ihidev.c
1.4+2-2sys/dev/i2c/ietp.c
+4-42 files

OpenBSD/src qOla9m6sys/kern sysv_sem.c, sys/sys sem.h

   Introduce reference counters for SysV semaphores to fix the context
   switch use-after-free after tsleep in sys_semget().

   sys___semctl() has no such problems, because we do complete reload and
   re-check of semaphore stuff, however I like to replace all of them
   with the only "semaptr != sema[ix]" check. The semaphore was changed, go
   to the beginning of sys___semctl() and acquire it again.

   Note, seminfo.semmni only grows, so even if `sema' array was
   re-allocated, the sema[ix] is still valid.

   "go for it" from deraadt
VersionDeltaFile
1.69+46-17sys/kern/sysv_sem.c
1.28+2-1sys/sys/sem.h
+48-182 files

OpenBSD/src j4BjxRfsys/dev/i2c sambat.c

   I've noticed slight hiccups on the keyboard input during the battery status
   update caused by the delay busy loop.  Using tsleep instead resolves that.
VersionDeltaFile
1.2+9-2sys/dev/i2c/sambat.c
+9-21 files

OpenBSD/src wqjRYxebin/ksh edit.c emacs.c

   bin/ksh: preserve tildes in completion

   Keep leading tilde expressions in the command line after file
   completion. Expanding ~user to pw_dir during editing bakes the result of
   an early passwd lookup into the command line; if the account changes
   before the command is executed, the command uses a stale pathname
   instead of the current ~user expansion.

   Completion still performs the lookup needed to enumerate pathname
   matches, but rewrites matches back to the spelling the user typed and
   does not leave a completion only lookup in the homedir cache.

   Also complete bare ~user prefixes from the passwd database, so ~us[TAB]
   can become ~user before pathname completion continues.

   Preserving tilde is the default behaviour.

   OK: deraadt@
VersionDeltaFile
1.72+247-11bin/ksh/edit.c
1.92+4-2bin/ksh/emacs.c
1.70+4-2bin/ksh/vi.c
1.14+2-1bin/ksh/edit.h
+257-164 files

OpenBSD/src ktzA9Vkusr.bin/tmux cmd-attach-session.c cmd-switch-client.c

   Tighten up read-only checks on attach-session, detach-client and
   switch-client so that a user should be able to only detach their own
   client. Reported by John Walker.
VersionDeltaFile
1.90+11-2usr.bin/tmux/cmd-attach-session.c
1.74+11-1usr.bin/tmux/cmd-switch-client.c
1.39+9-1usr.bin/tmux/cmd-detach-client.c
+31-43 files

OpenBSD/src CXg3upTusr.bin/tmux screen-write.c tmux.h

   Work out if a pane is obscured by another one when drawing.
VersionDeltaFile
1.250+64-27usr.bin/tmux/screen-write.c
1.1325+4-1usr.bin/tmux/tmux.h
+68-282 files

OpenBSD/src PB1fF3usbin/dhcp6leased engine.c, sbin/slaacd engine.c

   Ingore packages with invalid prefixlen.

   Rouge router advertisements with a prefixlen > 128 would make slaacd
   exit with a fatal error, leading to a denial of service.

   The same issue exists in dhcp6leased where a rouge prefix delegation
   would make dhcp6leased exit with a fatal error, leading to a denial of
   service.

   Pointed out by Ivan of Quarkslab.

   input & OK deraadt
VersionDeltaFile
1.102+13-4sbin/slaacd/engine.c
1.36+11-3sbin/dhcp6leased/engine.c
+24-72 files

OpenBSD/src QOobzVHusr.bin/tmux screen-write.c tty.c

   Use a union for the data passed around in tty_ctx instead of void *.
VersionDeltaFile
1.249+19-19usr.bin/tmux/screen-write.c
1.461+17-16usr.bin/tmux/tty.c
1.1324+15-4usr.bin/tmux/tmux.h
+51-393 files

OpenBSD/src B2e7YD6usr.bin/tmux tty.c screen-write.c

   Tidy up a load of different flags and special values in the tty_ctx into
   a single bitmask.
VersionDeltaFile
1.460+36-33usr.bin/tmux/tty.c
1.248+35-22usr.bin/tmux/screen-write.c
1.1323+13-14usr.bin/tmux/tmux.h
1.68+2-2usr.bin/tmux/popup.c
+86-714 files

OpenBSD/src COy3Sx8regress/lib/libcrypto/x509/rfc3779 rfc3779.c

   rfc3779 test: various minor tweaks

   - include length in hexdump output
   - show hexdumps also if lengths don't match
   - more comments and consistency
VersionDeltaFile
1.15+32-15regress/lib/libcrypto/x509/rfc3779/rfc3779.c
+32-151 files

OpenBSD/src p8va7zxregress/lib/libcrypto/x509/rfc3779 rfc3779.c

   rfc3779 regress: tweak order of variable declarations
VersionDeltaFile
1.14+2-2regress/lib/libcrypto/x509/rfc3779/rfc3779.c
+2-21 files

OpenBSD/src W9umSxGregress/usr.sbin/bgpd/unittests rde_decide_test.c

   Cope with rde_generate_updates() being renamed to rde_enqueue_updates().
VersionDeltaFile
1.19+2-2regress/usr.sbin/bgpd/unittests/rde_decide_test.c
+2-21 files

OpenBSD/src 5J3B8NSusr.sbin/acme-client acctproc.c json.c

   Add support for external account binding.  If we're creating a new account
   with the ACME CA, and we have an EAB key and key ID specified with the new
   -e command line argument, compute the required hash of the account details
   and include it in the new account request.

   feedback from florian@ and tb@
   tested against security/pebble and Digicert by me, and against Actalis by
   rroadrrunner at proton dot me.
   ok florian@ tb@
VersionDeltaFile
1.33+114-18usr.sbin/acme-client/acctproc.c
1.25+65-19usr.sbin/acme-client/json.c
1.10+68-1usr.sbin/acme-client/base64.c
1.59+27-6usr.sbin/acme-client/main.c
1.48+24-7usr.sbin/acme-client/netproc.c
1.24+14-10usr.sbin/acme-client/extern.h
+312-611 files not shown
+332-637 files

OpenBSD/src eawmZFIsys/dev/pci ksmn.c

   Attach ksmn(4) on 19h/1x devices

   Tested on:
   cpu0: AMD EPYC 9354P 32-Core Processor, 3250.01 MHz, 19-11-01, patch 0a101154

   and fix the assertion ksmn_ccd_attach to allow for devices with 12 CCDs.

   ok brynet@ claudio@
VersionDeltaFile
1.11+3-2sys/dev/pci/ksmn.c
+3-21 files

OpenBSD/src f6smpFjusr.sbin/rpki-client http.c

   Replace assert() with a graceful failure by aborting the http request.

   An overlong HTTP line can fill the receive buffer to its max but then
   http_get_line() would still return NULL trying to read more data.
   Since the buffer is full the assert would trigger. Now the http request
   is terminated.

   Reported by Frank Denis
   OK tb@
VersionDeltaFile
1.103+9-3usr.sbin/rpki-client/http.c
+9-31 files

OpenBSD/src LN3zVzCregress/usr.sbin/bgpd/integrationtests l3vpn.sh

   Add the proper mpe interfaces to IFACES so the initial check actually works
VersionDeltaFile
1.9+2-2regress/usr.sbin/bgpd/integrationtests/l3vpn.sh
+2-21 files

OpenBSD/src THwi85rusr.sbin/bgpd rde_decide.c rde_rib.c

   Rename rde_generate_updates() to rde_enqueue_updates().

   OK tb@
VersionDeltaFile
1.108+7-7usr.sbin/bgpd/rde_decide.c
1.296+3-3usr.sbin/bgpd/rde_rib.c
1.703+2-2usr.sbin/bgpd/rde.c
1.74+2-2usr.sbin/bgpd/rde_peer.c
1.351+2-2usr.sbin/bgpd/rde.h
+16-165 files

OpenBSD/src rG9zhsGusr.sbin/relayd ssl.c

   relayd: remove X509_dup() call that leaks memory

   While there, add error checks for X509_set_{pubkey,issuer_name}().

   From Marc Jorge
VersionDeltaFile
1.40+9-6usr.sbin/relayd/ssl.c
+9-61 files

OpenBSD/src MAFkmKNusr.sbin/bgpctl bgpctl.c output.c

   For bgpctl show mrt detail print the last change time as an ISO format time.

   If abs_time is set then switch fmt_monotime() to absolute timestamps.
   This uses monotime_to_time, gmtime and strftime("%FT%TZ") to get an
   ISO format timestamp string.

   While there also adjust get_rel_monotime() to be more like
   monotime_to_time() and stop treating negative numbers as error.
   In fmt_monotime() check the monotime against 0 to print 'Never' for timers
   that are not running.

   With this bgpctl show mrt detail prints:
       Last update: 2019-05-08T20:03:06Z

   OK tb@
VersionDeltaFile
1.322+24-15usr.sbin/bgpctl/bgpctl.c
1.77+2-2usr.sbin/bgpctl/output.c
+26-172 files

OpenBSD/src BVjqXxUusr.sbin/bgpd rde_prefix.c

   Cleanup log messages in rde_prefix.c

   Try to not use function name in log messages and make them less developer
   focused.

   OK tb@
VersionDeltaFile
1.63+17-15usr.sbin/bgpd/rde_prefix.c
+17-151 files

OpenBSD/src XoZwdHaregress/lib/libcrypto/x509/rfc3779 rfc3779.c

   rfc3779 test: exercise IPAddressFamily_cmp a bit more

   This populates an IPAddrBlocks object with not all that sensible data and
   tests behavior of serialization and deserialization of this thing. Prior
   to x509_addr.c rev 1.96 this would call memcmp() on NULL.
VersionDeltaFile
1.13+168-1regress/lib/libcrypto/x509/rfc3779/rfc3779.c
+168-11 files

OpenBSD/src W4zqWG0sys/dev/fdt fanpwr.c

   Add support for the RK8600 regulator used for cpu voltage on Radxa Zero 3
   boards.

   ok kettenis@
VersionDeltaFile
1.11+8-2sys/dev/fdt/fanpwr.c
+8-21 files

OpenBSD/src HNNo9Ojusr.bin/tmux cmd-resize-pane.c server-client.c

   Pane resizing code for floating panes, mostly by Michael Grant.
VersionDeltaFile
1.54+157-18usr.bin/tmux/cmd-resize-pane.c
1.459+96-40usr.bin/tmux/server-client.c
1.1322+2-2usr.bin/tmux/tmux.h
+255-603 files

OpenBSD/src qUCIkOklib/libagentx ax.c, usr.sbin/snmpd ax.c

   Implement a better fix. The previous fix allowed to overflow in a
   different spot. This would still only lead to a crash, and would only be
   reachable by arbitrary users if the admin enabled the agentx socket, and
   set custom permissions.

   OK deraadt@, mvs@
VersionDeltaFile
1.13+6-9lib/libagentx/ax.c
1.9+6-9usr.sbin/snmpd/ax.c
+12-182 files

OpenBSD/src iyyVaDbusr.bin/ssh ssh_config.5 sshd_config.5

   mention that compression could potentially leak information about session
   contents (cf. the CRIME attack on TLS) if a connection allows attacker-
   controlled traffic over it alongside trused traffic. This might occur
   in some forwarding scenarios.

   with deraadt@
VersionDeltaFile
1.424+9-2usr.bin/ssh/ssh_config.5
1.398+9-2usr.bin/ssh/sshd_config.5
+18-42 files