FreeBSD git weekly: 2026-10-26 to 2026-11-01

Introduction

This is a display of mostly-automatically-classified git commits from 2026-10-26 to 2026-11-01.

DEBUG: This version of the report is primarily for checking the classifiers, and therefore contains extra information (in this colour).

Table of contents and commits per category:

(3) Highlighted commits (these are copies, not in stats)
0 0.0% Userland programs
21 8.6% Documentation
103 42.2% Hardware support
27 11.1% Networking
12 4.9% System administration
16 6.6% Libraries
8 3.3% Filesystems
15 6.1% Kernel
14 5.7% Build system
1 0.4% Internal organizational stuff
7 2.9% Testing
2 0.8% Style, typos, and comments
9 3.7% Contrib code
9 3.7% Reverted commits
0 0.0% Unclassified commits
244 100% total
Technical notes about this page

debug: info about the automatic classification

num % num changed stage
9 3.7% 0 00-reverts
2 0.8% 0 01-style
30 12.3% 0 02-filenames_wildcards
7 2.9% 0 02b-filenames_wildcards2
158 64.8% 0 03-filenames_plain1
30 12.3% 0 04-filenames_plain2
3 1.2% 0 05-summary-prefix
5 2.0% 0 Manually-classified commits
0 0.0% 0 Unclassified commits

debug: more stats

num % stage
0 0.0% Misclassified commits
239 98.0% Classified commits, no corrections

debug: groups

8 3.3% num in revert
1 0.4% num in fixes
65 26.6% num in consecutive
74 30.3% Commits in groups

Highlighted commits

For extra visibility, these are copies of commits found in other sections. Most (if not all) come from the commit message containing "Relnotes:", or commits modifying UPDATING.

release: No distribution sets by default
Remove the "NODISTSETS" option and add a "DISTSETS" option.  This
option will remain, disabled by default, for the duration of the
16.x branch but will be removed in 17.0.

With hat:       re
Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D60945
7b67aa67a71b02afe46d77199dac90d08ea5be41 Colin Percival 2026-10-18 17:46:40

debug: classified in 02-filenames_wildcards by '.*Makefile'

pkg: Enable FreeBSD-base by default
Enable the FreeBSD-base repository in all of the /etc/pkg/FreeBSD.conf
variants, and remove code from various install paths which enabled the
repository via /usr/local/etc/pkg/repos/FreeBSD.conf.

Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D60946
b66922687718be12f8953c6de17f46de3e54a74d Colin Percival 2026-10-18 18:18:59

debug: Commit manually moved from "unknown" to "build".

__FreeBSD_version: Bump for USB 3.1 and 3.2 changes
Bump new USB changes. Also, update RELNOTE and UPDATING.

Sponsored by:   The FreeBSD Foundation
5cc08734add2c758b225a190a562101ac1878437 ShengYi Hung 2026-11-02 03:52:04

debug: Commit manually moved from "unknown" to "build".

Userland programs

Commits about commands found in man section 1 (other than networking).

-- no commits in this category this week --

Documentation

Man pages, release notes, etc.

Commit group #0: manpages
manpages: Fix unusual Xr order
4560b19ff4bb1c26ac65fb7473b1b6f8af52c1b3 Wolfram Schneider 2026-10-26 10:27:43

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'


manpages: Fix unusual Xr order
afe20e82f9dbfa9016baa2c3d51d2b9f8ae21f0a Wolfram Schneider 2026-10-26 10:29:10

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'


manpages: Fix unusual Xr order
3208a17f96ef01872ad77e2ab70d182c6f3e39bb Wolfram Schneider 2026-10-26 10:32:42

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'


manpages: Fix unusual Xr order
f5b6c8f5c25261033fb9e6d0e9f682e3aa97efb5 Wolfram Schneider 2026-10-26 10:35:42

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'


manpages: Fix unusual Xr order
2ba2623414a60fb812fd5cfb075178c852b0db8b Wolfram Schneider 2026-10-26 10:41:28

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'


manpages: Fix unusual Xr order
fb4f233466d3b662f0dd8220b409a681ea6dacc3 Wolfram Schneider 2026-10-26 10:44:08

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'


manpages: Fix unusual Xr order
029466808f100ba04fa99efebb40b4209cf79e82 Wolfram Schneider 2026-10-26 10:46:28

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'


manpages: Fix unusual Xr order
13d222bd83ac15fec4b142b2a97cf0cb7ad981f7 Wolfram Schneider 2026-10-26 10:53:02

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

libc: Add a man page caveat about the `w` modifier
In-tree Clang is unaware of the N2680 fixed-width modifier `w` and emits
a warning when used.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299631
Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D60939
7ea9ac99e171bb2b6e425e4b4af728f4783ab07c Ed Maste 2026-10-21 15:22:19

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

usr.bin/man: allow man(1) to search translated manpages in pure $man_lang subdirectory (+)
Currently our man(1) utility search manages only in $lang_country.$charset, $lang.$charset and,
as failover, in en.$charset which is historical behavior.
But nowadays most of ported software uses only $lang subdirectories for translated manpages
instead of use full locale notation, for example, share/ja/man1, share/de/man1, share/ru/man1.
In such cases, our man(1) utility cannot find any translated manpages and silently fallback to english version.

Add $man_lang in search path allows man(1) search and use translated manpages under historical and modern path traditions

MFC after:              1 day
MFC to:                 stable/15 stable/14
Reviewed by:            ziaee, fernape
Approved by:            fernape
Differential Revision:  https://reviews.freebsd.org/D55805
5250c98908482babae8379b4dede10c64e8639ae Dima Panov 2026-10-26 20:07:56

debug: classified in 03-filenames_plain1 by 'usr.bin/man/'

