FreeBSD/src 7ee086bsys/dev/e1000 e1000_defines.h e1000_ich8lan.c

e1000: Disable autonomous PCH power gating after reset

Panther Point changed the reset value of CTRL_EXT.DPG_EN to enable
autonomous power gating. Clear it after hardware reset on Panther Point
and Nova Point controllers to prevent unexpected Tx/Rx hangs, packet
loss, or corruption.

(cherry picked from commit 0979b0430c2d728e595841ecba30b63972794fe9)
DeltaFile
+8-0sys/dev/e1000/e1000_ich8lan.c
+1-0sys/dev/e1000/e1000_defines.h
+9-02 files

FreeBSD/src dd51b85sys/dev/ice ice_drv_info.h

ice(4): Add support for E835 CNSA 2.0 adapters

Added support for E835 adapters with post-quantum cryptographic (PQC)
algorithms in firmware/software signage and in SPDM attestation.

Signed-off-by: Pawel Sobczyk <pawel.sobczyk at intel.com>

Reviewed by:    Miłosz Linkiewicz <milosz.linkiewicz at intel.com>
Differential Revision:  https://reviews.freebsd.org/D57868

(cherry picked from commit 8194c32827e9c3867d4b295edca9842b71608526)
DeltaFile
+30-0sys/dev/ice/ice_drv_info.h
+30-01 files

FreeBSD/src 6000eb7sys/dev/e1000 e1000_defines.h e1000_ich8lan.c

e1000: Disable autonomous PCH power gating after reset

Panther Point changed the reset value of CTRL_EXT.DPG_EN to enable
autonomous power gating. Clear it after hardware reset on Panther Point
and Nova Point controllers to prevent unexpected Tx/Rx hangs, packet
loss, or corruption.

(cherry picked from commit 0979b0430c2d728e595841ecba30b63972794fe9)
DeltaFile
+8-0sys/dev/e1000/e1000_ich8lan.c
+1-0sys/dev/e1000/e1000_defines.h
+9-02 files

FreeBSD/src 508a232sys/dev/ice ice_drv_info.h

ice(4): Add support for E835 CNSA 2.0 adapters

Added support for E835 adapters with post-quantum cryptographic (PQC)
algorithms in firmware/software signage and in SPDM attestation.

Signed-off-by: Pawel Sobczyk <pawel.sobczyk at intel.com>

Reviewed by:    Miłosz Linkiewicz <milosz.linkiewicz at intel.com>
Differential Revision:  https://reviews.freebsd.org/D57868

(cherry picked from commit 8194c32827e9c3867d4b295edca9842b71608526)
DeltaFile
+30-0sys/dev/ice/ice_drv_info.h
+30-01 files

FreeBSD/src 31c2290sys/dev/vmware/vmxnet3 if_vmx.c

if_vmx: fix panic during kldload

Just like vmxnet3_intr_disable_all, iflib may invoke this routine
before vmxnet3_attach_post() has run, which is before the top-level
shared data area is initialized and the device made aware of it.

Approved by:    re (cperciva)
PR:             294312
Sponsored by:   Dell Inc.

(cherry picked from commit 01b0690c495e1043a72cae9ee945f9f2c2adc216)
(cherry picked from commit 065396e09e41d6932ef726053bed97aed6e022e1)
DeltaFile
+6-1sys/dev/vmware/vmxnet3/if_vmx.c
+6-11 files

FreeBSD/src 2f580ccsys/netipsec xform_ipcomp.c

netipsec/xform_ipcomp.c: fix sockaddr type set in ipcomp6_nonexp_encapcheck()

Approved by:    re (cperciva)

(cherry picked from commit 01d4e3c1d3ffa14041d8faa3a7a6e6509e73af84)
(cherry picked from commit 3626363aaed8fa8becbb3c89ba0bbeeea6ae1139)
DeltaFile
+1-1sys/netipsec/xform_ipcomp.c
+1-11 files

FreeBSD/src feecef8sys/netipsec key.c

PF_KEY socket: limit the length of copied socket address

Approved by:    re (cperciva)
PR:     297264

(cherry picked from commit cba481a7bff2fcf31420ee8b2714660e2666452b)
(cherry picked from commit 022f935a1fbc75d39a055eee0a327cb2062a4596)
DeltaFile
+69-59sys/netipsec/key.c
+69-591 files

