FreeBSD/src 99eaf07sys/dev/vmware/vmxnet3 if_vmx.c

vmxnet3: Propagate device-enable failure to iflib

Do not let iflib publish a running interface when the virtual device
rejected its enable command.  Mark initialization failed and leave the
interface stopped.

MFC after:      2 weeks
Sponsored by:   BBOX.io
DeltaFile
+4-1sys/dev/vmware/vmxnet3/if_vmx.c
+4-11 files

FreeBSD/src f496cd9share/man/man9 iflibdd.9

iflibdd(9): Clarify resume during suspend rollback

The resume callback also runs when suspend fails, without an intervening
PCI power-state transition or configuration-space restore.  Document
that drivers must not assume either has occurred.

MFC after:      2 weeks
Sponsored by:   BBOX.io
DeltaFile
+4-0share/man/man9/iflibdd.9
+4-01 files

FreeBSD/src 45dc4a1sys/dev/ixgbe ixgbe.h if_ix.c

ixgbe: Pause firmware recovery polling in low power

The firmware recovery callout continues polling controller registers
after a power transition.  An inaccessible E610 GL_MNG_FWSM register
reads as all ones in D3, which looks like firmware recovery mode and
queues an iflib reset while the device is suspended.  A later D0 poll
then reports recovery complete and queues another reset.

Pause and drain the callout before terminal stop policy is applied,
prevent an in-flight callback from rearming it, and restart polling
only after resume has cleared the wake state.  Track callout
initialization so partial attach cleanup does not drain an uninitialized
callout.

The false transition was reproduced on a dual-port E610 with direct D3
and system S3.  Validate the guard with wake-disabled and wake-armed D3,
three repeated D3 cycles per port, and an S3 magic-packet wake.  Both
ports returned to D0 without a false recovery transition.


    [2 lines not shown]
DeltaFile
+33-5sys/dev/ixgbe/if_ix.c
+2-0sys/dev/ixgbe/ixgbe.h
+35-52 files

FreeBSD/src 62dd064share/man/man9 iflibdd.9, sys/net iflib.c

iflib: Reject media changes during suspend

iflib gates its built-in administrative and media-status callbacks once
a power transition starts, but iflib_media_change() could still invoke a
driver while the device was suspending or suspended.  Several drivers
perform PHY or firmware I/O directly from this callback.

Return EBUSY before invoking IFDI_MEDIA_CHANGE() unless the device is
active.  ifmedia then restores the prior selection, avoiding both
suspended hardware access and an unvalidated configuration that would
need to be replayed during resume.

Validated with device suspend on 82579LM, I210, and I225-IT
controllers.  Media-selection requests returned EBUSY on every
suspended device.  Resume restored the linked management interfaces at
1 Gbps with working traffic and no watchdogs; unconfigured interfaces
retained their prior admin and link state.

Reviewed by:    iflib (gallatin)

    [3 lines not shown]
DeltaFile
+4-0sys/net/iflib.c
+3-0share/man/man9/iflibdd.9
+7-02 files

FreeBSD/src 2b2cc52share/man/man9 iflibdd.9, sys/dev/ice if_ice_iflib.c

iflib: Own queue quiescence during power transitions

Perform a terminal datapath stop before suspend and shutdown
callbacks, then drain the private configuration taskqueue before
entering low power.  Track power state independently of queue
ownership and prevent built-in admin, IOV, LED, and media-status
callbacks from accessing a suspended device.

Restore driver-specific state while the datapath remains stopped.
Initialize it exactly once on resume when the interface is
administratively up, and keep an administratively-down interface
stopped.  Roll back the driver when suspend or child suspension fails.

Add ifdi_power_prepare() for policy which must be established before
the terminal stop.  Use it to snapshot ixgbe(4) wake policy and preserve
X550EM PHY ordering, and remove the duplicate stop from aq(4).

Reviewed by:    iflib (gallatin)
MFC after:      2 weeks

    [2 lines not shown]
DeltaFile
+148-12sys/net/iflib.c
+39-3share/man/man9/iflibdd.9
+23-18sys/dev/ixgbe/if_ix.c
+17-0sys/net/ifdi_if.m
+7-0sys/net/iflib.h
+2-2sys/dev/ice/if_ice_iflib.c
+236-352 files not shown
+238-388 files

FreeBSD/src fb8fcd4share/man/man9 iflibdd.9, sys/net iflib.c

iflib: Track queue datapath lifecycle