memset.3: Fix .Fn usage and too many commas
Fix wrong usage of .Fn macro in paragraph for `memset_explicit' that
caused too many commas improperly emitted into rendered manual page.

Approved by:    des
MFC after:      1 week
3479ee8e003b948ee3011d1a88d656add3d1284f Juraj Lutter 2026-10-29 13:51:09

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

Change invalid reference LE_Set_Scan_Parameters to LE_Set_Scan_Param
hccontrol(8) lists "LE_Set_Scan_Parameters" as a subcommand, but it does
not work on recent releases. Use the LE_Set_Scan_Param instead as that
seems to be the new name according to the source file. Update the man
page accordingly.

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300178
Event:  Oslo Hackathon 2026
4347ad3b3943aa51f5d20930d1c524efeaac194f Sarder Kamal 2026-10-29 17:53:48

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

intro.7: Add editline(7) and tag SPDX
The command interpreter has lots of keyboard bindings documented in
editline(7), the line editing interface. This is kind of arcane lore,
but adding it to this listing of section 7 pages will help it get seen.

MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D60854
1ba207b672c2d0a79f6d6d8201524f474ea6dc86 Alexander Ziaee 2026-10-29 22:54:39

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

ure.4: Remove non-USB devices from HARDWARE
The RTL8168, RTL8169 and RTL8110 are PCI/PCIe Ethernet controllers
supported by re(4), and the RTL8211 is a standalone gigabit PHY.  None
of these are supported by ure(4).

The list appears to come from rgephy(4), which drives the internal PHY
on some ure-supported devices.

Fixes: https://cgit.freebsd.org/src/commit/?id=76ed6f2db316 ("ure.4: add a HARDWARE section + add RTL8156BG as a compatible controller")
Reviewed by:    Kenneth Raplee <kenrap@kennethraplee.com>
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61061
53dd6b7760d5afbf4da5d9d8ada059a199660abc Ed Maste 2026-10-30 20:01:33

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

hyperv manpages: Fix unusual Xr order
d82081e86f051de54f6ded7f64508af54f27257e Wolfram Schneider 2026-10-31 08:43:25

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

pflogd.8: hyperv manpages: Fix unusual Xr order
15bf2c9b8b7faa7c69841b6923d46133fc857d61 Wolfram Schneider 2026-10-31 08:48:11

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

elftoolchain manpages: Fix unusual Xr order
c7d3801bd9d2a34746aa361da9a5c9d5c06ec8f5 Wolfram Schneider 2026-10-31 08:53:29

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

bsnmp manpages: Fix unusual Xr order
f461e7b8842a4099fe1f549099f5d3eac145a4bb Wolfram Schneider 2026-10-31 08:59:51

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

truss.1: fix trailing dot in .Xr macro call
aabeaf60c4d7ff1eff7f85ee612ad13258e2c3b7 Wolfram Schneider 2026-10-31 10:06:37

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

apm.4: fix trailing dot in .Xr macro call
48dd6f4f6704a82f005357bf838111351066b859 Wolfram Schneider 2026-10-31 10:10:27

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

route: remove reference to long-gone netiso protocol in route(8).
8df518457e84a5d61d2c116a5628669895608ca4 Peter Wemm 2026-11-01 08:14:28

debug: classified in 02-filenames_wildcards by '.*\.[1-9]'

Hardware support

Hardware drivers and architecture-specific code.

amdsmu: Print detailed stats for KRACKAN_POINT
Testing on a Dell AMD Ryzen AI 5 PRO 435 laptop shows that the same
diagnostic information is valid.

Reviewed by:    obiwac
Sponsored by:   The FreeBSD Foundation
ce9de516eef333041d66a87dfb0aa4818cc5044f Ed Maste 2026-10-23 18:41:34

debug: classified in 03-filenames_plain1 by 'sys/dev/'

amdsmu: Update diagnostics comments for Krackan Point
Krackan Point has the same quirks as the Phoenix SMU it would seem.

Reported by:    emaste
Sponsored by:   The FreeBSD Foundation
b86f3d6ae8e2f1c64c2f230e59c582e8553a3062 Aymeric Wibo 2026-10-26 14:08:49

debug: classified in 03-filenames_plain1 by 'sys/dev/'

riscv: Map the DTB when it is outside the kernel's 1GB region
When the kernel is started directly by SBI firmware, locore.S maps only
the 1GB region that contains the kernel, and initriscv() reads the DTB
through that mapping at the physical address passed in a1.  If the
firmware put the DTB in another 1GB region, as QEMU does with more than
1GB of RAM, fake_preload_metadata() faults before the console is up and
the kernel hangs.

Also map the 1GB region that contains the DTB.

This fixes direct kernel booting without FreeBSD loader(8).

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299088
Reviewed by:    mhorne
Fixes:          https://cgit.freebsd.org/src/commit/?id=bfb857546984 ("riscv: Construct an identity map in locore.S")
MFC after:      1 week
Signed-off-by:  Rick Richard <rick@sloservers.com>
509d65fae512c24fc755d6a8b3b41bb967e6c5e1 Rick Richard 2026-10-03 16:00:00

debug: classified in 03-filenames_plain1 by 'sys/riscv/'

amdsmu: Use devclass name instead of module name
The diagnostics array contained expected modules to be loaded but the
checking logic checked for if a devclass of that name existed instead.

Have the diagnostics array contain the devclass instead as well as the
module to load for the hint string.

Furthermore, check tha the number of devices is greater than 0 so that
leftover devclasses from unloaded modules don't skip the hint.

Reported by:    emaste
Reviewed by:    emaste
Fixes:  https://cgit.freebsd.org/src/commit/?id=758578370f6b ("amdsmu: Hints on what to do if IP block blocking S0i3")
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/70
9a4bb77040f074f6e842a54f8aedf7a24c0eab42 Aymeric Wibo 2026-10-24 00:02:52

debug: classified in 03-filenames_plain1 by 'sys/dev/'

Commit group #1: ocs_fc: Harden ioctl, XRI lookup and FCP command validation
ocs_fc: Harden ioctl, XRI lookup and FCP command validation

Fix several issues found by security review of the driver.

ioctl:
- Require PRIV_DRIVER for all ocs ioctls and create the device node
  with mode 0600, group wheel.
- Return the error from ocs_process_sli_config() to the caller.
  Previously only ENXIO was propagated, so a failed validation or a
  failed copyin() still issued the mailbox command, in the latter case
  with a descriptor pointing at freed memory.
- Reject COMMON_WRITE_OBJECT when in_bytes exceeds
  desired_write_length, and cap WRITE_OBJECT, READ_OBJECT,
  READ_OBJECT_LIST and non-embedded mailbox buffers at
  OCS_MAX_DMA_ALLOC, returning EINVAL.
- Use a 64-bit size for the non-embedded mailbox buffer to avoid
  truncation of a user supplied length.
- Refuse to copy out more than the size of the DMA buffer allocated
  for the command.
- Range check the BAR offset in the ECD helper ioctl.

HW:
- Range check the XRI in ocs_hw_io_lookup() and return NULL when it is
  out of range.  Handle a NULL return in the auto xfer ready command
  and data paths (returning the RQ buffers in the former), and in
  ocs_hw_reclaim_xri().
- Make ocs_ref_get_unless_zero() atomic.

FCP:
- additional_fcp_cdb_length is in 4-byte words, but
  ocs_validate_fcp_cmd() added it to the expected payload length as
  bytes, so the length check under-validated the received frame.
- Drop commands with a CDB longer than CAM_MAX_CDBLEN instead of
  passing a truncated CDB to CAM.

MFC after:      1 week
Sponsored by:   Broadcom
Reviewed by:    ken
26081296b244a979732f2bd09e6def256e3d7bd4 Ram Kishore Vegesna 2026-10-14 11:24:07

debug: classified in 03-filenames_plain1 by 'sys/dev/'


ocf_fc: Fix up max() usage

max() truncates its parameters to 32-bit integers.

Reviewed by:    ram
Sponsored by:   The FreeBSD Foundation
Fixes:          https://cgit.freebsd.org/src/commit/?id=26081296b244 ("ocs_fc: Harden ioctl, XRI lookup and FCP command validation")
9b6b3a36ee295dc6edd0e00aa34adaebaed98c7d Mark Johnston 2026-10-27 16:47:19

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ocs_fc: Fix config space bounds, double PRLI response and a stack overflow
Fix three unrelated problems found by security review of the driver.

ECD helper ioctl:
- OCS_ECD_HELPER_CFG_READ* and OCS_ECD_HELPER_CFG_WRITE* passed a user
  supplied offset straight to pci_read_config() and pci_write_config().
  Reject accesses that extend past PCIE_REGMAX, so that a wide access
  starting in range cannot run past the end of config space.
- Use the real access width (1, 2 or 4 bytes) of the command for both
  the BAR and the config space checks, rather than assuming 4 bytes, so
  that narrow accesses at the very end of the BAR or config space are
  not rejected while wider ones remain bounded.

PRLI:
- When a PRLI carries an FC-4 type other than the one the driver
  supports, ocs_d_send_prli_rsp() sent an LS_RJT and started node
  shutdown, but then fell through and sent a second response on the same
  IO (another LS_RJT, or a PRLI LS_ACC when the initiator is accepted),
  followed by a conflicting transition to __ocs_d_device_ready.  The two
  responses posted two WQEs for one IO and caused a double ocs_ref_put(),
  a use after free of the ELS IO.  Return after dispatching the LS_RJT so
  that exactly one response is sent.
- __ocs_d_port_logged_in calls ocs_d_send_prli_rsp() without checking
  the FC-4 type, so any port that has completed a PLOGI can trigger this
  with a single PRLI, whether or not target mode is enabled.

Management:
- The active profile id is a uint32_t that is formatted as "0x%02x"
  with sprintf() into a buffer of MAX_PROFILE_LENGTH (5) bytes, which
  overflows for any id above 0xff.  Size the buffer for the longest
  possible string ("0x" plus 8 hex digits and the terminating NUL) and
  use ocs_snprintf().
- Use ocs_snprintf() for nv_wwpn as well, as nv_wwnn already does.

MFC after:      1 week
Sponsored by:   Broadcom
Reviewed by:    ken
039a8e11f887e359af1346b04e05180b9a49920c Ram Kishore Vegesna 2026-10-19 17:29:31

debug: classified in 03-filenames_plain1 by 'sys/dev/'

sound: Let pcm_unregister() tear down a partially initialized device
Since 3107b952f534 ("sound: Merge PCM_ALIVE() with PCM_REGISTERED()"),
pcm_unregister() is gated on PCM_REGISTERED(), so it cannot run unless
pcm_register() has already succeeded, which means drivers will leak
resources if a failure happened prior to this.

Reintroduce PCM_ALIVE(), but test dev rather than the lock. pcm_init()
assigns dev before anything else, so it can tell us whether pcm_init()
has run or not. Make sure to clear it in pcm_unregister() so that a
second call to pcm_unregister() cannot double-free.

While here, publish to sndstat(4) only once pcm_register() has
succeeded.

Reported by:    jah
Fixes:          https://cgit.freebsd.org/src/commit/?id=3107b952f534 ("sound: Merge PCM_ALIVE() with PCM_REGISTERED()")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Reviewed by:    jah, markj
Differential Revision:  https://reviews.freebsd.org/D60801
5760c22a05220cfb6b6cbf623f2cda5047b28706 Christos Margiolis 2026-10-27 11:26:29

debug: classified in 03-filenames_plain1 by 'sys/dev/'

amd64_cpu_init_fred(): set stack level for NMI and not #NM
Fixes:        https://cgit.freebsd.org/src/commit/?id=6e93f5e4d693 ("amd64: FRED support")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
787e2e411d2a169fd28581f9bbf1e87c51757303 Konstantin Belousov 2026-10-27 08:54:43

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

trap_fred_handle_k_exc(): handle #AC in kernel
Fixes:        https://cgit.freebsd.org/src/commit/?id=c6d7235ac15d ("amd64: handle #AC in kernel mode")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
e86a612d77ab34ecd96cce5fd0732999ffdd7fc0 Konstantin Belousov 2026-10-27 08:58:44

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

Commit group #2: amd64
amd64: do not allow to set IOPL to 3 when FRED is used

SDM requires that IOPL is zero when returning to usermode with ERETU.

Do not set rflags.iopl for FreeBSD io(4) open.
This might be changed to disallow io(4) open for FRED at all with a
knob, if there is a real need.

Return ENOSYS from linux iopl(2), apparently Linux kernel can be
configured without iopl(2) support, so linux programs should be prepared
for this error.

Return EINVAL from vt(4)/syscons(4) ioctl(KDENABIO).

Fixes:  https://cgit.freebsd.org/src/commit/?id=6e93f5e4d693 ("amd64: FRED support")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
5bc997b6f5b1265ff28d11405eb980bf471c3db4 Konstantin Belousov 2026-10-27 09:10:09

debug: classified in 03-filenames_plain1 by '['sys/amd64/', 'sys/dev/']'


amd64: fixes for register handling of syscall entry for FRED

- Save %r10 into tf_rcx.  This is the location for the 4th arg.
  libsys stubs do 'movq %rcx, %r10' so the fast syscall path works
  as is.  But Go binaries directly put arg 4 into %r10.
  Also save %r11 into tf_r11 for the duration of syscall handler.
- Somewhat improve binary compatibility with IDT SYSCALL fast return,
  by copying userspace return %rip into %rcx, and %rflags into %r11,
  emulating SYSCALL IDT delivery.

Fixes:  https://cgit.freebsd.org/src/commit/?id=6e93f5e4d693 ("amd64: FRED support")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
473cd1bba9b4e80b741769ff6185ba3846b1f050 Konstantin Belousov 2026-10-27 09:21:55

debug: classified in 03-filenames_plain1 by 'sys/amd64/'


amd64: do not pass SYSENTER frame to FRED fast syscall handler

With FRED, SYSCALL is delivered as event type syscall (7) and vector 1.
SYSENTER is syscall with vector 2.  Handle SYSENTER in slow path,
otherwise 32bit code is able to execute 64bit syscalls.

Also check that SYSCALL comes from the 64bit mode. Intel already
specifies that SYSCALL causes #UD in compatibility mode, but there is no
AMD specification for SYSCALL under FRED yet, and SYSCALL is allowed
in compatibility mode on AMD with IDT event delivery.

Fixes:  https://cgit.freebsd.org/src/commit/?id=6e93f5e4d693 ("amd64: FRED support")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
8671e823b7678731cd1aaf8850ccde4a2c293527 Konstantin Belousov 2026-10-27 10:08:14

debug: classified in 03-filenames_plain1 by 'sys/amd64/'


amd64: Make the SYSENTER and INTn action same as for IDT case.

Fixes:  https://cgit.freebsd.org/src/commit/?id=6e93f5e4d693 ("amd64: FRED support")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
73b3fb41e67a11f18b9b63a5265e174e4b688661 Konstantin Belousov 2026-10-27 10:08:14

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

virtio_p9fs: Mark response buffers as initialized for KMSAN
MFC after:    1 week
Sponsored by:   The FreeBSD Foundation
eca7cba74c95c8cd64c0ea4299984484784aa836 Mark Johnston 2026-10-26 22:24:06

debug: classified in 03-filenames_plain1 by 'sys/dev/'

amd64: strictly enforce the caller's mode for FRED 64bit syscall handler in C
For FRED SYSCALL calls, check that the LM bit is set.

Note that this handler is redundant for 64bit mode since syscalls
are handled by the asm fast path. Intel CPUs raise #UD for SYSCALL
in the compatibility mode, and for AMD we set up the MSR_CSTAR to
fast_syscall32 for IDT case, which is nop. So practically it should only
matter if AMD CPUs with FRED enabled allow SYSCALL from compatibility
mode.

Reported and reviewed by:       markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
dcc5adb27e3b00f003c2256a9e9aa2fcc20c4d32 Konstantin Belousov 2026-10-28 00:45:33

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

smb(4): Add SMB Block Process Call command
Add support for the SMBus Block Process Call (bpcall) command. This
command writes a block of data to a slave device and reads a block of
data back in a single transaction, as defined in the SMBus 2.0
specification.

Add the SMB_BPCALL ioctl to the smb(4) character device to allow
userspace to issue Block Process Call transactions.

Implement ichsmb_bpcall() for the ICH SMBus controller using the
32-byte block buffer mode.  Older ICH variants (ICH, ICH0, ICH2, ICH3)
that lack the block buffer feature will return SMB_ENOTSUPP.

The PIIX4 compatible hardware (intpm) does not support Block Process
Call at all and returns SMB_ENOTSUPP unconditionally.

This has been tested on several Beckhoff Industrial PCs using real
SMBus hardware. It has been tested on Tigerlake, Elkhart and
Amstonlake Platforms.

Signed-off-by:  YannickV <Y.Vossen@beckhoff.com>
Reviewed by:    adrian, corvink, ziaee (manpages)
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2305
ad9ab26ab52a0a88933806c81f34d2670c0f69a9 YannickV 2026-06-26 06:52:44

debug: classified in 03-filenames_plain1 by 'sys/dev/'

amd64 FRED: handle in-kernel faults same as IDT
Pass #MC and #DF directly to corresponding handlers, avoiding EFI
pcb_onfault case.

If a fault occurs while kdb/ddb is active, handler must call
kdb_reenter() and not do the normal processing, which typically ends up
in panic() for kernel-mode faults.  But #MC and #DF should be excluded
there as well.

NMI is not an exception, it is delivered as specific event.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
efb0c54c7694798214a2c130ec8461a34444e1c4 Konstantin Belousov 2026-10-28 13:58:49

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

amd64 resumectx(): restore FRED state before loading %cr4
%cr4 has the FRED enable bit. This only matters for NMI and #MC, and the
kernel is really not ready to handle them while in resumectx(), but do
it for formal correctness.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
2fd12bf2dd9c1cf997ce2505bc2af10572ca70e2 Konstantin Belousov 2026-10-28 14:05:50

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

Commit group #3: amd64 FRED
amd64 FRED: mark trap frame as initialized for KASAN/KMSAN

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
1c25a7f1cb2986901957cc1cdf7a0c0f99748a35 Konstantin Belousov 2026-10-28 14:28:01

debug: classified in 03-filenames_plain1 by 'sys/amd64/'


amd64 FRED: clear %dr6 on #DB from kernel

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
837bb27c93a58a2df2f5203393ffa245b93caf31 Konstantin Belousov 2026-10-29 00:57:52

debug: classified in 03-filenames_plain1 by 'sys/amd64/'


amd64 FRED: no need to store fs/gsbase on user_fred_not_syscall path

The stores are only relevant for PCB_FULL_IRET return to userspace,
and setting the flag stores the bases into the pcb anyway.  Also, the
hidden issue is that FRED already did implicit SWAPGS on entry, so
stored gsbase was wrong anyway.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
6ca697360b53ce4f952d2b178c5d34f75f8c50ec Konstantin Belousov 2026-10-29 01:01:05

debug: classified in 03-filenames_plain1 by 'sys/amd64/'


amd64 FRED: add missed newline in the diagnostic

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
0cfbb34a12e59851b0eba2c6671e39cb05095e29 Konstantin Belousov 2026-10-29 01:04:23

debug: classified in 03-filenames_plain1 by 'sys/amd64/'


amd64 FRED: re-wrap the comment

Fixes:  https://cgit.freebsd.org/src/commit/?id=837bb27c93a5 ("amd64 FRED: clear %dr6 on #DB from kernel")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
0213bd5e5639e855d4039212f0f3f6ad89c6d65a Konstantin Belousov 2026-10-29 02:04:13

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

amd64 db_nextframe(): classify user_fred_syscall frame as SYSCALL
Sponsored by: The FreeBSD Foundation
MFC after:      1 week
b2767c7b022a8d7c03af8ee1b0fcd20d855d5433 Konstantin Belousov 2026-10-29 01:07:40

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

amd64 FRED: explain why %rax is saved early
Sponsored by: The FreeBSD Foundation
MFC after:      1 week
6105e8589b2cd7f9001df045392c30fc86900633 Konstantin Belousov 2026-10-29 01:16:49

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

amd64 FRED: normalize the user-provided 'fred' knob value
Assembler accesses 'fred' as byte, ensure that any non-zero
user-provided value works.  This is pure cosmetics.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
78962f9b66d1f84b957ddac3f528f184ba1f4739 Konstantin Belousov 2026-10-29 01:26:04

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

Commit group #4: ena
ena: Limit IO IRQ setup loop to active queues only

The loop in ena_request_io_irq() iterated over adapter->msix_vecs,
which reflects the maximum number of MSI-X vectors allocated at
init time. When the number of IO queues is reduced at runtime via
the io_queues_nb sysctl, msix_vecs is not updated, causing the
driver to bind interrupts and log CPU affinity for queues that no
longer exist.

Replace the loop bound with ENA_IO_IRQ_IDX(adapter->num_io_queues)
to iterate only over the currently active IO queues.

Also replace the loop in ena_free_io_irq() the same.

Reviewed by: cperciva
Fixes: https://cgit.freebsd.org/src/commit/?id=56d41ad5fe9c ("Add sysctl node for ENA IO queues number adjustment")
MFC after: 3 days
Sponsored by: Amazon, Inc.
32c301922dc1e6f52bdd043046661ac1e2b462d8 Gilad Ben Yakov 2026-04-29 12:10:38

debug: classified in 03-filenames_plain1 by 'sys/dev/'


ena: Retrieve RSS table size from device

The current driver assumes a default RSS table size of 128 entries,
expecting the device's RSS table size to match this assumption.

This patch allows the driver to create RSS indirection table
with the size advertised by the device.

Reviewed by: cperciva
MFC after: 3 days
Sponsored by: Amazon, Inc.
3d1e732a43eda16f20dea3fe2671ce6fca8a03a6 Gilad Ben Yakov 2026-03-30 12:12:50

debug: classified in 03-filenames_plain1 by 'sys/dev/'


ena: Reinit RSS table on device restore when queue count shrinks

When ena_restore_device() is called after a reset, pci_alloc_msix()
may return fewer MSI-X vectors than requested, causing num_io_queues
to shrink. When this happens, the RSS indirection table retains
entries referencing queues that no longer exist, routing packets to
non-existent queues and causing connectivity loss.

Extract ena_set_io_queue_count() to pair the queue count update with
ena_com_rss_destroy(), ensuring the RSS table is always invalidated
when the queue count changes. Use it from both ena_update_io_rings()
and ena_restore_device().

Reviewed by: cperciva
Fixes: https://cgit.freebsd.org/src/commit/?id=e2735b095b7e ("Fix assumptions about number of IO queues in the ENA")
MFC after: 3 days
Sponsored by: Amazon, Inc.
2d4d2ed3fef6acda9269f545f6703d6f32f2f0b7 Gilad Ben Yakov 2026-05-05 10:02:13

debug: classified in 03-filenames_plain1 by 'sys/dev/'


ena: Fix RSS not working after driver reload

When reloading the driver (kldunload/kldload),
ena_rss_init_default_deferred() is called before ena_attach()
completes. At this point, devclass_get_softc() returns NULL for all
devices because the adapter structs have not been populated yet. As a
result, ena_rss_init_default() is never called and ENA_FLAG_RSS_ACTIVE
is never set. Later, in ena_up_complete(), the code checks the flag,
finds it unset, and skips ena_rss_configure() entirely. RSS is never
initialized, and all traffic is directed to queue 0.

Remove the ENA_FLAG_RSS_ACTIVE gate in ena_up_complete() and always call
ena_rss_configure(), which initialises the table when tbl_log_size is
zero. The deferred SYSINIT is now redundant, so remove it.

Reviewed by: cperciva
Fixes: https://cgit.freebsd.org/src/commit/?id=9b8d05b8ac78 ("Add support for Amazon Elastic Network Adapter (ENA) NIC")
MFC after: 3 days
Sponsored by: Amazon, Inc.
a6205766b300e83d3aa2ddc740707987f3c3c97e Gilad Ben Yakov 2026-05-19 10:18:37

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ena: Fix NULL deref before NULL check in RSS sysctl
In ena_sysctl_rss_indir_table(), the code dereferenced
indir->sysctl_buf before checking whether indir itself is NULL.
Move the NULL check above the dereference so the early-return path
fires before any access through indir.

Reviewed by: cperciva
Fixes: https://cgit.freebsd.org/src/commit/?id=6d1ef2abd330 ("ena: Implement full RSS reconfiguration")
MFC after: 3 days
Sponsored by: Amazon, Inc.
462b6c50c7089e96c54cbd34378467f32fc709d4 Evgeny Ostrovsky 2026-05-26 07:01:39

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ena: Reinit RSS components during queue count change flow
The io_queues_nb sysctl is writable while the interface is down, and
setting it destroys the RSS components. When the interface is not UP
nothing reinitialises them, so the indirection table is left referencing
queues that no longer exist until the next ifconfig up.

Call ena_rss_configure() after the queue count changes when the
interface is down. When it is up, this happens through ena_up().

This can configure RSS twice if the interface is brought up afterwards,
costing three redundant admin commands. That is preferred over changing
ena_up(), which the reset path also uses.

Reviewed by: cperciva
Fixes: https://cgit.freebsd.org/src/commit/?id=56d41ad5fe9c ("Add sysctl node for ENA IO queues number adjustment")
MFC after: 3 days
Sponsored by: Amazon, Inc.
2a27dd0076c55789a43415559906f795fd10c2da Gilad Ben Yakov 2026-05-31 08:28:48

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ena: Update driver version to v2.8.5
New Features:
* Retrieve RSS indirection table size from device

Bug Fixes:
* Limit IO IRQ setup loop to active queues only
* Reinit RSS table on device restore when queue count shrinks
* Fix RSS not working after driver reload
* Fix NULL deref before NULL check in RSS sysctl
* Reinit RSS components during queue count change flow

Minor Changes:
* Fix ENA_MEM_FREE_COHERENT with an expression size argument

Reviewed by: cperciva
MFC after: 3 days
Sponsored by: Amazon, Inc.
5e66bf0df3104e212c1b24ff65284b6d1a694c59 Arthur Kiyanovski 2026-10-22 02:52:37

debug: classified in 03-filenames_plain1 by 'sys/dev/'

amd64 FRED: fix handling of ATPIC IRQ range when no atpic is configured
Do not fall back to lapic_handle_intr().  Ignore the interrupt from the
range same as it is done by apic_vector.S:spuriousint.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
bf074ee97407f24c200613470b3b7a24ce5a5242 Konstantin Belousov 2026-10-29 02:05:47

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

amd64: add helpers to set up thread state on trap
Sponsored by: The FreeBSD Foundation
MFC after:      1 week
7f49a62e3c5ff15d87afcce9ab7fe787319a3f7f Konstantin Belousov 2026-10-29 02:16:42

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

amd64 FRED: handle INT 3, INT 4, and INT 0x92 same as for IDT
Userspace INT {3, 4, 0x92} have DPL 3 gate in IDT, so enable them for
FRED as well, matching the IDT action.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
32b9c967e07c7af2b6e421969d0e7ba1cc9b9425 Konstantin Belousov 2026-10-29 02:16:42

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

Commit group #5: rk_pinctrl: Fix the drive strength of the RK3568 pins
rk_pinctrl: Fix the drive strength of the RK3568 pins

The drive strength of the RK3568 pins was never programmed.  The drive-strength
property was tested with OF_getencprop() == 0 but that function returns the
size of the property on success, so the branch was dead code and the pins kept
whatever the previous stage of the boot left in the registers.

The register layout was also wrong: each pin has an 8 bits wide drive field
and a register holds two pins, but the value was shifted by pin % 2 bits
instead of (pin % 2) * 8 and the mask only covered six bits.  An odd pin would
have overwritten part of the field of the even pin next to it.

Test the size of the property, put the field at (pin % 2) * 8 and write the
whole 8 bits, like Linux does.

Tested on a Quartz64 Model A and on a NanoPi R5S.

Reviewed by:    mmel
e8f8b17c30184687e3f6dd02a72345bcad7e92aa Emmanuel Vadot 2026-10-27 14:27:57

debug: classified in 03-filenames_plain1 by 'sys/arm64/'


rk_pinctrl: Limit the RK3568 drive strength to the 8 bits field

A drive-strength above 7 made the value wider than the 8 bits field.  On an
odd pin the extra bits set the write enable of the even pin next to it, which
was then cleared.  Limit the level to 7, where the field is full, like Linux.

Reported by:    markj
Fixes:  https://cgit.freebsd.org/src/commit/?id=e8f8b17c3018
0b7888108cc24b49386967826ecc6e6568e4aeb8 Emmanuel Vadot 2026-10-30 06:45:28

debug: classified in 03-filenames_plain1 by 'sys/arm64/'

rk_pinctrl: Fix the drive strength of the pins on the older SoCs
rk_pinctrl_parse_drive(), used for every Rockchip SoC but the RK3568, could
never succeed and so the drive-strength of the pins was never programmed:

- OF_getencprop() returns the size of the property, but the result was
  tested against 0.  A present property made the function return an error.
- The register offset of the matching table entry was never returned, so
  the caller used whatever was left in reg (the pull register or an
  uninitialized value).  Fixing only the first problem would have written
  the drive value in the wrong register.
- The table lookup skipped an entry only if both the bank and the subbank
  differed, so an entry matching only one of them could be used.

Test the size of the property, skip an entry if either the bank or the
subbank differs and return the offset of the entry.

Tested on a Rock64 (RK3328) by clearing the drive strength of the gmac pins
in U-Boot: without this change they stay at 2mA, with it they get the 4mA
and 8mA of the DTS and the rest of the GRF is unchanged.  On a RockPro64
(RK3399) the registers are unchanged, no pin of its default DTS is in the
tables of this driver that has a drive-strength.  Not tested on RK3288.

Note that the RK3399 tables only cover GPIO0 and GPIO1.  The other banks,
which have 3 bits per pin on some groups, are still not handled.

Reviewed by:    mmel
3a2528ae7a61b9423d10a1272aebcf1ada771839 Emmanuel Vadot 2026-10-29 06:49:39

debug: classified in 03-filenames_plain1 by 'sys/arm64/'

ufshci: fix the WLUN peripheral lookup timeout
The timeout in ufshci_sim_find_periph() is uint64_t, making the
comparison of timeout - ticks with zero always false. If the requested
peripheral does not become available, the lookup can wait indefinitely.

Use an sbintime_t deadline based on sbinuptime() and mstosbt(), and
compare the current uptime directly with the deadline. Preserve the
successful lookup path and existing timeout cleanup.

On an HP 15-fd0118ca with Intel N150 and Samsung UFS 3.1 storage, a
kernel built from stable/15 revision 84aa3cb3204d with this change
logged the missing-WLUN timeout, attached da0 and mounted root in two
boot trials.

Signed-off-by:  Denis Lemire <denis@lemire.name>
Reviewed by:    jaeyoon
Fixes:          https://cgit.freebsd.org/src/commit/?id=31407551c3d4 ("ufshci: Add a check for WLUN during driver initialization")
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2520
8721f68642c392afa0413eafa3cefde66d65b6eb Denis Lemire 2026-10-29 06:14:18

debug: classified in 03-filenames_plain1 by 'sys/dev/'

clk: Add a clknode method to get and set the phase
Add clknode_get_phase/clknode_set_phase (and the clk_get_phase and
clk_set_phase consumer API) so that clocks which can shift their phase,
such as the MMC sample and drive clocks of some SoCs, can expose it.

Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D60883
a2ae5a27ce0898221e2fdbf7fdf2aee6a9925096 Emmanuel Vadot 2026-10-20 08:09:18

debug: classified in 03-filenames_plain1 by 'sys/dev/'

Commit group #6: clk: rockchip: Add the MMC phase clock
clk: rockchip: Add the MMC phase clock

Add a clock node type for the Rockchip MMC sample and drive clocks.  These
clocks have a phase in degrees controlled by a delay line and a fine-grained
phase selector, and implement the new clknode phase methods.

Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D60886
e32b082ba28bd3d0e026782eeb93f124ced7508f Emmanuel Vadot 2026-10-20 08:09:18

debug: classified in 03-filenames_plain1 by 'sys/dev/'


clk: add config(5) entry for `rk_clk_mmc.c`

This is needed in order to unbreak the build on armv7.

Reported by:    Jenkins
Fixes:          https://cgit.freebsd.org/src/commit/?id=e32b082ba28b ("clk: rockchip: Add the MMC phase clock")
acc54751190f1a26c31873a49d42922e0fcad483 Enji Cooper 2026-11-01 00:57:19

debug: classified in 03-filenames_plain1 by 'sys/arm/'

vtnet: honor the advertised MTU limit on attach
When VIRTIO_NET_F_MTU is negotiated, virtio_net_config.mtu specifies
the maximum MTU the driver may use. vtnet_ioctl_mtu() enforces this
limit for subsequent MTU changes, but ether_ifattach() unconditionally
initializes the interface MTU to ETHERMTU (1500).

So a device advertising a maximum below 1500 starts with an MTU above
its limit. So make sure to set the initial MTU no larger than
vtnet_max_mtu. That is, for vtnet_max_mtu less than 1500
interface MTU will be set to this value, otherwise the current behaviour
is preserved, MTU will be set to 1500.

Reviewed by:    kfv, tuexen
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60980
0974ef03b43f279f16289ad4d5be3a03923983ea Roman Bogorodskiy 2026-10-29 18:24:15

debug: classified in 03-filenames_plain1 by 'sys/dev/'

Commit group #7: amd64 FRED
amd64 FRED: get out of NMI blocking mode unconditionally

When NMI interrupted userspace (ring 3), unconditionally unblock NMI,
not only for the pmc backtrace sampling. Return to userspace needs
to deliver ASTs and do userret(), which should not be done with NMIs
blocking.

Note that NMI from ring 3 is always delivered at stack level 0, i.e. the
thread's kernel stack.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
880d2991661de74e1f800db867dc9d0eda7b1bc9 Konstantin Belousov 2026-10-30 12:43:44

debug: classified in 03-filenames_plain1 by 'sys/amd64/'


amd64 FRED: use symbolic constant for the NMI unblocking bit for ERETS

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
614b6597e7025b5b1dd23f058e53e8c28dc28efe Konstantin Belousov 2026-10-30 12:46:52

debug: classified in 03-filenames_plain1 by 'sys/amd64/'


amd64 FRED: enable interrupts after user EXTINTs and NMIs

This is needed to run userret() with interrupts enabled.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
91d9fbb6e1537009c35ec0c1c37ca09b28c0b31d Konstantin Belousov 2026-10-30 13:01:15

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

lan867xphy: New driver for Microchip LAN8670/1/2 10BASE-T1S PHYs
10BASE-T1S is a Single Pair Ethernet (SPE) standard, intended for
automotive and industrial applications.  It supports a multidrop "mixing
segment" of at least 25m with up to 8 nodes.

This driver currently does not support per-silicon-revision config or
PHY-Level Collision Avoidance (PLCA), but is sufficient for establishing
basic connectivity.

Device details are available in the "Microchip LAN8670/1/2 10BASE-T1S
Ethernet PHY Transceiver Datasheet".

Reviewed by:    adrian
Differential Revision: https://reviews.freebsd.org/D60979
83d0eed501060a733753c57c85da3abab4c973ad Ed Maste 2026-05-04 22:45:56

debug: classified in 03-filenames_plain1 by 'sys/dev/'

smsc: Add Microchip EVB-LAN8670-USB 10BASE-T1S USB adapter
Reviewed by:  adrian
Sponsored by:   The FreeBSD Foundation
e3ba0d3eb0883c3fd524159e156d6bc119861d7c Ed Maste 2026-05-04 15:34:34

debug: classified in 03-filenames_plain1 by 'sys/dev/'

hwpmc: include PMC_CLASS_PERF in the PMC class range
PMC_CLASS_PERF (0x1a) was added after PMC_CLASS_RAPL, but
PMC_CLASS_LAST was left at PMC_CLASS_RAPL.

Signed-off-by:  Osvaldo Janeri Filho <ojanerif@amd.com>
Reviewed by:    Anderson Nascimento <anascime@amd.com>, mhorne
Fixes:          https://cgit.freebsd.org/src/commit/?id=5369f8e73eff ("hwpmc: add MPERF/APERF MSR support for AMD/Intel CPUs")
Sponsored by:   AMD
Differential Revision:  https://reviews.freebsd.org/D60546
ed8b9bf5f076609a2ba6f07dd9733ccb795f400a Osvaldo Janeri Filho 2026-10-30 14:10:39

debug: classified in 03-filenames_plain1 by 'sys/sys/pmc.h'

uether: Handle SIOCGIFXMEDIA
Commit eb7e25b22f1 ("ifmedia changes:") added SIOCGIFXMEDIA for extended
Ethernet media subtypes, but uether_ioctl() was not updated to pass it
to ifmedia_ioctl().  I believe no existing USB Ethernet devices used
extended subtypes, so this went unnoticed.

Without SIOCGIFXMEDIA ifconfig falls back to SIOCGIFMEDIA, which maps an
extended subtype to IFM_OTHER, and ifconfig reports "Ethernet Other."

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D60779
91431aa03605383ecfcbf1b9b2be69ab47e56a08 Ed Maste 2026-10-16 15:17:44

debug: classified in 03-filenames_plain1 by 'sys/dev/'

e1000: Honor the common RSS hash-field policy
Use rss_gethashconfig() to select MRQC hash fields in both the em and
igb multiqueue paths, including kernels built without options RSS.

igb previously enabled UDP four-tuple hashing unconditionally, while
the stack defaults to hashing only the addresses unless
net.inet.rss.udp_4tuple is enabled.  Honor that setting and include the
configured IPv6 extension-header address hash.

Limit the 82574 mapping to its supported fields.  Its TCP/IPv6 selector
is bit 18, named IPV6_TCP_EX in the shared definitions; bit 21 and the
UDP selectors are reserved.  Its default field selection is unchanged.

MFC after:      3 days
Sponsored by:   BBOX.io
86bdf7a4aec5223b016791ffc6bffb8a51865670 Kevin Bowling 2026-10-30 18:10:06

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ure: Handle SIOCGIFXMEDIA
The SIOCGIFXMEDIA ioctl is uesd to report extended Ethernet media
subtypes.

ure(4) commit d4cf41a99b40 added support for some newer devices and
added a special case to call ifmedia_ioctl() instead of uether_ioctl()
for those devices, but only for SIOCGIFMEDIA and SIOCSIFXMEDIA.

Fixes: https://cgit.freebsd.org/src/commit/?id=d4cf41a99b40 ("Add support for RTL8153B, RTL8156 and RTL8156B to if_ure(4).")
Reviewed by:    kbowling
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61049
eb0f28db1bfa5b4e6b0eda0a3dc25820bff1acba Ed Maste 2026-10-30 14:57:27

debug: classified in 03-filenames_plain1 by 'sys/dev/'

Commit group #8: tpm
tpm: Validate TIS 1.2 IRQs and quiesce delivery before teardown

The TIS 1.2 driver uses the IRQ resource value directly as the four-bit
LPC SIRQ selector in TPM_INT_VECTOR, without validating it before
narrowing. Add the missing range check on the full resource value and use
polling for routes outside 1 through 15. This restriction reflects the
driver's current routing support: parent interrupt numbers need not equal
LPC SIRQ channels.

Attach also installs a handler when the chip's quirks select polling.
Release the IRQ resource when initialization selects polling. Retain an
interrupt cookie only after successful setup and require it for interrupt
waits.

Share verified interrupt masking across initialization, resume, and
detach. Quiesce after draining cdev methods and before removing a handler,
including polling devices whose failed resume left firmware delivery on.
Preserve an owned locality until the existing abort path discards any
pending response. Report quiesce failures while completing detach cleanup.
Diagnose a failed initialization-time disable in the attach context, even
when the cleanup retry succeeds. Lifecycle locality acquisition uses the
bounded timeout without PCATCH so signals cannot interrupt masking;
command-path acquisition remains interruptible.

Cancel timed-out or interrupted locality requests, including requests
made by the ISA probe, so a late grant cannot leave locality reserved.

A device whose global enable does not read back cleared now fails attach
instead of publishing a cdev, and fails resume instead of accepting new
commands. Initialization's existing requirement to acquire locality is
unchanged. The separate legacy Atmel transport is unaffected.

Tested by:      jrm
MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59653
8d710f5383fe569635c385ca1ba62f1e4694ce8f Kevin Bowling 2026-09-13 17:27:56

debug: classified in 03-filenames_plain1 by 'sys/dev/'


tpm: Validate firmware interrupt routes and fall back cleanly

A host IRQ resource is not necessarily an LPC SIRQ selector.  Let the
frontend configure the route: ACPI uses the allocated _CRS interrupt and
_SRS when present, preserving the firmware selector, while ISA supplies a
separate, range-checked SIRQ.  Match trigger and polarity to the host route
and TPM capabilities, including opaque INTRNG resource mappings.
Pass the firmware descriptor unchanged to _SRS; apply the x86 ISA polarity
override only when computing the TPM mode.  ISA chips without rising-edge
support now poll instead of substituting a level mode for the host route.

For both FIFO drivers, require a complete GetRandom transport response and
a fresh DATA_AVAIL interrupt before selecting interrupt waits.  Perform
the test with polling before publishing the device, and repeat it after
resume.  During cold boot, defer the test and publication to an interrupt
configuration hook so the IRQ grace wait can sleep and the handler can run.
Drain the hook before teardown; failed deferred initialization remains
unpublished and can be detached safely.  Missing or failed routes release
the handler and IRQ resource;
TPM 1.2 handler-setup failure now also falls back to polling.

Use monotonic deadlines for TPM 1.2 locality, status and burst polling.
Keep lifecycle locality waits uninterruptible, propagate command signal
errors, and terminate transfers when the burst wait expires instead of
retrying a zero burst indefinitely.  Check VALID with the requested status
bits and retain bounded polling response retries.  Interrupt waits retain
their original single-timeout budget and error return.

Arm only DATA_AVAIL before GO.  Mask delivery on the first interrupt and
before relinquishing locality, preventing idle and repeated-source storms.
Bound interrupt sleeps so lost delivery can recover the current command
through polling.  Defer unexpected-source cleanup to a task that can
acquire locality, and drain it before destroying driver locks.  Preserve
an unread TPM 1.2 response when quiescing an already owned locality.

If the ithread cannot mask the TPM, yield for a tick with the host source
masked so a level storm cannot starve the command owner or cleanup worker.
Register INTR_SLEEPABLE | INTR_EXCL for both drivers, and reject firmware
shared routes before installing a handler.  Such routes now poll: FreeBSD
does not allow sleepable shared handlers.  Drain maskable events during
firmware programming without letting them validate or reject the IRQ test.

Retain the initial hardware-quiesce guarantee, including after _SRS:
initialization fails when delivery cannot be disabled, and a later unrecoverable
quiesce failure suspends command access.  Known TPM 1.2 NOINTS quirks and
the TPM 2.0 polling hint remain effective.  Frontends without an explicit
route method use polling.

Tested by:      jrm (tpm 1.2 tis)
MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59657
6362e5068c23ac862d64764107979371e3ca4799 Kevin Bowling 2026-09-14 00:34:35

debug: classified in 03-filenames_plain1 by 'sys/dev/'


tpm: Tie exclusive-open cleanup to the file lifetime

Use a cdevpriv destructor to abort an unfinished TPM 1.2 transaction and
release exclusive-open ownership. Register it before setting TPM_OPEN so
a failed registration leaves the device available. The last reference to
the successful open triggers cleanup, including after dup() or fork().

Suggested by:   kevans
MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59812
084f245a8514e89a506e43efd1a7ed44ffdbb5eb Kevin Bowling 2026-09-18 12:16:54

debug: classified in 03-filenames_plain1 by 'sys/dev/'


tpm: crb: Improve ACPI control and buffer addresses

The TPM2 ControlAddress identifies the control area, not necessarily a
PTP locality block.  Hyper-V exposes a start-method-7 control area at the
beginning of its ACPI memory resource, with command and response buffers
in separate reserved memory pages.  Assuming control registers are at
resource + 0x40 instead writes CANCEL as LOC_CTRL and fails attach.

Map the control area using ControlAddress and map buffers using their
reported physical addresses.  Reuse the resource mapping for contained
ranges and track ownership of independent mappings for cleanup.  Request
locality only when the resource contains the preceding 64-byte PTP header.
Keep the existing Pluton notification callbacks and locality behavior for
that layout.  Control, locality, and buffer accesses use their respective
mappings directly, without the tpm_bus accessor class.

Bound transfers by the mapped buffer sizes and TPM_BUFSIZE.  Clamp an
overstated buffer that starts within the ACPI resource to its remaining
extent, while requiring room for a complete response header.  Keep strict
control-area bounds and the shared-buffer size consistency check.

Write locality and state requests directly and wait for the corresponding
CTRL_REQ bit to clear.  The old ready wait instead tested the fatal-status
bit in CTRL_STS.  Enter ready state before reading buffer configuration,
and check fatal status again before reading a response, while locality
is still held.  Retain common error cleanup and diagnose attach-time idle
transition failures without replacing an earlier error.

These layouts and register semantics are defined by TCG ACPI 1.5 Table 7
and PC Client PTP 1.03 sections 5.5.3.1, 5.5.3.4, and 5.5.3.5.

Validation: a Windows Server 2025 Hyper-V FreeBSD guest attached and
passed manufacturer queries, 700 GetRandom/PCR_Read pairs, concurrent
clients, five detach/reattach cycles, and device suspend/resume
with entropy harvesting active.

MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59786
f0ac0f73aea71fdcd70408c046cfca88d8a34076 Kevin Bowling 2026-09-18 06:35:27

debug: classified in 03-filenames_plain1 by 'sys/dev/'


tpm: Harvest entropy from TPM 1.2 devices

The TPM 2.0 driver periodically contributes TPM-generated random bytes
to the kernel entropy pool, but the TPM 1.2 driver does not.

Issue TPM_GetRandom every ten seconds and submit successful responses
as RANDOM_PURE_TPM.  Keep each exchange under the TPM transaction lock.
Defer harvesting while the character device is open or a command is
pending so the task cannot consume a user response.  Drain the task for
suspend and detach, rearming it after resume or a failed suspend.

Document the expanded scope of RANDOM_ENABLE_TPM and update the kernel
configuration comments that described it as TPM 2.0-only.

Validated on a STMicroelectronics TPM 1.2 TIS device.  DTrace observed
periodic entropy submissions; a raw GetRandom response remained intact
while the device was held open across a harvest interval; and module
unload/reload deregistered and restored the entropy source cleanly.

Tested by:      zarychtam_plan-b.pwste.edu.pl
MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59239
4bcd10f7c04988056c7b28c4cbe65804d7f26d93 Kevin Bowling 2026-08-27 14:27:45

debug: classified in 03-filenames_plain1 by '['sys/arm/', 'sys/arm64/', 'sys/dev/', 'sys/riscv/']'

tpm20: Preserve all harvested random bytes
The TPM requests 16 random bytes every ten seconds, but a random
harvest event retains at most eight bytes.  random_harvest_queue()
reduces a larger input to one 32-bit Jenkins hash, so each successful
TPM request contributed only four bytes to the entropy accumulator.

Split the response into harvest event sized chunks.  This preserves all
16 random bytes without increasing the TPM command rate or changing its
high quality source classification.

MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59246
914892d374e924cae2a0a1d7a669f246a845ad35 Kevin Bowling 2026-08-28 00:32:33

debug: classified in 03-filenames_plain1 by 'sys/dev/'

mlx5en: Report SR-IOV VF status
Query each enabled eswitch vport to report its effective MAC and VLAN
configuration and administrative link-state policy.  Serialize the
query with vport enable and disable, and hold the interface state lock
so teardown joins an in-progress report.

Propagate firmware errors from MAC, administrative link-state, and
supported VLAN queries instead of returning a partially initialized
configuration.  When the hardware lacks CVLAN enforcement, report the
remaining status with no imposed access VLAN.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D58740
0c08d85c99b7b57e45816d011685d349b240a3e3 Kevin Bowling 2026-08-08 17:50:12

debug: classified in 03-filenames_plain1 by 'sys/dev/'

mlx5en: Report the configured RSS tuple selections
Derive SIOCGIFRSSHASH's TCP and UDP selections from the same boot-time
hash configuration used by mlx5e_build_tir_ctx().  The query previously
advertised all six IPv4/IPv6 hash types even when the transport-specific
TIRs selected only the IP addresses.  In particular, the default RSS
configuration disables UDP four-tuple hashing.

Continue reporting IPv4 and IPv6 two-tuple hashing unconditionally,
matching the driver's IP-only TIRs.  Do not report IPv6 extension-header
variants which the query did not previously claim.  Leave key selection,
TIR programming, and the receive datapath unchanged.  This lets consumers
such as hn(4) match the VF's hash inputs instead of enabling incompatible
UDP four-tuple hashes on their own receive path.

Fixes:          https://cgit.freebsd.org/src/commit/?id=a00718e1dfcd ("Implement SIOCGIFRSSKEY and SIOCGIFRSSHASH and mlx5en(4).")
MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59807
0f111a802f6beb88f3edad9fa48d3721f8b3ec7b Kevin Bowling 2026-09-18 10:23:19

debug: classified in 03-filenames_plain1 by 'sys/dev/'

bnxt: Report SR-IOV VF status
Expose the PF-known effective per-VF MAC, allocated transmit and receive
queue counts, and policy state through the iflib VF status method.
Snapshot the state under the SR-IOV lock so concurrent trust and
anti-spoof sysctl updates cannot produce a torn report.  Mark known queue
allocations present even when their value is zero.

Cache a VF-selected MAC only after firmware accepts the forwarded
request.  Prefer that address in status.  Replay the accepted address,
trust state, and MAC anti-spoof policy after firmware recovery.

Record completion of the per-VF configuration callback separately from
firmware resource allocation.

Track successful PCI SR-IOV attachment independently of the active VF
count.  This lets a supported but unconfigured PF return an empty status
while unsupported devices and failed attachments omit it.

Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58738
2c379efd1834dac2432a98de847b79f345f66974 Kevin Bowling 2026-08-08 17:46:27

debug: classified in 03-filenames_plain1 by 'sys/dev/'

qlnx: Report SR-IOV VF status
Retain the PF-known MAC and allocated transmit and receive queue counts
for each VF and expose them through the PF ifnet.  Sum queues across all
hardware functions rather than reporting only the first one.

Publish and snapshot the VF cache under the existing hardware lock.
Unpublish it before hardware teardown, and invalidate queue-allocation
knowledge when error recovery releases the underlying VF resources.

Initialize the cache, release it on failed initialization, and reject an
out-of-range VF index instead of continuing into the array.

Tested by:      zlei
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58742
9b8bc7b827ef99a0488d0bed32293bad323e8cdb Kevin Bowling 2026-08-08 18:00:44

debug: classified in 03-filenames_plain1 by 'sys/dev/'

iavf: Report the programmed VF RSS configuration
Implement the iflib RSS key and hash query methods for register-based
and PF-managed RSS. Cache the programmed key and HENA selections so hn
can synchronize its synthetic RSS configuration with the VF without
reading hardware or issuing mailbox requests from the query path.

For PF-managed RSS, publish the snapshot only after successful replies
to both CONFIG_RSS_KEY and SET_RSS_HENA. Failed sends, rejected requests,
and missing replies leave it unavailable. Protect the snapshot with
vc_mtx and invalidate it at init, stop, mailbox loss, and reset
notification. Gate queries with the existing running, reset, and mailbox
state.

Report the first 40 key bytes used by standard IPv4/IPv6 tuples, or the
shorter key length supplied by the PF. Preserve register byte order and
report the merged HENA on the direct-programming path. Translate the six
representable IPv4/IPv6 TCP/UDP selections without treating fragment
PCTYPEs as IPv6 extension-header selections. The single-queue register
path reports RSS_FUNC_NONE.

Leave RSS policy and queue distribution unchanged. Queries return ENXIO
until the current configuration is confirmed, without waiting for a PF
reply themselves.

MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59808
a0f2994b312e5a78ffce7dd7bc4521455edbc2cd Kevin Bowling 2026-10-31 23:27:44

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ice: Roll back Tx queues after scheduler setup failures
Add Tx LAN Queues commits the PQM queue and PSM leaf before returning
success.  ice_ena_vsi_txq() can subsequently fail to create the software
scheduler node or replay its saved bandwidth configuration.  Returning
at that point leaves an allocated queue that the caller does not record.
Later queue setup can fail until a function or PF reset removes it.

Issue Disable Tx LAN Queues directly from the completed Add response
before returning a post-add error.  Keep the rollback buffer on the
stack so the allocation failure being recovered cannot also prevent
cleanup.  Remove any software node and invalidate its queue context only
after firmware accepts the disable.  Preserve the queue context and any
software node when rollback fails so active hardware state is not
hidden.

This follows the Add and Disable command lifecycle documented in the
Intel E810 Datasheet, document 613875-003, section 10.5.5.8.

MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58907
a50d83ef83d716d5e5e7f727c366561dd1b79d00 Kevin Bowling 2026-10-31 23:55:31

debug: classified in 03-filenames_plain1 by 'sys/dev/'

cd9660: Fix dereferencing invalid RR outlen ptr
`ISO_RRIP_ANALYZE` is constructed in four places. Two of the
initializers set the `outlen` field while the other two,
`cd9660_rrip_analyze` and `cd9660_rrip_offset`, leave it uninitialized.

The uninitialized paths can dereference an invalid pointer on error
paths which causes a kernel panic.

To fix, I zero out `ISO_RRIP_ANALYZE` in all four places where it's
initialized and check that `outlen` is non-null on the error path
in `cd9660_rrip_loop`.

While testing the above, I encountered another kernel panic due to
mounting continuing after the error branch. Evidently, the ISO continued
mounting through the normal ISO 9660 path then triggered a panic down
the line due to a very broken file system from the ISO. To fix that, I
propagate the error from the RR path then fail in the mount path.

A previous iteration of this commit included the ISO from the PR. The
current iteration creates an ISO with makefs then corrupts it with a
small helper written in C that is a condensed version of the CD 9660
code. It checks the input ISO for a a Rock Ridge extension reference
then corrupts the length byte. This triggers the early failure in
cd9660_rrip_offset.

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296853
Signed-off-by: Josh Megnauth <jo.sh@tutanota.com>
Reviewed-by: ngie
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2462
1a4c2eedad5bd62c4ec3cdda276bf4579ecab6c6 Josh Megnauth 2026-10-05 19:40:15

debug: Commit manually moved from "unknown" to "hardware".

netmap: bdg: replace strncpy with safer strlcpy
Submitted by: Brian Poole <brian90013@gmail.com>
ce1dc2df8019733f320b7338f8cf736faf0ffa5d Vincenzo Maffione 2026-11-01 17:53:47

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ice: Restart disabled VF Tx queues from saved configuration
DPDK iavf's per-queue stop/start operations send DISABLE_QUEUES followed
by ENABLE_QUEUES without another CONFIG_VSI_QUEUES. Disabling an ice Tx
queue removes its hardware scheduler leaf, so acknowledging ENABLE alone
cannot restart it. Clearing the configured bitmap also prevents the VF
from requesting this sequence.

Track saved configuration separately from active Tx queues. Retain ring
parameters and queue handles on disable, and recreate only the selected
inactive queues on enable. Share the existing Tx context builder between
initial VSI configuration and per-queue restart. Keep the initial
Tx-at-CONFIG behavior and the existing dense-prefix CONFIG validation.

Track cleanup progress per queue and publish valid configuration only
after both Tx and Rx configuration succeed. If an enable fails, undo its
partial setup before permitting a retry. Retain hardware ownership when
cleanup fails and reject another enable of that queue rather than
silently acknowledging it. A failed post-add rollback without a software
scheduler node requires VF reset, not a successful no-op disable.

After a verified VF reset and DMA drain, remove any remaining software
scheduler leaves and invalidate the queue contexts. Treat the initial
queue disable as best effort so a failed rollback cannot permanently
prevent reset recovery. Retain unresolved state if the reset or drain
fails.

Fixes:          https://cgit.freebsd.org/src/commit/?id=bc761988b724 ("ice: Add host SR-IOV support")
MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D59851
57d8db405e68fa32b98aec803693f0f5880b9b92 Kevin Bowling 2026-11-01 00:13:34

debug: classified in 03-filenames_plain1 by 'sys/dev/'

arm64 pmap: demote L3C pages in pmap_clear_modify()
When pmap_clear_modify() demotes a dirty L2 block mapping, it write
protects the L3 entry that maps "m", so that a subsequent write access
may repromote.  However, since fd6cb031f577, the L3 entries created by
pmap_demote_l2_locked() may have ATTR_CONTIGUOUS set, and
pmap_clear_modify() was write protecting one L3 entry within an L3C page
while leaving the page's other L3 entries writeable with ATTR_CONTIGUOUS
still set.  A TLB entry that a processor creates from any of those other
L3 entries may translate "m"'s virtual address and permit writes to "m"
without a fault.  To fix this issue, as in pmap_remove_write(), demote
the L3C page before write protecting the L3 entry.

Found by:       Claude Code (Opus 5.5)
Fixes:  https://cgit.freebsd.org/src/commit/?id=fd6cb031f577 "arm64 pmap: Add ATTR_CONTIGUOUS support [Part 1]"
MFC after:      1 week
6d7960628f825f1eec0959d6000a79ca8a4ae927 Alan Cox 2026-11-01 18:25:05

debug: classified in 03-filenames_plain1 by 'sys/arm64/'

ice: Allow VSI loopback in VEB mode
The embedded switch installs local forwarding rules with loopback enabled,
but their source VSI must also permit loopback. Without that permission,
traffic between host-attached VFs can trigger Tx data MDD events instead
of reaching the destination VSI.

Set ICE_AQ_VSI_SW_FLAG_ALLOW_LB when initializing a VSI in VEB mode, matching
the forwarding rules to the VSI permission. Keep MAC anti-spoof checking
enabled.

Validated on E810 with native iavf and DPDK VFs, together with the absolute
VF number correction. Local forwarding and queue/reset recovery passed;
spoofed source MACs were still rejected and isolated.

Fixes:          https://cgit.freebsd.org/src/commit/?id=bc761988b724 ("ice: Add host SR-IOV support")
MFC after:      2 weeks
Sponsored by:   BBOX.io
9bd865a67c22aa19c99aaee58fd98c03c5ac0bab Kevin Bowling 2026-11-01 21:09:57

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ice: Use the absolute VF number when adding a VSI
The Add VSI AdminQ command requires an absolute hardware VF number, while
vsi->vf_num is relative to its PF. Add the PF's vf_base_id, as the VF Tx
queue context already does.

On an E810 PF with vf_base_id 128, relative VFs 0 and 1 were associated
with hardware VFs 0 and 1 instead of 128 and 129. Their receive queues
became blocked and both native iavf and DPDK receivers dropped traffic.
A PF whose VF base is zero hides the error.

Validated the VSI-to-function mapping and receive traffic on that PF,
including VF reset recovery and local PF/VF forwarding with VSI loopback
enabled.

Fixes:          https://cgit.freebsd.org/src/commit/?id=bc761988b724 ("ice: Add host SR-IOV support")
MFC after:      2 weeks
Sponsored by:   BBOX.io
cbaf3f1bc55524126182f63d09ed79ba8cf61cf2 Kevin Bowling 2026-11-01 21:09:57

debug: classified in 03-filenames_plain1 by 'sys/dev/'

iavf: Handle queue disable during reset recovery
Some PFs reject a redundant DISABLE_QUEUES request after queues have
already stopped. The historical driver retried the request but
continued. The mailbox recovery change instead treated this NACK as a
transport failure, tore down the Admin Queue without a VF reset, and
could not recover the interface during API rediscovery.

Track a PF's pre-reset warning separately from an observed reset and
from exclusive ownership of polled AdminQ replies. RESET_IMPENDING
leaves asynchronous AdminQ processing available so a concurrent stop
can consume its DISABLE_QUEUES reply. VC_POLLING protects VERSION and
GET_VF_RESOURCES rediscovery without blocking that reply. Record
completed resets so subsequent stop/init operations do not issue a
redundant queue-disable request.

If queue disable is not confirmed, wait for an observed reset or request
a VF reset and wait for completion. Give queue shutdown a separate
60-second monotonic deadline to accommodate slow PF reset recovery.
Propagate reset submission failures and restore the previous RSTAT
value when no request was submitted. Clear the attach-time recovery
marker before the first runtime stop/init cycle, and suppress RSS
status reporting during reset recovery.

This implements the native recovery portion of D58904, with PCI
containment and permanent failure handling deferred. If native shutdown
cannot be confirmed, report the failure and leave recovery pending.
Shutdown remains best effort because IFDI_STOP cannot return an error
to prevent iflib from releasing queue resources.

Matched hardware testing against the parent on E810 with two four-queue
VFs covers 18 TCP smoke runs, 40 down/up cycles, three PF resets, and
three CORE resets per kernel. The change eliminates all 12 observed
"PF mailbox rediscovery failed: 60" messages and reduces the longest
UDP delivery gap per CORE reset from 3.43-3.57 seconds to 2.62-2.67
seconds.

MFC after:      2 weeks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58904
845f9747380a0db4d8a174794a5e199e80de81c0 Kevin Bowling 2026-11-02 00:39:27

debug: classified in 03-filenames_plain1 by 'sys/dev/'

usb: Add SSP and SSPx2 speed and move USB_*_MAX into enum
Add the USB 3.1 and 3.2 speeds and revisions.  The speeds are in USB
3.2 rank order, so they can be compared directly.

Also, move USB_*_MAX into the enums.

Reviewed by:    bz
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57194
6e575d08a5f5030562593bba5b47cc176d0b9bb7 ShengYi Hung 2026-05-22 15:32:25

debug: classified in 03-filenames_plain1 by 'sys/dev/'

usbdump: Support SSP and SSPx2 speed display
Add the SuperSpeedPlus speed names.

Reviewed by:    bz
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57197
65346af4961e248b59385a871ae36a223a1171d4 ShengYi Hung 2026-05-22 15:41:31

debug: classified in 03-filenames_plain1 by 'usr.sbin/usbdump/'

Commit group #9: usb
usb: support SSP/SSPx2 devices in all-speed consumers

Handle the new speeds wherever USB_SPEED_SUPER was checked.  Most
consumers treat them as SS.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57198
85c3bd4595ba3d213ef570a51b517d82cd481d0a ShengYi Hung 2026-05-22 15:48:49

debug: classified in 03-filenames_plain1 by 'sys/dev/'


usb: Add usbd_bos_foreach helper

Iterate the capabilities of a BOS descriptor.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57199
ab18352d8f9dd26d94da1165259460ead44a9e4c ShengYi Hung 2026-05-22 16:18:57

debug: classified in 03-filenames_plain1 by 'sys/dev/'


usb: Add extended port status struct

Extended Port Status reports the speed and lane count of SS and SSP
links.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57200
1fe552b036a52e13cb26c32265c418f355300360 ShengYi Hung 2026-05-22 16:31:20

debug: classified in 03-filenames_plain1 by 'sys/dev/'


usb: Add get_ext_port_status helper function

usbd_req_get_ext_port_status() wraps the Get Extended Port Status
request.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57201
1928debe1a47e3a7411a1c09e46ea910f73950d2 ShengYi Hung 2026-05-22 16:23:07

debug: classified in 03-filenames_plain1 by 'sys/dev/'


usb: Implement usbd_req_get_bos_descriptor helper

Get the header or the complete BOS descriptor of SS+ devices.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57202
2f79adc28976870f4f5ad3a2ce61f2f8da0eb131 ShengYi Hung 2026-05-22 16:21:06

debug: classified in 03-filenames_plain1 by 'sys/dev/'


usb: Add SSPlus device capability descriptor

Add the SuperSpeedPlus USB Device Capability descriptor and its field
macros.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57203
23ef0bdb48f3f9065769404c77c17f10b9a14576 ShengYi Hung 2026-05-22 16:29:40

debug: classified in 03-filenames_plain1 by 'sys/dev/'


usb: Add support for SSP and SSPx2 hubs

An SSP hub reports its sublink speeds in the BOS descriptor, and
Extended Port Status tells which one each port uses.  Read it based on
bcdUSB, since the ports of a hub can be faster than its upstream link.
Without it, the ports are treated as SuperSpeed.

Read the speed again in usbd_req_re_enumerate(), since a link can come
back at another speed.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57204
fb470e8f1c58f4fcdeb163d118fb1d6526da325d ShengYi Hung 2026-05-23 07:00:45

debug: classified in 03-filenames_plain1 by 'sys/dev/'


usb: support SSP and SSPx2 xHCI

Only the default PSI IDs are supported, other controllers fall back to
USB 3.0.  Record the speed IDs the controller has: the root hub BOS
lists those, and a link without one uses the closest lower ID.

Per xHCI 6.2.2, take the parent hub slot ID and port number of SS and
SSP devices from the closest higher-rank hub.

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52347
20b19982545eb96160a20d0224f4b074f5fcb9af ShengYi Hung 2025-09-01 14:54:11

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ice(4): Do not leave device non-functional if Tx scheduler config fails
The ice_cfg_tx_topo function attempts to apply Tx scheduler topology
configuration based on NVM parameters, selecting either a 5 or 9 layer
topology. As part of this flow, the driver acquires the "Global Configuration Lock",
which is a hardware resource associated with programming the DDP package
to the device. This "lock" is implemented by firmware as a way to
guarantee that only one PF can program the DDP for a device. Unlike a
traditional lock, once a PF has acquired this lock, no other PF will be
able to acquire it again (including that PF) until a CORER of the device.
However, if configuration of the Tx topology fails, (i.e.
ice_get_set_tx_topo returns an error code), the driver exits
ice_cfg_tx_topo() immediately, and fails to trigger CORER.
While the global configuration lock is held, the firmware rejects most
AdminQ commands, as it is waiting for the DDP package download (or Tx
scheduler topology programming) to occur.
Refactor ice_cfg_tx_topo() to always trigger a CORER after acquiring the
global lock, regardless of success or failure of the topology
configuration.
We need to re-initialize the HW structure when we trigger the CORER.
Previously, this was the responsibility of the core driver to cleanup after
the CORER. Instead, make it the responsibility of this function. This
avoids needless re-initialization for the cases where no reset occurred.

Authored-by:    Jacob Keller <jacob.e.keller@intel.com>
Co-Authored-by: Pawel Sobczyk <pawel.sobczyk@intel.com>
Signed-off-by: Sobczyk, Pawel <pawel.sobczyk@intel.com>

Reviewed by:    kbowling
Tested by:      Mateusz Moga <mateusz.moga@intel.com>
MFC after:      3 days
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D60168
013f1779f63413173535ab770abb70715e92bee6 Sobczyk, Pawel 2026-11-02 07:31:05

debug: classified in 03-filenames_plain1 by 'sys/dev/'

if_bnxt: size MRAV from the AV split entry for backing store V2
On RoCE-capable Thor2, attach fails with
HWRM_FUNC_BACKING_STORE_CFG_V2 returning INVALID_PARAMS, as MRAV is
sized the pre-V2 way and the firmware's AV split value is sent as is.

Size MRAV from the AV split entry, and move the legacy entry-count
packing into bnxt_hwrm_func_backing_store_cfg().

Fixes: https://cgit.freebsd.org/src/commit/?id=d5ce906da7c5 ("bnxt_en: Add backing store V2 support")
Reviewed by:    gallatin
Sponsored by:   Broadcom Inc
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D60976
aca2e5fae3d9c3350b47ee3e7d00937a73dba9a9 Sumit Saxena 2026-10-22 10:48:42

debug: classified in 03-filenames_plain1 by 'sys/dev/'

if_bnxt: skip HW kTLS on old firmware and add a tunable to disable it
Older Thor2 firmware serves key context allocation requests very
slowly, about a second each. The driver allocates key contexts in
batches of 128, so setting up 500k sessions takes roughly 3900
requests and driver load appears to hang.

Enable hardware kTLS only when the firmware's HWRM interface version
is 1.10.3.99 or newer. Keep the full four-part version in
hwrm_spec_code_ext for the comparison.

Also add a disable_hw_ktls loader tunable that turns hardware kTLS off
for a device without unloading kTLS support, which helps isolate kTLS
problems in the field.

Reviewed by:    gallatin
Sponsored by:   Broadcom Inc
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D60977
cfbf11308b586d559f7d4ce39edefe1a0c3b3742 Sumit Saxena 2026-10-24 07:22:55

debug: classified in 03-filenames_plain1 by 'sys/dev/'

sdhci_pci: Add Intel Sunrise Point-LP SDXC controller
Co-authored-by:       Michael Osipov <michaelo@FreeBSD.org>
PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300175
Reviewed by:    imp
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D60973
584f44221f45c5c26ec2a2888a3815c6f34bfad0 Anna Fireshevsky 2026-10-28 22:58:24

debug: classified in 03-filenames_plain1 by 'sys/dev/'

ix(4): Support Total Port Shutdown on E610
Firmware controls the physical link state on E610 adapters, similarly to
X700 and E800 adapters. As a result, running "ifconfig down" does not
disable the physical link unless Total Port Shutdown is enabled.

Read the Link Default Override TLV from NVM to detect when Total
Port Shutdown was enabled for given port in system setup. In that
case, force the link down when the interface is stopped and restore
it during link configuration. Leave link state management unchanged
when the TLV is unavailable or the feature is not enabled.

Co-authored-by: Miłosz Linkiewicz <milosz.linkiewicz@intel.com>
Co-authored-by: Tomasz Lichwala <tomasz.lichwala@intel.com>
Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>

Tested by:      Mateusz Moga <mateusz.moga@intel.com>
MFC after:      1 week
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D60643
7868958f5c79eb986d067e02ca8239aa7491dfac Krzysztof Galazka 2026-11-02 11:17:08

debug: classified in 03-filenames_plain1 by 'sys/dev/'

riscv intc: convert to a bus.
Convert the RISC-V Interrupt Controller (INTC) device to a bus;
try to find and attach Incoming Message Signalling Interrupt Controller
(IMSIC) device.

This allows to establish parent-child relationships between two and
to propagate PIC_INIT_SECONDARY call from the INTC (parent) to the
IMSIC (child).

Reviewed by:    mhorne, mmel
Sponsored by:   EPSRC ("UKRI3001: CHERI Research Centre")
Differential Revision:  https://reviews.freebsd.org/D59813
24558f289dd3b0a2a2372123186455e449d60abf Ruslan Bukin 2026-11-02 11:31:38

debug: classified in 03-filenames_plain1 by 'sys/riscv/'

riscv: Incoming MSI Controller support.
Support for Incoming Message Signalling Interrupt Controller (IMSIC)
defined by the RISC-V Advanced Interrupt Architecture (AIA) specification.

This is based on early work of Himanshu Chauhan on IMSIC support for
IPI delivery. This change, however, does not include IPI delivery support,
instead it provides MSI support for peripheral devices.

IMSIC is a core-local interrupt controller with non-global interrupts,
which means that interrupt identity is effectively (hart, interrupt ID).

When IMSIC present on hart, APLIC does not trap the CPU directly,
instead it delivers the interrupt to the IMSIC instance associated with
the target hart. Upon reception of interrupt, IMSIC on hart invokes APLIC
for handling. Note that PCIe devices deliver interrupt directly to IMSIC.

Apart from IMSIC support, this includes APLIC changes:
- Obtain the interrupt trigger type from FDT and configure the interrupt
  accordingly (e.g. level or edge-triggered);
- Per the AIA requirement, level-triggered MSI interrupts must be
  retriggered manually after being handled. See the comment in
  aplic_post_ithread();
- Reorganize APLIC register definitions to have some structure.

Reviewed by:    mhorne
Sponsored by:   EPSRC ("UKRI3001: CHERI Research Centre")
Differential Revision:  https://reviews.freebsd.org/D59695
48ac4113c88fddcea619d0bf252b87c62132f214 Ruslan Bukin 2026-11-02 11:43:07

debug: classified in 03-filenames_plain1 by 'sys/riscv/'

snd_hdspe: Serialize rate and latency updates
Protect running-state checks and register updates with the softc lock.

Drop the lock around sndbuf_resize(), which may sleep, and recheck the
running state after reacquiring it.  Keep the resize ahead of the latency
register update so that a failed resize leaves the hardware unchanged.

Reviewed by:    br
MFC after:      3 days
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58371
d1dcb2b117a3c128c8e8eda047f93739f06d6099 Kevin Bowling 2026-07-21 03:33:08

debug: classified in 03-filenames_plain1 by 'sys/dev/'

snd_hdsp: Serialize rate and latency updates
Protect running-state checks and register updates with the softc lock.
Keep the pointer reset and the HDSP 9632 frequency rewrite in the same
critical section as the latency update.

Drop the lock around sndbuf_resize(), which may sleep, and recheck the
running state after reacquiring it.  Preserve resize error handling so
that a failed resize leaves the hardware unchanged.

This mirrors the locking in snd_hdspe.

MFC after:      3 days
Sponsored by:   BBOX.io
a25ad366d51d52ef30b8bc4e2a7dd377255a409b Kevin Bowling 2026-11-02 15:54:35

debug: classified in 03-filenames_plain1 by 'sys/dev/'

snd_hdspe: Use busdma for DMA buffers
Program DMA pages from busdma segments and synchronize buffer ownership.
Unwind partially allocated resources on failure.

Reviewed by:    br
MFC after:      3 days
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58372
46b338381400cb8106d6d2af945e7950553c16f4 Kevin Bowling 2026-07-21 03:36:02

debug: classified in 03-filenames_plain1 by 'sys/dev/'

snd_hdsp: Use busdma for DMA buffers
Program DMA buffer registers with the bus addresses returned by busdma.
Require one full-size contiguous DMA segment per direction and validate
its alignment and 32-bit address range.

Synchronize buffer ownership around playback, capture, clearing, and
teardown.  Disable channels before clearing their DMA buffers, and unwind
partially allocated resources on failure.

This mirrors snd_hdspe's DMA handling, adapted to HDSP's single base
address per direction.

MFC after:      3 days
Sponsored by:   BBOX.io
5355c97e129a004f013570be0b7a99c8610e1757 Kevin Bowling 2026-11-02 16:09:33

debug: classified in 03-filenames_plain1 by 'sys/dev/'

snd_hdspe: Use saved resource IDs on detach
Release resources with the IDs used to allocate them.
Rename irqid to rid to reflect that it stores a resource ID.

Reviewed by:    br
MFC after:      3 days
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D58373
d33ab9dae2f5f5421e4cb5a141751924e35eeb2d Kevin Bowling 2026-07-21 03:36:41

debug: classified in 03-filenames_plain1 by 'sys/dev/'

snd_hdsp: Use saved resource IDs on detach
Release resources with the IDs used to allocate them.
Rename irqid to rid to reflect that it stores a resource ID.

This mirrors the corresponding snd_hdspe change.

MFC after:      3 days
Sponsored by:   BBOX.io
96e2a9a40a05716a444dc217629374c387efd159 Kevin Bowling 2026-11-02 16:17:00

debug: classified in 03-filenames_plain1 by 'sys/dev/'

vmm: Add a bulk TMR reset hook for Intel APICv
vioapic_update_tmr() resets all 256 vectors before rebuilding the
level-triggered vector set. With Intel virtual interrupt delivery,
each per-vector reset loads the VMCS, reads and writes an EOI-exit
bitmap, and clears the VMCS.

Add an optional bulk-reset hook so VMX can clear the four EOI-exit
bitmaps with one VMCS load/clear pair. Clear the software TMR banks
directly when using the hook, and retain the per-vector fallback
for backends without it.

Reviewed by:    markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60692
ee9205f068c7675cf4d23e51cc98238d95ba1950 Hayzam Sherif 2026-11-02 16:21:18

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

vmm: Skip TMR rebuilds for edge-to-edge IOAPIC writes
IOAPIC redirection-table writes rendezvous all active vCPUs to
rebuild their vlapic trigger-mode registers when fields other than
mask or polarity change. Retargeting an edge-triggered pin incurs
this cost even though it does not contribute to the TMR.

vioapic_update_tmr() rebuilds the TMR from level-triggered entries
only. Skip the rendezvous when the modified entry is edge-triggered
both before and after the write. Check the old and new trigger modes
so that edge-to-level and level-to-edge transitions still rebuild
the TMR. Retain the existing all-vCPU rebuild path, mask/polarity
exclusions and remote-IRR handling.

Reported by:    Wanpeng Qian <wanpengqian@gmail.com>
Reviewed by:    Wanpeng Qian <wanpengqian@gmail.com>, markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60721
0340fb03288166091a8cdf694f5fed20e4c4f9ac Hayzam Sherif 2026-11-02 16:21:36

debug: classified in 03-filenames_plain1 by 'sys/amd64/'

igc: Count packets dropped for want of a receive descriptor
When a receive ring is full the hardware drops the packet and counts it
in RQDPC, a per-queue register the driver never read. Such drops were
invisible: MPC counts packet buffer overflows, not descriptor
exhaustion, so an overloaded queue lost packets with nothing to show for
it. With several receive queues this is the common overload signature,
since RSS loads the queues unevenly and one saturated queue drops while
the others idle.

Read RQDPC for each queue with the other statistics and account the
drops per queue as dev.igc.N.queue_rx_M.rx_drops and in total as the
interface's input queue drop counter (netstat -d, Idrop), as ixgbe does
with QPRDC. Write the register back to zero after reading; the I210
documents it as read/write rather than read-to-clear.

Reviewed by:            kbowling
MFC after:              2 weeks
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D61004
5d9f99143690dcd18e326937769f03514eee2652 R. Christian McDonald 2026-11-02 17:10:17

debug: classified in 03-filenames_plain1 by 'sys/dev/'

Revert "ena: Reinit RSS components during queue count change flow"
This reverts commit 2a27dd0076c5.

Changing the IO queue count destroys the RSS table, and if this is done
while the device is down a new table is not rebuilt until the next
ena_up(). That leaves 2 problems in the meantime:
1. A stale copy of the destroyed table is still returned via sysctl.
2. Reading the destroyed key, or writing the table, panics.

That commit addressed 1 by creating a new RSS table, so that sysctl
returns a fresh default table with the new number of queues. It did not
set out to fix 2, but the rebuild hid it by accident.

The rebuilt table is the default round-robin one, wired to no queues and
unusable: a write still fails, because programming the device needs the
IO queues that only exist after ena_up(). ena_up() builds that same
table anyway.

Rebuilding also programs the device while no IO queues exist. When the
queue count grows this fails with EINVAL; when it shrinks it succeeds
and points the device at completion queues that ena_down() destroyed.

The following commit addresses both issues properly.

Reviewed by: cperciva
MFC after: 3 days
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D61056
ccceb1729a6bd82b8b293bc5ea61b863179a268e Arthur Kiyanovski 2026-10-30 01:38:44

debug: classified in 03-filenames_plain1 by 'sys/dev/'

Commit group #10: ena
ena: Fix RSS sysctl panic when the RSS table is destroyed

ena_set_io_queue_count() destroys the ena-com RSS state but left
ENA_FLAG_RSS_ACTIVE set. The RSS sysctl handlers gate on that flag, so
they ran against state that was gone.

This causes 2 types of issues:
1. Kernel panic when reading dev.ena.0.rss.key or writing to
   dev.ena.0.rss.indir_table
2. Returning a stale cached RSS table when reading
   dev.ena.0.rss.indir_table, or a bogus 1 when reading
   dev.ena.0.rss.indir_table_size

ena_set_io_queue_count() is called in 2 cases:
1. The io_queues_nb sysctl.
2. Device restore when the device comes back with fewer MSI-X vectors
   than before.

Clear ENA_FLAG_RSS_ACTIVE when the RSS table is destroyed. The handlers
then fail with ENOTSUP until the next ena_up() rebuilds RSS.
This both fixes the panics, and stops returning cached and bogus values.

Note: A plain ifconfig down does not destroy the table, so the sysctls
keep working across a down/up cycle.

Reviewed by: cperciva
Fixes: https://cgit.freebsd.org/src/commit/?id=56d41ad5fe9c ("Add sysctl node for ENA IO queues number adjustment")
Fixes: https://cgit.freebsd.org/src/commit/?id=2d4d2ed3fef6 ("ena: Reinit RSS table on device restore when queue count shrinks")
MFC after: 3 days
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D61057
eb65bcbf6cb5b8ace59504ea721ff1802e912296 Arthur Kiyanovski 2026-10-30 01:38:44

debug: classified in 03-filenames_plain1 by 'sys/dev/'


ena: Set ENA_FLAG_RSS_ACTIVE only when RSS is really configured

If the device does not report support for the RSS indirection table,
ena_rss_init_default() destroys the RSS state and returns EOPNOTSUPP.
ena_rss_configure() treats EOPNOTSUPP as success and returns 0, and
ena_up_complete() sets ENA_FLAG_RSS_ACTIVE on any 0 return.
Reading dev.ena.N.rss.key at this point causes kernel panic.

Every current device reports the indirection table, so reaching this
needs a device that is broken or misreporting.

The SYSINIT removed by a6205766b300 called ena_rss_init_default()
directly, saw the EOPNOTSUPP and cleared the flag. Routing the decision
through ena_rss_configure(), which hides EOPNOTSUPP, lost that.

Move the flag set into ena_rss_configure(), which can see whether a
table exists, and clear it when tbl_log_size is 0.

Reviewed by: cperciva
Fixes: https://cgit.freebsd.org/src/commit/?id=a6205766b300 ("ena: Fix RSS not working after driver reload")
MFC after: 3 days
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D61058
8aea6556529159d133aba66f25a2ec26aa47dc4c Arthur Kiyanovski 2026-10-30 01:38:44

debug: classified in 03-filenames_plain1 by 'sys/dev/'


ena: Update driver version to v2.8.6

Bug Fixes:
* Revert "Reinit RSS components during queue count change flow"
* Fix RSS sysctl panic when the RSS table is destroyed
* Set ENA_FLAG_RSS_ACTIVE only when RSS is really configured

Reviewed by: cperciva
MFC after: 3 days
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D61059
6c177745c58e526bcf7451ad2765df6c63f35f97 Arthur Kiyanovski 2026-10-30 08:23:00

debug: classified in 03-filenames_plain1 by 'sys/dev/'

Networking

Network-related commands, library, and kernel.

sctp: improve handling of SO_SETFIB socket option
Since SCTP keeps fibnum in the SCTP protocol control block,
the code can't just defer the processing to the IPv4 or IPv6
layer. Therefore it needs to be implemented in the the SCTP
layer and it needs to call the socket layer function.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300091
Reviewed by:    tuexen
Fixes:          https://cgit.freebsd.org/src/commit/?id=caccbaef8e26 ("socket: Move SO_SETFIB handling to protocol layers")
MFC after:      3 days
MFC to:         stable/14
MFC to:         stable/15
7b8151b0cd1b4f077b382b6be2c02c936d1988fa Albin Hellqvist 2026-10-26 19:07:03

debug: classified in 03-filenames_plain1 by 'sys/netinet/'

ipfw: declare the ipfw_nat module
The module declaration is necessary for 'kldstat -m' to see it,
and the rc(8) uses that to detect presence of ipfw_nat.

NB: the module(9) KPI lacks a way to declare a module without
providing an empty handler and no SYSINITs.

Reported by:    ambrisko
Fixes:          https://cgit.freebsd.org/src/commit/?id=9bcc1e97dda8e926483b81874884211bbe4f36e9
f2d4370fbbe6a24b663a4151e3a462e8e2c306c6 Gleb Smirnoff 2026-10-27 20:53:26

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

ipfw: fix off-by-one error in bdel()
After deleting an item from a sorted array, bdel() moves the tail
following it, but the size of the data to move was calculated with
an off-by-one error, causing memmove() to read one element past the
end of the array. This can happen when the table is full for ifidx
or numarray algorithms.

Obtained from:  Yandex LLC
MFC after:      1 week
Sponsored by:   Yandex LLC
c6b08de0e4c797929f4609d86395d494ac695c68 Andrey V. Elsukov 2026-10-28 11:13:53

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

pf: Clear only the part of the packet descriptor that is read first
pf_init_pdesc() cleared the whole structure, 336 bytes on amd64, for
every packet and twice for a forwarded one.  kif, m, pf_mtag, act and
the SCTP job list are set before they are read, so move them to the end
and clear only the 240 bytes before them.  On amd64 that also stays
below the 256 bytes from which memset() switches to rep stosb.

Reviewed by:            kp
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D60948
11080181491144b9cad726bb6e84d87fa05a681e R. Christian McDonald 2026-10-28 16:00:03

debug: classified in 03-filenames_plain1 by '['sys/net/', 'sys/netpfil/']'

pf: Store the rounded source node hash size
hashalloc(9) rounds the requested size down to a power of two and writes
the result back, but pf_initialize() stored it into the mask, which the
next line overwrites from the unrounded size.  With a
net.pf.source_nodes_hashsize that is not a power of two the mask is
larger than the table: pf_hashsrc() returns rows past its end, the row
walkers in pf_purge_expired_src_nodes() and the ioctl handlers run past
it, and pf_cleanup() frees it with the wrong size.  The key and UDP
endpoint hashes already take the rounded size.

Reviewed by:            glebius, kp
Fixes:                  https://cgit.freebsd.org/src/commit/?id=cd5ff4e841fb ("pf: use hashalloc(9) for key, id, src-node and udp-endpoint hashes")
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D60949
06f98c554fbe1fa9a678aacbcf1bc25bda0aef91 R. Christian McDonald 2026-10-28 16:10:17

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

ipfw: declare the ipfw_nat64 module
The module declaration is necessary for 'kldstat -m' to see it,
and the rc(8) uses that to detect presence of ipfw_nat.

Submitted by:   markj's Post-Commit LLM Review Service
Fixes:          https://cgit.freebsd.org/src/commit/?id=9bcc1e97dda8e926483b81874884211bbe4f36e9
930be41aa75705673659ea92faaf24f75c629a33 Gleb Smirnoff 2026-10-28 16:55:01

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

pf: Free the stack key when attaching it collides
pf_state_key_attach() attaches the wire key first and then the stack
key, setting sks to NULL before the second pass.  When the stack key
collides with an existing state, the error path removes the wire key
again but then frees sks, which is NULL by then: the stack key leaks.

pfsync hits this.  A peer that gets a plain state in a bulk update
before a redirected state whose stack key is the plain state's key
fails to import the redirected state, leaks its stack key, and leaks
another one with every later update of that state.

Free sk, the key of the pass that collided (skw on the wire pass), and
add a test.

Reviewed by:            kp
Fixes:                  https://cgit.freebsd.org/src/commit/?id=371bd29d4b22 ("pf: fix potential state key leak")
MFC after:              1 week
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D60951
389ae8e4fabeaf1c655f8116b1a1402e597fa515 R. Christian McDonald 2026-10-28 16:55:07

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

Commit group #11: pf
pf: convert DIOCXBEGIN, DIOCXROLLBACK, DIOCXCOMMIT to netlink

Sponsored by:   Rubicon Communications, LLC ("Netgate")
a7aad5bbcdf7f82b4db8557adfa1a0267d43d06a Kristof Provost 2026-10-20 07:34:39

debug: classified in 05-summary-prefix by 'pf:'


pf: have DIOCXBEGIN/DIOCXROLLBACK/DIOCXCOMMIT use the new functions

The netlink begin/rollback/commit code has separate functions for this.
Deduplicate the code and just use those functions.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
2636cc0414fdd2cf69759d8c56e1e82782aef7b0 Kristof Provost 2026-10-27 13:37:45

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'


pf: remove armv7-specific counter code

The armv7 specific counter code is less useful now that armv7 is
basically end-of-life.

This removes a lot of armv7-specific code.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
9e7d55570f6993ba4092ce7919a0a731c7f8e734 Kristof Provost 2026-10-23 11:50:35

debug: classified in 03-filenames_plain1 by '['sys/net/', 'sys/netpfil/']'


pf: fix pf_krule_item memory leak during counters:match_fail

If pf_counters_inc() did not increment the counters because the rule
failed to apply it potentially failed to free match rules (which were
not bound to a state already).

Do so.

While here explicitly hand match_rules over from the pf_test_ctx to the
state so we never list them in two places.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
2e9ac12e97939d536c02877a41807dee05717ea5 Kristof Provost 2026-10-28 10:35:57

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'


pf: fix DIOCXBEING/DIOCXROLLBACK/DIOCXCOMMIT error handling

 - ensure the anchor name is always 0-terminated
   strlcpy() won't overflow, but will walk off the end of the provided
   buffer looking for a 0.
 - don't overwrite the pf_begin()/... return value with the copyout()
   return value
 - stop on the first copyout() error

Fixes:  https://cgit.freebsd.org/src/commit/?id=2636cc0414fd (pf: have DIOCXBEGIN/DIOCXROLLBACK/DIOCXCOMMIT use the new functions, 2026-10-27)
Reported by:    markj's Post-Commit LLM Review Service
Sponsored by:   Rubicon Communications, LLC ("Netgate")
73bd8d4bf618a5d6f4a2aa7f5237af3a5d8c1ebc Kristof Provost 2026-11-02 10:19:31

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

netlink_snl: make snl_free() safe to call twice
snl_init() calls snl_free() on its own failure paths but leaves the
state marked initialised and the buffer pointers set, so a caller that
also frees the state on failure, as libpfctl's pfctl_open() does, closes
the descriptor twice and, on the lb_init() failure path, frees the
buffer twice. Reset what snl_free() releases so a second call is a
no-op.

Signed-off-by:  Avinash Duduskar <avinash.duduskar@gmail.com>
Reviewed by:    kp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2508
489ded6d5231f44e02988e8c47969a9e6a1e07b7 Avinash Duduskar 2026-10-28 10:22:14

debug: classified in 03-filenames_plain1 by 'sys/netlink/'

netlink_snl: add snl_init_fd() to adopt an already open socket
snl_init() always creates its own socket. Split out snl_init_fd(), which
initialises the state on a descriptor the caller already holds, and make
snl_init() open the socket and hand it over. The state owns the
descriptor either way, including when initialisation fails, and
snl_free() closes it; snl_clone() remains the way to borrow one.

pfctl(8) needs this to run on a socket inherited from authpf(8).

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291981
Signed-off-by:  Avinash Duduskar <avinash.duduskar@gmail.com>
Reviewed by:    kp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2508
e4c78de63e584617663a965fad2a4ce55f3d715a Avinash Duduskar 2026-10-26 14:38:10

debug: classified in 03-filenames_plain1 by 'sys/netlink/'

Commit group #12: pfsync: avoid underflow on different timeouts
pfsync: avoid underflow on different timeouts

If two pfsync hosts have different timeout values set it's possible for
an underflow to occor when importing a state. If the destination host
has a shorter timeout set than the exporting host it's possible for the
state to be older than the importing host's timeout value, which results
in an underflow and a state with an unreasonable expiry time.

Check for this, and avoid the underflow. While here also account for the
timeout being longer than our uptime.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D60950
78b620b781b0cdc85378e439ad2974e6aae771ff Kristof Provost 2026-10-21 15:18:59

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'


pfsync: improve underflow check

We checked the state's expiry time to make sure it was large enough to
not underflow if we subtracted the already expired time from the remote
end, but we failed to account for the state's expiry time being in
miliseconds and the pfsync time delta being in seconds.

Take that multiplication by 1000 into account.

Fixes:  https://cgit.freebsd.org/src/commit/?id=78b620b781b0 (pfsync: avoid underflow on different timeouts, 2026-10-21)
Reported by:    markj's Post-Commit LLM Review Service
Sponsored by:   Rubicon Communications, LLC ("Netgate")
d8b2c298a117416a57cad176718b87eb504bfb49 Kristof Provost 2026-11-02 09:50:30

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

Commit group #13: pfsync: improve handling of large packets
pfsync: improve handling of large packets

On setups with pfsync over large MTUs (> 2K) we could fail to parse
packets because m_pulldown() fails on packets larger than MCLBYTES.
Instead use m_copydata() to copy out the individual chunks we're
interested in.

This should also fix the flaky pfsync:bulk test case. Depending on the
hash seed states would or would not end up synced.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297307
Sponsored by:   Rubicon Communications, LLC ("Netgate")
c6a520af95b206d6e6a603e95314398d31f57def Kristof Provost 2026-10-30 09:48:26

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'


if_pfsync: add missing unlock

Fixes:  https://cgit.freebsd.org/src/commit/?id=c6a520af95b2 (pfsync: improve handling of large packets, 2026-10-30)
Reported by:    markj's Post-Commit LLM Review Service
Sponsored by:   Rubicon Communications, LLC ("Netgate")
04b6d3e0be8cf1ef6e105c2c33992f891152e95b Kristof Provost 2026-11-02 10:07:56

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'


if_pfsync: fix mbuf leaks on errors

Some of the pfsync input handlers freed the mbuf on errors, others did
not. Unify this by having the caller free the mbuf on error.

Fixes:  https://cgit.freebsd.org/src/commit/?id=c6a520af95b2 (pfsync: improve handling of large packets, 2026-10-30)
Reported by:    markj's Post-Commit LLM Review Service
Sponsored by:   Rubicon Communications, LLC ("Netgate")
240a76704b49b6c67104c5027ddf4d4cf18abfe5 Kristof Provost 2026-11-02 10:09:13

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

netinet6: Set PFIL_FWD in ip6_tryforward()
ip6_forward() has run the outbound hooks with pfil_mbuf_fwd() since
b52b61c0b6b1, and ip_tryforward() since 1f4c3887e3fa, but
ip6_tryforward() still calls pfil_mbuf_out().  pf therefore handles a
packet on the IPv6 fast path as locally generated: it skips the
packet-too-big error it sends with the untranslated addresses, and
pf_refragment6() sends reassembled packets out through ip6_output()
instead of ip6_forward(), so their fragments leave with the hop limit
not decremented.

Use pfil_mbuf_fwd() in ip6_tryforward() as well.  The new
fragmentation_pass:v6_refrag_hlim test sends a packet that pf
reassembles and refragments through the fast path, and checks that its
fragments leave with the hop limit decremented once; before this change
they leave with it unchanged.

Reviewed by:            kp
Fixes:                  https://cgit.freebsd.org/src/commit/?id=b52b61c0 ("pf: distinguish forwarding and output cases for ...")
MFC after:              1 week
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D61033
8c73c0f1230dde0a65474b1ae9a94f27f6568bda R. Christian McDonald 2026-10-30 17:31:37

debug: classified in 03-filenames_plain1 by 'sys/netinet6/'

netinet6: Check the hop limit after pfil in ip6_tryforward()
ip6_tryforward() sends time exceeded for an expiring packet before the
inbound pfil hooks have seen it, whereas ip_tryforward() and
ip6_forward(), which ip6_input() calls after the hooks, check it
afterwards.  On the fast path the router therefore answers packets the
firewall blocks inbound, and pf never handles the expiry itself: a
nat64 (af-to) packet with hop limit 1 gets a time exceeded error from
the router, which a "block" ruleset then drops on the way out, instead
of the one pf_translate_af() sends with the untranslated addresses.

Check the hop limit after the inbound hooks.

Reviewed by:            kp
Fixes:                  https://cgit.freebsd.org/src/commit/?id=5a1842a2 ("Add ip6_tryforward() - a run to completion ...")
MFC after:              1 week
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D61034
cb007621bc729c346e59b3e5e7e4234f5578d3a0 R. Christian McDonald 2026-10-30 17:32:37

debug: classified in 03-filenames_plain1 by 'sys/netinet6/'

pkt-gen: fix UDP checksum when IPv6 address ranges are used
update_ip6() left the UDP checksum stale for most packets. Unlike
update_ip(), it computed the incremental checksum delta only after the
source-address wrap, so every earlier "break" (port increment, address
increment, and both random paths) returned with udp_sum still 0 and no
correction applied. The trailing delta block also re-read oaddr/naddr
after they had been reassigned, so the source and destination deltas
could not both be accounted for.

Fold each delta in with new_udp_sum() before the corresponding break,
mirroring the structure update_ip() already uses, and drop the stale
trailing block. IPv4 was not affected.

Verified by driving update_addresses() directly and recomputing every
checksum from scratch over the real pseudo-header: 128 packets across
six range configurations, 12 mismatches before, 0 after. IPv4 passes
both before and after.

Submitted by:   Olivier Cochard-Labbé <olivier@cochard.me>
0a12444b2989c38a5d2e358e0f9ef01c665cc268 Vincenzo Maffione 2026-11-01 18:06:13

debug: Commit manually moved from "unknown" to "network".

pf: don't leak transaction elements on error
If nlmsg_reply() or nlmsg_end() in pf_handle_trans() failed we did not
call pf_trans_free(), leaking the pf_trans_e elements in it.

Reported by:    markj's Post-Commit LLM Review Service
Sponsored by:   Rubicon Communications, LLC ("Netgate")
af531324973021c5dc2cec47d0ef346666a4a551 Kristof Provost 2026-11-02 09:42:04

debug: classified in 03-filenames_plain1 by 'sys/netpfil/'

lacp: fix lacp for interfaces with unknown media
Fall back to if_baudrate if ifmedia_baudrate() returns 0 in
lacp_aggregator_bandwidth().

When lacp_aggregator_bandwidth() returns 0, lacp will
never come up, due to aggregator selection starting with a 0.
This is why its important for interfaces with unknown media
(meaning  ifmedia_baudrate() returns 0) to fall back to
using if_baudrate in order to avoid this state.

Differential Revision: https://reviews.freebsd.org/D61084
Reviewed by: kbowling
Sponsored by: Netflix
0b420c655f816a31165c457b9462183b25eaecf2 Andrew Gallatin 2026-11-02 15:53:34

debug: classified in 03-filenames_plain1 by 'sys/net/'

if_media: Add 400G FR4 media types
400GBase-FR4 is yet another 400G optical standard

Differential Revision: https://reviews.freebsd.org/D61135
Reviewed by: kbowling
Sponsored by: Netflix
0e44056f19ab339fe7e37c03e49cf50b33bf1d6b Andrew Gallatin 2026-11-02 16:34:30

debug: classified in 03-filenames_plain1 by 'sys/net/'

netinet6: Use memcpy/memset/memcmp for consistency
Convert the remaining bzero()/bcopy()/bcmp() calls in the neighbor
discovery handlers to memset()/memcpy()/memcmp().

No functional change intended.

Reviewed by:    glebius, pouria
Sponsored by:   VersatusHPC
Differential Revision:  https://reviews.freebsd.org/D58177
ede77280787a10462cb9e26b4b4e38fd0825ef53 Vinícius Ferrão 2026-11-02 20:27:54

debug: classified in 03-filenames_plain1 by 'sys/netinet6/'

udp6: make udp6_ctlinput() same as IPv4 version
Processing an incoming ICMPv6 we need to find just the matching inpcb and
call udp_notify() on it.

The call to in6_pcbnotify() at the first glance seems like a notifying
sweep across the entire database, but it is not. It finds just the
matching inpcb, but does that in the most inefficient way!  The added test
case proves that ICMPv6 processing stays the same before and after the
change.  This weird use of in6_pcbnotify() can be tracked down all the way
to the initial KAME code.

Reviewed by:            tuexen, gallatin
Differential Revision:  https://reviews.freebsd.org/D60967
a08dc822f4943f2cea509cd0ba1f11a89ec9e82d Gleb Smirnoff 2026-11-02 21:42:15

debug: classified in 03-filenames_plain1 by 'sys/netinet6/'

System administration

Stuff in man section 8 (other than networking).

All Jetway NF541 seem to have the same UUID
dca2ad4c6fa64a091a2447b88258a8e2a5e5bf55 Poul-Henning Kamp 2026-10-28 08:31:23

debug: classified in 03-filenames_plain1 by 'libexec/'

Mark network_interfaces as deprecated
c9dbbe382d0802acdaac9fcffd3d518965af659f Poul-Henning Kamp 2026-10-28 09:36:10

debug: classified in 03-filenames_plain1 by 'libexec/'

sbin/nvmecontrol: fix signedness comparison warning
sector_size is guaranteed to be non-zero here, so cast to
uint32_t to match the comparison.

This fixes the [gcc14 build in CI][0]:

/workspace/src/sbin/nvmecontrol/format.c: In function 'find_lbaf':
/workspace/src/sbin/nvmecontrol/format.c:132:60: error: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare]
  132 |                 if (NVMEV(NVME_NS_DATA_LBAF_LBADS, format) != lbads ||
      |                                                            ^~

[0] https://ci.freebsd.org/job/FreeBSD-main-amd64-gcc14_build/5051/

Reviewed by:    imp
Fixes:          https://cgit.freebsd.org/src/commit/?id=b991e2dd824c ("nvmecontrol: support controller-wide sector sizes")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
25024d96492e51c250789d16de5064d4c00c7a86 Siva Mahadevan 2026-10-27 20:51:39

debug: classified in 03-filenames_plain1 by 'sbin/'

Commit group #14: rtld
rtld: extract donelist heap allocation into donelist_alloc()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
53cbd14ea7ca78c140ee90c1e459589bb574d938 Konstantin Belousov 2026-10-25 17:57:39

debug: classified in 03-filenames_plain1 by 'libexec/'


rtld: add RtldLockState initializer

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
500924a6b16d61070f16fb8de49afc0b796d1170 Konstantin Belousov 2026-10-29 13:50:22

debug: classified in 03-filenames_plain1 by 'libexec/'


rtld: add lockstate_rlocked()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
87a7419c63756580278fcbdebdbca8b16f3bdd24 Konstantin Belousov 2026-10-25 17:57:40

debug: classified in 03-filenames_plain1 by 'libexec/'


rtld: free heap donelists abandoned by the lookup restart

A symbol lookup done under the read-locked rtld_bind_lock is restarted
with the write lock when it needs to load filtees.  The restart is done
by siglongjmp() from lock_restart_for_upgrade(), which skips
donelist_free() for the heap donelists of the unwound frames.  Only
do_dlsym() freed one such donelist, tracked by SymLook.donelist_mem.
The donelist of symlook_default() called from _rtld_bind(), the
donelist of get_program_var_addr() called for dlopen(RTLD_TRACE), and
the donelists of nested symlook_obj_load_filtees() calls were leaked.

Link the heap donelists allocated under the read lock into the list
owned by RtldLockState, which also owns the sigjmp_buf, instead of the
symlook request.

Fixes:  https://cgit.freebsd.org/src/commit/?id=1e370f038778 ("rtld: stop using unbound alloca()")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
ed059dbfe2ef85ea79c5bc2834e75b2a33bb8a61 Konstantin Belousov 2026-10-25 17:57:40

debug: classified in 03-filenames_plain1 by 'libexec/'

pfctl: add -l to use an inherited Netlink socket
pf's Netlink commands are checked against the credentials of the socket,
so a socket opened by a privileged process keeps its authority across a
privilege drop and exec, as the /dev/pf descriptor passed as -p
/dev/fd/N already does. -l takes the descriptor number of such a socket
and uses it for every request instead of creating a new one.

authpf(8) uses this to run pfctl as the logged-in user.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291981
Signed-off-by:  Avinash Duduskar <avinash.duduskar@gmail.com>
Reviewed by:    kp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2508
87a5d76973ca8eec3e112d4c8bf89933b813fe96 Avinash Duduskar 2026-10-26 14:38:11

debug: classified in 03-filenames_plain1 by 'sbin/'

rpc.tlsservd.c: Check the malloc return
The NULL return is used by the following memcpy()
call.  Fail the request instead.

Unlikely to happen in practice, since the rpc.tlsservd
daemon runs as root and does not allocate a lot or memory.

Reviewed by:    rmacklem
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60927
6d705f2bf17f2c221ffd0d9b0824ba0fb429392e Osvaldo Janeri Filho 2026-10-31 03:04:10

debug: classified in 04-filenames_plain2 by 'usr.sbin/'

usbconfig: Add SSPx2 support
libusb has one speed for all SSP links, so print "SUPER+ (>=10Gbps)".

Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57196
2802f8d4a0c23ccc99af9a6648d009ac3b7de7be ShengYi Hung 2026-05-22 15:40:32

debug: classified in 04-filenames_plain2 by 'usr.sbin/'

hastd: Remove pidfile on exit
Make hastd remove its pidfile before exit after catching a signal or a
stop control message, not just on failure to start.

MFC after:      1 week
Reviewed by:    ngie
Differential Revision:  https://reviews.freebsd.org/D60192
3f2f6bb8f7b562276bffd04a9ae4c05a351b4435 Dag-Erling Smørgrav 2026-11-02 12:30:42

debug: classified in 03-filenames_plain1 by 'sbin/'

pfctl: err(3) family functions should not be used with trailing \n
Obtained from:        OpenBSD, deraadt <deraadt@openbsd.org>, 3c04d8eee2
Sponsored by:   Rubicon Communications, LLC ("Netgate")
e4a2b19aa961eca9775c5fde6512619d3141b1c6 Kristof Provost 2026-11-02 10:32:14

debug: classified in 03-filenames_plain1 by 'sbin/'

Libraries

libarchive: merge from vendor branch
libarchive 3.8.10

ChangeLog:
https://github.com/libarchive/libarchive/compare/v3.8.9...v3.8.10

Obtained from:  libarchive
Vendor commit:  0c48412be2d94afe1859a807ea7896a18d8900bd
MFC after:      3 days
61c70dc16a79efcb9db732d37706cd311f555d9a Martin Matuska 2026-10-26 21:47:32

debug: classified in 05-summary-prefix by 'lib.*:'

libthr/thr_mutex.c: make mutex asserts more useful
Print the file and line number of the caller where the assert fired.
Use _thread_exitf() directly for this.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
4ab9e73994e673e518d1b0631f8ce7d1faec6d80 Konstantin Belousov 2026-10-27 13:05:59

debug: classified in 04-filenames_plain2 by 'lib/'

libarchive: update config_freebsd.h
Fixes: use of external filter programs, tests
MFC after: together with 61c70dc16
d48b93e5e97593b3052684abf3e043a3a1c7822f Martin Matuska 2026-10-29 09:19:19

debug: classified in 04-filenames_plain2 by 'lib/'

libc: Fix stack buffer overflow in cgetnext()
`cgetnext()` copies a capability record's name field into a fixed
1024 byte on-stack buffer (`nbuf[BSIZE]`) one character at a time,
but never checks that the write pointer stays within the buffer.
Therefore, a record name that is longer than `BSIZE` (either on a
single line, or accumulated across several `\`-continued lines as
the pointer is not reset amidst continuation) writes past the end
of `nbuf` and smashes the stack.

The name field is read directly from the capability file, so any
consumer of `cgetnext()`/`cgetfirst()` that processes an untrusted
`termcap(5)`- or `printcap(5)`-style database (e.g. `cap_mkdb(1)`,
`lpr(1)`, or any third-party caller) can be exposed and hence made
to corrupt the stack.

Reviewed by:    fuz, dteske
Approved by:    fuz (mentor), dteske (mentor)
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2309
13bcc9a882603da216c7c38c086fcb501bd9d0ec Faraz Vahedi 2026-07-05 15:03:31

debug: classified in 04-filenames_plain2 by 'lib/'

libthr: Deduplicate some rwlock code
1. abstime calculation
2. rdlock flags judgement

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D60958
8e3a6d7f5aaf64c98fcd8896858492dc6b5b7fdb ShengYi Hung 2026-10-21 06:14:25

debug: classified in 04-filenames_plain2 by 'lib/'

Commit group #15: libthr: Robust tryjoin test
libthr: Robust tryjoin test

We cannot actually rely on a status (finish) before thr_exit. The
thread needs the kernel signal status=1 to userspace. Before that,
any tryjoin fails. The previous one works as we sleep 1 and should be
enough for normal case.

Reviewed by:    kib, markj
MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D60832
56a490f9c5e64f2ee346fc93332c7ab78f9237c4 ShengYi Hung 2026-10-18 02:15:18

debug: classified in 04-filenames_plain2 by 'lib/'


libthr: Add missing include header

Fixes:          https://cgit.freebsd.org/src/commit/?id=56a490f9c5e6 ("libthr: Robust tryjoin test")
MFC after:      2 weeks
6a65632e1a6aeb4277769ae7cc38c076fb1a5146 ShengYi Hung 2026-10-29 19:14:50

debug: classified in 04-filenames_plain2 by 'lib/'

libc: provide the declaration for __libsys_errno in libc_private.h
Reviewed by:  aokblast, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60838
7f309ac03989032903cce945a743a6046e496b10 Konstantin Belousov 2026-10-19 22:18:24

debug: classified in 04-filenames_plain2 by 'lib/'

libthr: fix the race between pthread_getname_np() and thread exit
The exiting thread frees the thread name in exit_thread() without
holding the thread lock.  This makes it possible for a thread doing
pthread_getname_np() to observe the non-null thread->name and try to
copy its content, accessing the memory after free.

Set the thread->name to NULL under the thread lock.  Note that other
thread might still set the exiting thread name, until the PS_DEAD state
is assigned.  Since code should not call free() after
_malloc_thread_cleanup(), re-check thread->name in _thr_free().

Reviewed by:    aokblast, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60838
49e0c6270c73f1570efc67028004db9da56da2d1 Konstantin Belousov 2026-10-19 21:59:52

debug: classified in 04-filenames_plain2 by 'lib/'

libthr: pthread_query_np(3) and pthread_query_all_np(3)
Reviewed by:  aokblast, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60838
588bd8bb6c1331dad1bbe1cf222db970f6476c44 Konstantin Belousov 2026-10-18 09:46:56

debug: classified in 05-summary-prefix by 'lib.*:'

libthr: test pthread_query_np(3) and pthread_query_all_np(3)
Reviewed by:  markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60838
9bd30915963157d975969649f8b3143408ecdf3c Konstantin Belousov 2026-10-22 21:28:43

debug: classified in 04-filenames_plain2 by 'lib/'

libpfctl: add pfctl_open_from_nl_fd() and pfctl_nl_fd()
pfctl_open_from_nl_fd() opens the pf device as pfctl_open() does but,
when given a descriptor, adopts it as the Netlink socket instead of
creating one. The handle's sequence numbers start at a random value:
replies are matched by sequence number, so a random start makes it
improbable that a reply an earlier owner of the socket left unread is
taken for the answer to one of ours, or one of ours for theirs, however
many times the socket has been handed on. pfctl_open() becomes a
wrapper that passes -1.

pfctl_nl_fd() returns the handle's Netlink descriptor, as pfctl_fd()
does for the device, so a caller can hand it to a child process.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291981
Signed-off-by:  Avinash Duduskar <avinash.duduskar@gmail.com>
Reviewed by:    kp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2508
727e413ff3f18af8788ea78043b506e0111bfadc Avinash Duduskar 2026-10-26 14:38:10

debug: classified in 04-filenames_plain2 by 'lib/'

msun: fix behaviour of nextafter*() and nexttoward*() for MAX value
For an edge case at an extreme, e.g., nextafter(-DBL_MAX,-INFINITY)
do not return x+x.  Instead, evaluate x+x and assign it to a volatile
to raise an exception, and then fall through to return the correct
result in current rounding mode.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299389
MFC after:      6 days (for inclusion into releng/15.2)
1fb5d8265bc4bbbf1f5bc79cc1d2a7f280b446b2 Steve Kargl 2026-10-31 10:18:06

debug: classified in 04-filenames_plain2 by 'lib/'

libusb: Add SSP and SSPx2 enum support
Report the new kernel speeds as LIBUSB20_SPEED_SUPER_PLUS.

Reviewed by:    bz
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57195
1a382091363f6549d329c4de263d9f7618616c14 ShengYi Hung 2026-05-22 15:37:22

debug: classified in 04-filenames_plain2 by 'lib/'

libfetch: Use C locale for dates
MFC after:    1 week
PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299084
Reviewed by:    arrowd, kevans
Differential Revision:  https://reviews.freebsd.org/D60901
581d5098ec2c9738db8a98bb1ef3c36ca33033b9 Dag-Erling Smørgrav 2026-11-02 12:27:46

debug: classified in 04-filenames_plain2 by 'lib/'

libfetch: Apply timeout to SSL handshake
When the SSL handshake cannot proceed because the server is slow to
respond, poll() with a timeout instead of spinning.

MFC after:      1 week
PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298962
Event:          Oslo Hackathon 2026
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D60975
d6678851308d3cec767f07b0712a429cdc5895de Dag-Erling Smørgrav 2026-11-02 12:27:53

debug: classified in 04-filenames_plain2 by 'lib/'

Filesystems

nfsserver: use the destination export for the COPY/CLONE write check
The write-permission check on the destination file in
nfsrvd_copy_file_range() and nfsrvd_clone() tested
NFSVNO_EXSTRICTACCESS() on the source export instead of the destination
export.

Rick notes:
    The change is harmless and mostly meaningless.
    NFSVNO_EXSTRICTACCESS() is a placeholder for some site that might
    not want to let the file "owner" get access despite mode bits.

    The "owner override" is a hack that has existed forever in NFS,
    since applications often create files with O_WRONLY, but mode 444.
    This works for POSIX, but would make NFS writes fail, since they
    check mode on every write, instead of just at POSIX open(). The hack
    is to always allow the file owner to have write access.

    Without the hack, lots of applications would break over NFS, so I
    doubt anyone would enable NFSVNO_EXSTRICTACCESS().
    { No one has ever even wanted an export flag for it. }

Reviewed by:    rmacklem, markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60952
d5c2465af8434d3eb7551d12220b4a24e7dca8af Osvaldo Janeri Filho 2026-10-29 20:25:01

debug: classified in 03-filenames_plain1 by 'sys/fs/'

nfs_clrpcops.c: Get rid of bogus rpc_free_rdma_reduction() calls
The calls to rpc_free_rdma_reduction() were cruft left over from
a previous variant of the NFS over RDMA client code.  They resulted
in double free's of the reduction mbuf.

This patch gets rid of them and makes sure that reduction is only
done when an array of pages is provided, so that no anonymous pages
will be allocated.

The reduction mbuf is free'd with the rest of the argument mbuf list
in the client side krpc.

Suggested by:   ferrao@versatushpc.com.br
MFC after:      1 month
Fixes:  https://cgit.freebsd.org/src/commit/?id=884ee8d6c9b4 ("nfscl: Add some glue for client side NFS over RDMA")
fec497b89b1aa8cd73c457158ed975d368e75e86 Rick Macklem 2026-10-31 20:42:24

debug: classified in 03-filenames_plain1 by 'sys/fs/'

nfs_clrpcops.c: Fix an mbuf leak introduced by fec497b89b1a
The calls to rpc_free_rdma_reduction() were removed, but I forgot
that newnfs_request() removes the reduction mbuf from the list
upon success, so it has to be free'd separately.
This patch does that.

The patch also disables reduction after the first loop interation.
This is necessary until nfsm_build_rdma_reduction() is patched
to handle an offset within the page array.

Reported by:    markj
MFC after:      1 month
Fixes:  https://cgit.freebsd.org/src/commit/?id=884ee8d6c9b4 ("nfscl: Add some glue for client side NFS over RDMA")
63302e904a52a30692659a9144825b657269aa4c Rick Macklem 2026-11-01 03:47:34

debug: classified in 03-filenames_plain1 by 'sys/fs/'

nfsd: Fix handling of RPC messages too large to cache
The NFSv4.1/4.2 session negotiates a limit to the size
of an RPC reply message that can be cached for the session
slot.

This patch fixes the code so that it checks that limit and
does not cache replies larger than the limit, even if the
client requested that it be cached.

This patch is slightly different than what the author
submitted, but retains the check for reply cache size limit.

Reviewed by:    rmacklem
MFC after:      1 month
64857418bb2379a7d89b6af04cddf92fa48dd28c Acts1631 2026-11-01 23:27:55

debug: classified in 03-filenames_plain1 by 'sys/fs/'

nfscl: Do not delay recovery for a stale ClientID
When a CREATE_SESSION with the extant ClientID failed with
NFS4ERR_STALE_CLIENTID within nfsc_renew of the previous full recovery,
nfsrpc_setclient() returned EIO and the mount did no I/O until that window
expired (about 45s).
The server has discarded the ClientID, so waiting cannot help; RFC 8881
Section 8.4.2 requires a new ClientID (EXCHANGE_ID) and a state reclaim.

AWS EFS discards both the session and the ClientID of clients whose lease is
current whenever it resets a connection, which makes this path common there.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299221
Approved by:    rmacklem@
Sponsored by:   Netflix
7a0021a0988fa39faee847953dd8df6bc9ff56b9 Olivier Cochard 2026-11-01 23:24:45

debug: classified in 03-filenames_plain1 by 'sys/fs/'

tarfs: Limit file name length
When indexing the tarball on mount, fail if a file or directory name
exceeds MAXNAMLEN.

Reported by:    n0ps1ed
Reported by:    Franz Bettag <franz@bett.ag>
MFC after:      1 week
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D60903
a38033234692e9dab6f3f4404adc693fccabc14a Dag-Erling Smørgrav 2026-11-02 12:29:17

debug: classified in 03-filenames_plain1 by 'sys/fs/'

tarfs: Fix length calculation for file read
When the offset is within a block rather than at its beginning, the
length should be clamped to the remaining length of the block, not its
total length.

Reported by:    n0ps1ed
MFC after:      1 week
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D60904
18bce6e65cdf059618ff12ace82a9f7334e1b610 Dag-Erling Smørgrav 2026-11-02 12:29:25

debug: classified in 03-filenames_plain1 by 'sys/fs/'

nfs_nfsdstate.c: Partial revert of 64857418bb23
Dropping the cached reply that is too large causes
a correctness problem that is too difficult to fix,
so revert this and leave it the way it was.

Although there is an argument that not doing could
cause resource exhaustion, it has not been reported
in the field as a problem.

MFC after:      1 month
bc7366a340edb366c37352c636b8360de92aa3a2 Rick Macklem 2026-11-02 15:00:40

debug: classified in 03-filenames_plain1 by 'sys/fs/'

Kernel

Kernel stuff (other than networking, filesystems, and drivers).

Commit group #16: rtwn: add support for the RTL8188FTV USB chipset
rtwn: add support for the RTL8188FTV USB chipset

Add support for the RTL8188FTV chipset to rtwn(4)/rtwn_usb(4).

Differential Revision: https://reviews.freebsd.org/D60875
2c38dc04d6f8bc84620bb3b67c8ccd9f910c4d03 Mir Saheb Ali 2026-10-19 19:10:27

debug: classified in 04-filenames_plain2 by 'sys/'


rtwn: fix 8188f channel offset / width programming

* rtwn_chan2centieee() already calculates the proper centre
  frequency, so it doesn't need to be further offset.
* Don't program R92C_RF_CHNLBW with further 20MHz wide bits;
  the rest of the programming works correctly for 20/40MHz
  operation.

Tested:

* Verified against the linux rtl8xxxu/8188f.c code.
* Tested w/ 20 and 40MHz 11n; 40MHz is now operating at higher
  speed.

Fixes: https://cgit.freebsd.org/src/commit/?id=2c38dc04d6f8bc84620bb3b67c8ccd9f910c4d03
66ecb413fe7061d7d515e0199dc6c06cef37ac9e Mir Saheb Ali 2026-10-29 01:18:30

debug: classified in 03-filenames_plain1 by 'sys/dev/'

debug: moved to kernel because 'Need to be grouped with 2c38dc04d6f8bc84620bb3b67c8ccd9f910c4d03'

vm_glue: Use the right type for size arguments to {user,kern}acc()
MFC after:    1 week
Sponsored by:   The FreeBSD Foundation
c525db0c44b7db430b67fdd276f0a22c2f8e9f61 Mark Johnston 2026-10-27 16:47:36

debug: classified in 04-filenames_plain2 by 'sys/'

malloc: Fix realloc() for large allocations
min() truncates its parameters.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
ca16e7a4920415bf9d09cf76bd2c3cda7447c098 Mark Johnston 2026-10-22 16:41:04

debug: classified in 04-filenames_plain2 by 'sys/'

linux: Preserve partial results from recvmmsg()
linux_recvmmsg_common() currently returns the error from the next
recvmsg() attempt even when one or more datagrams have already been
received and copied to userspace.

This is especially visible with non-blocking UDP sockets.  After
receiving the first datagram, the next iteration commonly returns
EAGAIN.  The syscall then reports EAGAIN instead of the number of
messages already stored in the mmsghdr array, causing applications to
discard successfully received packets.

This differs from Linux recvmmsg() semantics, where an error encountered
after receiving at least one message is deferred and the number of
received messages is returned.

Return the accumulated datagram count and clear the error whenever at
least one message was received.  Preserve the original error when no
messages were received.

This fixes packet loss in applications such as wireguard-go, whose
non-blocking receive path uses recvmmsg() for batches of UDP packets.
In the observed failure, WireGuard handshake responses reached the UDP
socket, but a subsequent EAGAIN caused recvmmsg() to hide the received
response and the handshake timed out.

Reviewed by:            kib
Pull Request:           https://github.com/freebsd/freebsd-src/pull/2484
Differential Revision:  https://reviews.freebsd.org/D60961
afeb885b4ae41357a648f547d3835a5e0dcde81e Vladimir Grebenshchikov 2026-10-21 22:14:33

debug: classified in 04-filenames_plain2 by 'sys/'

amd64 FRED: fix dtrace fbt
- jump to dtrace_invop_jump_addr on kernel #BP
- use ERETS instead of IRETQ when done

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
cf4ff7bd369e42fb0a1c6f5cf2dc4fa7a990158e Konstantin Belousov 2026-10-29 03:34:45

debug: classified in 04-filenames_plain2 by 'sys/'

vm_kern: wrap around in kmem_back() when the last domain is empty
kmem_back() picks the domain from the address and, when that domain has
no memory, steps forward until it finds one that does:

domain = (addr >> KVA_QUANTUM_SHIFT) % vm_ndomains;
while (VM_DOMAIN_EMPTY(domain))
        domain++;

Nothing stops the walk at vm_ndomains.  When the empty domain is the
last one, the loop runs through the unused tail of vm_dom[] (all empty)
and on into whatever follows vm_dom[MAXMEMDOM] in memory, until a word
there happens to look like a non-zero page count; kmem_back_domain()
then allocates from that garbage domain.  Ordinary allocations never
get here, because the per-domain arenas and the domainset iterators
skip empty domains.  Only the direct callers of kmem_back() do: kinst
(one trampoline per thread, allocated when the module loads) and
memguard.

Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>

Reviewed by:    kib, markj
Sponsored by:   keelos.dev
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60935
710a12b355fd985eec0f2a85626480c636f5468b Wanpeng Qian 2026-10-29 17:27:04

debug: classified in 04-filenames_plain2 by 'sys/'

mbuf: Match TCP RSS hash types exactly
RSS hash types are encoded values, not independent flags.  The bitmask
check in M_HASHTYPE_ISHASH_TCP() also accepts UDP, address-only and opaque
hash types, causing the syncache to retain them instead of falling back
to a software TCP hash.

Compare against the three TCP four-tuple hash types after masking the
inner-header flag.  Keep the existing macro interface and use an inline
helper to preserve single evaluation of its argument.

Add ATF coverage for all 256 hash-type byte values, including inner-header
hashes, and verify single evaluation of the mbuf argument.

Reviewed by:    cc, gallatin
Fixes:  https://cgit.freebsd.org/src/commit/?id=a485399f8834 ("tcp: restrict flowtype copying to specific RSS TCP types")
Sponsored by:   BBOX.io
b06db8c9dafb1734923e0483323920b4b0a05cc9 Kevin Bowling 2026-10-29 07:15:14

debug: classified in 04-filenames_plain2 by 'sys/'

mmccam: Add a helper to change the host settings
The same five lines to build and send an XPT_SET_TRAN_SETTINGS request to the
controller were repeated for the bus timing, bus width, VCCQ and clock
changes.  Add sdda_set_host_ios() and use it at those places.

No functional change.

Reviewed by:    bz
Differential Revision:  https://reviews.freebsd.org/D60921
2a6580e15b62da11dbe728c6c4f512c15283cd49 Emmanuel Vadot 2026-10-20 17:41:01

debug: classified in 04-filenames_plain2 by 'sys/'

fdcopy(): properly update fd_freefile when skipping non-copyable fd
fd_freefile is maintained to fulfill the POSIX guarantee that the lowest
possible file descriptor is allocated on open.  If we skip copying an
fd, it is a possible candidate for the lowest index.

First, the file descriptor installed with a kqueue created
without KQUEUE_CPONFORK missed this handling [*].

Second, fd_freefile should be updated only when the current fd index is
below it.  A skipped fd above fd_freefile could raise it past a free slot.

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300234 [*]
Reported by:    Andrea Venturoli <freebsd@netfence.it>
Reviewed by:    markj
Fixes:  https://cgit.freebsd.org/src/commit/?id=1265516c5c61 ("struct file: add DFLAG_FORK, indicate copying on fork")
Fixes:  https://cgit.freebsd.org/src/commit/?id=809f3121be66 ("fd: assign fd_freefile early when copying")
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61054
99a58803f9a306253df36c82f11991bc1e36e5a5 Konstantin Belousov 2026-10-30 16:02:34

debug: classified in 04-filenames_plain2 by 'sys/'

jailmeta: reject empty keys in metadata lookups
Reject empty keys in metadata lookups with EINVAL to prevent an infinite
loop while holding allprison_lock and pr_mtx. Add tests for empty-key
reads and writes with empty and populated meta/env buffers, trailing
newlines, and empty final values.

Reviewed by:    igoro, jamie
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D61025
d1a465f02b14c9eed8a87c31092bb9251dc053c1 Yura Tkachenko 2026-10-30 20:20:24

debug: classified in 04-filenames_plain2 by 'sys/'

kern: Remove unreachable compat_freebsd8 FEATURE
COMPAT_FREEBSD8 does not exist as a kernel option, so this is dead code.

No functional change intended.

Fixes:          https://cgit.freebsd.org/src/commit/?id=e256f71389fb ("kernel: add missed FEATUREs compat_freebsd 8-14")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Reviewed by:    kib
Pull-Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/80
9da2c05a748fd17757638e1a9e78215cdb8b80d0 Christos Margiolis 2026-10-27 10:49:46

debug: classified in 04-filenames_plain2 by 'sys/'

vfs: Avoid integer overflow when faulting
In vn_io_fault1(), the read / write length can easily exceed INT_MAX.
Passing it directly to uiomove(), which expects an int, results in a
negative uio_resid, which to the caller looks like we read more than
was requested.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298159
MFC after:      1 week
Reviewed by:    olce, kib
Differential Revision:  https://reviews.freebsd.org/D59412
b487aca48535e5f04e4913447fcbe33f1bf56c68 Dag-Erling Smørgrav 2026-11-01 20:09:50

debug: classified in 04-filenames_plain2 by 'sys/'

ktls: Check the record type message holds its byte
sosend_generic() read the TLS record type past a TLS_SET_RECORD_TYPE
control message holding only a cmsghdr, and sent that stale byte.

Approved by:    markj
Fixes:          https://cgit.freebsd.org/src/commit/?id=b2e60773c6b0 ("Add kernel-side support for in-kernel TLS.")
Sponsored by:   Netflix
bd4975e5fb051c2b2e8d5218940b7e8ef87b5bdf Olivier Cochard 2026-10-16 16:43:30

debug: classified in 04-filenames_plain2 by 'sys/'

jail: return a new descriptor from jail_get(JAIL_USE_DESC | JAIL_GET_DESC)
Prior to this change, `jail_get` when called with `JAIL_USE|JAIL_GET_DESC`
would fail to return a valid descriptor in the positive case because the
`JAIL_USE_DESC` block jumped to `found_prison` before the descriptor was
allocated. This resulted in the returned jail descriptor always being -1,
despite the call being successful.

This change fixes the logic so `jfd_out` is properly initialized in the
aforementioned scenario.

MFC after: 3 days

Reviewed by:    jamie, ngie, adrian
Differential Revision:  https://reviews.freebsd.org/D60984
b3b50cbd4647bb095e0cb5b72e933bc3036e412d Abdelkader Boudih 2026-11-02 20:09:55

debug: classified in 04-filenames_plain2 by 'sys/'

Build system

tests/sys/vfs: use LIBADD for libutil, don't clobber LDFLAGS
"LDFLAGS= -lutil" dropped LDFLAGS from make.conf for every test in the
directory.

Approved by:    glebius
Fixes:          https://cgit.freebsd.org/src/commit/?id=c3ac06161dd5 ("nmount: Introduce the "check_fsid" option")
Sponsored by:   Netflix
1e86bf6009e5b244170064ff0cb1ae48d8cda50a Olivier Cochard 2026-10-28 05:32:56

debug: classified in 02-filenames_wildcards by '.*Makefile'

Commit group #17: Makefile.inc1: Make sure mandoc bootstrap tool depends on libz
Makefile.inc1: Make sure mandoc bootstrap tool depends on libz

It links against both libopenbsd and libz, so reflect this in the
bootstrap tool's dependencies in case of races from highly-parallel
builds.

Reported by:    jkh
MFC after:      1 week
1dbcc7ee92c427480802cd1a40e1a1e3395d9bac Jessica Clarke 2026-10-29 00:45:01

debug: classified in 02-filenames_wildcards by '.*Makefile'


Makefile.inc1: Make bootstrap mandoc's bootstrap libz dependency conditional

We bootstrap libz unconditionally on macOS and Linux, and conditionally
on FreeBSD if pre-1600029 or DISK_IMAGE_TOOLS_BOOTSTRAP is enabled, but
if building on new enough -CURRENT without DISK_IMAGE_TOOLS_BOOTSTRAP
then libz is not bootstrapped and so this libz dependency does not
exist. Add the dependency whenever we are bootstrapping libz but not
otherwise, and do so without duplicating the condition.

Fixes:          https://cgit.freebsd.org/src/commit/?id=1dbcc7ee92c4 ("Makefile.inc1: Make sure mandoc bootstrap tool depends on libz")
MFC after:      1 week
983cb64c05fabe2b83338d4c2087a9114ed27a1c Jessica Clarke 2026-10-29 12:29:54

debug: classified in 02-filenames_wildcards by '.*Makefile'

atf: refer to `common.mk` using `SRCTOP`
This helps make the dependent Makefile (and the values contained within)
easier to catch when upgrading atf in the future.

MFC after:      1 week
36c4912749ab1d12692302386050e25ce8b1d9de Enji Cooper 2026-10-29 17:54:21

debug: classified in 02-filenames_wildcards by '.*Makefile'

[tests] switch GoogleTest tests to `googletest` interface
The new `googletest` kyua test interface--added in 0.15.0 and fixed in
0.15.1--allows tests to be executed and handled in a more fine-grained
manner than the way it was prior to this commit.

This change deletes the `capsicum-test` ATF wrapper script,
`functional.sh`, and all supporting logic in `googletest.test.mk` as
well as this change makes that logic unnecessary.

MFC after:      1 month
MFC with:       b68969979d6b ("contrib/kyua: update to 0.15.1")
3fb03fb35b20d259e0a3a07fc48f2ecc3c5da6e8 Enji Cooper 2026-10-07 18:53:15

debug: classified in 03-filenames_plain1 by 'share/mk/'

GoogleTest: run several tests as plain C++ tests
Some of the tests provided by GoogleTest don't play well with the kyua
GoogleTest engine available in 0.15.0, in part because they test
edgecases that the kyua GoogleTest engine does not expect or handle
gracefully.

Treat the tests as plain C++ tests to keep parity (result-wise) before
switching the testcase type from `plain` (what it is today under the
covers) to `googletest`.

MFC after:      1 month
MFC with:       3fb03fb35b20 ("[tests] switch GoogleTest tests to ...")
eecc84de3572d1ee6caac1fa14dd3140c9601c9c Enji Cooper 2026-10-09 21:33:50

debug: classified in 02-filenames_wildcards by '.*Makefile'

man3: document pthread_query_np(3) and pthread_query_all_np(3)
Reviewed by:  aokblast, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60838
7e904a6ef80321ad6ebd192126e05f8b714dce46 Konstantin Belousov 2026-10-19 20:43:55

debug: classified in 02-filenames_wildcards by '.*Makefile'

man: Add new smp_rendezvous.9
Event:                        Oslo Hackaton 2026
Differential Revision:  https://reviews.freebsd.org/D61040
622bf596b71826d2e10788c81be624cec4d641fb Federico Angelilli 2026-10-30 16:28:30

debug: classified in 02-filenames_wildcards by '.*Makefile'

atf, lutok, kyua: compile with CXXSTD=gnu++20
All three of the test infrastructure components require at least C++20
in order to build. Make that version the default to better match what
is required in recent versions of the projects.

MFC after:      1 week
0e58fb271c6e1cbd4b2ae5d33da181b7e7c2f0d5 Enji Cooper 2026-10-31 20:13:06

debug: Commit manually moved from "unknown" to "build".

release: Expose PORTSDIR to VM image building
Differential Revision:        https://reviews.freebsd.org/D60943
2265b5484597821c8da3b651b7b6e7a00e36ee19 Colin Percival 2026-10-19 01:06:17

debug: classified in 02-filenames_wildcards by '.*Makefile'

GCE: Copy /usr/{src,ports} directly
Distribution sets are going away, so we can't extract those into GCE
images for all-source-code-included compliance purposes.

Differential Revision:  https://reviews.freebsd.org/D60944
2650d01ba0c388fb1fe77ce2a7d40faf8f76a0b7 Colin Percival 2026-10-19 01:14:57

debug: classified in 02-filenames_wildcards by '['.*Makefile', 'release/.*']'

release: No distribution sets by default
Remove the "NODISTSETS" option and add a "DISTSETS" option.  This
option will remain, disabled by default, for the duration of the
16.x branch but will be removed in 17.0.

With hat:       re
Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D60945
7b67aa67a71b02afe46d77199dac90d08ea5be41 Colin Percival 2026-10-18 17:46:40

debug: classified in 02-filenames_wildcards by '.*Makefile'

pkg: Enable FreeBSD-base by default
Enable the FreeBSD-base repository in all of the /etc/pkg/FreeBSD.conf
variants, and remove code from various install paths which enabled the
repository via /usr/local/etc/pkg/repos/FreeBSD.conf.

Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D60946
b66922687718be12f8953c6de17f46de3e54a74d Colin Percival 2026-10-18 18:18:59

debug: Commit manually moved from "unknown" to "build".

__FreeBSD_version: Bump for USB 3.1 and 3.2 changes
Bump new USB changes. Also, update RELNOTE and UPDATING.

Sponsored by:   The FreeBSD Foundation
5cc08734add2c758b225a190a562101ac1878437 ShengYi Hung 2026-11-02 03:52:04

debug: Commit manually moved from "unknown" to "build".

Internal organizational stuff

git-arc: add initial non-FreeBSD and `$HOME` install support
Modify the existing code to permit setting a prefix via the `PREFIX`
make variable, similar to what `--prefix` provides in autotools-based
projects.

Add the required compatibility glue in order to function with vanilla
bmake, which enables installing the commands with Linux and macOS:
- vanilla bmake requires `scripts.mk` to install `SCRIPTS`.
- vanilla bmake does not tack `/man` on to the end of `MANDIR`, like
  with FreeBSD.

While here, make the origins for various packages more generic, and
encourage end-users to install the package via the package/port instead
of installing it directly from source.

NOTE:
- regarding Linux support: this should now function out of the box with
  Linux as long as the host has access to an appropriate `arc` binary.
- regarding macOS support: the arcanist/phorge packages do not yet
  exist in Homebrew or [MacPorts][1], but are being added soon.

MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60995

[1]: https://github.com/macports/macports-ports/pull/36217
0729ab54ee8350533f319dd3a2bad25becab5bd5 Enji Cooper 2026-10-29 23:42:56

debug: classified in 03-filenames_plain1 by 'tools/tools/git/'

Testing

sound tests: Check the return value of close(2)
While here, remove two munmap(2) calls on mappings the tests require to
have failed, since they are practically dead.

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60800
eb36c35ccf83ea94d46a3bcb282c01ceeaeb3bab Christos Margiolis 2026-10-27 11:27:32

debug: classified in 02b-filenames_wildcards2 by 'tests\/.*'

tests/pf/igmp: fix attribute error with newer versions of scapy
This fixes the flaky testcase in CI[0].

While here:
* fix a typo in a comment
* remove an unnecessary import
* fix this deprecation warning:

  /usr/local/lib/python3.12/site-packages/scapy/contrib/igmp.py:12:
  DeprecationWarning: scapy.contrib.igmp is deprecated. Please use
  scapy.layers.igmp instead !

[0] https://ci.freebsd.org/job/FreeBSD-main-amd64-test/29813/testReport/junit/sys.netpfil.pf.igmp/py/TestIGMP__test_ip_opts/

Reviewed by:    kp
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
d9d6e77965b32a8d2f9eeffd34e519a087e603e2 Siva Mahadevan 2026-10-27 14:23:11

debug: classified in 02b-filenames_wildcards2 by 'tests\/.*'

tests/dhclient: import scapy inside vnet
bd87fc2a1c1a20a080c38b12a55b377967a7c4a7 Siva Mahadevan 2026-10-27 17:19:27

debug: classified in 02b-filenames_wildcards2 by 'sbin/.*/tests/.*'

tests/dhclient: Skip tests if scapy is not installed
Fixes:        https://cgit.freebsd.org/src/commit/?id=a143197801c6 ("dhclient: Add some regression tests")
8fa55fdcae4ecbd2ec13ef91cc9d172095e21189 Mark Johnston 2026-10-28 20:26:44

debug: classified in 02b-filenames_wildcards2 by 'sbin/.*/tests/.*'

pf tests: exercise pfctl -l across a privilege drop
Open /dev/pf and a generic Netlink socket as root, drop to nobody and
exec pfctl with both inherited, the way authpf(8) runs it. Without -l
the load is refused with EPERM; with it the rules land in the anchor.
An unusable descriptor is an error, not a fallback to a new socket.
Skips when fdescfs is not mounted, which -p /dev/fd/N needs.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291981
Signed-off-by:  Avinash Duduskar <avinash.duduskar@gmail.com>
Reviewed by:    kp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2508
a94a6326507c5a901adee15bf3844eaf60479ab1 Avinash Duduskar 2026-10-26 14:38:12

debug: classified in 02b-filenames_wildcards2 by 'tests\/.*'

tests/if_geneve: Fix ether_ipv6_blind_options flakiness
This test could fail under load due to lack of no_dad before.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299448
Reported by:    siva
Fixes:          https://cgit.freebsd.org/src/commit/?id=aa9f669d09a7 ("geneve: Add tests for geneve")
55ac3c32b9ddba18b78bb3c58325294ba2e0bf6b Pouria Mousavizadeh Tehrani 2026-10-31 17:23:52

debug: classified in 02b-filenames_wildcards2 by 'tests\/.*'

tests/sys/file: add tests for the lowest fd after fork
fdcopy() skips plain kqueues and close-on-fork descriptors when it
copies the table into the child.  Check that dup(2) in the child still
returns the lowest unused descriptor, both when the skipped descriptor
is the lowest free slot and when it sits above an existing hole.

Test cases:

  kqueue_no_hole      a plain kqueue is the lowest descriptor; the
                      child's dup() reuses its slot
  kqueue_two          two adjacent plain kqueues; the child's dup()
                      returns the lower one
  kqueue_above_hole   a plain kqueue sits above a closed descriptor;
                      the child's dup() returns the hole
  kqueue_cponfork     a KQUEUE_CPONFORK kqueue is copied; the child's
                      dup() returns the next slot
  clofork_no_hole     an O_CLOFORK descriptor is the lowest one; the
                      child's dup() reuses its slot
  clofork_above_hole  an O_CLOFORK descriptor sits above a closed
                      descriptor; the child's dup() returns the hole

Without 99a58803f9a3, kqueue_no_hole, kqueue_two and
clofork_above_hole fail.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300234
Reviewed by:    kib
MFC after:      1 week
MFC with:       99a58803f9a3
Co-authored-by: Claude Code Opus 5.5
Differential Revision:  https://reviews.freebsd.org/D61124
f9f4abe8c9f8b5a783538d2b99254d9845572e70 Maxim Konovalov 2026-11-01 14:59:08

debug: classified in 02b-filenames_wildcards2 by 'tests\/.*'

Style, typos, and comments

These could go in other categories, but it's more clear if they're here instead.

gethostbyaddr_r: correct typo in signature from dc68997328ec6
'man 3 gethostbyaddr_r' was incorrectly showing 9 arguments.
1d450a42583645177071a6bd767bb36e97f02bc1 David E. O'Brien 2026-10-30 06:33:56

debug: classified in 01-style by '[tT]ypo'

gethostbyaddr_r: follow style from other *_r variants
5b41e3df0ba5307574bc6d6f1c8ed6ed25222c4c David E. O'Brien 2026-10-30 06:40:52

debug: classified in 01-style by '[sS]tyle'

Contrib code

contrib/tzdata: import tzdata 2026f
5a2e900390155ca00ca321230e498f94d449eff5 Philip Paeps 2026-10-28 14:46:33

debug: classified in 03-filenames_plain1 by 'contrib/'

contrib/kyua: update to 0.15.1
This new release contains multiple bugfixes. Please see the release
notes mentioned in the merge commit for more details.

MFC after:      2 weeks
Merge commit '3e05143b80d1537cdd51a5dcf742da31f400507e'
b68969979d6b590247290b4fe26212d201c3ad96 Enji Cooper 2026-10-28 22:02:27

debug: classified in 03-filenames_plain1 by 'contrib/'

ena: Upgrade ena-com to freebsd v2.8.5
Merge commit 'c51345cf234c029abf8b5f1655f65f6c2ffaaec9'

Reviewed by: cperciva
MFC after: 3 days
Sponsored by: Amazon, Inc.
0f6f75189f5e55a5846e3b20eec18db93cfafa89 Arthur Kiyanovski 2026-10-29 02:53:22

debug: classified in 03-filenames_plain1 by 'sys/contrib'

bsnmp: zero-fill the destination on a short ASN.1 IpAddress
asn_get_ipaddress_raw() meant to pad the 4-byte buffer after a short
copy, but the loop bound was the already-reached len and never ran,
leaving addr[len..3] uninitialised.  Pad to 4.

This is harmless for the in-tree consumers (bsnmpd(1) and
libbsnmpclient) which zero the PDU before decoding it.

Reviewed by:    harti, maxim
Approved by:    harti
MFC after:      2 weeks

Differential Revision:  https://reviews.freebsd.org/D60923
b5e57452b62e7c185706ed8b2a86e9f8ac483357 Osvaldo Janeri Filho 2026-10-29 18:05:14

debug: classified in 03-filenames_plain1 by 'contrib/'

authpf: pass the privileged Netlink socket to pfctl
authpf opens its pf handle as root and drops privileges before it runs
pfctl to load the per-user ruleset. The child inherits the /dev/pf
descriptor through -p /dev/fd/N, but since pf's control path moved to
Netlink, pfctl opens a Netlink socket of its own, which carries the
unprivileged credentials, and the first privileged command on it fails:
every authpf login ends with "pfctl exited abnormally" on 15.x.

Pass the socket authpf already holds with the new -l flag, next to the
device. Clear FD_CLOEXEC on both descriptors before the exec so the
handoff does not depend on how libpfctl happened to open them.

The socket already reached the child: neither libpfctl nor snl opens
its descriptors close-on-exec and authpf closes nothing before the exec,
so since pf moved to Netlink the unprivileged pfctl has inherited it
unused. Passing its number makes the handoff deliberate. The socket
carries root's credentials for every generic Netlink family, so the
child could reach pflow, carp and the kernel RPC family through it, not
only pf; it already had full control of pf through /dev/pf.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291981
Signed-off-by:  Avinash Duduskar <avinash.duduskar@gmail.com>
Reviewed by:    kp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2508
674932048a15203b9f45242be17b2ea10feb0d02 Avinash Duduskar 2026-10-26 14:38:11

debug: classified in 03-filenames_plain1 by 'contrib/'

authpf: deny tracing of the pfctl child
The child runs pfctl as the user with authpf's root-opened /dev/pf and
Netlink descriptors. Its real and effective ids match at the exec, so
the kernel clears P_SUGID and any other process of the user could attach
to it and take both descriptors. Deny tracing across the exec; root can
still attach, and core dumps are not affected.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291981
Signed-off-by:  Avinash Duduskar <avinash.duduskar@gmail.com>
Reviewed by:    kp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2508
3d5bd2cf202cce4c98e227d8eacc4bb6f937477a Avinash Duduskar 2026-10-28 10:22:17

debug: classified in 03-filenames_plain1 by 'contrib/'

tzcode: Update to 2026f
MFC after:    1 week
Event:          Oslo Hackathon 2026
af58db5d6efd1770c53b22e7301a039db7e04213 Dag-Erling Smørgrav 2026-10-31 23:06:28

debug: classified in 03-filenames_plain1 by 'contrib/'

libarchive: merge from vendor branch
libarchive 3.8.11

ChangeLog:
https://github.com/libarchive/libarchive/compare/v3.8.10...v3.8.11

Obtained from:  libarchive
Vendor commit:  03036ffa409a2aa1c5bbad35be2202641a040fda
MFC after:      3 days
322d4227521380a61850b3d4f2ebd2b42343a254 Martin Matuska 2026-10-31 23:39:49

debug: classified in 03-filenames_plain1 by 'contrib/'

atf/FREEBSD-upgrade: update document/rewrite in Markdown
The document does not reflect current reality with how updates/releases
should be managed with contrib/atf . Update it to a state that better
reflects current practices with git, as well as information about where
the latest version of the project can be found, etc.

This change will be used as a template for adding instructions on how to
update contrib/kyua and contrib/lutok in future commits.

MFC after:      1 month
Reviewed by:    ziaee, carlavilla
Differential Revision:  https://reviews.freebsd.org/D59879
91fcc2d8b18c61b61a1fd5848acecc0adfb17403 Enji Cooper 2026-11-01 00:40:01

debug: classified in 03-filenames_plain1 by 'contrib/'

Reverted commits

Commit & revert pair: bind_all_fibs: Disable bind_all_fibs by default
bind_all_fibs: Disable bind_all_fibs by default

net.inet.{tcp,udp,raw}.bind_all_fibs was set to 1 for backward
compatibility. Set to 0 by default to drop them all unless an inpcb
bound to the same FIB exists.

While here, Add an UPDATING entry for behaviour change.

Relnotes:       yes
Reviewed by:    markj
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/73
714433a6772b346723341735ef9547f672d9d2a3 Pouria Mousavizadeh Tehrani 2026-10-24 18:01:06

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'


Revert "bind_all_fibs: Disable bind_all_fibs by default"

This reverts commit 714433a6772b346723341735ef9547f672d9d2a3.

There were issues reported by markj
I will hold this commit until those are fixed.
7b23b63edfe09d6509174ecd3aa2f32f143b7a8c Pouria Mousavizadeh Tehrani 2026-10-29 16:19:54

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Commit & revert pair: style.Makefile(5): update recommendations
style.Makefile(5): update recommendations

- Mention `CXXFLAGS` and `CXXSTD`, in addition to `CFLAGS` and `CSTD`.
- Mention `LIBADD`, in addition to the legacy (in-tree) variables,
  `DPADD` and `LDADD`.
- Mention the other option types, e.g., `MK_FOO`, `WITHOUT_FOO`, etc,
  added as part of `src.opts.mk` in the past couple releases.

Bump .Dd for the change.

MFC after:      1 week
68aebfa28a17189e1e697e612c0a1a2220b9fa2b Enji Cooper 2026-10-29 20:47:36

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'


Revert "style.Makefile(5): update recommendations"

This has not been reviewed yet - revert the change so it can be reviewed
properly first.

This reverts commit 68aebfa28a17189e1e697e612c0a1a2220b9fa2b.
105c49eb4a4bd1bd2b2c0af08dccb37b9b2b2fef Enji Cooper 2026-10-29 23:33:51

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Commit & revert pair: git-arc: add initial non-FreeBSD and `$HOME` install support
git-arc: add initial non-FreeBSD and `$HOME` install support

Modify the existing code to permit setting a prefix via the `PREFIX`
make variable, similar to what `--prefix` provides in autotools-based
projects.

Add the required compatibility glue in order to function with vanilla
bmake, which enables installing the commands with Linux and macOS:
- vanilla bmake requires `scripts.mk` to install `SCRIPTS`.
- vanilla bmake does not tack `/man` on to the end of `MANDIR`, like
  with FreeBSD.

Adjust the sysctl calls to instead look for `arc` in `$PATH` using
`command -v` instead of hardcoding the path to the `arc` binary. This
allows the command to invoke `phorge` as well as the legacy `arcanist`
tool.

While here, update the origin for `arcanist` as the former is the
non-phorge fork is no longer supported (nor needed).

NOTE:
- regarding Linux support: this should now function out of the box with
  Linux as long as the host has access to an appropriate `arc` binary.
- regarding macOS support: the arcanist/phorge packages do not yet
  exist in Homebrew or MacPorts, but are being added soon.

MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60995
010e53f7c6908bee93d1bd32fb4b1658b0f19eef Enji Cooper 2026-10-29 20:59:38

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'


Revert "git-arc: add initial non-FreeBSD and `$HOME` install support"

This was in review and should not have been committed.

This reverts commit 010e53f7c6908bee93d1bd32fb4b1658b0f19eef.
091492b83f8f96f9b9f700c1e9d40753243fb992 Enji Cooper 2026-10-29 23:34:42

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Revert "snd_hda: Identify AMD Audio Coprocessor"
Apparently this device might need a separate driver altogether.

This reverts commit 8dac0bdb4df0815e14db219e9a7fb5d0be5737b8.
7ef59ccfcc8a8f8d2623357f60d974ca6cfd45fb Christos Margiolis 2026-11-02 12:02:08

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Commit & revert pair: bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC
bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC

Bhyve treats an empty cpu set as an error which triggers MPASS panic in
the guest. As per the SBI spec, empty masks should return SBI_SUCCESS,
and a base of -1UL specifies a broadcast to all harts.  Fix both in
vmm_sbi.c, clear a1 on return, and skip the SBI ecall in
sbi_ipi_pic_ipi_send() if the mask is empty. Also add a NULL check in
riscv_send_ipi().

Signed-off-by: Doongar Singh <doonbsd@gmail.com>

Reviewed by:    br
Differential Revision:  https://reviews.freebsd.org/D61126
ada1f577cc291336cbb69782075dbbf9fe746872 Doongar Singh 2026-11-02 20:58:53

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'


Revert "bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC"

This reverts commit ada1f577cc291336cbb69782075dbbf9fe746872.
89d52f02bf37ed3d9fdb464f38f0714aa979eb41 Ruslan Bukin 2026-11-02 21:33:57

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Unclassified commits

Not classified automatically, and waiting for manual attention.

-- no commits in this category this week --

Technical notes

Dates:

Automatic grouping:

Automatic categories:

Source code:


Generated with commits-periodical 0.21 at 2026-11-03 03:23:55+00:00.

This work is supported by Tarsnap Backup Inc.

Alternate version: 2026-10-26 (release)