FreeBSD git weekly: 2026-06-22 to 2026-06-28

Introduction

This is a display of mostly-automatically-classified git commits from 2026-06-22 to 2026-06-28.

This report is still in progress.

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:

(0) Highlighted commits (these are copies, not in stats)
1 1.7% Userland programs
5 8.6% Documentation
12 20.7% Hardware support
2 3.4% Networking
4 6.9% System administration
8 13.8% Libraries
2 3.4% Filesystems
18 31.0% Kernel
2 3.4% Build system
0 0.0% Internal organizational stuff
1 1.7% Testing
0 0.0% Style, typos, and comments
3 5.2% Contrib code
0 0.0% Reverted commits
0 0.0% Unclassified commits
58 100% total
Technical notes about this page

debug: info about the automatic classification

num % num changed stage
5 8.6% 0 02-filenames_wildcards
1 1.7% 0 02b-filenames_wildcards2
22 37.9% 0 03-filenames_plain1
28 48.3% 0 04-filenames_plain2
2 3.4% 0 Manually-classified commits
0 0.0% 0 Unclassified commits

debug: more stats

num % stage
0 0.0% Misclassified commits
56 96.6% Classified commits, no corrections

debug: groups

0 0.0% num in revert
0 0.0% num in fixes
25 43.1% num in consecutive
25 43.1% 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.

-- no commits in this category this week --

Userland programs

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

install: Explicitly include sys/param.h for MAXPATHLEN
MFC after:    1 week
Sponsored by:   The FreeBSD Foundation
ca89b0fa1a93744a5bbf7a5c949826bbee4e2559 Mark Johnston 2026-06-22 20:19:29

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

Documentation

Man pages, release notes, etc.

libusb: Bump manual date for multiple changes
Sponsored by:   The FreeBSD Foundation
d928113eaadaeb9ab821a2a5b6f08159f1ce8d76 ShengYi Hung 2026-06-22 13:32:23

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

acpi_ibm.4: Fix mic_led sysctl name
Fixes:        https://cgit.freebsd.org/src/commit/?id=707347f88649 ("Add missing documentation for dev.acpi_ibm.0.mic_led added in r335304")
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
b9d6497bd1f16e906f4dc6e600368b86d3fe0317 Aymeric Wibo 2026-06-22 14:22:01

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

acpi_ibm.4: Remove extraneous .Tn
As flagged by mandoc linter.

Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
8de929962a38855c8c38d117d20b71d7c9eaee77 Aymeric Wibo 2026-06-22 14:50:52

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

etcupdate: Recommend building when bootstrapping
Since building is no longer the default, add -b to the bootstrapping
examples as they are likely to be run with a tree that hasn't been
built.

MFC after:      1 week
Fixes:          https://cgit.freebsd.org/src/commit/?id=ddf6fad0295a ("etcupdate: Make nobuild the default")
Reviewed by:    jhb
Differential Revision:  https://reviews.freebsd.org/D57643
1ca439a216a0415e409218c1ebbcbbd4ff89d75c Dag-Erling Smørgrav 2026-06-22 18:59:23

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

kqueue.2: knote is activated as the first action of tdsendsignal()
Sponsored by: The FreeBSD Foundation
MFC after:      3 days
df8ca3f89aa2b2c374886cc39b24c76796d7db9a Konstantin Belousov 2026-06-22 19:07:19

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

Hardware support

Hardware drivers and architecture-specific code.

firewire: NULL check on malloc in fw_busreset()
fw_busreset() allocates newrom with M_NOWAIT from interrupt context.
If the allocation fails, crom_load() dereferences a NULL pointer.

Skip the config ROM comparison on allocation failure so the next bus
reset will retry.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D57728
51f4e90ce7ef3b8d036a9d34ab464f4152ca4bab Abdelkader Boudih 2026-06-22 00:30:53

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

x86/ucode.c: supposedly fix i386 compilation
Fixes:      https://cgit.freebsd.org/src/commit/?id=16f21c5af350 ("amd64: there is no reason to copy ucode around in ucode_load_bsp()")
PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295926
Submitted by:   Martin Birgmeier <d8zNeCFG@aon.at>
MFC after:      3 days
f4cd99131c70e8be2a793d939b644e20bbbd3374 Konstantin Belousov 2026-06-22 00:48:11

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

