FreeBSD git weekly: 2026-05-04 to 2026-05-10

Introduction

This is a display of mostly-automatically-classified git commits from 2026-05-04 to 2026-05-10.

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)
0 0.0% Userland programs
7 6.4% Documentation
13 11.8% Hardware support
6 5.5% Networking
19 17.3% System administration
5 4.5% Libraries
4 3.6% Filesystems
27 24.5% Kernel
9 8.2% Build system
2 1.8% Internal organizational stuff
5 4.5% Testing
3 2.7% Style, typos, and comments
4 3.6% Contrib code
6 5.5% Reverted commits
0 0.0% Unclassified commits
110 100% total
Technical notes about this page

debug: info about the automatic classification

num % num changed stage
6 5.5% 0 00-reverts
3 2.7% 0 01-style
16 14.5% 0 02-filenames_wildcards
5 4.5% 0 02b-filenames_wildcards2
40 36.4% 0 03-filenames_plain1
35 31.8% 0 04-filenames_plain2
2 1.8% 0 05-summary-prefix
3 2.7% 0 Manually-classified commits
0 0.0% 0 Unclassified commits

debug: more stats

num % stage
0 0.0% Misclassified commits
107 97.3% Classified commits, no corrections

debug: groups

2 1.8% num in revert
0 0.0% num in fixes
6 5.5% num in consecutive
8 7.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.

-- no commits in this category this week --

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.

vis.3: Try to better describe VIS_SAFE
The current text fails to draw the reader's attention to the fact that
VIS_SAFE essentially exempts certain characters from being encoded.

While here, fix some markup nits.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56716
8acc4c16c6635c3cd8871d0ee1221b62d48d71b9 Dag-Erling Smørgrav 2026-05-04 12:08:10

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

zone.9: Add a missing newline
MFC after:    3 days
c295f026376035fee1a9e44efa2af30d46b7884a Mateusz Piotrowski 2026-05-04 18:28:36

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

freebsd-base.7: Document adding a local repo
MFC after:            1 day
Discussed with:         bcr, ivy, kevans, ngie
Differential Revision:  https://reviews.freebsd.org/D56608
c4af3f13a4e9932968d92872aaf22312a6e79e4e Alexander Ziaee 2026-05-06 21:23:52

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

cam: Cross-reference dtrace_cam.4 and cam.4
While here, remove empty sections from cam.4.

MFC after:      3 days
Fixes:          https://cgit.freebsd.org/src/commit/?id=1a7151f79664 cam: Add probes for xpt actions
640af0d9067bee6e8f300c158f0cf928e666977c Mateusz Piotrowski 2026-05-07 13:11:13

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

d.7: Document macro variables
MFC after:    1 week
2b9301a22bc677239d3c0dc783d970f17e7ca294 Mateusz Piotrowski 2026-05-07 14:20:46

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

smartpqi.4: Document runtime debug_level sysctl
Update smartpqi(4) to document the dev.smartpqi.<unit>.debug_level
sysctl for runtime debug level changes, and note that device
add/remove and controller event messages always appear in dmesg
regardless of the debug_level setting.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294161
Reviewed by:    imp
Approved by:    imp
MFC after:      2 weeks

Differential Revision:  https://reviews.freebsd.org/D56832
e9912b7e88e7d66c0ab5fec1cfe61dcd18377166 John Hall 2026-05-04 22:14:28

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

gpart(7): Fix reference to the zfsprops man page
6499888ca741bf3db90d7fd352d5480f7314337f Paarth Shirsat 2026-05-09 13:58:36

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

Hardware support

Hardware drivers and architecture-specific code.

dpaa: Fix copyright headers
Reported by:  ziaee@
Fixes:  https://cgit.freebsd.org/src/commit/?id=fd8d34ce27 ("dpaa: Migrate from NCSW base to a home-grown driver")
7a40b8a89e7da2a7e8d8e132bc37885b22e9bfb1 Justin Hibbits 2026-05-04 01:43:44

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

rs5c372a: Fix copyright header
Reported by:  ziaee@
Fixes:  https://cgit.freebsd.org/src/commit/?id=d22051b18 ("iicbus/rtc: Add driver for the Ricoh rs5c372 RTC")
7b5a23b12451a71a8377c7ef674b716a54751e92 Justin Hibbits 2026-05-04 01:45:11

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

asmc: rename wol sysctl to auto_poweron
Older SMC firmware exposed AUPO as a Wake-on-LAN control. On updated
firmware, the key controls automatic power-on when AC power is restored
after a power loss; WoL is handled by the GBE controller instead.
Rename the sysctl to reflect the current semantics. No compatibility
alias is provided as the sysctl has not appeared in any release.

Reviewed by:    ziaee, adrian
Differential Revision:  https://reviews.freebsd.org/D56747
36b399f55e3fa16063188b6f8ad8eaaf8c2215ab Abdelkader Boudih 2026-05-04 14:26:44

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

mii: Fix SMSC name
The LAN8700 / LAN8710 PHYs were Standard Microsystems Corporation (SMSC)
parts.  I presume SMC was chosen as an abbreviation, but the company
always used SMSC as its short name.

SMSC was acquired by Microchip in 2012.  I kept the pre-acquisition
name, as NetBSD (from where we obtained miidevs) uses SMSC.

Reviewed by:    adrian
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56819
89c883c09ab5e0fdca7ac5dfe74fcc46b7669eb5 Ed Maste 2026-05-04 23:13:44

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

acpi_panasonic: acquire serial lock before calling hkey_sound_mute in shutdown
acpi_panasonic_shutdown() calls hkey_sound_mute() without holding
the ACPI serial lock. Every other call site holds
`ACPI_SERIAL_BEGIN(panasonic)` before calling it, as the locking
model is caller-owned.

This seems to affect the whole Panasonic Toughtbook lineup btw.

Reviewed by:    ngie
Differential Revision:  https://reviews.freebsd.org/D56718
7619d14d08a0036a07dce670f55b9568f8133b38 Abdelkader Boudih 2026-05-05 19:49:01

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

smsc: Add missing newline to PHY timeout error printf
0979bfb0ec804590a782ea33b787ec0989c1f1a4 Ed Maste 2026-05-05 23:50:46

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

ichsmb: add Ice Lake-LP (0x34a3) and Ice Lake-N (0x38a3) SMBus device IDs
Add PCI device IDs for two Ice Lake PCH SMBus controller variants:
- 0x34a3 (Ice Lake-LP), previously listed as the generic "Ice Lake" entry (ID_ICELAKE), renamed to ID_ICELAKELP for clarity.
- 0x38a3 (Ice Lake-N), a separate PCH variant not previously supported.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D56732
081d3ab24e03d271a0de3b173802fbe71f52e8aa Abdelkader Boudih 2026-05-05 23:59:10

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

