FreeBSD/src 812bdff — sys/compat/linuxkpi/common/src linux_pci.c

linuxkpi: Release the "from" device in pci_get_class() and pci_get_base_class()

On Linux the pci_get_*() iterators drop the reference of the device passed
as "from" once the next one has been looked up, so a loop like

        while ((pch = pci_get_class(class, pch)))

does not leak anything.  LinuxKPI allocates a new pci_dev for every device
it returns but never released "from", so each device but the last one was
leaked together with its kobject, its name and its path name.  i915 does
exactly this in intel_detect_pch() and leaked a device at every load.

Drop the reference, but only for the devices created by lkpinew_pci_dev();
the pci_dev of a device attached to a driver belongs to the bus.

Differential Revision:  https://reviews.freebsd.org/D61222
DeltaFile
+15-0sys/compat/linuxkpi/common/src/linux_pci.c
+15-01 files

FreeBSD/src c343c44 — sys/compat/lindebugfs lindebugfs.c

lindebugfs: Free the kcov symlink when the module is unloaded

lindebugfs_init() creates the "kcov" symlink with debugfs_create_symlink(),
which allocates a node and a copy of the destination, but passed no destroy
callback to pfs_create_link().  pseudofs therefore never released them and
the "debugfsint" malloc type was reported as leaking memory each time the
module was unloaded.

Use debugfs_destroy(), as done for the other nodes.

Differential Revision:  https://reviews.freebsd.org/D61221
DeltaFile
+1-1sys/compat/lindebugfs/lindebugfs.c
+1-11 files

FreeBSD/src ee2f66a — sys/compat/linuxkpi/common/src linux_pci.c

linuxkpi: Release devres when the probe of a PCI driver fails

When the probe method of a driver fails, linux_pci_attach_device() only
dropped its reference on the device.  Like on detach (see the previous
change), the devres actions are then not run if one of them holds a
reference on the device, which is what devm_drm_dev_alloc() does through the
drm_device.  The device is never released, the drm_device is leaked with its
minor, its managed memory and its debugfs entries: unloading the driver
after a failed load (e.g. a missing firmware) printed
"WARNING !xa_empty(&drm_minors_xa)" and leaked memory.

Linux releases the devres resources of a device whose probe failed, so do the
same.

Differential Reivision: https://reviews.freebsd.org/D61223
DeltaFile
+8-0sys/compat/linuxkpi/common/src/linux_pci.c
+8-01 files

FreeBSD/src 0e952a9 — usr.bin/soelim soelim.1

soelim.1: document stdin and trailing text
DeltaFile
+14-4usr.bin/soelim/soelim.1
+14-41 files

FreeBSD/src 05e79d2 — usr.bin/soelim soelim.c, usr.bin/soelim/tests soelim_test.sh

soelim: fix path and whitespace handling

Reject truncated path
Skip all white space following the file name
DeltaFile
+18-14usr.bin/soelim/soelim.c
+18-0usr.bin/soelim/tests/soelim_test.sh
+36-142 files

FreeBSD/src fbbf685 — usr.bin/soelim soelim.c, usr.bin/soelim/tests soelim_test.sh

soelim: fix error detection and exit status
DeltaFile
+34-0usr.bin/soelim/tests/soelim_test.sh
+15-5usr.bin/soelim/soelim.c
+49-52 files

FreeBSD/src 5f4a02c — usr.bin/soelim soelim.c, usr.bin/soelim/tests soelim_test.sh

soelim: bound include recursion to 64 levels
DeltaFile
+15-3usr.bin/soelim/soelim.c
+8-0usr.bin/soelim/tests/soelim_test.sh
+23-32 files

FreeBSD/src ecd6631 — lib/libpam/modules/pam_xdg pam_xdg.8 pam_xdg.c

pam_xdg: Add linger option

The pam_xdg module deletes a user's XDG_RUNTIME_DIR when the last
interactive session logs out. If the user leaves background processes
running on the system, like a terminal multiplexer, that puts state or
domain sockets in XDG_RUNTIME_DIR, then that state gets destroyed and
the processes become effectively orphaned.

