FreeBSD/src 2008a5d — sys/netlink/route iface.c

rtnetlink: Fix IFA_F_PERMANENT and IFA_F_DADFAILED flags

in6_flags_to_nl() sets IFA_F_PERMANENT/IFA_F_DADFAILED flags on
the function argument, not nl_flags, so netlink never reports them.

Reported by:    llm-postcr
Fixes:          30d0fc6f3391 ("netlink: export more IPv6 ifa info")
MFC after:      3 days
DeltaFile
+2-2sys/netlink/route/iface.c
+2-21 files

FreeBSD/src 85ed13f — sys/contrib/openzfs/module/zfs dnode_sync.c

dnode_sync: Relax constraint on indirect freeing

One of the roles of the dnode sync thread is freeing.  There are two
modes of this operation: freeing a portion of an object, and freeing
the object itself.

Freeing is handled by `free_children()`.  This function verifies that
if the dnode has children there must be at least one marked as dirty
before proceeding to recursively free the tree of block pointers.

As described in a comment, this VERIFY is overly strict.  In practice,
children may not be marked as dirty when the dnode itself is being
freed.  Relax the VERIFY slightly by avoiding the VERIFY when indirect
blocks are to be immediately freed, to more closely match the comment
motivating the VERIFY.

While here, clarify the logic of the test by using VERIFY_IMPLY instead
of chaining multiple tests.


    [9 lines not shown]
DeltaFile
+6-3sys/contrib/openzfs/module/zfs/dnode_sync.c
+6-31 files

FreeBSD/src 78471eb — lib/libsysdecode mktables

libsysdecode: Avoid non-portable \> word end boundary in mktables

Whilst we bootstrap our own sed when building on non-FreeBSD, it uses
the system regex(3) implementation, and so inherits its extensions, not
our own. Our implementation and glibc's both include this extension to
POSIX, but macOS's does not, and so even with our bootstrap sed we
cannot use the \> extension when built and run on macOS.

Unfortunately, there is no alternative form we can use; whilst macOS
implements [[:>:]] as an extension that provides this same feature, and
so do we, the regex(3) implementation in glibc does not, and the only
alternative glibc offers is \b, which neither us nor macOS implement.

We could make the form used conditional on the OS, but that starts to
get messy once other Linux libcs enter the picture, which in theory we
somewhat support.

Rewrite both uses to avoid the need for \>. For gen_table, use a pattern
to match the identifier that is precisely the (non-extended) C99

    [27 lines not shown]
DeltaFile
+2-2lib/libsysdecode/mktables
+2-21 files

FreeBSD/src f679f13 — sys/dev/sound/pcm dsp.c

sound: Unlock the channel when chn_reset() fails in dsp_chn_alloc()

If chn_reset() fails, dsp_chn_alloc() returns with the channel lock
held, dsp_open() calls dsp_close() as part of its cdevpriv error path,
and this causes both a mutex recursion on the channel lock in
dsp_close(), as well a lock order reversal.

Approved by:    re (cperciva)
Fixes:          02d4eeabfd73 ("sound: Allocate vchans on-demand")
Reported by:    llm-postcr
MFC after:      Immediately
Sponsored by:   The FreeBSD Foundation
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D61793

(cherry picked from commit 01a8cd5ebe9368fd115fb5060bcb1e60d1bbdf1f)
(cherry picked from commit 55b89b7b529f1c37a749adadb11aba4f8e9e51ca)
DeltaFile
+3-1sys/dev/sound/pcm/dsp.c
+3-11 files

FreeBSD/src 664df36 — sys/dev/sound dummy.c

snd_dummy: Do not use dummy_chan_io() as mpu401's interrupt handler

dummy_chan_io() runs with sc->lock held, but mpu401 calls its handler
from a callout with no mutex associated with it, so writing to the MIDI
device node caused a panic.

Give mpu401 its own handler, and leave MIDI to mpu401's timer instead of
the PCM callout.