mlx5en: destroy TIR before DEK during TLS RX teardown
Reorder the TLS RX teardown sequence so the TIR is destroyed before
the DEK.  DESTROY_TIR for a TLS-enabled TIR issues a TRA RX fence
that drains all in-flight packets from the crypto pipeline.  If the
DEK is destroyed first, packets still in flight hit a TPT encryption
error (vendor syndrome 0x55) because the key they reference is
already gone.

Reviewed by:    kib
Sponsored by:   Nvidia networking
MFC after:      1 week
bf636accdde4bb9af2c6c07af5420dffffd82332 Ariel Ehrenberg 2026-04-15 21:45:07

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

virtio_p9fs: Fix kernel panic on module unload
The virtio_p9fs module event handler can be invoked multiple times.
Previously, this caused p9_init_zones() and p9_register_trans() to be
executed multiple times, leaking UMA zones and corrupting the transport
list. During module unload, p9_destroy_zones() was also called multiple
times on the same zone pointers, triggering a duplicate free kernel panic
in uma_zdestroy().

This patch introduces a static reference counter in vt9p_modevent() to
ensure the zones and transports are only initialized and destroyed exactly
once, aligning with the approach used by other virtio drivers like vtnet.

Reviewed by:    kib, markj
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D56497
3fe5069ce2bf5b2702f3be6531ce6a05c584e64d Alex Richardson 2026-05-07 04:21:23

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

smartpqi: Add runtime sysctl for debug_level and log device state changes
The smartpqi driver did not log device add/remove or controller events
to syslog, and hw.smartpqi.debug_level could only be set at boot via
loader.conf with no runtime sysctl interface.

Add a read-write sysctl at dev.smartpqi.N.debug_level for runtime
debug level changes. Add device_printf calls for device addition,
removal, and controller events (hotplug, hardware, physical/logical
device, AIO state/config changes) so state changes always appear in
dmesg. Add DBG_DISC logging for discovery state transitions. Fix
spelling errors in strings and comments across the driver.

Bump driver version to 14.4691.1.2000 / 15.2.1.2000.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294161
Reviewed by:    imp
Approved by:    imp
MFC after:      2 weeks

Differential Revision:  https://reviews.freebsd.org/D56832
0d48d6d7bba77d6c3736ce56ea5667bfbde89705 John Hall 2026-05-04 21:43:27

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

cxgbe(4): Updates to the hw and fw headers and config file
MFC after:    1 week
Sponsored by:   Chelsio Communications
1bef5535c1f191055e545cad029eabe939d93d24 Navdeep Parhar 2026-03-09 18:19:49

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

hwpstate_amd: Initialize CPPC driver type
Assign the driver type instead of preserving uninitialized stack data

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294899
Reviewed by:    aokblast
072f79d0a287528b11da866d6115f726a69eca0d Laurent Chardon 2026-04-30 12:08:30

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

pci: use uint32_t for eecp
eecp holds the extended capability offset. If that offset is larger
than 0xff, storing it in uint8_t truncates it, which can make the
early EHCI/XHCI capability walk read the wrong location and loop during
boot.

Seen on AMD device 1022:151e, where HCCPARAMS1 = 0x0118ffc5 and the
first xHCI extended capability offset is 0x460. Widen eecp to uint32_t
in xhci_early_takeover(), matching xhci_pci_take_controller().

Signed-off-by: Gisle Nes <gisle@gisle.net>
Reviewed by:    zlei, aokblast
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2127
Closes:         https://github.com/freebsd/freebsd-src/pull/2127
555ffd9022de0c497881bafc413e3e1d05af10d4 Gisle Nes 2026-04-07 16:48:15

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

Networking

Network-related commands, library, and kernel.

pfsync: reject invalid SCTP states
SCTP states should always have a src scrub object associated with them.
Crafted pfsync packets might not have this, leading to us derferencing a
NULL pointer on cleanup.

Validate the pfsync state insertion packet to make sure this is correct.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294989
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")
bf6d00afdb6171ba04a1c5a7fde904cde87d212d Kristof Provost 2026-05-04 16:08:35

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

pf: do not reject rules with colliding hashes
We insert rules in pf_krule_global solely for the benefit of the
'keepcounters' feature. Failing to insert (beause the rule hash
collides, or an identical rule already exists) would be worse than
restoring counts to the wrong rule (or failing to restore them at all).

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282863, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294860, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294859, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294858
MFC after:      3 days
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D56745
a0e4c65f1814a7a677364dc29bb703f84323d175 Kristof Provost 2026-04-29 15:04:44

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

pfctl: handle errors from PFNL_CMD_GETSTATES
Sponsored by: Rubicon Communications, LLC ("Netgate")
c24b1d9359b899c7532d5b296f37cf3d74a36942 Kristof Provost 2026-05-05 16:57:25

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

if_vlan: Use the exclusive lock everywhere
Running sys/net tests in parallel reveals some panics which look like
the one below:

```
shared lock of (sx) vlan_sx @ /home/markj/sb/main/src/sys/net/if_vlan.c:2395
while exclusively locked from /home/markj/sb/main/src/sys/net/if_vlan.c:1850
panic: excl->share
cpuid = 9
time = 1776467219
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00d84e0780
vpanic() at vpanic+0x136/frame 0xfffffe00d84e08b0
panic() at panic+0x43/frame 0xfffffe00d84e0910
witness_checkorder() at witness_checkorder+0xdb1/frame 0xfffffe00d84e0ad0
_sx_slock_int() at _sx_slock_int+0x64/frame 0xfffffe00d84e0b10
vlan_ioctl() at vlan_ioctl+0x25c/frame 0xfffffe00d84e0b70
if_setflag() at if_setflag+0xdc/frame 0xfffffe00d84e0be0
ifpromisc() at ifpromisc+0x27/frame 0xfffffe00d84e0c00
vlan_setflags() at vlan_setflags+0x64/frame 0xfffffe00d84e0c30
vlan_unconfig_locked() at vlan_unconfig_locked+0xb7/frame 0xfffffe00d84e0c70
vlan_clone_destroy() at vlan_clone_destroy+0x5d/frame 0xfffffe00d84e0cb0
if_clone_destroyif_flags() at if_clone_destroyif_flags+0x8c/frame 0xfffffe00d84e0cf0
if_clone_detach() at if_clone_detach+0x106/frame 0xfffffe00d84e0d20
vnet_destroy() at vnet_destroy+0x154/frame 0xfffffe00d84e0d50
prison_deref() at prison_deref+0xaf5/frame 0xfffffe00d84e0dc0
sys_jail_remove() at sys_jail_remove+0x1a7/frame 0xfffffe00d84e0e00
amd64_syscall() at amd64_syscall+0x169/frame 0xfffffe00d84e0f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00d84e0f30
--- syscall (508, FreeBSD ELF64, jail_remove), rip = 0x25bd44705ca, rsp = 0x25bcfe72ab8, rbp = 0x25bcfe72b40 ---
```

