OpenBSD/src PUOiH4g — usr.sbin/rpki-client rpki-asn1.h aspa.c

   rpki-client: switch ASPA econtent parsing to CBS

   ASPAs have a rather simple eContent and the existing parser can pretty
   much stay as it is. After this change the only remaining OpenSSL type
   that is directly used in aspa.c is the ASN1_OBJECT for the aspa_oid.
   The main side effect is that the parser now enforces DER encoding.

   Factor parsing of version and customerASID into helpers and rework the
   existing providers parser to use a CBS. Since we no longer have STACK_OF,
   we need to add an extra loop to count the number of providers other than
   that not a lot needs to change. We only need one allocation now, one for
   the array of providers.

   with/ok claudio
VersionDeltaFile
1.51+102-70usr.sbin/rpki-client/aspa.c
1.15+1-17usr.sbin/rpki-client/rpki-asn1.h
+103-872 files

OpenBSD/src zkEaMb3 — usr.sbin/rpki-client rpki-der.h rpki-der.c

   rpki-client: add an asid parser using CBS

   ok claudio
VersionDeltaFile
1.4+14-0usr.sbin/rpki-client/rpki-der.c
1.3+1-0usr.sbin/rpki-client/rpki-der.h
+15-02 files

OpenBSD/src pa6aB6W — usr.sbin/rpki-client rpki-der.h rpki-der.c

   rpki-client: add helper to parse econtent version

   All RPKI signed objects have an econtent version with default 0:

     version [0] INTEGER DEFAULT 0,

   add a helper to parse this from a CBS since this is going to be needed
   for every econtent parser.

   ok claudio
VersionDeltaFile
1.3+31-1usr.sbin/rpki-client/rpki-der.c
1.2+3-1usr.sbin/rpki-client/rpki-der.h
+34-22 files

OpenBSD/src xuQhbk4 — usr.sbin/rpki-client validate.c

   rpki-client: improve an error in valid_econtent_version()

   pointed out by/ok claudio
VersionDeltaFile
1.93+3-2usr.sbin/rpki-client/validate.c
+3-21 files

OpenBSD/src IClCXYc — usr.sbin/relayd http.h relay_http.c

   relayd: preserve HTTP request methods across reads and interim responses

   Diff from Acts1631

   OK: rsadowski@
VersionDeltaFile
1.109+14-10usr.sbin/relayd/relay_http.c
1.16+2-1usr.sbin/relayd/http.h
+16-112 files

OpenBSD/src s2XziMr — usr.bin/tmux key-string.c server-client.c

   Reject trailing characters on some number arguments, from someone in
   GitHub issue 5863.
VersionDeltaFile
1.9+10-5usr.bin/tmux/monitor.c
1.58+3-9usr.bin/tmux/cmd-refresh-client.c
1.535+8-3usr.bin/tmux/server-client.c
1.80+5-3usr.bin/tmux/key-string.c
+26-204 files

OpenBSD/src MAV53YF — usr.bin/tmux tmux.h tty-term.c

   Cache setaf/setab capabilities to avoid expanding them every time,
   GitHub issue 5847 from Andrea Cappuccio.
VersionDeltaFile
1.115+48-2usr.bin/tmux/tty-term.c
1.1478+3-1usr.bin/tmux/tmux.h
+51-32 files

OpenBSD/src RULi3ck — usr.bin/tmux tmux.h screen-redraw.c

   Make dim= work in pane-border-style and pane-active-border-style, GitHub
   issue 5825 from Cason Adams.
VersionDeltaFile
1.5+19-11usr.bin/tmux/window-border.c
1.172+17-5usr.bin/tmux/screen-redraw.c
1.1477+5-2usr.bin/tmux/tmux.h
+41-183 files

OpenBSD/src aKPn3Xs — usr.sbin/httpd server_http.c

   httpd: refactor server_response with server_by_host_header

   seems fine to me, op@