Approved by:    re (cperciva)
Fixes:          e963472ef853 ("snd_dummy: Initial MIDI support")
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit c8d1c94741231d95964b91910880769019478854)
(cherry picked from commit 5541489df676c9723cac2d665bb4e6705cc3ce53)
DeltaFile
+10-4sys/dev/sound/dummy.c
+10-41 files

FreeBSD/src 0f4d4d5 — sys/dev/sound/usb uaudio.c

snd_uaudio: Fix the MIDI TX round-robin

Nothing advances curr_cable, so umidi_bulk_write_callback() only
services cable 0, which is a problem on MIDI devices with more than one
jack.

Approved by:    re (cperciva)
Fixes:          039477d3e7e7 ("snd_uaudio: Simplify chan->curr_cable calculation in uaudio_bulk_write_callback()")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 day

(cherry picked from commit f58613868b50dfd6c2adc7128ea60d7b276fdbf1)
(cherry picked from commit 6f80968093eccb5f9de1cfffd5a45c2163b605b4)
DeltaFile
+2-1sys/dev/sound/usb/uaudio.c
+2-11 files

FreeBSD/src 5a0a496 — sys/dev/sound/usb uaudio.c

snd_uaudio: Do not touch mixer_lock when there is no mixer

Using the mixer lock unconditionally panics because the lock is
uninitialized on devices with no audio interfaces, for instance
MIDI-only keyboards.

Approved by:    re (cperciva)
Fixes:          9a00e0b8ca56 ("snd_uaudio: Do not use snd_mixer->lock as mixer_lock")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D61506

(cherry picked from commit dabd959b17597ad790327020a667ced9a05d7499)
(cherry picked from commit 682a7750f6c07bc367e573fc9fdfa90eb8e5bf9f)
DeltaFile
+7-2sys/dev/sound/usb/uaudio.c
+7-21 files

FreeBSD/src f4a16db — sys/dev/sound/pci emu10k1.c cmi.c

sound: Remove stale midi module dependencies