Track whether iflib queue mappings may still be accessed by the
device.  Keep the state private to iflib and conservative: an unknown
or failed device must pass through IFDI_STOP() before mappings are
reused or released, while a device known to be stopped need not
receive another hardware stop.

Enter the starting state before IFDI_INIT(), publish running only
after receive buffers and framework state are ready, and stop hardware
if receive-buffer setup fails after driver initialization.

Do not initialize an administratively-down interface merely because
its MTU, capabilities, VLAN configuration, or media changed.  Preserve
successful retries for an administratively-up interface whose previous
initialization failed.

This state describes ownership of iflib datapath mappings only.  It
deliberately makes no claim about firmware queues, administrative DMA,

    [6 lines not shown]
DeltaFile
+95-32sys/net/iflib.c
+11-3share/man/man9/iflibdd.9
+106-352 files

FreeBSD/src cb82cc9lib/msun/tests fma_test.c

lib/msun: add tests for fmaf(3) subnormals

PR:     298260
Reviewed by:    kib
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59579
DeltaFile
+27-1lib/msun/tests/fma_test.c
+27-11 files

FreeBSD/src b08e6a3lib/msun/src s_fmaf.c

lib/msun: use the same algorithm for sw fmaf(3) as for fma(3)

This fixes rounding at the last bit for subnormals.

PR:     298260
Reviewed by:    kib
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59579
DeltaFile
+230-24lib/msun/src/s_fmaf.c
+230-241 files

FreeBSD/src 26248c3sys/kern uipc_mbuf.c, sys/net if_bridge.c

if_bridge: pull up only the headers bridge_pfil() inspects

bridge_pfil() pulled up min(m_pkthdr.len, max_protohdr) bytes.  When the
mapped head is shorter than that and followed by an unmapped (M_EXTPG)
mbuf -- a sendfile(2) or KTLS segment from a member advertising
IFCAP_MEXTPG -- m_pullup() ran into it and dereferenced a NULL mtod(),
panicking the kernel.

Pull up the Ethernet header first, and the SNAP/LLC header only for an
802.3 frame.  This is similar to pf and ip_output().

m_pullup() and m_copyup() asserted only the first mbuf; assert inside both
copy loops so the shape trips the check.

Fixes:          c38abd64dbc1 ("if_epair: support IFCAP_MEXTPG")
Suggested by:   markj
Reviewed by:    markj, gallatin
Assisted-by:    Claude Code (Fable 5, Opus 5)
DeltaFile
+23-10sys/net/if_bridge.c
+4-0sys/kern/uipc_mbuf.c
+27-102 files

FreeBSD/src 8209ceesys/net if_bridge.c

if_bridge: count the drops on the fragmentation path

bridge_pfil() returned a fragmentation failure without counting it,
and bridge_fragment() dropped a chain on three allocation failures
without counting those either.

Count the first on the filtered interface and the others with
ips_odropped, which is what ip_fragment() uses for the same failure
and what bridge_fragment() already uses for its success case.

Reviewed by:    gallatin
Differential Revision:  https://reviews.freebsd.org/D59391
Assisted-by:    Claude Code (Fable 5, Opus 5)
DeltaFile
+9-1sys/net/if_bridge.c
+9-11 files

FreeBSD/src 1624620include/arpa telnet.h

arpa/telnet: Fix a typo in a source code comment

- s/ascic/ASCII/

MFC after:      3 days
DeltaFile
+1-1include/arpa/telnet.h
+1-11 files

FreeBSD/src 8255ae9sys/kern kern_sysctl.c

sys/kern: Fix a typo in a source code comment

- s/untill/until/

MFC after:      3 days
DeltaFile
+1-1sys/kern/kern_sysctl.c
+1-11 files

FreeBSD/src 0d022basys/compat/linuxkpi/common/include/linux irq_work.h, sys/compat/linuxkpi/common/src linux_work.c

LinuxKPI: Run irq_work callbacks under RCU protection

Linux executes irq_work callbacks from an interrupt context that
provides implicit RCU read-side protection. LinuxKPI dispatches these
callbacks through a taskqueue, so provide equivalent protection
explicitly.

This prevents an RCU grace period from completing while an irq_work
callback is still using an RCU-protected object.

Suggested by:   wulf
Tested by:      JustAnotherHumanBeing
Signed-off-by:  JustAnotherHumanBeing <oleglelchuk at gmail.com>
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2385
DeltaFile
+3-0sys/compat/linuxkpi/common/src/linux_work.c
+2-0sys/compat/linuxkpi/common/include/linux/irq_work.h
+5-02 files