VersionDeltaFile
1.174+63-48usr.sbin/httpd/server_http.c
+63-481 files

OpenBSD/src D2TTFSb — usr.bin/tmux tmux.1 tmux.h

   Minimal support for OSC 7501 program status, GitHub issue 5830 from
   Brian Cosgrove.
VersionDeltaFile
1.283+151-1usr.bin/tmux/input.c
1.436+37-1usr.bin/tmux/format.c
1.390+19-1usr.bin/tmux/window.c
1.1476+6-1usr.bin/tmux/tmux.h
1.155+6-1usr.bin/tmux/server-fn.c
1.1198+4-1usr.bin/tmux/tmux.1
+223-63 files not shown
+230-99 files

OpenBSD/src GIsujCW — usr.bin/sndiod dev.c

   sndiod: Drop unused prototypes of few dev_xxx() functions
VersionDeltaFile
1.147+1-4usr.bin/sndiod/dev.c
+1-41 files

OpenBSD/src i0k8jF4 — usr.bin/sndiod listen.c

   sndiod: Drop the duplicate 'oldumask' variable from listen_new_un()
VersionDeltaFile
1.19+4-4usr.bin/sndiod/listen.c
+4-41 files

OpenBSD/src 2wHxTXP — usr.bin/sndioctl sndioctl.c

   sndioctl: Store the mode bitmap in an unsigned integer
VersionDeltaFile
1.27+3-2usr.bin/sndioctl/sndioctl.c
+3-21 files

OpenBSD/src BNTqOMH — usr.bin/sndiod file.c

   sndiod: Handle POLLERR

   When a device is disconnected, poll(4) may return POLLERR. In this
   case sndiod(8) must close the descriptor. Not doing so may cause the
   event loop to spin.

   Found by and help from weerd@.
VersionDeltaFile
1.29+2-2usr.bin/sndiod/file.c
+2-21 files

OpenBSD/src 43TUNdN — lib/libsndio sioctl_sun.c sio_sun.c

   libsndio: Handle and propagate POLLERR to upper layers
VersionDeltaFile
1.37+2-2lib/libsndio/sio_sun.c
1.24+2-2lib/libsndio/sio_aucat.c
1.13+2-2lib/libsndio/mio_aucat.c
1.5+2-1lib/libsndio/sioctl_sun.c
+8-74 files

OpenBSD/src zmfrPL3 — sys/dev/ic rtwnvar.h r92creg.h, sys/dev/usb if_urtwn.c

   Power the RTL8188CU/8192CU off in urtwn_stop().

   urtwn_stop() left the chip running, so the chip was never reset between inits,
   and under TX load the device could hang with "device timeout"; only a replug
   recovered it.

   Power the chip off on stop, ported from FreeBSD urtwn_r92c_power_off()
   (R92C path mostly from NetBSD), so each init starts from the same state
   as after a replug.  Bring back the APSD_CTRL "Initialize MAC" step in
   urtwn_r92c_power_on(), removed in r1.85 when nothing turned the MAC
   off.  RTL8188E/8188F/8192E are left alone.

   Patch by Mikolaj Kucharski

   Also tested by jmc@ and myself
VersionDeltaFile
1.115+134-1sys/dev/usb/if_urtwn.c
1.32+7-1sys/dev/ic/r92creg.h
1.17+2-1sys/dev/ic/rtwnvar.h
+143-33 files

OpenBSD/src OMPgeaa — sys/net pf.c

   pf(4): pf_state_insert() should update stack side key

   pf_state_insert() should treat stack side state key (sks) in the same way
   as it treats wire side state key (skw). The call to pf_state_key_attach()
   may replace the sks with key which is present already in state tree.

   Issue noticed and reported by Acts-1631

   OK henning@ OK bluhm@
VersionDeltaFile
1.1253+9-6sys/net/pf.c
+9-61 files