midi(4) stopped being a module in 45bb10e0ed5a ("sound: Stop building
midi as a module"), so snd_cmi(4) and snd_emu10k1(4) fail to load
because they still depend on it.

Approved by:    re (cperciva)
Fixes:          45bb10e0ed5a ("sound: Stop building midi as a module")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 day

(cherry picked from commit 563c2f27e0ffec96a0ddd77b68c7ca6614d704af)
(cherry picked from commit 0e64d19630daf62a2e63c637d40f0ae5ecd60425)
DeltaFile
+0-1sys/dev/sound/pci/emu10k1.c
+0-1sys/dev/sound/pci/cmi.c
+0-22 files

FreeBSD/src b007b60 — sys/dev/ntsync ntsync.c

ntsync(4): do not leak the priv when devfs_set_cdevpriv() fails

Approved by:    re (cperciva)

(cherry picked from commit d3bfdc5f048773d530e1873f9d4fe7d0481c7324)
(cherry picked from commit 1c7d92d51f264dd5ed2274cf86d868c32559a854)
DeltaFile
+5-2sys/dev/ntsync/ntsync.c
+5-21 files

FreeBSD/src 7df2006 — sys/dev/ntsync ntsync.c

ntsync(4): fix double free and leak of the per-open priv

Approved by:    re (cperciva)

(cherry picked from commit 92adb5d4cd22e93e1f6539994e30eca9fdcdb250)
(cherry picked from commit 74756b1905237f3de6ca8059bc47fc56d579a77c)
DeltaFile
+23-30sys/dev/ntsync/ntsync.c
+23-301 files

FreeBSD/ports c44f97b — devel/pecl-event distinfo Makefile

devel/pecl-event: update to 3.2.0 release (+)

Chamgelog:      https://pecl.php.net/package-info.php?package=event&version=3.1.6 \
                https://pecl.php.net/package-info.php?package=event&version=3.2.0
DeltaFile
+6-2devel/pecl-event/Makefile
+3-3devel/pecl-event/distinfo
+9-52 files

FreeBSD/ports 74b8fcf — security/vuxml/vuln 2026.xml

security/vuxml: Add Prosody XMPP server advisory 2026-11-25

PR:     301117
DeltaFile
+48-0security/vuxml/vuln/2026.xml
+48-01 files

FreeBSD/src eaf7113 — usr.sbin/sysrc sysrc, usr.sbin/sysrc/tests sysrc_test.sh

sysrc: Add "unchanged" messages

When a value would not change, emit a message indicating such. This
aligns with sysconf which does the same thing.

While here, add missing loop hygiene; unset loop variables after loop
to avoid potential later misuse.

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61742
DeltaFile
+40-1usr.sbin/sysrc/sysrc
+17-5usr.sbin/sysrc/tests/sysrc_test.sh
+57-62 files

FreeBSD/src d0a1676 — usr.sbin/sysrc sysrc sysrc.subr

sysrc: Support special characters in file names

Previously, passing -f "abc'123" (for example) would break sysrc.
Support special characters such as single-quote, double-quote,
dollar sign, backtick, asterisk, and more.

It was previously impossible to handle file names with glob
characters. If you absolutely need to use a glob to expand a list
of potential files for `-f' you can still do it in two ways:

        sysrc -f "$( echo glob )" ...
        RC_CONFS=$( echo glob ) sysrc ...

While here, clean up trailing whitespace on 3 lines.

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61740
DeltaFile
+60-12usr.sbin/sysrc/sysrc.subr
+16-4usr.sbin/sysrc/sysrc
+76-162 files

FreeBSD/src 0b1de27 — usr.sbin/sysrc sysrc sysrc.8, usr.sbin/sysrc/tests sysrc_test.sh

sysrc: Accept values that contain a newline

awk -v rejects a newline in the value, and the old writer treated that
failure as an empty edit. The temporary file then held only the new
assignment, so the rest of the configuration was lost.

Pass the value in the environment and replace the last assignment by
joining that line through end of file. A quoted newline stays with the
value, and the text after it stays after the closer. If awk exits
above 1, leave the file alone. sh -n still refuses a value that would
break the quotes.

PR:             283729
MFC after:      2 weeks
Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61743
DeltaFile
+53-28usr.sbin/sysrc/sysrc.subr
+67-0usr.sbin/sysrc/tests/sysrc_test.sh
+2-3usr.sbin/sysrc/sysrc.8
+1-1usr.sbin/sysrc/sysrc
+123-324 files

FreeBSD/src 3df9c52 — usr.sbin/sysrc sysrc, usr.sbin/sysrc/tests sysrc_test.sh

sysrc: Send -c output to stderr instead of stdout

This aligns with sysconf's `-c' while also adding a default output of
`value differs' (suppressed with `-q').

While here, replace f_err with warn() where appropriate.

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61741
DeltaFile
+34-24usr.sbin/sysrc/tests/sysrc_test.sh
+14-12usr.sbin/sysrc/sysrc
+48-362 files

FreeBSD/src 778120c — usr.sbin/sysrc sysrc

sysrc: Change -l/-L to list files one per-line

This makes -l and -L consistent with sysconf target -l/-L such that:

        sysconf rc -l # or -L (in turn calls sysrc -l or -L)
        sysconf lo -l # or -L (lo valid short-hand for loader)

similarly produce one file per-line. This is instead of the former
behavior where sysrc -l/-L (and thus sysconf rc -l/-L) produced one
long line with each path separated my a single space.

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61739
DeltaFile
+14-13usr.sbin/sysrc/sysrc
+14-131 files

FreeBSD/src 90866c7 — usr.sbin/sysrc sysrc

sysrc: Improve die() function

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61721
DeltaFile
+14-13usr.sbin/sysrc/sysrc
+14-131 files

FreeBSD/src 667e30d — usr.sbin/sysrc sysrc.8 sysrc

sysrc: sort -fd and comments

Reviewed by:    kfv, ngie
Differential Revision:  https://reviews.freebsd.org/D61719
DeltaFile
+45-44usr.sbin/sysrc/sysrc
+36-36usr.sbin/sysrc/sysrc.8
+81-802 files

FreeBSD/src 9b4d820 — usr.sbin/sysrc sysrc.subr sysrc

sysrc: Fix -e output

The sysrc(8) man-page states that `-e' is used to "print query results
as sh(1) compatible syntax".

Flags such as `-v' when combined with `-e' could make the output
incompatible with sh(1).

This is a breaking change that should not be MFC'd because it both
alters certain output formats and also fixes a bug that others may
have relied upon. When changing value of an existing variable, the
`-e' output would produce syntax that would revert the change:

        $name="$before" # -> $after

This change improves the output of `-e' to:

        _$name="$before" $name="$after"


    [29 lines not shown]
DeltaFile
+111-57usr.sbin/sysrc/sysrc
+31-0usr.sbin/sysrc/sysrc.subr
+142-572 files

FreeBSD/src 04ea02c — usr.sbin/sysrc sysrc

sysrc: Add error messages to usage responses

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61722
DeltaFile
+20-12usr.sbin/sysrc/sysrc
+20-121 files

FreeBSD/src 9ae40a2 — usr.sbin/sysrc sysrc.8 sysrc

sysrc: Add more sanity checks

Potentially a breaking change for some folks. MFC discouraged.

This aligns sysrc with the same sanity checks performed by sysconf.
It reduces the chance of POLA violations when people use `sysconf rc'
(where sysrc is hooked into sysconf as the rc target provider).

However, some shell scripts calling out to sysrc may have relied on
some of the leniency that is now cause for exit. For example, using
`-x' with assignments (such as `sysrc -x foo=bar' which now generates
the error `-x does not take a value' -- the same error produced when
you try `sysconf loader -x foo=bar').

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61735
DeltaFile
+34-14usr.sbin/sysrc/sysrc
+1-1usr.sbin/sysrc/sysrc.8
+35-152 files

FreeBSD/src a4183de — usr.sbin/sysrc sysrc.8

sysrc: Add kfv to sysrc(8) thanks section

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D61720
DeltaFile
+1-1usr.sbin/sysrc/sysrc.8
+1-11 files

FreeBSD/src 2ff195d — sys/dev/gve gve.h gve_tx.c

gve: Propagate m_pullup() mbuf changes in gve_prep_tso()

gve_prep_tso() uses m_pullup() via PULLUP_HDR() to make protocol headers
contiguous in the first mbuf, but both gve_prep_tso() and
gve_tx_fill_ctx_descs() take struct mbuf * by value:

- When m_pullup() allocates a new head mbuf (freeing the old head), the
  new chain is leaked and callers continue reading, copying, and later
  freeing the freed mbuf pointer.
- When m_pullup() fails, it frees the chain and returns NULL, leaving
  callers with a dangling non-NULL pointer that gve_xmit_br() frees a
  second time on EINVAL.
- In DQO-RDA mode, gve_xmit_dqo() calls gve_map_mbuf_dqo() before
  gve_prep_tso(), leaving the DMA map pointing at pre-pullup buffers
  without the updated th->th_sum.

Additionally, gve_prep_tso() pulls up sizeof(struct tcphdr *) (8 bytes)
instead of sizeof(*th) (20 bytes), and gve_xmit_br() falls through to
BPF_MTAP(ifp, NULL) and a doorbell write when a transmit helper frees

    [25 lines not shown]
DeltaFile
+44-39sys/dev/gve/gve_tx_dqo.c
+15-11sys/dev/gve/gve_tx.c
+1-1sys/dev/gve/gve.h
+60-513 files

FreeBSD/ports db2a294 — databases/py-mysqlclient Makefile distinfo

databases/py-mysqlclient: update to 2.3.2 release (+)

Release notes:  https://github.com/PyMySQL/mysqlclient/releases/tag/v2.3.1 \
                https://github.com/PyMySQL/mysqlclient/releases/tag/v2.3.2
DeltaFile
+3-3databases/py-mysqlclient/distinfo
+1-1databases/py-mysqlclient/Makefile
+4-42 files

FreeBSD/src 5d32d1c — lib/libvmmapi vmmapi.h, lib/libvmmapi/amd64 vmmapi_machdep.c

libvmmapi/amd64: Add support for CPUID ioctls to libvmmapi

libvmmapi needs wrapper functions for the new vmm/amd64 CPUID ioctls.

Reviewed by:            corvink, markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D51554
DeltaFile
+33-0lib/libvmmapi/amd64/vmmapi_machdep.c
+3-1lib/libvmmapi/vmmapi.h
+36-12 files

FreeBSD/src 29d54c2 — sys/amd64/vmm x86.h vmm_cpuid.c, sys/amd64/vmm/io vlapic.c vlapic.h

vmm/amd64: Bhyve should keep guest CPUID updated when using explicit CPUID settings

This is a port of the following bhyve improvement from illumos:

  16647 bhyve should keep guest CPUID updated when using explicit CPUID settings
  https://www.illumos.org/issues/16647

Some bits of information returned by the CPUID instruction depend on the
values system software previously set in the CPU's control registers.
These include
 - Leaf 1 ecx: bit 27 changes depending on whether XSAVE support is
   enabled in cr4
 - Leaf 1 edx: bit 9 changes depending on whether the APIC is enabled
   in MSR 0x1B
 - Leaf D subleaf 0/subleaf 1 ebx: values change depending on the bits
   set in xcr0

bhyve should ensure that VMs with explicitly-provided CPUID values
account for the guest's current CR/MSR values before returning the

    [8 lines not shown]
DeltaFile
+184-65sys/amd64/vmm/vmm_cpuid.c
+5-0sys/amd64/vmm/x86.h
+1-1sys/amd64/vmm/io/vlapic.c
+2-0sys/amd64/vmm/io/vlapic.h
+192-664 files

FreeBSD/src 03c3c44 — sys/amd64/vmm x86.h vmm_cpuid.c

vmm/amd64: support CPUID functions 0x40000100 and above

CPUID functions 0x40000100 and above mirror the original contents of
the hypervisor CPUID functions at 0x40000000. This allows a guest to
query the real hypervisor signature and features when the the default
hypervisor functions at 0x40000000 have been overridden to identify
as something else, such as KVM or HyperV.

Reviewed by:            chuck, markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60122
DeltaFile
+6-1sys/amd64/vmm/vmm_cpuid.c
+2-0sys/amd64/vmm/x86.h
+8-12 files

FreeBSD/src a3ec6dc — sys/amd64/vmm vmm_dev_machdep.c

vmm/amd64: VM_SET_CPUID ioctl should refuse zero-entry non-legacy cpuid cfg

The kernel shouldn't accept a cpuid configuration that has no entries
without having the legacy flag set and just return EINVAL. A VCPU cpuid
configuration must either have zero cpuid entries and the legacy flag
set, or it must have the legacy flag clear and at least one cpuid entry.

Reviewed by:            markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D51553
DeltaFile
+7-0sys/amd64/vmm/vmm_dev_machdep.c
+7-01 files

FreeBSD/src 7336d1a — sys/amd64/include vmm_dev.h vmm.h, sys/amd64/vmm vmm_dev_machdep.c x86.c

vmm/amd64: Port bhyve CPUID control from illumos

This is a partial port of the following bhyve improvement in illumos:

  14485 bhyve needs better cpuid control
  https://www.illumos.org/issues/14485

This only adds vmm kernel support for overriding the CPUID information
for a guest. This does also not contain any libvmmapi/bhyve userspace
code to make this feature actually useful.

Reviewed by:            markj
MFC after:              1 month
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D51552
DeltaFile
+961-0sys/amd64/vmm/vmm_cpuid.c
+0-618sys/amd64/vmm/x86.c
+109-0sys/amd64/vmm/vmm_dev_machdep.c
+68-1sys/amd64/include/vmm.h
+28-0sys/amd64/include/vmm_dev.h
+6-12sys/amd64/vmm/intel/vmx.c
+1,172-6314 files not shown
+1,189-63810 files