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

OpenBSD/src KxrKu1o — usr.sbin/rpki-client ccr.c

   rpki-client: remove lower size bound of 1000 from manifestInstance

   This is no longer specified after it resulted in various complaints
   and problems:

   https://github.com/job/draft-sidrops-rpki-ccr/commit/ebf45bfefde0b983b3c6349a4cdcf4c92d005b66

   ok job
VersionDeltaFile
1.48+2-2usr.sbin/rpki-client/ccr.c
+2-21 files

OpenBSD/src gOqrUCO — usr.bin/tmux layout.c

   Prefer previous cell not next when tiling/floating, from Michael Grant.
VersionDeltaFile
1.105+6-14usr.bin/tmux/layout.c
+6-141 files

OpenBSD/src VOzuhrY — usr.sbin/rpki-client extern.h parser.c

   rpki-client: remove the BN_CTX from the parser

   Before threads were added to the parser, having a global BN_CTX was easy
   enough. While it saves many small allocations, I don't think it's worth
   the complexity.

   A bignum is a struct containing a pointer to an array of words and then
   four ints. Sequence numbers are at most 20 octets (fitting into 3 8-bit
   words on 64 bits), so each seqnum requires at most 48 bytes. We can check
   with two bignums instead of three without loss of clarity, so ultimately
   we have all this complexity to avoid allocations of at most 96 bytes.

   ok claudio job
VersionDeltaFile
1.203+9-13usr.sbin/rpki-client/parser.c
1.150+9-13usr.sbin/rpki-client/mft.c
1.323+2-3usr.sbin/rpki-client/extern.h
+20-293 files

OpenBSD/src NSVuiSF — sys/isofs/udf udf_vfsops.c, sys/kern vfs_default.c vfs_subr.c

   revert: sys/vfs: stop checkalias replacing vnodes

   Unfortently this diff uncovers for everyone a bug in swaplist_find()
   which was reported by miod@.

   To fix it with peace reverting
    - cd9660_vfsops.c,v 1.100
    - udf_vfsops.c,v 1.74
    - vfs_default.c,v 1.53
    - vfs_subr.c,v 1.338
    - nfs_subs.c,v 1.155
    - vnode.h,v 1.180
    - tmpfs_subr.c,v 1.29
    - ext2fs_subr.c,v 1.39
    - ffs_subr.c,v 1.36
    - mfs_vfsops.c,v 1.64
VersionDeltaFile
1.340+57-63sys/kern/vfs_subr.c
1.37+22-3sys/ufs/ffs/ffs_subr.c
1.40+22-3sys/ufs/ext2fs/ext2fs_subr.c
1.54+3-21sys/kern/vfs_default.c
1.156+21-2sys/nfs/nfs_subs.c
1.75+19-3sys/isofs/udf/udf_vfsops.c
+144-954 files not shown
+178-10510 files

OpenBSD/src xIu3xiz — sys/dev/pv vmt.c

   repair previous commit, pointed out by Mark Patruck
VersionDeltaFile
1.34+3-3sys/dev/pv/vmt.c
+3-31 files

OpenBSD/src wPTfIww — sys/dev/pv vmt.c

   Report our short OS name as "other" or "other-64" rather than "FreeBSD".
   This makes recent versions of vcenter display the full OS name and version,
   and older versions at least indicate whether the guest is amd64 or i386.

   also tested by Ian McWilliam on fusion player and Kenneth Gober on esx 5.5
   ok dlg@
VersionDeltaFile
1.33+8-9sys/dev/pv/vmt.c
+8-91 files

OpenBSD/src ggNchBf — sys/net bpfdesc.h bpf.c

   fold bpfdesc.h into bpf.c.

   bpf.c is the only user of bpfdesc.h. or was.

   ok claudio@ jmatthew@
VersionDeltaFile
1.239+85-7sys/net/bpf.c
1.51+1-1sys/net/bpfdesc.h
+86-82 files

OpenBSD/src zTkrMrA — sys/dev/pci/drm/amd/amdkfd kfd_chardev.c

   drm/amdkfd: evict the queues only once for CRIU PROCESS_INFO

   From Jesse Zhang
   7f695fb47b4073d6bbd5bb9d5c4f969327641eab in linux-6.18.y/6.18.63
   8f3ecda0ab42fb5ba7310fe848013d3eff31b416 in mainline linux
VersionDeltaFile
1.35+10-5sys/dev/pci/drm/amd/amdkfd/kfd_chardev.c
+10-51 files