OpenBSD/src nheTYID — usr.sbin/rpki-client aspa.c

   rpki-client: reject CustomerASID 0 in ASPAs

   The customerASID element has type CAS ::= INTEGER (1..4294967295) with
   section 3.2 of draft-ietf-sidrops-aspa-profile-30 explicitly saying
   "The customerASID field contains a positive integer [...]".

   as_id_parse() accepts all values in [0, UINT32_MAX], so we need to
   exclude 0 explicitly.

   ok claudio rcovelli
VersionDeltaFile
1.50+5-1usr.sbin/rpki-client/aspa.c
+5-11 files

OpenBSD/src 8WnpGxe — usr.sbin/rpki-client main.c extern.h

   Move the carepo tree and its accounting to the parser process.

   To properly account the validity of a MFT it requires that the carepo
   tree is moved to the parser process. This is the first step. It moves
   the tree add basic functions to add and check the count per repo and
   it adds the required locking around the shared structure since the
   parser is multithreaded.

   OK tb@ job@
VersionDeltaFile
1.17+42-32usr.sbin/rpki-client/ca.c
1.204+14-1usr.sbin/rpki-client/parser.c
1.324+3-1usr.sbin/rpki-client/extern.h
1.340+1-2usr.sbin/rpki-client/main.c
+60-364 files

OpenBSD/src a79aHXn — lib/libc/asr getrrsetbyname_async.c

   Remove OpenBSD RCS Id in the middle of an libc asr file.
   OK florian@
VersionDeltaFile
1.17+1-3lib/libc/asr/getrrsetbyname_async.c
+1-31 files

OpenBSD/src Xv70lFT — distrib/sets/lists/comp mi

   sync
VersionDeltaFile
1.1773+0-1distrib/sets/lists/comp/mi
+0-11 files

OpenBSD/src tBXJb3A — sbin/iked iked.conf.5

   iked(8):  Document ikev1 keyword in iked.conf

   ok op@
VersionDeltaFile
1.104+32-2sbin/iked/iked.conf.5
+32-21 files

OpenBSD/src U9h4L9N — usr.sbin/smtpd mail.maildir.c mail.lmtp.c

   Add missing OpenBSD RCS Ids in smtpd and fix their spacing.
   OK op@
VersionDeltaFile
1.67+2-2usr.sbin/smtpd/smtpctl.8
1.50+1-1usr.sbin/smtpd/ruleset.c
1.7+1-1usr.sbin/smtpd/esc.c
1.12+1-1usr.sbin/smtpd/crypto.c
1.19+1-0usr.sbin/smtpd/mail.maildir.c
1.18+1-0usr.sbin/smtpd/mail.lmtp.c
+7-54 files not shown
+11-510 files

OpenBSD/src nwroQ8T — sbin/iked iked.h parse.y

   iked(8):  Ignore IKEv1 messages when not configured

   When there are no ikev1 rules in iked.conf defined, just drop ikev1
   packets right away; no need to forward them to the ikev1 sub-process.
   That matches the original iked behaviour.

   ok op@ henning@
VersionDeltaFile
1.107+6-1sbin/iked/ikev2_msg.c
1.151+5-1sbin/iked/parse.y
1.239+3-1sbin/iked/iked.h
+14-33 files

OpenBSD/src 0cT88Ww — sbin/isakmpd isakmpd.8

   isakmpd(8):  Packet capture is gone, thus remove -l and -L from synposis

   ok op@
VersionDeltaFile
1.126+3-4sbin/isakmpd/isakmpd.8
+3-41 files

OpenBSD/src A2rsVKp — usr.sbin/tcpdump print-ospf6.c print-ospf.c

   tcpdump(8): Do not loop infinitely on malformed OSPF packets

   When printing a Link State Update with -v, the LSU loop trusts the
   advertised LSA count and advances to the next LSA by the length field
   of the LSA header.  An LSA header with a length smaller than the
   header itself makes the loop re-parse the same header up to 2^31
   times, pinning tcpdump on one packet.

   Reject an LSA whose length is smaller than the mandatory 20 byte
   header in ospf_print_lsa() and ospf6_print_lsa(), where the length
   is used to advance.  The DD and LSAck printers only walk fixed size
   headers and are unaffected.

   Reported by Acts1631, thanks!

   ok dlg@