All vlan interfaces are locked by a single recursive global lock.  There
are cases, like in the panic above where vlans are stacked on top of
each other, where the driver tries to acquire an exclusive lock while
holding a shared lock, and vice versa.

With longer-term goals of making the networking regression test suites
stable when run in parallel, and simplifying network control plane
locking, which I find is quite complex and buggy, let's change if_vlan
to use the exclusive lock everywhere.

Reviewed by:    pouria, zlei, kp, glebius
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D56778
486c2dfaa7b9ed1ed79662584c9b0f4fd0c23d67 Mark Johnston 2026-05-06 11:48:24

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

pfctl: optionally print the rule in the state overview
When dumping states optionally (at '-vv') also show the rule which
created the state. This can be helpful if the ruleset changed and we
want to know what rule created the state.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
726ff260ecfa38878aec982456c44ddb0f9c791b Kristof Provost 2026-05-05 12:42:16

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

if_geneve: Fix uninitialized variable use in geneve_udp_input()
Set the ifp variable as soon as soft_c becomes available
so that interface statistics can be incremented.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295129
Reported by:    Robert Morris <rtm@lcs.mit.edu>
Fixes:          https://cgit.freebsd.org/src/commit/?id=e44d2e941e8e ("if_geneve: Add Support for Geneve ...")
70ef02b5d3fdbc4f51ea81404c4cbca310083ce6 Pouria Mousavizadeh Tehrani 2026-05-10 19:25:53

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

System administration

Stuff in man section 8 (other than networking).

bsdinstall: Always use pkg.FreeBSD.org
The FreeBSD-base bits are accessible via pkg.FreeBSD.org, even for
releases, so there is no need to point at pkgbase.FreeBSD.org.

MFC after:      3 days
89b97931d6d415d7a2504d8ea2c99beafd77cf24 Colin Percival 2026-05-05 02:43:59

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

init: allow to specify a custom path for rc(8)
This is useful for testing alternative service managers
without modifying /etc/rc

MFC After:      1 weeks
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56828
9f2ad7c09709e01ff6b856df0315e91ddc20df32 Baptiste Daroussin 2026-05-05 12:00:41

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

certctl: Unstickify (un)trusted certificates
Ever since certctl was rewritten in C, the rehash command has reingested
TRUSTDESTDIR / UNTRUSTDESTDIR in addition to TRUSTPATH / UNTRUSTPATH.
This seemed like a good idea at the time but was, in retrospect, a
mistake, as it means a (un)trusted certificate remains (un)trusted
forever (or at least until it expires) even if it is removed from
(UN)TRUSTPATH.  Among other issues, it causes ports QA to fail for any
port that either installs certificates or depends on a port that does.

Although this behavior was undocumented, the change may surprise users
who have added certificates manually, so update the manual page to point
it out and add prominent warnings to the trust and untrust commands.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290078
MFC after:      1 week
Reviewed by:    kevans, bcr
Differential Revision:  https://reviews.freebsd.org/D56617
2fef18ff594328a771b6aa659e8ffa5a7e076540 Dag-Erling Smørgrav 2026-05-05 22:30:52

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

devmatch: read linker.hints from all module paths
Previously, devmatch would stop at the first linker.hints file
found in kern.module_path. This meant modules installed in
/boot/modules/ were invisible to devmatch if /boot/kernel/
contained a linker.hints file (which it always does).

Merge hints from all directories in kern.module_path.
This allows third-party or out-of-tree kernel modules in
/boot/modules/ to be auto-loaded by devmatch just like
built-in modules.

Reviewed by:            imp
Differential Revivion:  https://reviews.freebsd.org/D56847
748402ebf2d7a08b13d0b21694afdaad55cfa9cd Baptiste Daroussin 2026-05-06 13:11:16

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

bhyve/virtio-scsi: Don't invoke iov_to_buf() in an assert() expression
If anyone would build bhyve with -DNDEBUG, any code in the expression
in assert() won't be executed.  Instead put the return value in a
temporary variable to assert that it has the expected value.

Reviewed by: emaste, markj (earlier version)
Fixes: https://cgit.freebsd.org/src/commit/?id=2a514d377b37 ("bhyve/virtio-scsi: Preallocate all I/O requests")
Differential Revision: https://reviews.freebsd.org/D55803
bc9f667eb11d9b47541f834faefbc6aac077cee2 Hans Rosenfeld 2026-03-10 19:14:10

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

rtadvd(8): Honor pltime/vltime in interface declarations
Currently rtadvd ignores interface pltime/vltime specifications
unless the (static) address range is also included in the config file.
This extends the validity of a pltime and/or vltime stanza in
the config file for an interface to delegated addresses from
an upstream provider.

Signed-off-by:  tickerguy <karl@denninger.net>
PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288426
Reviewed by:    pouria
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1863
103f9883d1ed7431c432caa6ab9c61cd4d0831d0 tickerguy 2025-09-29 16:05:29

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

nuageinit: only parse user_data as yaml when necessary
This fixes a regression introduced in cae280931c9e which prevents
user_data as a shell script to be used

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295062
Reported by:    Ross McKelvie <ross@exitzero.uk>
MFC After:      1 day
c316ec259011e9e22e40eaa72d834f3bfac95c28 Baptiste Daroussin 2026-05-06 20:14:17

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

nuageninit: modify the test to show the issue fixed inc316ec259011
Ensure the script used is invalid when parsed by libyaml which
highlight the issue revealed in PR295062

while at here validate the mode of the file is properly changed

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295062
MFC After:      1 day
2a86992ab5019b4997ccadf7427011ba44e33c97 Baptiste Daroussin 2026-05-06 20:45:50

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

jail: avoid leaking jail config fds to exec.* hooks
The jail(8) command must not leave parsed configuration files open
since the file descriptors will be leaked to child processes
including the untrusted exec.start or exec.stop hooks.

While fopen() doesn't provide direct access to O_CLOEXEC, it does
provide access to FD_CLOEXEC via "e" in the mode string which
provides the desired defense in depth against leaking file descriptors
into exec.* hooks since those always execve() into a shell.

Jail configuration is potentially sensitive and some hooks execute from
within the jail context, leaving some opening for the jail to exfiltrate
information about the host environment.

(Commit message wordsmithed by kevans)

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295052
Reviewed by:    kevans
MFC after:      3 days
276d9b88a9e6fd6fd90e57c36444756ad297d2ab Jan Bramkamp 2026-05-06 23:28:53

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

jail: open the fstab files with fopen("re")
This protects against accidentally leaking them past fork()+exec()
in future refactorings.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295052
Reviewed by:    kevans
58811b0ae096c134af372bcf475aea1d8d0e3c08 Jan Bramkamp 2026-05-06 23:28:53

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