On Linux, systemd-logind not only unlinks XDG_RUNTIME_DIR but also kills
all user processes on logout. To allow long-lived background processes,
it implements a per-user "linger" mode to disable the unlink and kill.

Because FreeBSD's pam_xdg does not implement process killing, this
"linger" option implementation skips only XDG_RUNTIME_DIR unlinking
when the user still has running processes after the last session logs
out.

Differential Revision:  https://reviews.freebsd.org/D61332
DeltaFile
+34-6lib/libpam/modules/pam_xdg/pam_xdg.c
+8-1lib/libpam/modules/pam_xdg/pam_xdg.8
+42-72 files

FreeBSD/src 40e1cc3 — sys/arm/allwinner aw_thermal.c

aw_thermal: Add support for the H6

Add the thermal sensor controller of the H6, which has two sensors, for
the CPU and the GPU.

The controller has other registers than the one of the supported SoCs.
The efuse has the temperature of the factory test and the value of each
sensor at this temperature, from which the calibration value of each
sensor is computed and written to the controller.

The alarm and shutdown thresholds and the interrupts are not supported
yet.

Tested on:      Pine H64 (CPU and GPU temperatures, idle and under load)
DeltaFile
+116-0sys/arm/allwinner/aw_thermal.c
+116-01 files

FreeBSD/src 672ff45 — sys/arm/allwinner aw_thermal.c

aw_thermal: Make the data register and the alarm support per SoC

The controller of the H6 has its data registers at another offset and
other alarm, shutdown and interrupt registers.

Add the offset of the first data register to the SoC configuration,
and a flag for the alarm handling (interrupt, alarm and shutdown
thresholds and the cpufreq throttling), set for all the SoCs
currently supported.

No functional change intended.
DeltaFile
+23-9sys/arm/allwinner/aw_thermal.c
+23-91 files

FreeBSD/src ab350f6 — sys/arm/allwinner aw_thermal.c

aw_thermal: Add an init function to the SoC configuration

Move the initialisation of the controller to a function of the SoC
configuration, as the controller of the H6 is different from the one
of the other supported SoCs.

No functional change intended.
DeltaFile
+11-2sys/arm/allwinner/aw_thermal.c
+11-21 files

FreeBSD/src e7b7f2a — sys/arm/allwinner aw_sid.c

aw_sid: Add the thermal sensor calibration fuse of the H6

The thermal sensor controller of the H6 gets its calibration data from
the 8 bytes of the efuse at offset 0x14, referenced by the
ths_calibration nvmem cell. Add it so the thermal driver can read it.

Tested on:      Pine H64 (thermal sensor calibration)
DeltaFile
+9-0sys/arm/allwinner/aw_sid.c
+9-01 files

FreeBSD/src a7b3eb6 — sys/arm/allwinner aw_sid.h aw_sid.c

aw_sid: Add the CPU speed grade fuse of the H6 and H616

The OPP tables of the H6 and H616 use the speed grade, stored in the
efuse, to select the voltage of each OPP. Add it as a fuse so it can be
read from the cpu_speed_grade nvmem cell, and expose it in a sysctl.

The speed grade of the H616 is the 2 first bytes of the efuse and
overlaps with the root key. Match the size too when looking up the
fuse of an nvmem read.

Tested on:      Pine H64 (sysctl dev.aw_sid.0.speedgrade)
DeltaFile
+21-1sys/arm/allwinner/aw_sid.c
+1-0sys/arm/allwinner/aw_sid.h
+22-12 files

FreeBSD/src 135c402 — sys/dev/clk/allwinner ccu_h6.c

ccu_h6: Add the bus gates of UART1, UART2 and UART3

The firmware only leaves the gate of UART0 on. The UARTs of the H6 are
snps,dw-apb-uart and uart_snps enables the bus clock of the device, but
the clock does not exist, so the gate of the other UARTs stays off. With
a device tree where one of them is enabled (the Bluetooth UART of the
Pine H64 model B), uart_bus_probe() accesses the registers of a gated
UART and the boot hangs.

Add the gates of UART1 to UART3. The one of UART0 is left out for now,
with it uart_snps gets the clock rate and detects a 256 bytes FIFO, and
the input of the console is delayed.