VersionDeltaFile
1.12+3-1usr.sbin/tcpdump/print-ospf6.c
1.24+3-1usr.sbin/tcpdump/print-ospf.c
+6-22 files

OpenBSD/src waaHonN — usr.sbin/vmd vmd.c parse.y

   vmd(8): Do not leak vm_kernel_path

   When vm.conf is reloaded, vm_register() returns EALREADY and hands
   back the existing VM, whose vm_kernel_path the parser then overwrites
   without freeing the old string.  Free it first.  While there, also free
   the parsed path when vm_register() fails or when running with -n, as it
   is never handed over to a VM in those cases.

   vm_remove() freed vm_kernel_path only if vm_from_config was not set.
   However, the parser is the only place that assigns vm_kernel_path, and
   it sets vm_from_config at the same time, so the path was never freed.
   Free it unconditionally.

   ok dv@
VersionDeltaFile
1.77+6-1usr.sbin/vmd/parse.y
1.187+2-3usr.sbin/vmd/vmd.c
+8-42 files

OpenBSD/src VpXVC2S — usr.sbin/vmd x86_vm.c vmd.h

   vmd(8): Keep SEV memory segments within a single memrange

   sev_register_encryption() derived the host VA from find_gpa_range()
   plus its own offset arithmetic and recorded the caller's length as
   a flat span. A segment crossing a memrange boundary thus produced
   a host VA range extending past the mapping it was taken from, which
   was then handed to the PSP for in-place encryption.

   Translate through hvaddr_mem() instead, which enforces that the
   whole span lies within one memrange, and align address and length
   to the AES-XTS block size before validating so the checked length
   is the one sent to the PSP.

   Also sort the recorded segments and merge overlapping ones before
   LAUNCH_UPDATE_DATA. Segments sharing a 16-byte block (e.g. .symtab
   and .strtab) or fully contained in another (.openbsd.randomdata
   inside the rodata PT_LOAD) were otherwise encrypted twice, corrupting
   the data.  Adjacent but non-overlapping segments are kept apart,
   as they may live in different memranges.

    [4 lines not shown]
VersionDeltaFile
1.11+63-21usr.sbin/vmd/sev.c
1.30+2-2usr.sbin/vmd/x86_vm.c
1.155+2-2usr.sbin/vmd/vmd.h
+67-253 files

OpenBSD/src HAF61Mc — sys/kern subr_disk.c

   Fix reversed condition in new and not yet used writefulllabel().
VersionDeltaFile
1.292+2-2sys/kern/subr_disk.c
+2-21 files

OpenBSD/src s5GhZ8Y — usr.sbin/vmd config.c

   vmd: fix pty and file leaks in vm creation path.

   1. During vm creation, vmd duplicates the pty fd to let the privileged
   process handle cleanup after vm termination. This dup'd fd should
   be closed in the error path otherwise it leaks.

   2. The combination of `vmctl reload` with a vm using a bios or
   kernel boot image will leak a file descriptor to the image file.
   This was a regression caused by fixing a related problem. Mischa
   Peters reported vmd reporting EMFILE errors and it turns out the
   priv process was keeping the file open, but reload was overwriting
   the variable with the fd number so teardown wasn't closing it.

   There's no need to keep it open, so rewrite to not dup(2) and don't
   have the priv process keep a copy of the fd number (the source of
   the previous issue related to a race between close(2) on cleanup
   and the imsg sending the fd to the vmm process.)

   ok hshoexer@
VersionDeltaFile
1.85+5-6usr.sbin/vmd/config.c
+5-61 files