FreeBSD/src 8ca6be0sys/netipsec key.c

netipsec/key.c::key_checksockaddrs(): constify src/dst address buffer pointers

Approved by:    re (cperciva)

(cherry picked from commit fbe9aa7ebfcd6d89b298cc7a23de02d119367221)
(cherry picked from commit af11a69e53070b6002e9246d24696cd03ea9d40a)
DeltaFile
+4-1sys/netipsec/key.c
+4-11 files

FreeBSD/src af06940share/man/man4 bnxt.4

bnxt(4): Cross-reference led(4)

Point the identification LED documentation to led(4), which describes
how to control /dev/led device nodes.

MFC after:      2 weeks
Sponsored by:   BBOX.io
DeltaFile
+4-1share/man/man4/bnxt.4
+4-11 files

FreeBSD/src a781965share/man/man4 ice.4, sys/dev/ice ice_iflib.h if_ice_iflib.c

ice: Add led(4) identification support

Expose the firmware-controlled physical port identification LED
through /dev/led/ice*.  Use the AdminQ port-identification command to
select blinking mode and restore the netlist-selected original mode
before the interface is stopped.

MFC after:      2 weeks
Sponsored by:   BBOX.io
DeltaFile
+44-0sys/dev/ice/if_ice_iflib.c
+8-1share/man/man4/ice.4
+1-0sys/dev/ice/ice_iflib.h
+53-13 files

FreeBSD/src a43b61ausr.sbin/makefs/tests makefs_zfs_tests.sh, usr.sbin/makefs/zfs dsl.c

makefs: Allow "legacy" as a valid ZFS mountpoint

Allow "legacy" alongside "none" as a valid value for the ZFS mountpoint
property, matching zfsprops(7).

Reviewed by:    imp, markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D58781

(cherry picked from commit 59d6422d6f21fd5cf4709ce9fcada54d3925a4f6)
DeltaFile
+39-0usr.sbin/makefs/tests/makefs_zfs_tests.sh
+3-2usr.sbin/makefs/zfs/dsl.c
+42-22 files

FreeBSD/src 886de9eusr.sbin/makefs/tests makefs_zfs_tests.sh

makefs: tests: Fix a missing slash in multi_dataset_4

Fix a typo in the ZFS multi_dataset_4 test, where a path separator was
missing.

Reported by:    markj
MFC after:      1 week

(cherry picked from commit 889d08f6b61da4724a6f718be7ec8d47824bc602)
DeltaFile
+1-1usr.sbin/makefs/tests/makefs_zfs_tests.sh
+1-11 files

FreeBSD/src c559590usr.sbin/makefs/tests makefs_zfs_tests.sh

makefs: tests: Fix a missing slash in multi_dataset_4

Fix a typo in the ZFS multi_dataset_4 test, where a path separator was
missing.

Reported by:    markj
MFC after:      1 week

(cherry picked from commit 889d08f6b61da4724a6f718be7ec8d47824bc602)
DeltaFile
+1-1usr.sbin/makefs/tests/makefs_zfs_tests.sh
+1-11 files

FreeBSD/src 9aed7a7include fts.h, lib/libc/gen Symbol.map fts.3

fts: add fts_openat() API

Add fts_openat() as a new entry point for fts(3).

When dirfd is AT_FDCWD the behaviour is identical to fts_open().
Passing a pre-opened directory fd allows fts traversal inside
Capsicum capability mode where path-based operations are not
permitted.

Capability mode users should use fts_parent->fts_dirfd + fts_name with
openat(2) to access files.

Reviewed by:    asomers
Relnotes:       yes
Sponsored by:   Google LLC (GSoC 2026)
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2273
DeltaFile
+250-0lib/libc/tests/gen/fts_openat_test.c
+57-11lib/libc/gen/fts.c
+33-1lib/libc/gen/fts.3
+3-1include/fts.h
+1-0lib/libc/tests/gen/Makefile
+1-0lib/libc/gen/Symbol.map
+345-131 files not shown
+346-137 files

FreeBSD/src 9b8c2bflib/libc/gen fts.c, lib/libc/tests/gen fts_misc_test.c

fts: fix file descriptor leak in fts_close