Tested on:      Pine H64 (model B device tree, UART1)
DeltaFile
+6-6sys/dev/clk/allwinner/ccu_h6.c
+6-61 files

FreeBSD/src eb289bd — sys/kern vfs_vnops.c

vn_fallocate/vn_deallocate: drop vnode addr from exterrors

This was converted from a KASSERT where it made sense, but not enough
thought was applied.  vp is useless, just print both offset/len instead.

Reported by:    llm-postcr
Fixes:          95c7b9eaa9ec ("vfs: fail VOP_DEALLOCATE passes [...]")
Fixes:          8bee7ea63a6a ("vfs: fail VOP_ALLOCATE passes [...]")
DeltaFile
+4-4sys/kern/vfs_vnops.c
+4-41 files

FreeBSD/src 108240e — lib/libc/gen exterr_cat_filenames.h

libc: regen exterr_cat_filenames.h

GEOMZONED had previously missed updating this; I had noted that I would
fix it before 95c7b9eaa9ecc874, but alas.  Fixing it now is the second
best time to do it.

Fixes:  48efb6c4eb9fe ("gzoned: Introduce Zoned Storage emulator")
DeltaFile
+1-0lib/libc/gen/exterr_cat_filenames.h
+1-01 files

FreeBSD/src d4c940b — share/misc bsd-family-tree

bsd-family-tree: Add NetBSD 11.1

(cherry picked from commit 97d0c19e6af78dc7613563805653d13f03861737)
DeltaFile
+4-0share/misc/bsd-family-tree
+4-01 files

FreeBSD/src c2fc310 — share/misc bsd-family-tree

bsd-family-tree: polish grammar and style

Reviewed by:    ziaee

(cherry picked from commit d3bad289dfd536d8019e7bcbd7701b1d6dfb11c3)
DeltaFile
+30-29share/misc/bsd-family-tree
+30-291 files

FreeBSD/src 9117469 — share/misc bsd-family-tree

bsd-family-tree: add OpenBSD 8.0

(cherry picked from commit 97b9e96a7f762102148c45f30fee1ec9e8f7bb50)
DeltaFile
+2-1share/misc/bsd-family-tree
+2-11 files

FreeBSD/src 05b50ad — share/misc bsd-family-tree

bsd-family-tree: add macOS 27

(cherry picked from commit 629c7cf72dd82d6f11dbc67a405417b4a643c000)
DeltaFile
+3-2share/misc/bsd-family-tree
+3-21 files

FreeBSD/src f65ba7a — share/misc bsd-family-tree

bsd-family-tree: Add NetBSD 11.1

(cherry picked from commit 97d0c19e6af78dc7613563805653d13f03861737)
DeltaFile
+4-0share/misc/bsd-family-tree
+4-01 files

FreeBSD/src 0b966a6 — share/misc bsd-family-tree

bsd-family-tree: polish grammar and style

Reviewed by:    ziaee

(cherry picked from commit d3bad289dfd536d8019e7bcbd7701b1d6dfb11c3)
DeltaFile
+28-26share/misc/bsd-family-tree
+28-261 files

FreeBSD/src b829ccc — share/misc bsd-family-tree

bsd-family-tree: add OpenBSD 8.0

(cherry picked from commit 97b9e96a7f762102148c45f30fee1ec9e8f7bb50)
DeltaFile
+2-1share/misc/bsd-family-tree
+2-11 files

FreeBSD/src b128c49 — share/misc bsd-family-tree

bsd-family-tree: add macOS 27

(cherry picked from commit 629c7cf72dd82d6f11dbc67a405417b4a643c000)
DeltaFile
+3-2share/misc/bsd-family-tree
+3-21 files

FreeBSD/src 4a51986 — crypto/krb5 README, crypto/krb5/src/lib/kadm5 kadm_rpc_xdr.c

krb5: Import MIT 1.22.3

Major changes in 1.22.3 (2026-11-09)
====================================