devd: Use PF_LOCAL instead of PF_INET
Avoid dependency on INET (IPv4) by using PF_LOCAL,
allowing media check to work on systems without INET support.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295045
Reviewed by:    kevans
MFC after:      1 week
b2e4da0b53ad082768b8f6f83766e030fd00d02a Marek Zarychta 2026-05-07 01:28:08

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

pfctl: relax interface name requirement
The FreeBSD network stack, for better or worse, does not impose any
requirements on interface names. As such it's valid for an interface
name to start with a number (or indeed, be something like '⭐').

Allow this in pfctl, and add a test case for the specific case of
interface names starting with a number.

Note that we don't support UTF-8 names fully, so those may still fail.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295064
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")
4e7c1ff95a5187faee524055f22c4cf4134d1147 Kristof Provost 2026-05-07 09:58:17

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

fsck_msdosfs: fix FAT header correction not persisting in cache mode
When fsck_msdosfs runs with FAT32 cache mode (used for large
filesystems that cannot be mmap'd), a detected FAT header correction
was written into the in-memory buffer but the corresponding cache
entry (fat32_cache_allentries[0]) was never marked dirty.  As a
result, fat_flush_fat32_cache_entry() skipped it, the corrected
bytes were never written to disk, and copyfat() propagated the
uncorrected on-disk data to all backup FAT copies.  Every subsequent
fsck run would repeat the same "FAT starts with odd byte sequence /
FIXED" cycle indefinitely.

Fix by marking fat32_cache_allentries[0].dirty = true after applying
the in-memory correction, ensuring the chunk is flushed before
copyfat() runs.

Obtained from:  https://android-review.googlesource.com/c/platform/external/fsck_msdos/+/4047981
MFC after:      3 days
10e342c1ec78af5a0b97739c806b16a632118fa5 Lianwei Wang 2026-05-09 04:56:12

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

BSD.root.dist: Correct tag for /etc/sysctl.kld.d
This is only used by rc.subr and belongs in rc, not runtime.

Fixes:          https://cgit.freebsd.org/src/commit/?id=fa6d67cd16b5 ("BSD.root.dist: Add package tag for all directories")
MFC after:      3 days
Reviewed by:    ivy
Differential Revision:  https://reviews.freebsd.org/D56900
44338ccd12685621c4b1c57e692a4f27f5a655d3 Dag-Erling Smørgrav 2026-05-09 09:04:08

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

stand/i386: quiet executable stack warning
Reviewed by:  imp, kib
Differential Revision:  https://reviews.freebsd.org/D56908
0f6c880fcecdbb9cc84ed03ee85a518dd3c66f12 Ryan Libby 2026-05-10 04:25:43

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

Commit group #0: nuageinit
nuageinit: add decode_base64 tests
68fd0feacb8ce5da9c47deea5505b3241b2ba6ec Baptiste Daroussin 2026-05-07 17:17:56

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


nuageinit: add addsudo tests
a49b3b10aae2db1f4a4ecf310fdedc80eb6bb7e2 Baptiste Daroussin 2026-05-10 15:54:47

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


nuageinit: add adddoas tests
0f92bee2b3e08ffa34720a2eeffbce01af3f19f9 Baptiste Daroussin 2026-05-10 15:54:48

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


nuageinit: add update_sshd_config tests
8b03193289e87fd243acc50c5128c80459792667 Baptiste Daroussin 2026-05-10 15:54:48

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

Libraries

libusb: Add libusb_endpoint_transfer_type enum
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
261002908ffd9f13d19d1c6be6f82edac26b6938 ShengYi Hung 2026-05-05 14:39:29

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

libusb: fix incorrect status type when completion on cancel the events
Reviewed by:    lwhsu, markj
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51736
06271366982eb6fe59502fcdf95a1a22e0671d5f ShengYi Hung 2025-08-05 09:41:17

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

libc: correct posix_spawn_file_actions_init ENOMEM error
The return value of posix_spawn_file_actions_init() is an error number.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56911
3ca8ec19b6ecc8ae4413d0505ce2d0efdd3e52c8 Jilles Tjoelker 2026-05-09 22:01:50

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

libc: add freadlink(3)
Sponsored by: The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56365
a2e0822543e93a8d815acd2d1c3d51ef73d6e262 Konstantin Belousov 2026-04-12 08:56:26

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

[libm] implementation of rsqrt, rsqrtf, and rsqrtl
From the PR:
The attached diff implements the inverse square root function, i.e,
rsqrt(x) = 1 / sqrt(x).  Exhaustive testing of the float version
suggests that it is correctly rounded in round-to-nearest for all
test values in the range [0x1p-127,0x1p126].
Exhaustive testing of rsqrt and rsqrtl cannot be done, but 1100M
values of x for rsqrt and 400M values for rsqrtl were tested.  All
tested values were correctly rounded.

I do not have access to LD128 (i.e., IEEE 128-bit floating point)
hardware, so the implementation of rsqrtl() is untested.

The following is a summary of changes to source code.

* lib/msun/Makefile:
  . Add s_rsqrt.c and s_rsqrtf.c to COMMON_SRCS.
  . For non-53-bit long double targets, add s_rsqrtl.c to COMMON_SRCS.
  . Add MLINKS for rsqrt.3, rsqrtf.3, and rsqrtl.3 to sqrt.3.

* lib/msun/Symbol.map:
  . Add rsqrt, rsqrtf, and rsqrtl to the Symbol map for shared libm.so.

* lib/msun/man/sqrt.3:
  . Update the sqrt.3 manual page to include information for rsqrt[fl].
  . Note, these function come from ISO C23 (and IEEE-754 2008).

* lib/msun/src/math.h:
  . Add prototypes for new functions.

* lib/msun/src/math_private.h:
  . Add _SPLIT, _FAST2SUM, _SLOW2SUM, _XADD, _MUL, and _XMUL
    macros to perform type-type arthimetic (i.e., float-float).

* src/s_rsqrt.c:
  . New file with the implementation of 'double rsqrt(double)'.
  . For 53-bit long double targets, add a weak reference for rsqrtl.

* src/s_rsqrtf.c:
  . New file with the implementation of 'float rsqrt(float)'.

* src/s_rsqrtl.c
  . New file with the implementation of 'long double rsqrt(long double)'.
    Note, the LD80 version uses bit twiddling and LD128 version is a
    straight C language implementation.  The LD128 is untested due to
    lack of hardware.

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295089
MFC after:      1 week
3085fc9d97bd83785ba3ba43e0378d7d67987d1f Steve Kargl 2026-05-08 14:06:08

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

Filesystems

nfs_nfsdserv.c: Clip number of callback slots
The client tells the server how many callback slots
it can handle in the callback session.  However, the
NFSv4.1/4.2 server can only handle a maximum of
NFSV4_SLOTS slots.  This patch clips the client's
value to that, to avoid using too high a slot#
for a callback.

Fortunately, I do not know of an extant client that
specifies a value greater than NFSV4_SLOTS, so this
patch is not really needed, as yet.  Also, the client
rarely uses a slot# above 0 when doing callbacks.

MFC after:      2 weeks
03e9e83f358678bab5e4c1ddf9c9d8faa7183cbb Rick Macklem 2026-05-05 00:04:00

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

nfs_clsubs.c: Fix ncl_getcookie() when "pos" is negative
In ncl_getcookie(), a very large value for "off" for
a directory can result in "pos" being set to a bogus
value (including a negative one), due to truncation.
When "pos" is negative, is can skip past the
while (pos >= NFSNUMCOOKIES) loop and return a
bogus pointer instead of NULL.

This patch changes the type to u_int and also adds
a sanity check for a very large "off" to ensure that
a NULL pointer is returned for this case.

This bug has been in the code for decades and I am
not aware of any report of it causing a problem for
users.

Reviewed by:    markj
Reported by:    Joshua Rogers of AISLE Research Team
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D56779
448b4c3f7f7dd4c7e1707d7b833a26294c297182 Rick Macklem 2026-05-06 14:54:55

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

p9fs: implement basic pathconf support
This is needed for various pjdfstest tests which fail with syntax errors
if pathconf _PC_NAME_MAX/_PC_PATH_MAX return -1. For NAME_MAX we can use
the 9P2000.L Tstatfs call to get namelen from the host. While this could
theoretically be different for nested filesystems in the shared mount it
is a much better guess than just returning 255.
There does not seem to be a way to get the host PATH_MAX, so we just
return the conservative kernel default.

Found while fixing https://github.com/CTSRD-CHERI/cheribsd/issues/2617.

Reviewed by:    markj, kib
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D56493
96b2f4a9124158f27c4c27c32f6fa1a6018250fb Alex Richardson 2026-05-07 04:22:23

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

p9fs: Fix creating files with restrictive permissions
When a file is created via p9fs with restrictive permissions (like 000),
the 9P TCREATE request successfully creates and natively opens the file,
returning an open, writable file descriptor. Previously, p9fs would
attempt a subsequent TOPEN. That TOPEN would fail with EACCES due to the
restrictive mode, leaving a 0-byte file and causing operations like 'mv'
to abort.

We now preserve the writable descriptor returned by TCREATE so that the
subsequent VOP_OPEN can use it directly, avoiding the failing TOPEN.
Additionally, p9fs_compatible_mode now appropriately isolates the base
access intent when matching fids, preventing extended flags from
breaking the match.

A test case for this behavior has been submitted to pjdfstest:
https://github.com/pjd/pjdfstest/pull/87

Resolves: https://github.com/CTSRD-CHERI/cheribsd/issues/2617

Reviewed by:    markj
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D56494
40d59ee35dc106cda88d66e37527975a32596cd7 Alex Richardson 2026-05-07 04:23:27

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

Kernel

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

execve: Add guard pages around execve KVA buffers
This helps ensure that overflows will trigger a panic instead of
silently corrupting adjacent buffers, as happened in SA-26:13.exec.

Extend kmap_alloc_wait() to support allocation of guard pages on both
sides of a KVA allocation.  Modify the exec_map setup accordingly.  Add
the "vm.exec_map_guard_pages" tunable to provide control over the guard
page allocations.

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D56711
eca4dd133883c9e9aaeca68e0119a638ba0aaca7 Mark Johnston 2026-05-04 15:38:54

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

linuxkpi: Implement `module_*()` APIs as static functions
This fixes an "unused variable" warning when building DRM drivers.

Reviewed by:    emaste
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56780
658bb99db9c7872f92ccb86ed2674c72636436d2 Jean-Sébastien Pédron 2026-05-04 07:45:38

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

nfs_pub: move from vfs_subr.c to vfs_export.c
nfs_pub is used only in vfs_export.c.

Reviewed by:    kib, rmacklem
Differential Revision:  https://reviews.freebsd.org/D56777
6f84579ae4d107635e32fc3fcfc34669adc7b3f5 Ryan Libby 2026-05-05 05:55:11

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

mac_veriexec_priv_check block proc_write_*regs*
Writing to /proc/$pid/regs can also be leveraged to mess with memory.

Only allow a trusted process to do so.

Sponsored by: Hewlett Packard Enterprise Development LP.

Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D56763
adad6862228d1799e7e12c724b2534b4184f7d45 Simon J. Gerraty 2026-05-05 17:29:54

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

Commit group #1: eventhandler: Fix a race when pruning eventhandlers
eventhandler: Fix a race when pruning eventhandlers

By default, eventhandler_deregister() blocks until it reaches some point
where no threads are invoking the event.  At this point, it knows that
1) no threads are currently executing the handler,
2) some thread has freed the eventhandler structure by virtue of having
   called eventhandler_prune_list(),