FreeBSD/src d8e315bshare/man/man4 ps5dsense.4, sys/conf files NOTES

hid: Add Sony DualSense gamepad driver

Add a driver for the Sony PS5 DualSense controller (054c:0ce6)
providing gamepad input via evdev, lightbar RGB LED control, and
player indicator LEDs through sysctl.

Signed-off-by:  Christos Longros <chris.longros at gmail.com>
Reviewed by:    ziaee, wulf
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D56345
DeltaFile
+472-0sys/dev/hid/ps5dsense.c
+145-0share/man/man4/ps5dsense.4
+8-0sys/modules/hid/ps5dsense/Makefile
+1-0sys/modules/hid/Makefile
+1-0sys/conf/files
+1-0sys/conf/NOTES
+628-01 files not shown
+629-07 files

FreeBSD/src b7e91f2sys/netinet sctp_usrreq.c

sctp: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    tuexen
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59590
DeltaFile
+2-5sys/netinet/sctp_usrreq.c
+2-51 files

FreeBSD/src 477c594sys/kern subr_bus.c subr_kobj.c, sys/sys bus.h kobj.h

kobj: allow multiple inheritance with per-class softc

Add support for hierarchical softc layout so that a leaf class and each
of its base classes owns a private softc region inside a single
allocation.

device_get_softc_class(dev, cls) returns a pointer to the softc that
belongs to the requested class.  The classic device_get_softc() still
returns the leaf softc and remains fully compatible with existing
drivers.

Existing drivers are unaffected; they simply obtain a slightly larger
softc block when they inherit from base classes.

MFC after:      2 months
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D59115
DeltaFile
+100-0sys/kern/subr_kobj.c
+25-5sys/sys/kobj.h
+16-3sys/kern/subr_bus.c
+1-0sys/sys/bus.h
+142-84 files

FreeBSD/src b7541acshare/man/man4 hgame.4 xb360gp.4

game controller manuals: Canonicalize SYNOPSIS

While here, tag SPDX.

Event:                  EuroBSDcon Devsummit 2026
MFC after:              3 days
Reviewed by:            wulf
Differential Revision:  https://reviews.freebsd.org/D59256
DeltaFile
+23-16share/man/man4/ps4dshock.4
+19-17share/man/man4/xb360gp.4
+7-5share/man/man4/hgame.4
+49-383 files

FreeBSD/src 45f4abeshare/man/man5 rc.conf.5

rc.conf.5: Fix typo

Fixes:          fa7094c5b06f ("Improve NOAUTO configuration")
MFC after:      3 days
Reported by:    Herbert J. Skuhra <herbert at gojira.at>
Event:          EuroBSDcon Devsummit 2026
DeltaFile
+2-2share/man/man5/rc.conf.5
+2-21 files

FreeBSD/src ef26f64sys/amd64/amd64 pmap.c

amd64/pmap: Return la57 in amd nested page

AMD doesn't encode page depth in eptp. As a result, the page level is
decided by the host la57 value. Without this, it uses 4 level page and
therefore cause machine enable la57 have garbage page translation.

PR:             291768
Reviewed by:    kib
Tested by:      Antranig Vartanian <antranigv at freebsd.am>
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57978
DeltaFile
+13-1sys/amd64/amd64/pmap.c
+13-11 files

FreeBSD/src 7b4d0f6.github CODEOWNERS

MAINTAINERS/CODEOWNERS: Scheduler: Use globs

Suggested by:   des
DeltaFile
+1-3.github/CODEOWNERS
+1-31 files

FreeBSD/src eb9e38esys/compat/linuxkpi/common/include/linux fs.h

linuxkpi: Add compat_ptr_ioctl

Adding the `compat_ptr_ioctl` function for amdkfd support it's called by
kfd_chardev.c

Reviewed by:    dumbbell
Differential Revision:  https://reviews.freebsd.org/D58076
DeltaFile
+9-0sys/compat/linuxkpi/common/include/linux/fs.h
+9-01 files

FreeBSD/src a7f51f6usr.sbin/pw pw_group.c

pw: fix error message in grp_set_passwd to use correct fd

MFC After:      1 week

(cherry picked from commit cd575d557bc090cc9fff41b085bd0aee40a42c38)
DeltaFile
+1-1usr.sbin/pw/pw_group.c
+1-11 files

FreeBSD/src 81f8462usr.sbin/pw pw_user.c

pw: simplify group lookup in usermod

MFC After:      1 week