fts_build() stores a dup'd file descriptor in each directory
entry's fts_dirfd.  When a traversal is abandoned before
completion and fts_close() is called, the cleanup loop freed
each pending entry with free() without first closing its
fts_dirfd, leaking one descriptor per pending directory.

Close fts_dirfd before freeing each entry in the cleanup loop,
matching the handling already applied to the dummy parent entry
after the loop.

Add a regression test that descends a couple of levels, abandons
the traversal, closes, and asserts the open descriptor count is
unchanged.

PR:             297557
Reported by:    asomers
Fixes:          4bd01d6ae016

    [3 lines not shown]
DeltaFile
+66-0lib/libc/tests/gen/fts_misc_test.c
+2-0lib/libc/gen/fts.c
+68-02 files

FreeBSD/src a77edebsys/geom/eli g_eli.c, sys/kern subr_hints.c kern_environment.c

SYSINIT: add SI_SUB_KENV

Since the kernel environment has its own dependencies, lurking at the end
of the SI_SUB_KMEM sequence appeared to be fragile.  Provide own subsystem
for it.  The init_dynamic_kenv() goes SI_ORDER_FIRST, and two modules that
depend on it go SI_ORDER_ANY.

PR:                     297492
Reviewed by:            imp, markj, emaste
Differential Revision:  https://reviews.freebsd.org/D58836
DeltaFile
+1-1sys/kern/subr_hints.c
+1-1sys/kern/kern_environment.c
+1-1sys/geom/eli/g_eli.c
+1-0sys/sys/kernel.h
+4-34 files

FreeBSD/src 2cefae4sbin/restore symtab.c

Fix transposed arguments in call to calloc(). Reported by GCC 15 warning.

No functional change intended.

Submitted by: Pedro Giffuni <pfg at freebsd.org>
MFC-after:    1 week
DeltaFile
+1-1sbin/restore/symtab.c
+1-11 files

FreeBSD/src 2d67765sys/kern kern_malloc.c

malloc: Use ckdint.h helpers instead of WOULD_OVERFLOW

This serves to demonstrate some usage of the ckdint.h helpers.  The new
version also generates better machine code on amd64 and arm64.

Reviewed by:    kib, emaste
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
DeltaFile
+7-5sys/kern/kern_malloc.c
+7-51 files

FreeBSD/src 37bd69dinclude stdckdint.h, sys/sys ckdint.h

sys: Add sys/ckdint.h

We have a C23 stdckdint.h header for userspace, which provides checked
addition, subtraction and multiplication.  We lack similar helpers in
the kernel, where they are regularly needed.

Let's just adopt the C23 macros.  For bonus points, I added a wrapper to
ensure that ignored an return value is raised as an error by the
compiler.

Reviewed by:    kib, emaste
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58773
DeltaFile
+47-0sys/sys/ckdint.h
+2-24include/stdckdint.h
+49-242 files

FreeBSD/src 4c1004csys/dev/sound/pci hdspe.h hdspe.c

snd_hdspe: Avoid allocation in the interrupt handler

Cache PCM children and drain interrupt callbacks before detach.
Allocate the parent softc by its actual size.

Reviewed by:    br
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D58370
DeltaFile
+72-24sys/dev/sound/pci/hdspe-pcm.c
+13-13sys/dev/sound/pci/hdspe.c
+9-0sys/dev/sound/pci/hdspe.h
+94-373 files

FreeBSD/src d383c87contrib/mandoc mdoc.7, share/examples/mdoc example.4

mdoc: Standardize SYNOPISIS section for drivers

Standardize driver manuals on the style used for 12 years in vt(4).
This brings SYNOPSIS across all FreeBSD manual sections into harmony
of meaning where where SYNOPSIS lists available options, and does not
contain prose. Adjust mdoc(7) to reflect the established convention.

Reviewed by:    jhb
Discussed with: arch@ (marc.info/?l=freebsd-arch&m=176782215606871)
Differential Revision:  https://reviews.freebsd.org/D54586
DeltaFile
+27-19share/examples/mdoc/example.4
+8-1contrib/mandoc/mdoc.7
+35-202 files

FreeBSD/src 557ba0cusr.bin/yes yes.c

yes: Avoid static initialization

Our buffer is half a megabyte, but we are only initializing the first
two bytes.  Switching from static to dynamic initialization moves it
from .data to .bss, greatly reducing the size of the binary.