so it is safe to return.

Suppose a thread is trying to deregister an event handler.  A different
thread prunes it, and wakes up the first thread.  Before the first
thread runs, a third thread grabs the event handler lock, and starts
executing handlers.  The first thread observes el_runcount > 0, and goes
back to sleep.  The third thread sees no event handlers to prune, and
doesn't wake up the first thread, which sleeps forever.

This change fixes the race and tries to make eventhandler_invoke() more
efficient: keep a count of the number of dead list entries and only
prune the list if there is at least one dead entry.  Also, in
eventhandler_deregister(), we only need to sleep if some dead entries
are present, rather than sleeping whenever some thread is running
handlers.

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D56767
735b16d490aee158beb54c415b716475a0d19cda Mark Johnston 2026-05-06 11:48:05

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


eventhandler: Fix the NODEBUG build

Reported by:    Michael Butler <imb@protected-networks.net>
Fixes:          https://cgit.freebsd.org/src/commit/?id=735b16d490ae ("eventhandler: Fix a race when pruning eventhandlers")
3d8928114c4fec6cefbb1cd566ef8d1b3d2999e2 Mark Johnston 2026-05-06 14:39:52

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

sys/cdefs.h: Introduce __maybe_unused attribute
The __maybe_unused attribute should be used for variables which may or
may not be used, such as when their only use is in an assertion. This
attribute is functionally identical to __unused, suppressing compiler
warnings for particular variable if it remains unused.

Reviewed by:    Minsoo Choo <minsoo@minsoo.io>, imp
Differential Revision:  https://reviews.freebsd.org/D56517
84a95741805d84f0074a34d61b93ccf86f422cf3 Hans Rosenfeld 2026-04-16 18:22:44

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

kobj: Assert class passed to kobj_init_static is compiled
Inspired by discussion in
https://github.com/freebsd/freebsd-src/pull/2016

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D56624
5a6e5954d14b589bcba0125d10a6c7b62b588f4b John Baldwin 2026-05-06 20:53:46

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