acpi: Forbid requesting S4 when S4BIOS is not supported
Pending the OS-supported hibernate functionality, prevent requesting S4
when S4BIOS is not supported.

To this end, make sure that acpi_supported_stypes[] indicates that
POWER_STYPE_FW_HIBERNATE is not supported if 'acpi_s4bios_supported' is
false, even if S4 is supported by the platform (which is only
a power-down-like state, without any support to save the system image by
itself).  This will cause requests to enter S4, which are translated to
POWER_STYPE_FW_HIBERNATE before reaching
acpi_ReqSleepState()/acpi_EnterSleepState(), to fail in this case.

Retire the 'hw.acpi.s4bios' sysctl knob, as having it to 0 by default
(S4BIOS not supported) or setting it to 0 (default is 1 when S4BIOS is
supported) could only lead, on a S4 request, to a power down without any
possibility to restore the system (and, since a recent commit, it has
not been possible anymore to force it to 1 when S4BIOS is not announced
supported in the FACS table, which would cause a failure or a crash).

When OS-supported hibernate is introduced, it will become the default
hibernate method over S4BIOS, as we have not heard of any semi-recent
hardware platform implementing it (and when it is, it usually needs
a sufficiently large dedicated slice/partition, and does not use FreeBSD
swap slices/partitions).  Then, for people still wanting to use S4BIOS
on older platforms that support it, the tentative plans are to modify
acpiconf(8) to accept '4BIOS' as an argument to '-s', or modify zzz(8)
so that one can pass a specific suspension method.

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57414
fc6d7a7520d00943ab167544b145f404c10b406a Olivier Certner 2026-06-02 16:04:55

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

acpi_ibm(4): Refer to "mic *mute* led" instead of "mic led"
Event:                Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
40ab0a05640051eed02ccbf1c5150e97e8cc27da Aymeric Wibo 2026-06-22 14:42:55

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

amdsmu(4), acpi_spmc(4): Fix ordering of calls
The AMD SMU is supposed to be notified of suspension the SPMC has been,
and conversely on resume, as expressed in comments.

Fix the EVENTHANDLER(9) priorities used so that they match the
comments. Lower values indeed indicate higher priority in this
subsystem.

Reviewed by:    obiwac
Fixes:          https://cgit.freebsd.org/src/commit/?id=2c60fce365f4 ("amdsmu: Sleep entry/exit hints for PMFW")
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
5bec087167e3934d7df06b4f98ed18c82349ddd2 Olivier Certner 2026-06-04 15:07:47

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