(cherry picked from commit 885b0483fe2e1afc45caaf1294b4b755d1c7abae)
DeltaFile
+1-3usr.sbin/pw/pw_user.c
+1-31 files

FreeBSD/src 8cca719usr.sbin/pw pw_user.c, usr.sbin/pw/tests pw_userdel_test.sh

pw: remove mail file with unlinkat instead of building a path

This is consistent with how at jobs and crontabs are removed.

MFC After:      1 week

(cherry picked from commit 1ccf8075eaa84088ad4acb65aabb1e59c3fddd3f)
DeltaFile
+16-0usr.sbin/pw/tests/pw_userdel_test.sh
+7-4usr.sbin/pw/pw_user.c
+23-42 files

FreeBSD/src c780045usr.sbin/pw pw_user.c, usr.sbin/pw/tests pw_userdel_test.sh

pw: remove crontab with unlinkat instead of spawning crontab

crontab -r only unlinks the crontab file, so spawn it directly with
unlinkat() relative to conf.rootfd.  This also makes the crontab
removal work with pw -R.

MFC After:      1 week

(cherry picked from commit ba391775e8acb7a539c18f1231a396a7d0d763e9)
DeltaFile
+5-21usr.sbin/pw/pw_user.c
+18-0usr.sbin/pw/tests/pw_userdel_test.sh
+23-212 files

FreeBSD/src 4a86c33usr.sbin/pw pw_user.c, usr.sbin/pw/tests pw_userdel_test.sh

pw: fix at job removal when deleting a user

rmat() used stat() with a path relative to the current working
directory, so it never found the job files in /var/at/jobs and the
at(1) jobs of a deleted user were never removed.

ef7d0eb9489f also broke it by introducing a typo: /usr/sbin/atrm instead
of /usr/bin/artm.

Use fstatat() with the directory fd to stat the job files relative to
the at jobs directory, and unlinkat() them directly instead of spawning
atrm.

Those changes allow us to make it works with pw -R.

MFC After:      1 week

(cherry picked from commit 6b6aa45f9a1a35acb7fef68824c1a5eb08503909)
DeltaFile
+29-0usr.sbin/pw/tests/pw_userdel_test.sh
+13-14usr.sbin/pw/pw_user.c
+42-142 files

FreeBSD/src e4922f4usr.sbin/pw pw_user.c

pw: cleanup

No functional change intended.

MFC After:      1 week

(cherry picked from commit 5f5a1657a921c3f7a84ef326c2116d986409e161)
DeltaFile
+21-22usr.sbin/pw/pw_user.c
+21-221 files

FreeBSD/src bd81f04usr.sbin/pw pw.c, usr.sbin/pw/tests Makefile pw_test.sh

pw: check -M, -V and -R input to avoid dereferencing argv[2]

MFC After: 1 week

(cherry picked from commit 2350f75acb0da0271ccff1fb22381f7e8c5948f8)
DeltaFile
+20-0usr.sbin/pw/tests/pw_test.sh
+8-0usr.sbin/pw/pw.c
+2-1usr.sbin/pw/tests/Makefile
+30-13 files

FreeBSD/src 0cb7172usr.sbin/pw pw_utils.c pw_user.c, usr.sbin/pw/tests Makefile pw_useradd_test.sh

pw: use _PWDASH pseudo-fd for "-" in pw_checkfd

pw_checkfd() returned the character "-" (45) for the "-" argument,
which was ambiguous with a real file descriptor.

MFC After:      1 week

(cherry picked from commit 92e8a76b87862aa2ee7e6c3f637034e60ffbc2e6)
DeltaFile
+107-0usr.sbin/pw/tests/pw_unit_test.c
+35-0usr.sbin/pw/tests/pw_useradd_test.sh
+9-1usr.sbin/pw/tests/Makefile
+3-3usr.sbin/pw/pw_user.c
+3-3usr.sbin/pw/pw_group.c
+1-1usr.sbin/pw/pw_utils.c
+158-81 files not shown
+159-87 files

FreeBSD/src fa7094cshare/man/man5 rc.conf.5

rc.conf.5: Improve NOAUTO configuration + tag SPDX

- Show how to start a NOAUTOed interface
- "configured" is not quite right, try to improve that

MFC after:              3 days
Event:                  EuroBSDcon Devsummit 2026
Reviewed by:            adrian
Discussed with:         Antranig Vartanian <antranigv at freebsd.am>
Differential Revision:  https://reviews.freebsd.org/D59571
DeltaFile
+8-3share/man/man5/rc.conf.5
+8-31 files