kobj: Use M_WAITOK in kobj_init
Blocking allocation is safe in all of the current callers of kobj_init
(most of them do a M_WAITOK malloc of the structure passed as the
first argument to kobj_init just before calling it).  kobj_init
doesn't return an error code but instead panics if the nested malloc
in kobj_class_compile1 fails, so using M_WAITOK here is more robust.

Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D56625
5df7dae10dc02ade8639b0171e0d3cc8db790e41 John Baldwin 2026-05-06 20:53:46

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

Remove PROC_CHECK_PRIV macro from sys_process.c
Just put the priv_check calls in the code.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56864
586838724e4086016ad62f0914248fc58ce26e35 Simon J. Gerraty 2026-05-07 03:49:06

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

sys: Make priority.h and rtprio.h include all dependencies
This ensures this header can be included without an explicit or implicit
sys/types.h include first. This causes issues building SPEC2017 which
includes sys/rtprio.h and then we get an error due to missing u_char
definition.

Reviewed by:    emaste
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D52041
3daa43b1bb2cf68f32993e342f59eb146afb7c24 Alex Richardson 2026-05-07 04:20:39

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

p9fs: Move UMA zone initialization to VFS module lifecycle
Previously, the UMA zones required for 9P requests (p9fs_buf_zone,
p9fs_req_zone, etc.) were initialized and destroyed in the
virtio_p9fs transport module. This caused issues when unloading
the core p9fs module.

This change moves p9_init_zones() and p9_destroy_zones() into
p9fs_init() and p9fs_uninit() inside p9fs_vfsops.c so that they
are correctly bound to the VFS filesystem module lifecycle via
vfs_modevent, aligning p9fs with standard FreeBSD VFS semantics.

Found while fixing https://github.com/CTSRD-CHERI/cheribsd/issues/2617.

Reviewed by:    kib
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D56492
1ed2ef42e01771f5d8ca9be61e07dcf0fd47feba Alex Richardson 2026-05-07 04:21:50

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

bufspace_wait(): only try to help bufdaemon if there is a chance to help
Only call buf_flush() if there are some dirty buffers belonging to the
vnode we are allocating the buffer for.  Otherwise the bd dirty queue
scan cannot find anything and it makes no sense to spend CPU doing it.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
ce4e8c478a261ce6c7af7d81817f86420c5239b9 Konstantin Belousov 2026-04-22 05:09:34

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

vm_map_growstack(): consistently use local vars instead of curthread/proc
Reviewed by:  markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56863
642dd17ee94377c3d5533d05d0d9a58b88f60387 Konstantin Belousov 2026-05-07 16:00:31

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

vm_map_growstack(): give a hint to user that stack was blown out
Reviewed by:  markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56863
18c5a26f8a747583b9bca3a6a1ae9db1ed4591a3 Konstantin Belousov 2026-05-06 22:53:59

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

vm_map_growstack(): use local for p->p_vmspace
Noted by:     alc
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
8eef59db254283eaaee47be94d4ea9f2fef4f2ad Konstantin Belousov 2026-05-07 19:58:18

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

Fix LOCAL_PEERCRED in 32-bit compat mode
Previously the cr_pid field would be incorrectly copied to userland, due
to a size mismatch between the structure as defined in 32-bit vs 64-bit
builds.  Fix it by converting the structure before copying it to
userland.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294833
Sponsored by:   ConnectWise
MFC after:      1 week
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D56675
1d24638d3e8875e4b99a4b5e39f4241e37221b3d Alan Somers 2026-04-27 23:46:53

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

types: provide __SIZEOF_{INT{8,16,32,64},TIME,TIME32}_T
Suggested by: kib
Reviewed by:    imp, kib
Discussed with: emaste, jrtc27
Differential Revision:  https://reviews.freebsd.org/D56783
94323513dd5070bf1fc3c191c560bd7e17da8931 Ryan Libby 2026-05-08 19:37:24

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

sys/time: rework saturation ifdef to avoid direct arch ref
Suggested by: kib
Reviewed by:    imp, kib
Differential Revision:  https://reviews.freebsd.org/D56401
324d53c26b2399d9b44fdd08e9c5af650f4ec3ae Ryan Libby 2026-05-08 19:37:24

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

vfs_subr: mark uma zone and smr pointers __read_mostly
Reviewed by:  kib
Differential Revision:  https://reviews.freebsd.org/D56892
58e5b4dbd9594f9553cfe9df68a19a294e245ed7 Ryan Libby 2026-05-10 04:25:12

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

Add O_SYMLINK emulation
for MacOSX partial compatibility, defined as O_PATH | O_NOFOLLOW.
fstat(2) and freadlink(3) works on the resulting file descriptors,
but reads on the regular file do not.

More complete but more hackish version was developed but deemed too
hackish.

Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
Differential revision:  https://reviews.freebsd.org/D56365
428da7d65b1c41c81a8786f66c1ce2f4242ac8bb Konstantin Belousov 2026-04-20 20:02:13

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

vfs: convert vfs_op_thread_* macros to static inlines
Reviewed by:  markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
32cf4514cad66ff69ffc96ede20d8debc9b96790 Konstantin Belousov 2026-04-24 01:26:11

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

vnode: add VIRF_KNOTE flag
to indicate non-empty vnode knote list.  Use it instead of
VN_KNLIST_EMPTY() and guard note activations with it.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
1d5e4020e36e1cc9e906200c9c3c784ef43d977e Konstantin Belousov 2026-04-24 01:31:27

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

vop_read_pgcache_post(): report inotify IN_ACCESS same as for vop_read_post()
Reviewed by:  markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
e9a5eb0e5e44e79d0f8dc71274b0183926abd562 Konstantin Belousov 2026-05-06 20:29:28

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

vfs: convert VFS_OPs from macros to static inlines
Reviewed by:  markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
a57420b214b04de3d066236b555925ffbcb93daa Konstantin Belousov 2026-04-24 01:31:27

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

sys/vnode.h: remove stale comment
The source sweep is not going to happen.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56611
5e4947f7e08a90ba50f9e8cea9ae5e128717cb5f Konstantin Belousov 2026-04-24 02:06:02

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

sys/cdefs.h: move __BEGIN_DECLS/__END_DECLS into a helper sys/_decls.h
There are situations where nothing from sys/cdefs.h is needed except for
the declaration braces.  More, the other facilities from sys/cdefs.h
might unnecessarly pollute the namespace.

Reviewed by:    markj, imp
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56889
ea72f6d5a8b9386a09e23fbdc933effb007ca899 Konstantin Belousov 2026-05-08 14:13:35

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

Build system

llvm: Don't install /usr/bin/{gcov,objdump} twice
Commit c4f08d46c7f7 moved the symlinks for the LLVM binutils from LLVM
itself to the toolchain (usr.bin/clang/toolchain), but did not remove
the links for /usr/bin/gcov and /usr/bin/objdump from the llvm version,
meaning we installed them twice, once in the clang package and once in
the toolchain package.

Remove the links from the llvm version and move the MLINKs to toolchain,
which is where the other MLINKs dwell.