acpi: Constify thanks to AcpiGetHandle() taking a constant pathname
Make the ACPI interface's functions evaluate_object() and get_property()
take a constant pathname (by substituting ACPI_STRING with 'const char
*').

This allows to remove some __DECONST().

No functional change (intended).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
a12d069ef37fd60538b6f46372b194e6cf117250 Olivier Certner 2026-06-03 20:30:22

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

Commit group #0: acpi
acpi: Suffix acpi_sleep_enable() with '_locked'

For clarification.  This function assumes that the acpi mutex is held,
contrary to acpi_sleep_disable().

No functional change (intended).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
3b3911aaf834824f2de0db9fc7d0b9e2b3c089b4 Olivier Certner 2026-06-04 07:10:29

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


acpi: Button sleep/wake callbacks: Expose true argument types

This makes the interface composed of the
acpi_event_{power,sleep}_button_{sleep,wake}() functions more accurate
and clears the risk of calling them with a wrong object (such as a wrong
softc).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
660a491c41a2b90c35fe121c0b6a046b9af3cc00 Olivier Certner 2026-06-04 09:48:33

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


acpi: Sleep event handler: Remove a wrong comment

No functional change.

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
c08c52e39e6e825000663ff602b219f03623d408 Olivier Certner 2026-06-04 10:05:40

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


acpi: Sleep/wake event handlers: Expose first argument's true type

This is for clarification and to slightly simplify code.

At present, the EVENTHANDLER(9) subsystem does not check that the first
argument to the event handler, registered via EVENTHANDLER_REGISTER(),
is of the right type with respect to the type declaration passed to
EVENTHANDLER_DECLARE(), so in that infrastructure no additional safety
is gained by this change.

No functional change (intended).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
6cce86c9bcd9656af6d3f5fddd600b40a3ab127c Olivier Certner 2026-06-04 10:15:37

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


acpi: Export handler invoke helpers, use them in acpi_lid

Removes duplicated code.

No functional change (intended).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
5ca875f3be030eb8ac80d8fb1b8f8018dc5eeb09 Olivier Certner 2026-06-04 10:55:45

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


acpi: Set 'acpi_sstate' closer to setting 'acpi_stype'

Makes on-going modifications for hibernate easier.

No functional change (intended).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
95ff2acb5555c6b165e7a32249c403cd339697d8 Olivier Certner 2026-06-04 07:37:57

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

Networking

Network-related commands, library, and kernel.

if_fwsubr: remove ARP target hardware address trimming
Per RFC 2734 section 5, the 1394 ARP packet is a fixed 32-octet structure
with no target hardware address field.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D57617
3ffd2baa268d298201d54c733dc0e635cc1dca9f Abdelkader Boudih 2026-06-22 00:31:29

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

ipfw/nat64: Fix type confusion panic when using wrong NAT64 instance type
Add etlv type validation to ipfw_nat64clat() and ipfw_nat64stl() to
verify that the retrieved instance is actually a nat64clat instance
before use.

All NAT64 instance types share the same srvstate[] array but have
different struct layouts.
Without type validation, using the wrong instance type with
a handler causes type confusion and kernel panic.

Signed-off-by:  Teddy Engel <engel.teddy@gmail.com>
PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292023
Reviewed by:    pouria
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2259
2e6b22abf44d99b84abf17fe25ca2e8f89716c04 Teddy Engel 2026-06-02 16:24:57

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

System administration

Stuff in man section 8 (other than networking).

rtld: Check for -1 as an-end-of-section marker
rtld calls functions in the .init_array section one at a time, until
it finds a distinguished sentinel value. The C runtime does the same
thing (in crtend.c). However, that checks for the sentinel -1 and not
1. If one is using a linker that unifies .ctors and .init_array, then
rtld will miss the sentinel value. I believe the author of this code
intended to write -1 instead of 1. Indeed, changing the code to also
check for -1 prevents rtld from attempting to call a non-existent
function. The same is true of .dtors and .fini_array.

Signed-off-by:  Daniel Levin <daniellevin2607@gmail.com>
Reviewed by:    kib
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2270
45a0cb52d3d62f8caae420b93e4b8c76ae3bc766 Daniel Levin 2026-06-08 14:42:03

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

etcupdate: Warn if the tree hasn't been built
Warn the user before trying `make installetc` if etcupdate was invoked
without -b (or with -B) and it appears that `make buildetc` hasn't
already been run (which usually happens as part of `make buildworld`).

MFC after:      1 week
Reviewed by:    jhb
Differential Revision:  https://reviews.freebsd.org/D57504
53a3d4760eb90c89bf04636c957511882d7f347d Dag-Erling Smørgrav 2026-06-22 18:59:18

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

makefs/zfs: Explicitly include sys/param.h for nitems()
MFC after:    1 week
Sponsored by:   The FreeBSD Foundation
88deb1cff92cb3620c248f32fa6e7bdbc5301213 Mark Johnston 2026-06-22 20:19:32

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

loader.efi: Fix a comment
Move a comment further up in the file. After the sethead() we need to
use efi_exit(), not after the performance measuring stuff.

Sponsored by:           Netflix
e8a3352e8b5784fe3417a367a488159f0ab30ae8 Warner Losh 2026-06-22 22:17:12

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

Libraries

iconv: Update availability of bool
While here, drop duplicate include.

MFC after:      1 week
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D57733
8f750231d4b58ac71cbd3ac3548e1d7eb849f04b Dag-Erling Smørgrav 2026-06-22 13:23:23

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

Commit group #1: libusb
libusb: implement IAD parser

libusb provide functions to parse interface association descriptor. This
descriptor indicates that a function is composed by multiple interface
and which interfaces is associate to the target function. This
descriptor is not a separate USB require, instead, it comes with the
config descriptor.

Reviewed by:    adrian
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50958
ae489991d1c0b550ead309abc1eade3b185e7499 ShengYi Hung 2025-06-11 17:24:04

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


libusb: implement libusb_set_option

Implement libusb_set_option for API compatibility of libusb upstream
The implementation status of each option is as following:

LIBUSB_OPTION_LOG_LEVEL: just like libusb_set_debug
LIBUSB_OPTION_LOG_CB: add callback support for DPRINTF
LIBUSB_OPTION_NO_DEVICE_DISCOVERY: disable initialization of devd and
netlink when register. Also, create no thread when registration of
callback happens.
LIBUSB_OPTION_USE_USBDK: no needed as USBDK is for Windows

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50818
2879c818e5535e9c9dc592714c7d4ef0c1c9e8c1 ShengYi Hung 2025-06-11 19:07:39

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


libusb: refactor the process of setting option when init the context.

From
https://github.com/libusb/libusb/commit/6622f386f52807dac76c8a260c98aa02c311bc93#diff-c1f9bc250077d41456a3e580fca0ddf5d8c25b741bff6d9b9505990a8b70b254R2358.
We are able to set all of the option from the init_context. To address
this, we modify the process of setting option in init_context to make it be more clear and then
adapat libusb_set_option inside to all other option.

Reviewed by:    adrian
Sponsored By:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51224
be95871347a85f6feac59d036f62182fce847f23 ShengYi Hung 2025-07-09 09:36:07

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


libusb: implement libusb_get_max_alt_packet_size

The libusb has a function to calculate the size from given interface,
alt_setting, endpoint. Implementing it by refactoring the calculating
function for libusb_get_max_iso_packet_size.

Reviewed by:    adrian
Sponsored By:   FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51225
964823a18e116e86c05e1d6a6fd80b1bb3274e57 ShengYi Hung 2025-07-09 10:49:24

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


libusb: implement zlp flag in libusb transfer

The USB protocol defines a Zero-Length Packet (ZLP) to signal the end of
a transfer when the data size is an exact multiple of the Maximum Packet
Size (MPS). Without a ZLP in such cases, the device may not be able to
determine that the transfer has completed.

This flag is added to libusb to allow the user send a ZLP in the end
of libusb_xfer.

Reviewed by:    adrian
Sponsored by:   The FreeBSD Foundataion
Differential Revision: https://reviews.freebsd.org/D51759
d84b639a684e7e0640e7c24a1a6dbc09da4bc3d4 ShengYi Hung 2025-08-06 12:48:05

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

libusb: Implement libusb20_tr_get_flags
Reviewed by:    adrian, bapt
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57543
1a8701e2e9a97cabb18ed58d236382796d7f7aa7 ShengYi Hung 2026-06-11 15:39:44

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

librpcsec_gss: Fix an off-by-one in rpc_gss_get_principal_name()
Include an extra byte for the nul-terminator, otherwise we may end up
with an out-of-bounds write.

The corresponding bug in the kernel implementation was fixed by commit
e3081f7e3e2d ("kgssapi(4): Fix string overrun in Kerberos principal construction").

Reviewed by:    markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57738
635ad6f2ec97e9c6b1f15620cd5ee84eb632082f Jane Smith 2026-06-22 21:40:53

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

Filesystems

cd9660: Add various length checks when parsing RRIP extensions
Pass the length of a RockRidge attribute to the handler functions and
validate that length in each handler.  If a parsing error is detected,
abort the entire parsing pass.

Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D57136
9cd0d6231311bc5609403fb35377a7bb97a3cfaf John Baldwin 2026-06-22 16:41:04

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

nfscl: Add support for flexible file layout striping
Commit 72e57bc26417 added support for striping to the pNFS
server configuration.  This patch adds support for striping
to the NFS client.

For striped flexible file layouts, an extra structure
must be malloc()d for each stripe, since the number
of stripe servers can vary from one mirror to another.
This new structure is called nfsffs and a single one
of these structures is in the nfsffm structure so that
the non-striped layouts can avoid the additional malloc()'s.

This patch only affects NFSv4.1/4.2 mounts that use the
"pnfs" mount option against servers that support the
flexible file layout.
cf523f4beb8ff148828694485ab56f2c1f8f0159 Rick Macklem 2026-06-23 01:21:08

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

Kernel

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

Commit group #2: LinuxKPI
LinuxKPI: 802.11: leave a comment for sta->rates (mt7615, ?)

While we currently try to fill most rates places (e.g., basic_rates,
supp_rates, (*set_bitrate_mask)), sta->rates are not populated.

They are likely managed by the 802.11 rate control code (given no
ieee80211_hw_check HAS_RATE_CONTROL), which for use would be net80211,
which will require some extra code just to manage that.

At least Mediatek mt76 (mt7615) driver seems to fall into the category
of this need.  See about that once/if we get to it.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
557eed60d2a34d061350ac37acebe6686cd80d83 Bjoern A. Zeeb 2026-06-21 14:04:36

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


LinuxKPI: 802.11: add/improve/correct comments

Adjust/add comments to clarify certain situations.

No functional changes.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
08a78a296c840aa95ec13895c3c9bf1349becbae Bjoern A. Zeeb 2026-06-22 00:07:16

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


LinuxKPI: 802.11: add 11g check to lkpi_ic_getradiocaps()

Replace an early comment with code and add a (simplified) 11g check.
We make use of the annotated bitrate flags we added (see
lkpi_wiphy_band_annotate()) and check if on the 2GHz band there are
any bitrates which are 11g.  Upon the first one found we do set the
IEEE80211_MODE_11G to announce to net80211 that the 2.4Ghz channels
may operate on 11g as well.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
d4a529ad0d5638ad3e8d27815948b0a7c4628e3f Bjoern A. Zeeb 2026-06-22 00:10:22

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


LinuxKPI: 802.11: introduce TRACE_RATES()

Add a tracing bit for tracing rates related changes introduced in
followup commits.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
b58d8df5829233ced7024c30a0a979e2e0a722fd Bjoern A. Zeeb 2026-06-22 00:17:26

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


LinuxKPI: 802.11: initalize br_mask and basic_rates for each vap

During vap creating we inialize most [l]vif related variables.
Add a br_mask (bit rate mask) to the lvif and setup the legacy component
as it seems to be static.
Given we are looping over the bands, also initialize the bss_conf
basic_rates. At this point we only have all bitrates for the band
or the mandatory bitrates for the band available.  In order to not
hint usage of possibly unsupported bit rates set it up with the
manadatory bit rates only, which should get us through the mgmt
frames, etc. to get to assoc state.  By then we will do updates.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
7bf2eec68a293a22f332fc1592dffaa4ed9f0809 Bjoern A. Zeeb 2026-06-22 00:27:21

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


LinuxKPI: 802.11: make lkpi_sta_sync_from_ni() return bss_changes

This is a preparatory change with no functional changes.

Sponosred by:   The FreeBSD Foundation
MFC after:      3 days
038489e46ea3e77484ea85c4369610ba3ee8381b Bjoern A. Zeeb 2026-06-17 14:37:42

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


LinuxKPI: 802.11: add function to update some rate related fields

Add lkpi_sta_supp_rates() which serves multiple purposes:
(a) build (and update) the supp_rates field on a sta link (deflink only
    in our case still),
(b) build and update basic_rates on the vif->bss_conf and print a
    warning in case we end up without any basic rate (should not happen
    anymore, not even on initial startup sync),
(c) if HT or VHT are supported, then update the relevant br_mask fields
    for the current band.

Deal with the various flags which trigger different updates by returning
them so the caller can act upon.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
0d3cd54642f6695f9f82b82402f27e10bbee7cfc Bjoern A. Zeeb 2026-06-22 00:41:38

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


LinuxKPI: 802.11: add/change rate related tracing

Make use of the TRACE_RATES() macro and add various tracing events.
Also adjust some events formerly under TRACEOK to TRACE_RATES().

Ignoring the tracing, no other functional changes.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
42cf2798110e12df6ccc22a138ed89617ac7d407 Bjoern A. Zeeb 2026-06-22 01:01:15

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


LinuxKPI: 802.11: consider emulate_chanctx in lkpi_sync_chanctx_cw_from_rx_bw()

Only return early if the bandwidth has not changed and we are not
using emulate_chanctx or the chandef.width already matches the new
bandwidth.  Otherwise we have to continue to get all the values
updated.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
cff565a4c0335e12376ea43f99ef5328c45ce933 Bjoern A. Zeeb 2026-06-22 01:04:36

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


LinuxKPI: 802.11: track bandwidth/rx_nss change in lkpi_sta_sync_from_ni()

In lkpi_sta_sync_from_ni() track the bandwidth and rx_nss at the
beginning so at the end we can diff if they changed in order to generate
the appropriate RC*CHNAGED flags for the (*link_sta_rc_update) downcall.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
53d9c14af6a65dcc037527c6ff5308c94806fafe Bjoern A. Zeeb 2026-06-22 01:11:18

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


LinuxKPI: 802.11: adjust timing of sync_from_ni in lkpi_sta_assoc_to_run()

We used to call the (*sta_state) downcall into the driver to set the
sta state to ASSOC.  After that we did a lot of sync operations incl.
the lkpi_sta_sync_from_ni() which does a lot of rate and bandwith
adjustments.   This sync call needs to happen before we set the sta
to assoc as drivers rely on some of this information, e.g., ht_cap and
vht_cap (and equivalents for later standards) at that point.  Moving
this will make, e.g., mt7921 transmit at higher rates than just
basic_rates.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
75aadc902298005c47d2b931c483452027ceae69 Bjoern A. Zeeb 2026-06-22 01:16:45

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

Commit group #3: OFED
OFED: Use prandom_u32() to reduce diff with upstream

Tested by:      Wafa Hamzah <wafah@nvidia.com> (mlx5_ib)
Tested by:      John Baldwin <jhb@FreeBSD.org> (iw_cxgbe)
Sponsored by:   Chelsio Communications
1a9ef1a3430036581b5a136091fc492bf2fa50ac John Baldwin 2026-01-20 20:42:55

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


OFED: Implement ib_process_cq_direct

This is largely pulled from the original Linux commit to add cq.c.
Note that irq_poll is still not supported, but polling should now be
possible whereas it wasn't really before.

Tested by:      Wafa Hamzah <wafah@nvidia.com> (mlx5_ib)
Tested by:      John Baldwin <jhb@FreeBSD.org> (iw_cxgbe)
Obtained from:  Linux commit 14d3a3b2498edadec344cb11e60e66091f5daf63
Sponsored by:   Chelsio Communications
259a763e343d36a6030e0bba5ae7ed05c123c2fe John Baldwin 2025-12-05 20:56:35

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


OFED: Use vmalloc() and vzalloc() in various places

This contains changes from the following Linux commits:

10313cbb9220 IPoIB: Allocate priv->tx_ring with vmalloc()
b1404069f644 IPoIB/cm: Use vmalloc() to allocate rx_rings
948579cd8c6e RDMA: Use vzalloc() to replace vmalloc()+memset(0)

Tested by:      Wafa Hamzah <wafah@nvidia.com> (mlx5_ib)
Tested by:      John Baldwin <jhb@FreeBSD.org> (iw_cxgbe)
Sponsored by:   Chelsio Communications
fbe76ea44c4b35ff1226b19c8e3913716686e4f4 John Baldwin 2026-05-28 15:52:03

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

IB/ipoib: Prevent hung task or softlockup processing multicast response
Tested by:    Wafa Hamzah <wafah@nvidia.com> (mlx5_ib)
Tested by:      John Baldwin <jhb@FreeBSD.org> (iw_cxgbe)
Obtained from:  Linux commit 3874397c0bdec3c21ce071711cd105165179b8eb
Sponsored by:   Chelsio Communications
49ee94b291b424caaafd456d52f0aa9da6ba168c John Baldwin 2026-05-28 15:50:58

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

RDMA: dma-mapping: use unsigned long for dma_attrs
Tested by:    Wafa Hamzah <wafah@nvidia.com> (mlx5_ib)
Tested by:      John Baldwin <jhb@FreeBSD.org> (iw_cxgbe)
Obtained from:  Linux commit 00085f1efa387a8ce100e3734920f7639c80caa3
Sponsored by:   Chelsio Communications
e4c4c6eeb2a29f7549d28e6ce51fc36125c08e68 John Baldwin 2026-05-28 15:51:30

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

kern: add a security knob to disable unprivileged access to kenv
We sometimes store sensitive things in the kenv that get zapped, but we
really shouldn't rely on that zapping to actually happen.  Most
unprivileged processes don't really need to read from the kernel
environment in the first place, so add a knob that allows it to be
disabled.

Note that we consider jailed root to be unprivileged from this
perspective; they have their own meta/env concepts and we should
encourage users to take advantage of those for passing information to
jails.

"Hey we should do something about that":      dch
Reviewed by:    imp, ziaee, zlei (all slightly previous version)
Differential Revision:  https://reviews.freebsd.org/D57697
4fd518fcb2bbee4c8c41215d6993b923ef57a0e5 Kyle Evans 2026-06-22 20:22:25

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

power: Make POWER_STYPE_COUNT equal to POWER_STYPE_UNKNOWN
This avoids having to list POWER_STYPE_COUNT, which is semantically not
an allowed value, in 'switch' statements along with POWER_STYPE_UNKNOWN.

No functional change (intended).

Reviewed by:    obiwac
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/OlCe2/freebsd-src/pull/8
f7eff1236d5fc0895c38dac4bb7f6b8d0eedbec3 Olivier Certner 2026-06-04 11:17:32

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

Build system

vgrind: Tear down vgrind support
vgrind has been disconnected from the build for a while.  Remove from
the build, and gc vgrid support in the few remaining places.

Reviewed by:            jhb
Sponsored by:           Netflix
Differential Revision:  https://reviews.freebsd.org/D57648
198637a6869c703c2d01cd87e222c1dc3761c853 Warner Losh 2026-06-22 22:16:55

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

qemu: Add tools to generate useful tables from FreeBSD sources
This generates a table of all the socket options with fixed types
so that programs like qemu can use those tables rather than having
to free code thigs.

Sponsored by:           Netflix
7f5539d6a66471f59de0550f4b8e3369e0b1b2c7 Warner Losh 2026-06-22 22:17:07

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

Internal organizational stuff

-- no commits in this category this week --

Testing

tests: Fix race condition in aslr_setuid
Use a cloexec pipe to block the parent until the child is ready.

While here, redirect the output from ping to /dev/null, and mark the
test as requiring the inet feature since we ping the IPv4 loopback.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296116
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57734
080a4087014e1d19136cc77028019d98b5c69e1e Dag-Erling Smørgrav 2026-06-22 13:23:31

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.

-- no commits in this category this week --

Contrib code

mt76: mt7925: prevent PM from scheduling another delayed work on detach
This duplicates 009d92b25f7c from mt7921 which has the full description.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
482fda9814937691557ebadd0930535ff3d301b0 Bjoern A. Zeeb 2026-06-21 20:05:04

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

edk2: Fixup imported files line endings
Since these files were a direct commit, I don't have to fix the vendor
branch. Remove the DOS line endings. It doesn't matter one way or another,
but we should be consistent within the tree.

Sponsored by:           Netflix
c7b1b95a8ca6cdbb5bf48d32c8c7e25c36f5ba6c Warner Losh 2026-06-22 21:56:47

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

edk2: Bring in some more files from edk2-stable202502
These are needed for memdisk support, so import them separately.
These are from 202502, like all the other files here.

Sponsored by:           Netflix
e985c628a0e4082d9b953897d6f56c81d177cea7 Warner Losh 2026-06-22 22:06:24

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

Reverted commits

-- no commits in this category this week --

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.20 at 2026-06-23 14:34:46+00:00.

This work is supported by Tarsnap Backup Inc.

Alternate version: 2026-06-22 (release)