This is a bug fix release, with a focus on security issues discovered
with the aid of large language models.  See
https://web.mit.edu/kerberos/advisories/MITKRB5-SA-2026-001.txt for
information on the risks of continuing to use unpatched releases.

* Fix a logic error when checking PAC server checksums
   [CVE-2026-111423].

* Check for unkeyed checksums when validating CAMMAC verifiers
   [CVE-2026-71199].

* Fix a loophole in the KDC's client authdata filtering which could
   allow clients to include fake PAC and CAMMAC authdata values when
   requesting service tickets.  These fake values would be rejected by

    [52 lines not shown]
DeltaFile
+215-215crypto/krb5/src/po/mit-krb5.pot
+182-0crypto/krb5/README
+77-32crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
+69-29crypto/krb5/src/lib/rpc/svc_auth_gss.c
+97-0crypto/krb5/src/lib/krb5/krb/t_init_creds_step.c
+59-34crypto/krb5/src/lib/kadm5/kadm_rpc_xdr.c
+699-310133 files not shown
+1,800-901139 files

FreeBSD/src 059fb0a — share/misc organization.dot

organization.dot: pizzamig stepped down from portmgr

Hat:    portmgr
DeltaFile
+1-1share/misc/organization.dot
+1-11 files

FreeBSD/src 919ec3e — sys/amd64/vmm/amd svm.c

vmm: Avoid redundant AMD DEBUGCTL writes

Skip clearing and restoring DEBUGCTL when the saved host value is
zero. The entry path leaves DEBUGCTL zero, and LBR virtualization
restores that host value on VM exit. A rejected guest entry also
returns with the pre-VMRUN DEBUGCTL value. Guest accesses to DEBUGCTL
remain intercepted.

Preserve the existing writes for nonzero host state. Avoiding the
redundant writes can also avoid intercepted MSR accesses when bhyve
runs under another hypervisor.

Reviewed by:    markj, bnovkov
Approved by:    markj (mentor)
Sponsored by:   Alchemilla Ventures Private Limited
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D61218
DeltaFile
+8-2sys/amd64/vmm/amd/svm.c
+8-21 files

FreeBSD/src e52e4f8 — sys/amd64/vmm/intel vmx.c

vmm: Avoid redundant Intel DEBUGCTL writes

Skip clearing and restoring IA32_DEBUGCTL when the saved host value
is zero.

VM exit clears the register. If VM entry fails, the entry path has
already cleared any nonzero host value, so restoring zero is also
unnecessary in that case. Preserve the existing writes for nonzero
host state.

Avoiding these writes can also avoid intercepted MSR accesses when
bhyve runs under another hypervisor.

Reviewed by:    markj, bnovkov
Approved by:    markj (mentor)
Sponsored by:   Alchemilla Ventures Private Limited
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D61219
DeltaFile
+5-2sys/amd64/vmm/intel/vmx.c
+5-21 files

FreeBSD/src eef2463 — usr.sbin/traceroute traceroute.8

traceroute.8: cosmetic and grammar fixes
DeltaFile
+9-9usr.sbin/traceroute/traceroute.8
+9-91 files

FreeBSD/src 95c7b9e — lib/libc/gen exterr_cat_filenames.h, lib/libsys fspacectl.2

vfs: fail VOP_DEALLOCATE passes that make no progress

VOP_DEALLOCATE(9) permits a filesystem to return a partial result, and
vn_deallocate_impl() simply loops until the range is consumed.  If a
filesystem returns success without shrinking the remaining length, we
spin forever with the rangelock held and no way to interrupt the thread.

Return EIO if a pass doesn't make progress so that a buggy filesystem
doesn't wedge the caller.

Document the progress requirement in VOP_DEALLOCATE(9) and the new EIO
condition in fspacectl(2).

I did wonder if this should be made interruptible for, e.g., slow I/O
over NFS, but I've declined to touch it for now.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D61496
DeltaFile
+16-2sys/kern/vfs_vnops.c
+7-2share/man/man9/VOP_DEALLOCATE.9
+3-1lib/libsys/fspacectl.2
+1-0sys/sys/exterr_cat.h
+1-0lib/libc/gen/exterr_cat_filenames.h
+28-55 files