While here, fix toolchain to use the correct build option for llvm-cov,
MK_LLVM_COV.

Fixes: https://cgit.freebsd.org/src/commit/?id=c4f08d46c7f7 ("llvm-*: Move all LLVM_BINUTILS symlinks to toolchain package")
Reported by:    jrm
Reviewed by:    jrm, dim, emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56788
045a9ef829fa30c2ba7af47ab34d3b2443024207 Lexi Winter 2026-05-04 13:49:20

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

packages: Make create-sets.sh more robust during release
Commit d1c176fedfc9 made create-sets.sh exit when it encounters an
error, instead of creating an empty repository.  However, this turns
out to cause some issues:

1. A package not having any sets is considered an error, but during
   the release build, we stuff a 'pkg' package into the repository
   which doesn't have any sets, which causes a failure.  Avoid this
   by simply ignoring the pkg package.

2. No error was printed in this case, which made the problem hard
   to diagnose.  Add an explicit error message.

3. A similar problem occurred running on a repository which already
   contained sets, which is not usually done during the build, but
   is not necessarly an inappropriate thing to do.  Fix this one by
   ignoring set packages when looking for sets.

While here, fix another issue that might cause packages to be wrongly
skipped if the path to the repository contains a '-' character, since
we didn't strip the path before testing the package name.

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294966
Fixes:  https://cgit.freebsd.org/src/commit/?id=d1c176fedfc9 ("packages: Make create-sets.sh more robust")
MFC after:      2 weeks
Reported by:    Alastair Hogge <agh@riseup.net>
Reviewed by:    emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56792
8e8d87856241f69c277dc5fab48c5c66312475d6 Lexi Winter 2026-05-05 00:31:20

debug: classified in 02-filenames_wildcards by 'release/.*'

ath{10,11,12}k: Add missing header in Makefile
Reviewed by:    bz
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56693
efc0ced5c46f3332bf1847f2889659e7f5412852 ShengYi Hung 2026-04-28 14:27:21

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

Makefile.vm: Split error condition
Make it clear which of two possible cases applies.

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D56837
76d756eaa6823aad282cc53ec4e41a9777d89adc Ed Maste 2026-05-05 21:12:25

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

dtrace: Document the syscall provider
MFC after:    1 week
Differential Revision:  https://reviews.freebsd.org/D56831
242050278a377f5ca6906545ddc924b60ad8aa58 Mateusz Piotrowski 2026-05-05 12:57:53

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

dtrace_mib.4: Document the DTrace MIB provider
Reviewed by:  kp
MFC after:      1 week
Obtained from:  60d8dbbef075 netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters
Differential Revision:  https://reviews.freebsd.org/D53709
ef19cae25337e7449f338914650bbfab0fbea99f Mateusz Piotrowski 2025-07-18 15:46:25

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

stand/libsa/zfs: disable ZSTD_TRACE and DYNAMIC_BMI2 code paths
Enabling ZSTD_TRACE leaves behind undefined weak symbols, which causes a
problem for gcc builds.  The bfd linker emits an obscure error about
overlapping FDEs.  We don't need ZSTD_TRACE for libsa, so just disable
it.

Also disable BMI2 instruction optimizations.  The addition of the
optional BMI2 code paths caused the boot loader binaries to grow larger
(28 KiB for clang, 32 KiB for gcc).  The boot loader binaries are size
constrained, and this pushed the gcc-generated lua_loader.bin over the
500000 byte limit, and the clang one to within 4k of the limit.

Fixes:  https://cgit.freebsd.org/src/commit/?id=8a62a2a5659d ("zfs: merge openzfs/zfs@https://cgit.freebsd.org/src/commit/?id=f8e5af53e")
Reviewed by:    delphij, imp, mm
Differential Revision:  https://reviews.freebsd.org/D56866
944a4eb089b33241b21979253e0a373ce0bdf984 Ryan Libby 2026-05-07 17:30:05

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

uio.9: Document uiomove_fromphys()
Reviewed by:  kib
Discussed with: markj, royger
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D54070
076e44839160f74f96fda83fa81c3acb41b9ebc8 Mateusz Piotrowski 2026-03-20 07:52:28

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

Make "make update-packages" idempotent
If the user runs "make update-packages" without bumping BRANCH, then it
isn't possible to copy packages from the old location to the new one
(because the two locations are the same).  So just skip that step.

Sponsored by:           ConnectWise
PR:                     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295085
MFC after:              1 week
Reviewed by:            ivy, emaste
Differential Revision:  https://reviews.freebsd.org/D56872
bd1e789b8452a8c2f166a3b4defb95330c71dadd Alan Somers 2026-05-07 18:18:29

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

Internal organizational stuff

README.md: Add packages/ directory
Fixes:        https://cgit.freebsd.org/src/commit/?id=bb75b0d581f7 ("packages: Convert world to a subdir build")
MFC after:      2 weeks
Reviewed by:    des, emaste
Differential Revision:  https://reviews.freebsd.org/D56839
e3e5b86e3b9e00f1fe89e54d13dcd665e63eb4c6 Lexi Winter 2026-05-06 14:45:54

debug: classified in 03-filenames_plain1 by 'README.md'

git-arc: Update the usage message to mention create -d
Fixes:        https://cgit.freebsd.org/src/commit/?id=448ec129bcef ("git-arc: Add a create-draft mode")
54625dfb363a4a00841ef7d7ee8e5cc5ea1156e0 Mark Johnston 2026-05-07 17:18:32

debug: classified in 03-filenames_plain1 by 'tools/tools/git/'

Testing

amd/int0x80 test: fix inline asm for gcc
Gcc complained about the unused %0 asm argument.

Fixes:  https://cgit.freebsd.org/src/commit/?id=2c2ec6bbc9cc ("tests/sys/arch/amd64: add a program to check INT $0x80 behavior on amd64")
Reviewed by:    kib, markj
Differential Revision:  https://reviews.freebsd.org/D56781
d5728351a58b87764f3302eb8c4ca9f35e99e8b6 Ryan Libby 2026-05-04 16:34:41

debug: classified in 02b-filenames_wildcards2 by 'tests\/.*'

tests: Add a simple regression test for an execve overflow bug
MFC after:    2 weeks
41b03932e59068decf03b7975889841f71c73ec4 Mark Johnston 2026-05-04 15:39:55

debug: classified in 02b-filenames_wildcards2 by 'tests\/.*'

stat: Set the timezone before testing -t flag
The test assumes UTC, which is what I use on my development systems and
clearly what is used on our CI runners.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D56836
49e496d2776870fb36ed8ea4c8139b5eb9f7f747 Dag-Erling Smørgrav 2026-05-05 17:59:36

debug: classified in 02b-filenames_wildcards2 by 'usr.bin/.*/tests/.*'

md5: Don't generate test cases just to skip them
Don't waste time generating Perl test cases for algorithms that are not
supported in Perl mode only to skip them when they are run.