Fixes:          cf74b63d61b4 ("yes: Completely overengineer")
MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D58890
DeltaFile
+7-3usr.bin/yes/yes.c
+7-31 files

FreeBSD/src f370d9esys/dev/ice ice_drv_info.h

ice(4): Add two more 4-part IDs for E835 adapters

Two additional subdevice IDs were introduced
to distinguish between adapters with and without
manageability over USB support.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka at intel.com>

Reviewed by:    erj
Tested by:      Mateusz Moga <mateusz.moga at intel.com>
MFC after:      1 week
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D57337
DeltaFile
+6-0sys/dev/ice/ice_drv_info.h
+6-01 files

FreeBSD/src ba120b8tools/tools/git mfc-candidates.lua

mfc-candidates: Annotate variables as local

And clean up luacheck warnings.

Sponsored by:   Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D48950
DeltaFile
+6-6tools/tools/git/mfc-candidates.lua
+6-61 files

FreeBSD/src ba9aaedsys/dev/ciss cissvar.h ciss.c

Revert "ciss: Add max physical target"

This reverts commit 45645518ea19ccb4761aee3a525aab2f323d37d4.

Although this changed looks like it should just be a harmless change to
bookkeeping, it turns out that it changes the termination condition of
the initial device scan, resulting in it never finishing. This causes
the boot to hang forever coming up. Since I don't have good access to
hardware, I'm reverting until the exact details can be sorted out.

Reported by: Edward Scroop
Sponsored by: Netflix
MFC After: 1 week
DeltaFile
+1-10sys/dev/ciss/ciss.c
+0-1sys/dev/ciss/cissvar.h
+1-112 files

FreeBSD/src eb0290fusr.sbin/ypserv/common yplib_host.h yplib_host.c

ypserv: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit ac8189e6de8fb5de31d5b662f1d406f27285ac74)
DeltaFile
+2-0usr.sbin/ypserv/common/yplib_host.h
+2-0usr.sbin/ypserv/common/yplib_host.c
+4-02 files

FreeBSD/src de3fa71sbin/conscontrol conscontrol.8, share/man/man4 smb.4 ahd.4

Correct Identifer typo in SPDX tags

(cherry picked from commit 07d29f9c177e731e4497bedf5fde09176c90b444)
DeltaFile
+1-1usr.sbin/kbdcontrol/kbdcontrol.1
+1-1usr.sbin/devinfo/devinfo.8
+1-1usr.bin/man/manpath.1
+1-1share/man/man4/smb.4
+1-1share/man/man4/ahd.4
+1-1sbin/conscontrol/conscontrol.8
+6-66 files

FreeBSD/src 7a4607eusr.sbin/yppush yppush_extern.h

yppush: Add SPDX-License-Identifier tag

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit d6bec77ad8f80438f10bb3fe7a8bc8e9265e2858)
DeltaFile
+2-0usr.sbin/yppush/yppush_extern.h
+2-01 files

FreeBSD/src f91e124usr.sbin/virtual_oss/virtual_bt_speaker bt_speaker.c, usr.sbin/virtual_oss/virtual_equalizer equalizer.c

virtual_oss: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 6d5a428056b52c7ce47b01d6af8aaaff6feecfdd)
DeltaFile
+2-0usr.sbin/virtual_oss/virtual_oss/ctl.c
+2-0usr.sbin/virtual_oss/virtual_oss/compressor.c
+2-0usr.sbin/virtual_oss/virtual_oss/backend.h
+2-0usr.sbin/virtual_oss/virtual_oss/audio_delay.c
+2-0usr.sbin/virtual_oss/virtual_equalizer/equalizer.c
+2-0usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
+12-010 files not shown
+32-016 files

FreeBSD/src c8e1d0abin/setfacl setfacl.h setfacl.c

setfacl: Add SPDX-License-Identifier tags

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55212

(cherry picked from commit 575e89cb1786a00387e9c1391055263068c4e0ae)
DeltaFile
+2-0bin/setfacl/setfacl.h
+2-0bin/setfacl/setfacl.c
+2-0bin/setfacl/remove.c
+2-0bin/setfacl/merge.c
+2-0bin/setfacl/mask.c
+2-0bin/setfacl/file.c
+12-01 files not shown
+14-07 files