MFC after:      1 week
Reviewed by:    ngie
Differential Revision:  https://reviews.freebsd.org/D56687
fd386e76fa2b29d99525c246cbfc05768a1f4a76 Dag-Erling Smørgrav 2026-05-05 19:44:29

debug: classified in 02b-filenames_wildcards2 by 'sbin/.*/tests/.*'

stat: Expand devname test case
Test what happens when we ask for the rdev of a non-device.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D56838
2c88636e0e7a0316d5e6d146874bdb2751f75c40 Dag-Erling Smørgrav 2026-05-07 18:45:14

debug: classified in 02b-filenames_wildcards2 by 'usr.bin/.*/tests/.*'

Style, typos, and comments

These could go in other categories, but it's more clear if they're here instead.

Fix typo in curthread
8334d46162e46f400b04b93d79e310153380d643 Simon J. Gerraty 2026-05-05 20:14:36

debug: classified in 01-style by '[tT]ypo'

freebsd-base.7: style
09d81767e32cb437da0ac7d1c3b51eed01591b82 Maxim Konovalov 2026-05-07 01:50:45

debug: classified in 01-style by '[sS]tyle'

thunderbolt: Fix typo in comment
Reported by:  adrian
Sponsored by:   The FreeBSD Foundation
fdd7daa2318ed3177e2674b9a3d18d21e2035ee1 Aymeric Wibo 2026-05-09 17:22:41

debug: classified in 01-style by '[tT]ypo'

Contrib code

zfs: merge openzfs/zfs@a12c6ed62
Notable upstream pull request merges:
 #18473 b8d959640 Fix rare cksum errors after rebuild
 #18477 e78a51dd6 Fix off-by-one in PREVIOUSLY_REDACTED handler that drops
                  last block
 #18482 d5099c330 Initialize vr_last_txg for rebuild
 #18483 872f01019 Zstd: rework ZSTD_isError symbol renaming
 #18489 366b1f9a3 Fix long POSIX_FADV_DONTNEED for single block files

Obtained from:  OpenZFS
OpenZFS commit: a12c6ed62fcd06093b95616515e4716b0b0bc038
efa8679e7f69c9cc225613827d9f75644cca5b3b Martin Matuska 2026-05-06 21:46:01

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

Merge commit 871038759afb from llvm git (by Marco Elver):
  Thread Safety Analysis: Fix pointer handling of variables with deprecated attributes (#148974)

  de10e44b6fe7 ("Thread Safety Analysis: Support warning on
  passing/returning pointers to guarded variables") added checks for
  passing pointer to guarded variables. While new features do not
  necessarily need to support the deprecated attributes (`guarded_var`,
  and `pt_guarded_var`), we need to ensure that such features do not cause
  the compiler to crash.

  As such, code such as this:

          struct {
            int v __attribute__((guarded_var));
          } p;

          int *g() {
            return &p.v;  // handleNoMutexHeld() with POK_ReturnPointer
          }

  Would crash in debug builds with the assertion in handleNoMutexHeld()
  triggering. The assertion is meant to capture the fact that this helper
  should only be used for warnings on variables (which the deprecated
  attributes only applied to).

  To fix, the function handleNoMutexHeld() should handle all POK cases
  that apply to variables explicitly, and produce a best-effort warning.

  We refrain from introducing new warnings to avoid unnecessary code bloat
  for deprecated features.

  Fixes: https://github.com/llvm/llvm-project/issues/140330

This fixes an assertion while building the net/openvswitch port:
"Assertion failed: ((POK == POK_VarAccess || POK == POK_VarDereference)
&& "Only works for variables"), function handleNoMutexHeld, file
/usr/src/contrib/llvm-project/clang/lib/Sema/AnalysisBasedWarnings.cpp,
line 2120.'

Reported by:    cy
PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295101, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292067
MFC after:      1 month
d9b272a19d39f71665b529860bfed731bcfd99f5 Dimitry Andric 2026-05-08 17:59:54

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

Fix some memory leaks when fetching the mibII.
Reviewed by:  glebius
Sponsored by:   Netflix
Differential Revision:  <https://reviews.freebsd.org/D55998>
7906084ba2fd50022f38ce2e8d0bcef212a4ff19 Chuck Silvers 2026-05-09 15:52:14

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

Document some more OIDs that are used by bsnmp.
27ad506d26209e72d3cb2055de98f8a2eccc83be Hartmut Brandt 2026-05-09 16:04:45

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

Reverted commits

Revert "virtio_net: Use bus_dma for command/ack buffers"
This reverts commit b5bad6df467cc95bea641afe674c55cd5b9f1510.

Revert until we can fix reported issues
c8167ebb742c36cb1fc32cc543afb4016b4fc174 Andrew Turner 2026-05-05 09:16:23

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Revert "virtio_net: Use bus_dma for rxq/txq buffers"
This reverts commit c16c95192f01237a876eb7bc336e3bbda9310171.

Revert until we can fix reported issues
dc00f118405e8638ceb13b288e14164a8a9ba669 Andrew Turner 2026-05-05 09:17:51

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Commit & revert pair: libusb: change callback register handler to int
libusb: change callback register handler to int

libusb upstream uses int for register handler. This causes some library
user (like pyusb) to assume that we have int in all implementations and
therefore provides a 4 byte storage only. This causes Segmentation
fault as we will right the pointer.

Reviewed by:    adrian
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54211
ce9ced951a0b9d004a3b007d4ac6e9087a1301a2 ShengYi Hung 2025-12-13 15:12:11

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'


Revert "libusb: change callback register handler to int"

This reverts commit ce9ced951a0b9d004a3b007d4ac6e9087a1301a2.

We should handle backward compatibility before introducing this patch as
people may rely on old ABI.
bf2c6d23ad0988a8b5dccebccdbc6fda9482c6a2 ShengYi Hung 2026-05-05 16:46:07

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Revert "zstd: disable weak-symbol tracing hooks in the kernel"
This reverts commit de2ea5423cc63b62e7e42d11b667aa634109fc28 which is
no longer needed after 1dddb580f950 .

Tested by:      mmel
822366134658ee59922d7f3e37db7bbb8956aaaf Xin LI 2026-05-06 08:27:55

debug: classified in 00-reverts by 'This reverts commit \b([0-9a-fA-F]{40})\b'

Revert "Skip sys.netinet6.frag6.frag6_19.frag6_19 in CI"
Per [siva@'s comment on the PR][1], this testcase now passes cleanly in CI.

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274941
MFC after:      1 week

[1]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274941#c6

This reverts commit 86e87c3bd1b377242aafe7e2222ae17ca0be96d9.
3348fa7a45fdf14a7af509e306229bd211444f1e Enji Cooper 2026-05-06 23:08:26

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.20 at 2026-05-11 20:37:53+00:00.

This work is supported by Tarsnap Backup Inc.

Alternate version: 2026-05-04 (release)