FreeBSD git weekly: 2025-10-20 to 2025-10-26

Introduction

This is a display of mostly-automatically-classified git commits from 2025-10-20 to 2025-10-26.

In the future, these reports might include summaries or additional information, but for now our focus is figuring out what type of classification would be most useful.

Table of contents and commits per category:

(3) Highlighted commits (these are copies, not in stats)
2 1.1% Userland programs
15 8.2% Documentation
30 16.5% Hardware support
18 9.9% Networking
7 3.8% System administration
5 2.7% Libraries
3 1.6% Filesystems
33 18.1% Kernel
18 9.9% Build system
3 1.6% Internal organizational stuff
6 3.3% Testing
29 15.9% Style, typos, and comments
11 6.0% Contrib code
2 1.1% Reverted commits
0 0.0% Unclassified commits
182 100% total
Technical notes about this page

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.

UPDATING: bump __FreeBSD_version for LinuxKPI changes
The size of an embedded struct has changed and might possibly be a
problem.  Allow this change to be detected by bumping __FreeBSD_version.

MFC after:      3 days
37ad1beaf516854d5e59b90a9706b09d02cc2a81 Bjoern A. Zeeb 2025-10-20 20:35:13
sockstat: add support for UDP-Lite endpoints
With this patch UDP-Lite endpoints are also show per default.

Reviewed by:            Peter Lei, Nick Banks
MFC after:              3 days
Relnotes:               yes
Differential Revision:  https://reviews.freebsd.org/D53230
f48c6390dd5a01ab2b33f26ee50f4e8cbe8ae737 Michael Tuexen 2025-10-23 07:12:32
flua: Move to a new flua package
flua is a standalone third-party component that deserves its own
package.  In particular, this means things can use flua without
having to depend on FreeBSD-utilities, which will be useful as
more base utilities use flua.

This saves ~500kB in FreeBSD-utilities for systems which don't
need flua.

MFC after:      3 days
Reviewed by:    kevans
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53161
957715f877b57a17545ead94d27ea8fd3ff4932a Lexi Winter 2025-10-25 17:21:37

Userland programs

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

pwait: Avoid calling getpid(2) for each proc.
ab4abce6c2c2091a3b9ea1f38cbef94ee7a68090 Bryan Drewery 2025-10-10 18:00:35
cut: Avoid undefined behavior.
Summary: UBSAN complains about p[signed - unsigned] wrapping around.

Reviewed by:    kevans
Differential Revision: https://reviews.freebsd.org/D53226
35f375549c7f4d479ba1d9fcd0a368b0219c4ae6 Bryan Drewery 2025-10-20 18:33:31

Documentation

Man pages, release notes, etc.

aw_mmc.4: add D1 compatible
MFC after:    3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52586
67bc0e34594d69acd14e5d08e426fdd26f5b7e5a Mitchell Horne 2025-07-11 20:58:39
snd_dummy.4: Use sound(4) instead of PCM
Sponsored by: The FreeBSD Foundation
MFC after:      4 days
Reviewed by:    ziaee
Differential Revision:  https://reviews.freebsd.org/D53257
d6432907f6120ff4993de7352ca62f6986fb910c Christos Margiolis 2025-10-22 11:51:15
uio.9: Improve description of uio_rw flags
The direction of the data transfer in uio(9) can be confusing,
so state explicitly the difference between UIO_READ and UIO_WRITE.

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D52996
0625f470e0956a3a337e4999f6712ec7b7d872e5 Mateusz Piotrowski 2025-10-09 15:47:25
clock_gettime(2): Remove unneeded trailing wording.
30394f3c87cdbeb27aa387dddd3d24020509834f Bryan Drewery 2025-10-15 23:39:57
gpart.8: Document one of gpart destroy diagnostic message
Reviewed by:  ziaee
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D52992
a08b38dfcea3c61718dfa40b003518fa3d9adac4 Mateusz Piotrowski 2025-10-24 14:51:07
Commit group #0: fdisk: Bump removal to FreeBSD 16.0
fdisk: Bump removal to FreeBSD 16.0

Removal did not happen prior to 15.0.

Sponsored by:   The FreeBSD Foundation
f817f6e7f4a8dc507f3e1b1603dfd2d81093e3bd Ed Maste 2025-10-24 15:08:25

fdisk: Bump deprecated version in warning message as well

Fixes: https://cgit.freebsd.org/src/commit/?id=f817f6e7f4a8 ("fdisk: Bump removal to FreeBSD 16.0")
Sponsored by:   The FreeBSD Foundation
739750ae7c63c653025ad84cac6ba7cb6756dcf8 Ed Maste 2025-10-24 15:10:42
getrlimitusage.2: Update HISTORY section
Add 14.2, as this was cherry-picked prior to release.

Reported by:    Harald Eilertsen
Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53320
2387a51af235e4304c63f95465a569c878f49dcd Ed Maste 2025-10-24 12:10:26
deadfs.9: spell
ec5b9019c2bb456a9b6130e8056d68ac49a20e0a Maxim Konovalov 2025-10-24 20:10:46
examples/mdoc: Remove text of BSD-2-Clause from mdoc examples
We live in the SPDX world now and our example manual pages should
reflect that.

Also, fix the order of the SPDX and copyright lines as per style(9).

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53335
83ac79599f6b94c57321ce3738fc28d1fa6a6c60 Mateusz Piotrowski 2025-10-24 18:13:02
ffs.3: Add a STANDARDS section to the manual page
The ffs() function conforms to IEEE Std 1003.1-2008 ("POSIX.1").
The ffsl() and ffsll() functions conform to IEEE Std 1003.1-2024 ("POSIX.1").

Reviewed by:    ziaee
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D53352
f1cb4e9962d715ec85ba26d7019ab83adea1ffb7 Gordon Bergling 2025-10-25 21:37:22
mandoc: Also run makewhatis for /usr/share/openssl/man
We use a pkg(8) trigger to run makewhatis for /usr/share/man when
manpages are updated, but this doesn't cover /usr/share/openssl/man.

Rewrite the trigger to process a list of directories instead of a
single directory, and include /usr/share/openssl/man in the list.

MFC after:      3 days
Reviewed by:    emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53064
450fb637f453c3722aa9f0aeb369e2aa2f5a5001 Lexi Winter 2025-10-25 17:30:03
libc: fix description issues in mac_text(3)/mac_free(3)
mac_text(3) as-written would seem to indicate that a `mac_t` should be
freed with free(3), but this isn't the case.  One can derive from
context from when the change was introduced and COMPATIBILITY that this
was intended to talk about *text in `mac_to_text`, so move the comment
there.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=179832
Co-authored-by: Priit Järv <priit cc ttu ee>
MFC after:      3 days
081218b7a2006e5b6783e51f66fd751871ac1272 Kyle Evans 2025-10-26 15:10:34
g_bio.9: Reference dtrace_io(4)
MFC after:    3 days
3559b8e98341d7087771516b1d8f9560a5c555b4 Mateusz Piotrowski 2025-10-26 16:31:37
write.2: explain the atomicity guarantees of the writes
Also provide the pointer to the latest POSIX standard that justifies the
requirement.

Reviewed by:    emaste
Discussed with: rmacklem
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D53361
1c8d7bb4cf7a6b19262333b2a9b1dacf3094b938 Konstantin Belousov 2025-10-26 14:57:16

Hardware support

Hardware drivers and architecture-specific code.

sgx: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
Reviewed by:  markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53158
8350f46d9808e6183d5f6bd4aa73d4d4e563b574 Zhenlei Huang 2025-10-20 04:28:41
aac: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
Reviewed by:  markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53158
db1844a0e1bcafeb974215033ed682e7fa18cac8 Zhenlei Huang 2025-10-20 04:28:42
aacraid: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
Reviewed by:  markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53158
ff29e5bc53e6fafc49d1caceed88cbc9e9223189 Zhenlei Huang 2025-10-20 04:28:42
ipmi: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
Reviewed by:  markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53158
cb0116af7ac794238b0fa569f2722607924fcad6 Zhenlei Huang 2025-10-20 04:28:42
mfi: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
Reviewed by:  markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53158
d12ce84b0d338958b26f6eec86b4967fca8d3bd6 Zhenlei Huang 2025-10-20 04:28:42
mrsas: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
Reviewed by:  markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53158
0a2fb63b4954c540686d387254b65cc6878bd19e Zhenlei Huang 2025-10-20 04:28:43
snd_hda: Add device ID for ATI Raven
4c667615372f927864734d725f51d14c441216a6 Dmitry Luhtionov 2025-10-20 13:59:57
ehci(4): Add ID for Realtek RTL811x USB 2.0 controller
a2838e818cfe5b150725776cc9ab45bb8f65c390 Dmitry Luhtionov 2025-10-20 14:05:05
AMD IOMMU: fix per-device IOMMU bypass when IR is enabled
When interrupt remapping (IR) is enabled, the device table entry
(DTE) for a given device will likely be initialized by
amdiommu_ir_find() during MSI configuration.  This function directly
calls amdiommu_get_ctx_for_dev() with id_mapped=false, which means that
any attempt to disable DMA remapping for the device (e.g. by setting
hw.busdma.pciD.B.S.F='bounce' in the loader tunables) will effectively
be ignored as the paging mode field in the DTE will not be set to
0 as required for identity mapping.  This will ultimately produce
an unusable device, because busdma will later observe the bounce
configuration through iommu_instantiate_ctx() and will employ the
non-translated 'bounce' busdma methods for the device, while the DTE
remains configured to enable translation.

Fix this by tweaking iommu_instantiate_ctx() to always return the
relevant per-device context object even if translation is disabled,
and adopt it in amdiommu_ir_find() instead of directly calling
amdiommu_get_ctx_for_dev().

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53209
35170408a7b86a879d7e2ffb5ddb70fe75951d89 Jason A. Harmening 2025-10-20 01:53:08
riscv: build starfive JH7110 DTBs
These are known to work if loaded manually by loader(8) (for VF2 at
least). If nothing else, it is useful to provide a DTB closely tied to
the kernel version.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D53117
96b137c044d8f7266757e95ff134119f3ac51be5 Mitchell Horne 2025-10-20 14:24:58
riscv: build allwinner DTBs
These are known to work if loaded manually by loader(8) (for the Nezha
board at least). If nothing else, it is useful to provide a DTB closely
tied to the kernel version.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D53118
3ed48eb085f7c4ae5c019ee882e694b432d43911 Mitchell Horne 2025-10-20 14:25:08
Commit group #1: modules: enable allwinner kmods on riscv
modules: enable allwinner kmods on riscv

While here, standardize the place they are enabled in the Makefile. For
armv7 the module subdirectory was added explicitly in the config file,
but this is not idiomatic.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
5522519731b74e7b56c710ec5ea4d34065f3ed32 Mitchell Horne 2024-09-18 17:19:16

modules/allwinner: add nvmem_if.h to SRCS

Ensure the header is generated; it is a dependency for these drivers.
This fixes standalone module builds and riscv LINT.

Reported by:    zlei
Sponsored by:   The FreeBSD Foundation
Fixes:  https://cgit.freebsd.org/src/commit/?id=5522519731b7 ("modules: enable allwinner kmods on riscv")
fe7954d723f85abd6eaf035db92a3a60a7803eb4 Mitchell Horne 2025-10-22 14:29:37
arm: tweak imx module build logic
Add the subdirectory in the Makefile, not the config.

No functional change intended.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
5aefe9f16f240696142894bdeabcebbb057c7053 Mitchell Horne 2025-10-20 23:06:26
ti_clkctrl.c: fix paths in comment
Now under sys/contrib/device-tree.
f34e152e025e47b53b4a90464c49d09cadb3bbfc Mitchell Horne 2025-05-16 15:47:51
Commit group #2: vmm
vmm: Improve register get/set handling a bit

On non-amd64 platforms, check for negative register indices.  This isn't
required today since we match against individual register indices, but
we might as well check it.  On amd64, add a comment explaining why we
permit negative register indices.

Use mallocarray() for allocating register arrays in the ioctl layer.

No functional change intended.

Reviewed by:    corvink
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D53143
14133abfe9c218b97e888edf04d2ec4a86e7ab4b Mark Johnston 2025-10-21 17:34:11

vmm: Add PRIV_DRIVER checks for passthru ioctls

In preparation for allowing non-root users to create and access bhyve
VMs, add privilege checks for ioctls which operate on passthru devices.

Reviewed by:    corvink
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D53144
e11768e94787bef2866486ba8616353716a10447 Mark Johnston 2025-10-21 17:34:29

vmm: Move local variables into ioctl handlers

Make the ioctl handlers easy to read by moving local variables into
per-ioctl blocks.  No functional change intended.

Reviewed by:    corvink, emaste
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D53145
0225c6d85d0d4250ed304b31e6ce855fc5d93f15 Mark Johnston 2025-10-21 17:34:48
snd_dummy: Create device alias
Sponsored by: The FreeBSD Foundation
MFC after:      4 days
Reviewed by:    emaste, ziaee
Differential Revision:  https://reviews.freebsd.org/D53237
2693d6c7c9cab28967de13233342fcf9281e5636 Christos Margiolis 2025-10-22 11:51:01
sys/arm64: fix COMPAT_FREEBSD32 __syscall()
It seems like _QUAD_LOWWORD was incorrectly expanded into 1,
which is correct for big endian but not little endian.  This
means we always grab the padding word for the syscall number,
which is usually 0, causing SIGSYS to be delivered to the caller.
Reintroduce _QUAD_LOWWORD to fix the syscall.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290411
MFC after:      1 week
Discussed with: jrtc27
Reviewed by:    cognet, emaste
Approved by:    markj (mentor)
Fixes:          https://cgit.freebsd.org/src/commit/?id=8c9c3144ccfa3061879b8cec015ee7d1010e4766
Differential Revision:  https://reviews.freebsd.org/D53250
1ca09538d94273601dac08204c1d0b3ca9115864 Robert Clausecker 2025-10-21 21:35:24
sys/arm: add fp[gs]et* prototypes to <ieeefp.h>
We have provided implementations for hard float of these for
a while now.  Add them to the header to make things official.
This is required for a bunch of legacy programs in ports.

Approved by:    markj (mentor)
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D53156
a8079d40ae7f3cee17c94e61e43c24780a64a010 Robert Clausecker 2025-10-17 09:30:09
nvme: add support for DIOCGIDENT
Add support for the DIOCGIDENT ioctl to both nvme controller device
nodes and namespace device nodes.

This information was already available via the nda(4) device node.
However, mapping /dev/nvmeX to /dev/ndaY device nodes is not
straightforward, so it's better to get it directly from the /dev/nvme
device node.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290259
MFC after:      2 weeks
Sponsored by:   ConnectWise
Submitted by:   imp (mostly)
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1875
6d0001d44490becdd20d627ce663c72a30b9aac3 Alan Somers 2025-10-16 22:00:14
modules/dtb: Add the ARM dtb module
fvp-base-revc.dtb works with the kernel now interrupt-maps are
supported in more cases.

Reviewed by:    mhorne
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D51258
b157c28ce97bbabfdddde35f67e3181053ed3ffd Andrew Turner 2025-10-20 18:49:24
arm64: Add additional fields for PMBSR and PMSIDR
Reviewed by:  andrew
Sponsored by:   Arm Ltd
f4f638eb23d770e19ede167908d8145b8851f835 Sarah Walker 2025-10-23 10:39:33
random: fenestrasX: Add missing entropy sources
Reviewed by: cem
Fixes: https://cgit.freebsd.org/src/commit/?id=1492c8c0d qcom_rnd: add initial qualcomm prng driver.
Fixes: https://cgit.freebsd.org/src/commit/?id=9eecef052 Add an Armv8 rndr random number provider
Fixes: https://cgit.freebsd.org/src/commit/?id=b2f8b2dc8 sys: Add an SMCCC Random Number Generator driver
Differential Revision:  https://reviews.freebsd.org/D53292
93b02f69a6f6ffb833227c2fd56d48daac128156 David E. O'Brien 2025-10-23 06:25:59
padlock(4)/nehemiah: move i386-only entropy source to MD files
Reviewed by: khng
Differential Revision:  https://reviews.freebsd.org/D53309
d1ca01059d5d756a4aef09d955e98aa59a284344 David E. O'Brien 2025-10-23 22:27:06
amd64: print 'EFI RT fault' line before fault CPU state
Suggested by: arrowd
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
cfb28c5ea0bce2ce95b14076bc63546049f0c16c Konstantin Belousov 2025-10-24 09:39:13
le(4): Update depreciation notice
This driver was in fact not removed prior to FreeBSD 15.0.

Sponsored by:   The FreeBSD Foundation
e4d6433e9c0379e164ff50ce829b5b1c0716bcb1 Ed Maste 2025-10-24 17:05:05
x86 LAPIC: force edge-triggered mode for !bootverbose as well
Submitted by: Austin Shafer <ashafer@nvidia.com>
Reviewed by:    imp, jhb
Fixes:  https://cgit.freebsd.org/src/commit/?id=5c039412a2823
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D53336
cf59dabe161f956ac7d36fbb91b7edeab9d0f6c3 Konstantin Belousov 2025-10-24 18:17:56
igb(4): Fix out-of-bounds register access on VFs
Virtual Functions have access to a limited number of registers,
and their bus space size is lower. Use KASSERT to detect out-of-bounds
access and eliminate them to avoid kernel panics in production
environment.

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

Reviewed by:    jmg
Tested by:      mateusz.moga_intel.com
Approved by:    kbowling (mentor), erj (mentor)
Sponsored by:   Intel Corporation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D52976
2c02e6ca7154593d214b62578f67d9fe7db23d70 Krzysztof Galazka 2025-10-24 19:25:47

Networking

Network-related commands, library, and kernel.

sockstat: fix column length for PROTO
The computation of the length was not taking into account that IPv6
endpoints, which are not IPv6 only, have a suffix of 46.
For UDP and TCP this bug was not relevant, since tcp46 and udp46
has the same length as PROTO, but sctp46 is longer. Upcoming
udplite support will also be affected.

Reviewed by:            asomers
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D53212
4ee0ddae1dab05dd8e3f273d861043c3e2919f23 Michael Tuexen 2025-10-20 14:26:52
Move bbr and rack to use inline per C99 (TCP Sub-system)
This is a small change as suggested by Gleb to move all __inline -> inline aka C99 style. This
covers both BBR and Rack and makes no real changes to the code functionality

Reviewed by:    tuexen
 Differential Revision: <https://reviews.freebsd.org/D53197>
a8e4399fc6a27b4f8ab828231ede75743ba28a58 Randall Stewart 2025-10-20 18:09:11
UDP: let udp_pcblist() support UDP and UDP-Lite
Provide the IPPROTO_UDP in the arg2 parameter of udp_pcblist() and use
this to determine the inpcbinfo. This allows the same function to be
used in an upcoming commit to provide the list of pcbs for UDP-Lite
just by providing IPPROTO_UDPLITE in the arg2 parameter.

Reviewed by:            rrs
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D53218
be3c59ff508204dbab9e3616dc82ed7620f05d0c Michael Tuexen 2025-10-20 21:21:47
if_vxlan: fix byteorder of source port
Fix the htons byteorder of vxlan packets after
`vxlan_pick_source_port` picks a source port during encapsulation.

Reviewed by:    zlei, kp, adrian
Differential Revision:  https://reviews.freebsd.org/D53022
1cc316727ebae157b3d035d9fb1ad38310a80698 Seyed Pouria Mousavizadeh Tehrani 2025-10-21 18:58:26
inpcb: Ignore SO_REUSEPORT_LB on connected sockets
While TCP disallows connect()ing a socket with SO_REUSEPORT_LB, UDP does
not.  As a result, a connected UDP socket can be placed in the lbgroup
hash and thus receive datagrams from sources other than the connected
host.

Reported by:    Amit Klein <amit.klein@mail.huji.ac.il>
Reported by:    Omer Ben Simhon <omer.bensimhon@mail.huji.ac.il>
Reviewed by:    glebius
Approved by:    so
Security:       FreeBSD-SA-25:09.netinet
Security:       CVE-2025-24934
320ad3dec5ff1b37f6907a47961c18b9d77e6a53 Mark Johnston 2025-10-06 13:37:47
Commit group #3: krb5: Fix -Wint-conversion when bootstrapping on GNU/Linux
krb5: Fix -Wint-conversion when bootstrapping on GNU/Linux

This shows up in GitHub Actions as a warning, and some compilers can
default to it being an error.
4dd2b869cd078ed6f40c42d1ef429222da16a58f Jessica Clarke 2025-10-22 19:50:50

krb5: Include <features.h> on Linux so __GLIBC__ can be checked

__GLIBC__ is not pre-defined by the toolchain, it comes from features.h,
so we need to make sure that's included by this point.

Fixes:  https://cgit.freebsd.org/src/commit/?id=4dd2b869cd07 ("krb5: Fix -Wint-conversion when bootstrapping on GNU/Linux")
34e7a57673c9730ee5d1f7ebb07e152567bd8e0b Jessica Clarke 2025-10-22 20:06:02
UDP-Lite: export pcblist via sysctl interface
Export the list of pcbs for UDP-Lite to be consumed by sockstat and
netstat.

Reviewed by:            Peter Lei, Nick Banks
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D53229
be93b27483680c7e741b1627cc96a131bc99436c Michael Tuexen 2025-10-23 07:10:03
sockstat: add support for UDP-Lite endpoints
With this patch UDP-Lite endpoints are also show per default.

Reviewed by:            Peter Lei, Nick Banks
MFC after:              3 days
Relnotes:               yes
Differential Revision:  https://reviews.freebsd.org/D53230
f48c6390dd5a01ab2b33f26ee50f4e8cbe8ae737 Michael Tuexen 2025-10-23 07:12:32
netstat: add support for UDP-Lite endpoints
With this patch UDP-Lite endpoints are also shown per default.

Reviewed by:            Nick Banks
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D53252
c2b08c13c20d44c3368bcbf738624e5fac461314 Michael Tuexen 2025-10-23 07:15:22
tcp over udp: don't copy more bytes than avaiable
When copying the data in the first mbuf to get rid of the UDP
header, use the correct length. It was copying too much (8 bytes,
the length of the UDP header).
This only applies to handling TCP over UDP packets. The support for
TCP over UDP is disabled by default.

Reported by:            jtl
Reviewed by:            Peter Lei
MFC after:              3 days
Sponsored by:           Netflix, Inc.
bfda98a42027417b2fa74738c63327532013e93b Michael Tuexen 2025-10-23 07:24:09
ipfilter: Plug ip_nat kernel information leak
ipf_nat_getent() allocates a variable-sized nat_save_t buffer with
KMALLOCS() (which does not zero memory) and then copies only a subset
of fields into it before returning the object to userland using
ipf_outobjsz(). Because the structure is not fully initialized on all
paths, uninitialized kernel heap bytes can be copied back to user space,
resulting in an information leak.

We fix this by zeroing out the data structure immediately after
allocation.

Reported by:            Ilja Van Sprundel <ivansprundel@ioactive.com>
Reviewed by:            emaste
MFC after:              3 days
Differential revision:  https://reviews.freebsd.org/D53274
6535e9308a26e17023831fe68fb71d2febf2a002 Cy Schubert 2025-10-22 15:59:26
ipfilter: Plug ip_htable kernel information leak
ipf_htable_stats_get() constructs an iphtstat_t on the stack and only
initializes select fields before copying the entire structure to
userland. The trailing padding array iphs_pad[16] is never initialized,
so ~128 bytes of uninitialized kernel stack memory can be leaked to user
space on each call. This is a classic information disclosure
vulnerability that can reveal pointers and other sensitive data.

We fix this by zeroing out the data structure prior to use.

Reported by:            Ilja Van Sprundel <ivansprundel@ioactive.com>
Reviewed by:            emaste
MFC after:              3 days
Differential revision:  https://reviews.freebsd.org/D53275
0d589ecbc7aa916537fd21c0344919491cfcb293 Cy Schubert 2025-10-22 16:29:03
tcp rack: cleanup
The TCP_SAD_DETECTION code was removed. Remove the remaining
sysctl-variables and counters.

Reviewed by:    tuexen
MFC after:      3 days
Sponsored by:   Netflix, Inc.
04c2642406815729781e7eb219a5438583fff27f Peter Lei 2025-10-24 19:42:28
tcp: save progress timeout cause in connection end status
TCP stats are currently incremented for the persist and progress
timeout conditions, but only the persist cause was saved in the
connection end info status, which in turn is logged in the
blackbox "connection end" event.

Reviewed by:    tuexen
MFC after:      3 days
Sponsored by:   Netflix, Inc.
1a61a673a3700c0ebdb0c5847b5923d0e3641f89 Peter Lei 2025-10-24 19:47:12
blocklistd-helper: Silence another bogus pf warning
It has been reported as PR 290478.  In the meantime, just sweep under
the carpet.

It is worth noting that neither commit:
2347ca21d657 ("blocklist-helper: Silence a bogus pf warning")
nor this one will be upstreamed, as this is a FreeBSD-specific issue.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290478
MFC after:      2 days
67ade69eb6079887215db1fde86eba2fb8e2acf7 Jose Luis Duran 2025-10-25 23:14:48
udp: honor IPV6_TCLASS socket option for UDP/IPv4 packets
Honor the IPPROTO_IPV6-level socket option IPV6_TCLASS when sending
an UDP/IPv4 packet on an AF_INET6 socket.

Reviewed by:            bz, glebius
MFC after:              3 days
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D53346
3535546a86846ddb0ca5fe4a0689ac635b504459 Michael Tuexen 2025-10-26 17:52:33
udp: honor IPV6_TCLASS cmsg for UDP/IPv4 packets
Honor the IPPROTO_IPV6-level cmsg of type IPV6_TCLASS when sending
an UDP/IPv4 packet on an AF_INET6 socket.

Reviewed by:            bz
MFC after:              3 days
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D53347
d3a3854fdc6e8da3bc6c1c13aab8d371445d2914 Michael Tuexen 2025-10-26 17:58:15

System administration

Stuff in man section 8 (other than networking).

geom: fix glabel status not showing components
Also fix some typos and move a couple NULL checks earlier.

Reviewed by:    mckusick, Johan Söllvander, markj, kevans, adrian
Fixes:          https://cgit.freebsd.org/src/commit/?id=0d4642a67e59f8da5e00a05001c342bdad2a806f
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53180
2f461ddd784b4abdb7f88701d20fc45f658c42f5 Brad Davis 2025-10-18 00:31:12
quot: Make nusers unsigned
Fixes:                https://cgit.freebsd.org/src/commit/?id=195b00ec45e5 ("quot: Clean up")
Reviewed by:    rlibby
Differential Revision:  https://reviews.freebsd.org/D53224
fa347930f89d4f9d1956573c3bd4b5987127bc12 Dag-Erling Smørgrav 2025-10-20 21:41:53
rc: Chase 052211e08c0e and bfb202c4554a, remove ifconfig down/up
bfb202c4554a addresses the CTRL-EVENT-SCAN-FAILED. Upstream d807e289d
caused FreeBSD regression in driver_bsd.c, which this rc.d patch
worked around. As of bfb202c4554a this workaround is no longer needed.

052211e08c0e implemented this change for wpa_supplicant but not for
hostapd.

Reported by:    avg
MFC after:      3 days
05637c82243e681b5db5d7e9829e699515456524 Cy Schubert 2025-10-21 17:28:39
sndctl(8): Modify vchans only on supported directions
Currently mod_play_vchans() and mod_rec_vchans() run unconditionally,
even if the direction (playback, recording) is not supported by the
device. This results in the "autoconv" (see mod_autoconv()) control
failing when run on simplex devices, because we'll be trying to modify
vchans on an unsupported direction.

Test whether the direction is supported and silently move on if it
isn't.

Sponsored by:   The FreeBSD Foundation
MFC after:      4 days
Differential Revision:  https://reviews.freebsd.org/D53233
70b34fbdbea13c006a724844caa53f59e0e53bd0 Christos Margiolis 2025-10-22 11:50:55
bsdinstall: jail: Fix DISTMENU items
The menu was incorrectly using the fourth column (distname) instead of
the first (dist) of the MANIFEST.

The actual file name is on the first column of the MANIFEST file.
Remove the .txz part of the name to build the menu options.

Reviewed by:    jamie
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D53177
74921426d552f7491c61684465f964b446379dac Jose Luis Duran 2025-10-22 18:21:04
ipfw: Update warning/error setsockopt references
Dummynet v3 switched to IP_DUMMYNET3 but did not update these
warnings/errors.

Fixes: https://cgit.freebsd.org/src/commit/?id=cc4d3c30ea28 ("Bring in the most recent version of ipfw and dummynet, developed")
Sponsored by:   The FreeBSD Foundation
Differential Revision: sbin/ipfw/ipfw2.c
1f95a517880bae5fc0a9fe4463a8f2ec36ed734a Ed Maste 2025-10-24 20:05:30
ipfw: Remove IP_DUMMYNET_GET case
IP_DUMMYNET_GET is no longer used in ipfw(1).

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53348
28e52dea96809c7904e498759ee1f79bda929a82 Ed Maste 2025-10-24 20:51:25

Libraries

libarchive: merge from vendor branch
Update vendor/libarchive to 3.8.2

Important bugfixes:
 #2477 tar writer: fix replacing a regular file with a dir for
       ARCHIVE_EXTRACT_SAFE_WRITES
 #2659 lib: improve filter process handling
 #2664 zip writer: fix a memory leak if write callback error early
 #2665 lib: archive_read_data: handle sparse holes at end of file correctly
 #2668 7zip: Fix out of boundary access
 #2670 zip writer: fix writing with ZSTD compression
 #2672 lib: fix error checking in writing files
 #2678 zstd write filter: enable Zstandard's checksum feature
 #2679 lib: handle possible errors from system calls
 #2707 lib: avoid leaking file descriptors into subprocesses
 #2713 RAR5 reader: fix multiple issues in extra field parsing function
 #2716 RAR5 reader: early fail when file declares data for a dir entry
 #2717 bsdtar: Allow filename to have CRLF endings
 #2719 tar reader: fix checking the result of the strftime (CVE-2025-25724)
 #2737 tar reader: fix an infinite loop when parsing V headers
 #2742 lib: parse_date: handle dates in 2038 and beyond if time_t is big
       enough

Obtained from:  libarchive
Vendor commit:  7f53fce04e4e672230f4eb80b219af17975e4f83
Security:       CVE-2025-25724
PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290303 (exp-run)
MFC after:      1 week
401026e4825a05abba6f945cf1b74b3328876fa2 Martin Matuska 2025-10-21 14:10:15
Fix getmntpoint(3) to operate as it is documented in its manual page.
The -libutil function getmntpoint(3) is documented as accepting a device
name “with or without /dev/ prepended to it” but did not attempt to
prepend /dev/. This patch corrects the problem by prepending /dev/ to
names that do not begin with a '/'.

Reported-by: Dag-Erling Smørgrav
Differential Revision: https://reviews.freebsd.org/D53185
MFC-after:    1 week
Sponsored-by: Netflix
99bf680a8499dea71db5da705dfe41f4bb5e00ab Kirk McKusick 2025-10-22 18:01:03
lib/libmd: fuz@freebsd.org -> fuz@FreeBSD.org
Approved by:  markj (mentor)
MFC after:      1 week
ec3242ed1906e77c9af2c54da636833a946c62b6 Robert Clausecker 2025-10-10 20:25:47
lib/libmd: import md5 amd64 kernels
Differential Revision:        https://reviews.freebsd.org/D45670
Reviewed by:    imp
Approved by:    markj (mentor)
MFC after:      1 month
d92e987421001c365216b039f8c3303939c195f7 Robert Clausecker 2025-10-10 17:40:49
lib/libmd: import aarch64 md5 SIMD implementation
Reviewed by:  andrew, imp
Approved by:    markj (mentor)
Differential Revision:  https://reviews.freebsd.org/D45670
MFC after:      1 month
c1135b2b54bf46709120d98c90ff4d28a77b896c Robert Clausecker 2025-10-10 17:45:45

Filesystems

nfs: Add support for the NFSv4 archive attribute
The archive attribute (UF_ARCHIVE) is listed as deprecated
in RFC8881.  However, the Windows NFSv4.1 client folk disagree
with this and say they need support for it.

This patch adds support for it, in a manner similar to what
is done for UF_SYSTEM and UF_HIDDEN.

MFC after:      2 weeks
3b6d4c6cdffd6e37b8fa6e0b0fe3067210582c9c Rick Macklem 2025-10-22 21:16:48
deadfs: Return ENXIO instead of EIO when the device is gone.
One some systems, under some conditions, pulling a USB stick would
read(2) returning EIO and not ENXIO, like it should and used to.

Recoverdisk(1), which does not give up on EIO, like most programs
would, spins furiously.

Arguably, deadfs was always wrong in returning EIO, because once you
get to deadfs no operation will ever work again, but we used to
take a different path through devfs_vnops.c which got us the ENXIO.

Something changed recently, and while testing this fix, I noticed
that drm-kmod-66/i915kms may be the condition which trigger
the different code-path.

MFC to: stable/15
Fixes: https://cgit.freebsd.org/src/commit/?id=289785
Thanks to: imp, kib
2612f1b8649bb4f069a6a064ed714daa5f10d037 Poul-Henning Kamp 2025-10-24 07:19:31
fusefs: fix page fault triggered by async notification when unmounted
A FUSE daemon can send asynchronous notification to the kernel in order
to, for example, invalidate an inode's cache.  Fix a page fault that can
happen if the file system isn't yet mounted, or is already unmounted,
when that notification arrives.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290519
MFC after:      1 week
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D53356
5d42c8813976af484fd3e9a896c7839ba27ca764 Alan Somers 2025-10-26 00:37:02

Kernel

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

linux: Make the macro LINUX_IOCTL_SET public
There're some other drivers want to register and unregister linux
ioctl handler. Move the macro LINUX_IOCTL_SET from tdfx_linux.h to
linux_ioctl.h so that they can also benefit it.

While here, rename the declaration of linux ioctl function to be
consistent with the name of the handler.

Meanwhile, drop a comment about the macro, since its function is
obvious.

Reviewed by:    markj
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53158
790c27317ec1a997a4e5c2bdee9e4acc610c8e3c Zhenlei Huang 2025-10-20 04:28:41
jail: fix a regression that creates zombies when removing dying jails
When adding jail descriptors, I split sys_jail remove in two, and
didn't properly track jail held between them when a jail was dying.
This fixes that as well as cleaning up the logic behind it.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290217
Reported by:    David 'equinox' Lamparter <equinox at diac24.net>
Reviewed by:    markj
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53200
78f70d4ff9dd4af2318b25023a7f55be7402ec60 Jamie Gritton 2025-10-20 16:49:14
dtb: sort by vendor on riscv
Just like arm64, our DTS comes from Linux and is correctly sorted into
subdirectories by vendor. Enable the logic to preserve these directories
in the installation, for example:

  /boot/dtb/sifive/hifive-unmatched-a00.dtb

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D53116
cf202819af2337c0b652ac9290964c2ef7a1ae3c Mitchell Horne 2025-10-20 14:24:45
jail: fix an error condition that was returned without setting errno.
MFC after:    3 days
5f7d5709e0c242d5a5fa5516d6079433ee06c347 Jamie Gritton 2025-10-21 00:09:39
Commit group #4: LinuxKPI
LinuxKPI: add __counted_by_le() and __counted_by_be()

The former is needed by a wireless driver at v6.17.

MFC after:      3 days
Reviewed by:    dumbbell, emaste
Differential Revision: https://reviews.freebsd.org/D53203
0a4b11ddb298fa08e1a81af7337995a3769552bf Bjoern A. Zeeb 2025-10-11 09:22:26

LinuxKPI: add three skeleton functions to etherdevice.h

We will see how much we will need them and how to fill them at that
point.  They are left with a pr_debug("TODO") for now.

MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D53204
cc792250acadd29e80a69501ad326d1340c0c1c6 Bjoern A. Zeeb 2025-10-11 09:22:48

LinuxKPI: platform_device return type change

The return type now is void;  I believe no one ever used this
so we can just chnage it.  The only active platform_driver_register()
calls seems to be in ath1[01]k and mt76 and there in unsupported code.

MFC after:      3 days
Reviewed by:    dumbbell, emaste
Differential Revision: https://reviews.freebsd.org/D53205
0ae4998423e0d513fb88e404dfb1c2a285d11309 Bjoern A. Zeeb 2025-10-11 09:24:40

LinuxKPI: device_driver add (*coredump)()

Needed by multiple wireless driver for the v6.17 update (likely earlier
versions already).

MFC after:      3 days
Reviewed by:    dumbbell
Differential Revision: https://reviews.freebsd.org/D53206
8ea366f40084010c14fe40b3aebb42b459b195cc Bjoern A. Zeeb 2025-10-11 09:23:43

LinuxKPI: add fips.h

We do not currently aim to support crypto FIPS compliance in LinuxKPI
so keep this turned off.

MFC after:      3 days
Reviewed by:    emaste, dumbbell
Differential Revision: https://reviews.freebsd.org/D53207
98609f4fecffd0e70293ddd57c2b785e498b1131 Bjoern A. Zeeb 2025-10-17 19:34:20

LinuxKPI: add skeleton pci_enable_wake()

Given we do not yet support "wake" bits in device there is little need
doing it in PCI if we cannot check if we are supposed to do the
operation in first place.  Once we would implement this, we would need
to also do the appropriate PCI (pme) checks before enabling (disabling)
it.

MFC after:      3 days
Reviewed by:    dumbbell
Differential Revision: https://reviews.freebsd.org/D53208
885e8f272f7515b0325974de72d18b73318eff07 Bjoern A. Zeeb 2025-10-17 20:38:11

LinuxKPI: page_pool headers moved; add netmem.h

page_pool headers were not used yet;  they were created for mt76 but
are without functionality.  Upstream has migrated them for v6.17 and
split them up into multiple files.  Also add netmem.h which the little
needed is directly related to page pools.

MFC after:      3 days
7c31cdfa408a4ebce7a3e10d29056a15c28bc092 Bjoern A. Zeeb 2025-10-19 22:57:13

LinuxKPI: soc/mediatek add pr_debug calls

We do not support Wireless Ethernet Dispatch (wed) on the mt76 (yet).
Add pr_debug calls with TODO in case we run into the calls anyway so
we could deal with them.

MFC after:      3 days
224ac9d2a030f85924e44a507ddc412797c3fe87 Bjoern A. Zeeb 2025-10-19 15:28:30

LinuxKPI: skbuff: add a misplaced socket operation to skbuff.h for now

This likely belongs in socket code which we do not have in LinuxKPI.
Needed by a wirless driver at v6.17.

MFC after:      3 days
88dbf83345feefa7181bd6df47786e1a8d1d304d Bjoern A. Zeeb 2025-10-11 09:25:08

LinuxKPI: netdevice add attach/detach skeleton functions

For the moment add skeleton functions for netif_device_attach/detach()
needed by rtw8[89] v6.17.

MFC after;      3 days
5ea941a4fbfd1ba2483e47fe30ed6713fe912284 Bjoern A. Zeeb 2025-10-17 20:28:36

LinuxKPI: 802.11: additions for Linux v6.17 based wireless drivers

This includes some type cleanups as well as some shuffling of structs
and functions to sort dependencies out.  Few new functions and defines
as well as new struct members.  Minor fixes to style and debug logging.

This is the majority of changes.  None of these should conflict with
current in-tree drivers.  The final bit of changes will come along with
the driver updates adding an extra argument to function pointers.

MFC after:      3 days
0567484734ad9732978e189ebed042f6320e2471 Bjoern A. Zeeb 2025-10-11 09:21:55
UPDATING: bump __FreeBSD_version for LinuxKPI changes
The size of an embedded struct has changed and might possibly be a
problem.  Allow this change to be detected by bumping __FreeBSD_version.

MFC after:      3 days
37ad1beaf516854d5e59b90a9706b09d02cc2a81 Bjoern A. Zeeb 2025-10-20 20:35:13
ata: Add error bits
Add notes for other bits that we don't use in the code for error
status. We report these when there's an error, and this allows people
decoding it to not have to chase down these bits from the standard.

Sponsored by:           Netflix
e29f81c2adc1fbe970fa5da8cc3dd6d300c76d7b Warner Losh 2025-10-21 13:35:32
Commit group #5: random: add RDSEED as a provably unique entropy source
random: add RDSEED as a provably unique entropy source

NIST SP800-90B allows for only a single entropy source to be claimed
in a FIPS-140-3 certificate.  In addition, only hardware sources that
have a NIST Entropy Source Validation (ESV) certificate, backed by
a SP800-90B Entropy Assessment Report, are usable.  Intel has obtained
ESV certificates for several of their processors, so RDSEED is a
FIPS-140-3 suitable entropy source.

However, even though RDRAND is seeded by RDSEED internally, RDRAND
would need a RBG certificate and CAVP testing run on the DRBG in order
to use it for FIPS-140-3 (SP800-90B) purposes.  So we need to know
down in the CSPRNG-subsystem which source the entropy came from.

In light of the potential issues surrounding AMD Zen 5 CPU's RDSEED
implementation[*], allow RDSEED to be disabled in loader.conf.
[*] https://www.phoronix.com/news/AMD-EPYC-Turin-RDSEED-Bug

Reviewed by:    cem
MFC after:      3 days
Sponsored by:   Juniper Networks
Differential Revision:  https://reviews.freebsd.org/D53150
3a12982962ce330c37c154bb2eb8ae0539fc6f48 David E. O'Brien 2025-10-17 03:20:23

random: fenestrasX: add RDSEED support

Reviewed by: cem
Fixes: https://cgit.freebsd.org/src/commit/?id=3a1298 random: add RDSEED as a provably unique entropy source
Differential Revision:  https://reviews.freebsd.org/D53291
38e9d282cd7dacbf64883b45544723408cfd4d09 David E. O'Brien 2025-10-23 04:49:02
linuxkpi: Fix the definition of BITS_PER_LONG
Don't use __LP64__ to decide the value, as it gives the wrong result on
CHERI platforms.  Just define it in terms of __SIZEOF_LONG__.  Make a
similar adjustment for BITS_PER_LONG_LONG while here.

Reviewed by:    bz, dumbbell, emaste
MFC after:      1 week
Sponsored by:   CHERI Research Centre (EPSRC grant UKRI3001)
Differential Revision:  https://reviews.freebsd.org/D53135
3e9ad70a30d93fc8bc759af7ec57aaa7e0b2d4f6 Mark Johnston 2025-10-22 14:04:46
vfs_cluster.c: Do not propagate VOP_BMAP errors to the caller
The code that makes this VOP_BMAP call tries to perform a read-ahead I/O
operation. Failing to do that for any reason isn't fatal for `cluster_read()`,
because we still can return some data to the caller. This change is consistent
with other places within `cluster_read()`, where error returned by VOP_BMAP is
not returned to the caller - see the `if (nblks > 1)` block above the changed
lines and `if (reqbp)` at the end of the function.

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264196
Approved by:    markj, kib
Differential Revision: https://reviews.freebsd.org/D51254
62aef3f73f38db9fb68bffc12cc8900fecd58f0e Gleb Popov 2025-07-11 07:42:09
random: garbage collect the RANDOM_PURE_OCTEON entropy source
It was used for Octeon MIPS and all producers have been removed
from the source tree.

Reviewed by: emaste
Differential Revision:  https://reviews.freebsd.org/D53146
283699338c5724253f721f4d0e488113dd49bd17 David E. O'Brien 2025-10-17 00:55:51
LinuxKPI: 802.11: additions for Linux v6.17 based wireless drivers
This includes the conflicting changes from previous driver versions
(v6.11/v6.14), mostly being function pointer or function arguments.

MFC after:      3 days
76aed633b5b526fc2cdb3fa654f54b3cb8e5cfaf Bjoern A. Zeeb 2025-10-11 09:21:55
sys: move sys/kern/md[45].c to sys/crypto
Both files are used by kernel and userspace.
Move them to sys/crypto where they belong.

No functional changes intended.

In preparation of D45670.

Reviewed by:    markj
Approved by:    markj (mentor)
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D52909
73a9b273d3d315716304c2cc237fef3141a93f2a Robert Clausecker 2025-10-04 21:40:33
sys/crypto: import md5c.c C rewrite
The reimplementation is a bit cleaner than the original code,
although it is also slightly slower. This shouldn't matter too
much as we will have asm code for the major platforms.

The code is unrolled when built in the kernel or user space, but
not when in libsa, as to reduce the code size.

Differential Revision:  https://reviews.freebsd.org/D45670
Reviewed by:    jrtc27, imp
Approved by:    markj (mentor)
MFC after:      1 month
90fa789cfab54294d4c3a0ac74e01747ce074386 Robert Clausecker 2025-10-04 21:59:56
geom: zero: Let sysctls .byte and .clear to be settable in loader
There is no reason to not allow kern.geom.zero.byte and
kern.geom.zero.clear to be settable as a tunable.

Reviewed by:    imp, markj
Approved by:    markj (mentor)
MFC after:      1 week
Event:          EuroBSDCon 2025
Differential Revision:  https://reviews.freebsd.org/D52763
ae17bca63f0a03e6e46ea679a5be7f8851f82099 Mateusz Piotrowski 2025-09-27 15:21:13
devfs: make destroy_dev() a release barrier for cdevpriv destructors runs
Ensure that all destructors for cdevpriv finished running before
destroy_dev() returns to the caller.  Otherwise, since
devfs_destroy_cdevpriv() removes the cdevpriv data from the list, drops
the cdevpriv_mtx, and then starts the destructor, it is possible for
destroy_dev() to return before destructor finished in other thread.

This should allow drivers to safely remove cdev instance data that might
be referenced by cdevpriv data.

Diagnosed by:   kevans
Reviewed by:    kevans, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D53303
4dbe6628179d8e6bf400bfdb4bfa869bdc102a56 Konstantin Belousov 2025-10-23 18:37:00
vfs_syscalls.c::flags_to_right(): O_DSYNC should be allowed for CAP_FSYNC
Noted by:     arrowd
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D53315
5e85f383da6661bf29ca6054a330406889d8ac60 Konstantin Belousov 2025-10-24 09:42:35
sys: Bump GIANT device removal to 16.0
It did not happen prior to FreeBSD 15.0.

Reported by:    zlei
Sponsored by:   The FreeBSD Foundation
24adb135c5fe8d5018781d496e0abae914534ce5 Ed Maste 2025-10-24 17:57:30
sys: Bump 32-bit kernel removal to 16.0
We are shipping at least one 32-bit kernel in FreeBSD 15.0 (i.e.,
armv7).

Sponsored by:   The FreeBSD Foundation
7b28d549427bd85ecfae24d09da6eacb26c15822 Ed Maste 2025-10-24 18:28:56
pathconf: Define a new name called _PC_CASE_INSENSITIVE
Some FreeBSD file systems (msdosfs and optionally ZFS)
handle case insensitive file name lookup.
NFS (v3 and 4) provide an attribute to indicate this
capability, but without this patch, the NFS server does
not know if the file system does support this.

This patch adds the pathconf name_PC_CASE_INSENSITIVE
that can be used by the NFS server or user programs to
check for this feature.

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53349
d6864221d88425a079f76ca106f30812c671ca9a Rick Macklem 2025-10-25 20:37:35
sys: Bump non-ISA PNP removal to 16.0
This may include atkbdc, which is not being removed in 15.0.

Sponsored by:   The FreeBSD Foundation
46f982122c0d670ac181b748a5b8c2b221f61517 Ed Maste 2025-10-24 18:39:00
cam: Bump deprecated sysctl removal to 16
The descriptions for these unmapped_io and rotating sysctls indicated
that they're deprecated and being removed for FreeBSD 15.0.  That did
not happen, so update to FreeBSD 16 instead.

Sponsored by:   The FreeBSD Foundation
e93db9abc9a62d662c40d783663d64cdb829a0cc Ed Maste 2025-10-24 19:36:42

Build system

release: split up Oracle Cloudware tools
Sometimes one or the other but not both tools are present; this ensures
that all cases are correctly handled.

Reported by:    cperciva
Approved by:    cperciva (re)
Sponsored by:   SkunkWerks, GmbH

Reviewed by:    cperciva
Differential Revision:  https://reviews.freebsd.org/D53186

MFC after:      2 days
81d807a90611a4980cae843b404d99c27edc1893 Dave Cottlehuber 2025-10-20 09:35:37
bsdinstall: Use pkgbase release URL for BETA/RC
PR:           https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290238
Reviewed by:    ivy
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53214
b0c64ce0ea51dc9774ddb972d28a5cfaeb34465d Ed Maste 2025-10-20 12:38:03
release: Add pkg .conf to METALOG on dvd
We're correctly recording all of the packages in the dvd METALOG file,
but if we don't record ./packages/repos/FreeBSD_install_cdrom.conf then
users won't be able to install them very easily.

Reviewed by:    markj
Reported by:    Lars Tunkrans
MFC after:      3 days
Sponsored by:   https://www.patreon.com/cperciva
Differential Revision:  https://reviews.freebsd.org/D53199
2b5c62494df95cdb844b5f6f852412f2178f66dd Colin Percival 2025-10-19 16:59:08
modules: fix some riscv module logic
The change which enabled the sdhci_fdt module build on riscv
inadvertently enabled the neta module as well. This driver is not needed
on this platform.

Move each entry to a respective identical conditional blocks.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Fixes:  https://cgit.freebsd.org/src/commit/?id=e9dd9f95f82f ("riscv: Add the sdhci_fdt driver to the build")
ddc1d4b0722bd63934f503c43a5ee35d871355ee Mitchell Horne 2025-10-20 23:11:53
man4: move allwinner pages and logic to a standard place
They are shared by arm, arm64, and now riscv. Note that they are
always installed by default, where MAN_ARCH=all.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52585
15c79c6fa60809a9dc627e5051704cf2a556c6db Mitchell Horne 2025-07-11 20:24:42
man9: Provide SYSCTL_BOOL & SYSCTL_ADD_BOOL man pages
Updates: 84e717c4c & 9a593520
d78da1ea01b21f3be6011bea174f9ee3ece623ed David E. O'Brien 2025-10-21 18:18:18
src.opts.mk: Enable LLDB for 32-bit arm
It was previously disabled when we built for older 32-bit arm targets
which lack 64-bit atomics.  As we now support armv7 at a minimum there
is no need to disable LLDB.

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52668
69415879e9e493cba78b3a4afb1a78d813a2eb8a Ed Maste 2025-09-21 14:31:05
packages: Update the METALOG when (un)installing the caroot package
There may be other issues here but this change certainly seems to
be necessary.

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290394
Reviewed by:    cperciva
Differential Revision:  https://reviews.freebsd.org/D53263
fa240b7ff081a49d44e0941b2090e5dc5838fe60 Mark Johnston 2025-10-22 23:14:35
share/mk: Add opencsd to the list of private libs
Reported by:  Sarah Walker <Sarah.Walker2@arm.com>
Reviewed by:    emaste
Fixes:  https://cgit.freebsd.org/src/commit/?id=1c52229528e7 ("lib: Move libopencsd to /usr/lib and make private")
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D53217
82778970eeb24f1249945612d05923725f9baa4f Andrew Turner 2025-10-20 17:37:41
release: Use PKG_CMD when installing pkgbase packages in vmimage.subr
This defaults to plain "pkg", but being able to override it is useful
when testing pkg itself.

Reviewed by:    cperciva
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D53307
bbe65c5e8c0e89ec14cb5d00153691850dadb859 Mark Johnston 2025-10-23 22:21:11
deadfs.9: Document
Reviewed by:  kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D53334
daa6660f899309f832bba0c7ac72dada125cfed5 Mateusz Piotrowski 2025-10-24 18:08:31
packages: Remove the /boot hack from mtree-to-plist.awk
Currently, files in /boot (other than /boot/kernel) are assigned to the
bootloader package using a filename match in mtree-to-plist.awk.  This
causes some problems, most notably that debug info for userboot ends up
in the utilities-dbg package instead of bootloader-dbg.

Remove the path handling from mtree-to-plist and instead set PACKAGE
in the appropriate Makefiles to put these in the correct package.

While here, move userboot*.so from bootloader-dev to bootloader.

MFC after:      3 days
Reviewed by:    cperciva
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53179
842942be28b21354e3f547e39fc75bf18ee5b6f7 Lexi Winter 2025-10-25 17:18:46
flua: Move to a new flua package
flua is a standalone third-party component that deserves its own
package.  In particular, this means things can use flua without
having to depend on FreeBSD-utilities, which will be useful as
more base utilities use flua.

This saves ~500kB in FreeBSD-utilities for systems which don't
need flua.

MFC after:      3 days
Reviewed by:    kevans
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53161
957715f877b57a17545ead94d27ea8fd3ff4932a Lexi Winter 2025-10-25 17:21:37
packages: Put dhclient in the minimal-jail set
This is somewhat widely used in VNET jails, it's fairly small (150kB on
amd64) and it's enough of a core system component that it's reasonable
to include, even if many jails don't require it.

MFC after:      3 days
Reviewed by:    dch
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53154
8a9d29bedab597df6bfd4fab1b1bb023f8375a1f Lexi Winter 2025-10-25 17:26:20
share/man/man5: Use MANGROUPS.yes
Simplify the Makefile logic by using MANGROUPS.yes for optional
packages.  Also, move bluetooth manpages to the correct package,
add the correct conditional for OpenSSH (MK_OPENSSH), and properly
alphabetise the file.

MFC after:      3 days
Reviewed by:    emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53127
82f96b2bc983163a890f1782d3091701498b78a2 Lexi Winter 2025-10-25 17:27:23
packages: dhclient, local-unbound require resolvconf
Both of these packages use resolvconf for various things.  Add a
dependency to make this work.

MFC after:      3 days
Reviewed by:    des
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53115
bf28c98f14b439796b395eb4bf9070e4f7cffd68 Lexi Winter 2025-10-25 17:28:28
packages: Install development manpages in the -dev package
Add a new per-group SUBPACKAGE option to bsd.man.mk.  When MANSPLITPKG
is enabled, this is forced to "-man", otherwise it defaults to empty
but can be overridden by the caller.

Use this in bsd.lib.mk to install library manpages in the -dev package
instead of the base package.  This is nearly always preferable, since
library manpages are usually in section 2 or 3 and are only relevant
to people with development packages installed.

For manpages which should be installed in the base package even for
libraries, add a new MANNODEV group in bsd.lib.mk.  Update existing
Makefiles to use this where appropriate.

MFC after:      3 days
Discussed with: olce
Reviewed by:    olce
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D52832
031e711647c3edc3021c1029496d6798a632697e Lexi Winter 2025-10-25 17:33:04
thunderbolt: Fix stale symlink for opt_acpi_wmi.h
Reported by:  wosch
Sponsored by:   The FreeBSD Foundation
ee363e1bab6ffcf196afbf870e92a1e9abdd8f11 Aymeric Wibo 2025-10-26 10:43:47

Internal organizational stuff

bsd-family-tree: add OpenBSD 7.8 release
cdc1990393084fb00a85abc7557f9a92a2059ea2 Maxim Konovalov 2025-10-22 03:05:23
committers-src: add self
With big thanks to Mark Johnston for mentoring me!

Approved by:    markj (mentor)
Differential Revision:  https://reviews.freebsd.org/D53258
5f2df8f83128adbd2cf22050ca078f2e46bbb227 Robert Clausecker 2025-10-22 12:41:36
MAINTAINERS: Add myself to ufshci
Sponsored by:           Samsung Electronics
Reviewed By:            imp (mentor)
Differential Revision:  https://reviews.freebsd.org/D53253
131dc2b7ad1b147b3b2775090f9eb55a7c2112ba Jaeyoon Choi 2025-10-23 03:09:38

Testing

inet_net_test: Use int to hold expected return values from inet_net_pton
GCC warns about the sign mismatch in comparisons:

lib/libc/tests/net/inet_net_test.cc: In member function 'virtual void {anonymous}::atfu_tc_inet_net_inet4::body() const':
lib/libc/tests/net/inet_net_test.cc:86:17: error: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Werror=sign-compare]
   86 |                 ATF_REQUIRE_EQ(bits, addr.bits);
      |                 ^~~~~~~~~~~~~~
lib/libc/tests/net/inet_net_test.cc: In member function 'virtual void {anonymous}::atfu_tc_inet_net_inet6::body() const':
lib/libc/tests/net/inet_net_test.cc:205:17: error: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Werror=sign-compare]
  205 |                 ATF_REQUIRE_EQ(bits, addr.bits);
      |                 ^~~~~~~~~~~~~~

Fixes:          https://cgit.freebsd.org/src/commit/?id=8f4a0d2f7b96 ("libc: Import OpenBSD's inet_net_{ntop,pton}")
e1aeb58cbbc3839db93ec38ce491b7b9383d5649 John Baldwin 2025-10-20 18:31:41
inet_net_test: Compare pointers against nullptr
GCC does not like passing NULL (__null) to std::ostringstream::operator<<
inside of ATF_REQUIRE_EQ:

lib/libc/tests/net/inet_net_test.cc: In member function 'virtual void {anonymous}::atfu_tc_inet_net_ntop_invalid::body() const':
lib/libc/tests/net/inet_net_test.cc:306:9: error: passing NULL to non-pointer argument 1 of 'std::__1::basic_ostream<_CharT, _Traits>& std::__1::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::__1::char_traits<char>]' [-Werror=conversion-null]
  306 |         ATF_REQUIRE_EQ(ret, NULL);
      |         ^~~~~~~~~~~~~~
In file included from /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/sstream:317,
                 from /usr/obj/.../amd64.amd64/tmp/usr/include/atf-c++/macros.hpp:29,
                 from /usr/obj/.../amd64.amd64/tmp/usr/include/atf-c++.hpp:29,
                 from lib/libc/tests/net/inet_net_test.cc:33:
/usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/__ostream/basic_ostream.h:338:81: note:   declared here
  338 | basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>::operator<<(long __n) {
      |                                                                            ~~~~~^~~
...

Fixes:          https://cgit.freebsd.org/src/commit/?id=8f4a0d2f7b96 ("libc: Import OpenBSD's inet_net_{ntop,pton}")
aa358ce3ca8e1fcfb305025fd00beb2a119c7c77 John Baldwin 2025-10-20 18:31:41
tests/sys/netpfil/pf/sctp: make use of required.kmods
This greatly speeds up skipping a test that can't be run.

MFC after:      2 weeks
Sponsored by:   ConnectWise
Reviewed by:    kp
Differential Revision: https://reviews.freebsd.org/D53215
7648d2ebda22fe21ed385cc7d76813a1a9c17c99 Alan Somers 2025-10-20 13:52:41
so_reuseport_lb_test: Add a test case for connected UDP sockets
Approved by:  so
1dd66c6ac2c146f540b2ff825fbee442354aeee5 Mark Johnston 2025-10-22 14:53:28
fusefs: add a regression test for a cluster_read bug
VOP_BMAP is purely advisory.  If VOP_BMAP returns an error during
readahead, cluster_read should still succeed, because the actual data
was still read just fine.

Add a regression test for PR 264196, wherein cluster_read would fail if
VOP_BMAP did.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264196
MFC with:       62aef3f73f38db9fb68bffc12cc8900fecd58f0e
Reported by:    danfe
Reviewed by:    arrowd
Differential Revision: https://reviews.freebsd.org/D51316
6d408ac490730614b3ed0ebd3caffcd23f303fb4 Alan Somers 2025-10-23 13:40:56
closefrom_test: Fix the first test
The first test is supposed to close the new fd, but was instead not
closing anything.

Reviewed by:    ngie, markj
Fixes:          https://cgit.freebsd.org/src/commit/?id=3cedbec3ee08 ("Integrate tools/regression/fifo into ...")
Differential Revision:  https://reviews.freebsd.org/D52799
b307799b5141331effbb93d7f87dd00e9b991982 John Baldwin 2025-10-23 19:59:32

Style, typos, and comments

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

tcp: fix typo in comment
Reviewed by:  tuexen
MFC after:      3 days
Sponsored by:   Netflix, Inc.
daac364e611532c7bfd4bb20f9fea8d365496aa1 Peter Lei 2025-10-21 09:18:32
kdb: Fix a typo in a source code comment
- s/th/the/

MFC after:      3 days
0a53e6d8bc0b3a6332e228993d040fbf38f652fb Gordon Bergling 2025-10-22 11:57:57
pmcstat(8): Fix a typo in a source code comment
- s/th/the/

MFC after:      3 days
2b2a4f02e0872065c63baec8bf0069e3b677def7 Gordon Bergling 2025-10-22 11:59:13
sound: Improve dsp_cdevsw style
Sponsored by: The FreeBSD Foundation
MFC after:      4 days
4bab868a122b9c853865c8d89886d9354d0f242b Christos Margiolis 2025-10-22 12:31:16
mtree: Remove stray atm directory
ATM support for netgraph was removed in af0cc0b22362 ("NgATM: Remove
netgraph ATM support")

Remove the directory from the mtree specification.

Reviewed by:    emaste
Fixes:  https://cgit.freebsd.org/src/commit/?id=21735dfaebdf ("include: Remove no longer existing netgraph/atm")
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D53260
8e8ee8bbe2a112f7d1cc1b005dbdb8868522b640 Jose Luis Duran 2025-10-22 15:34:30
mtree: Remove stray wi directory
Reviewed by:  imp, emaste
Fixes:  https://cgit.freebsd.org/src/commit/?id=a21def4d568f ("pccard: Remove wi(4) driver")
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D53264
f942a7465469008f7538436a70f15a44cabecbb0 Jose Luis Duran 2025-10-22 22:41:03
mtree: Remove stray an (Aironet) directory
Reviewed by:  imp
Fixes:  https://cgit.freebsd.org/src/commit/?id=663b174b5b53 ("an: Remove driver")
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D53265
f7ccf051016fe3989ef6fbf10adea3ce4131f91b Jose Luis Duran 2025-10-22 22:41:53
w: Trim whitespace and commas from time and uptime
When producing formatted output, trim leading whitespace and trailing
commas from the human-readable time and uptime before emitting them.
The text output remains unchanged.

PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290089
Fixes:          https://cgit.freebsd.org/src/commit/?id=6e6febb54da9 ("w: Fix idle time in json output, add login/idle times to json output")
Reviewed by:    marius.h_lden.org
Differential Revision:  https://reviews.freebsd.org/D53167
4d5789532a940144c869d66505e756ce816f8a50 Dag-Erling Smørgrav 2025-10-23 10:28:44
style.mdoc.5: Point readers to style(9) regarding copyright headers
While here, fix the ordering of the elements in the copyright header per
style(9) and remove the text of the license as we already have the SPDX
tag here.

MFC after:      3 days
3cc7d67155dad57e0d10f02a584fda6c8f2ea0b2 Mateusz Piotrowski 2025-10-24 19:22:32
queue.3: Fix a typo in the manual page
- s/overriden/overridden/

MFC after:      5 days
f5a3d790c78682506888b2bb4e67fa08cf5d8bd4 Gordon Bergling 2025-10-26 13:03:44
siginfo.3: Fix a typo in the manual page
- s/Sychronous/Synchronous/

MFC after:      5 days
1447a221338c070130d7e990733486ed142267a1 Gordon Bergling 2025-10-26 13:04:43
debug.sh.8: Fix a typo in the manual page
- s/noticable/noticeable/
- s/compatability/compatibility/

MFC after:      5 days
69fbd069d83784bf765471931542f53551501354 Gordon Bergling 2025-10-26 13:06:48
rc.subr.8: Fix a typo in the manual page
- s/derrived/derived/

MFC after:      5 days
12584410c5dc3d17f6a07a743ca351f02434dc00 Gordon Bergling 2025-10-26 13:07:43
pf.conf.5: Fix a typo in the manual page
- s/opion/option/

MFC after:      5 days
189cec2f0d6ceb258c754193cf03a26eb9d7b3fe Gordon Bergling 2025-10-26 13:09:01
rc.conf.5: Fix a typo in the manual page
- s/overriden/overridden/
- s/explicitely/explicitly/

MFC after:      5 days
ca7deba74b2e5179c8fc2180d509632128b56bac Gordon Bergling 2025-10-26 13:10:16
arch.7: Fix a typo in the manual page
- s/dereferencable/dereferenceable/

MFC after:      5 days
66923ac81ba8077d2eeb02e49c890a2bfa8ba39f Gordon Bergling 2025-10-26 13:11:46
build.7 Fix a typo in the manual page
- s/envirnoment/environment/

While here fix a .Xr macro.

MFC after:      5 days
8c48902d41d887eed3490b2f274801aa6911f389 Gordon Bergling 2025-10-26 13:14:48
acpi_battery.4: Fix a typo in the manual page
- s/rechargable/rechargeable/

MFC after:      5 days
e47c294d005c7789f120d80b566c25f90e431278 Gordon Bergling 2025-10-26 13:23:22
ahc.4: Fix a typo in the manual page
- s/configued/configured/

MFC after:      5 days
76b44182c6c250a3307c4eecf24976c810e065c2 Gordon Bergling 2025-10-26 13:24:47
bce.4: Fix a typo in the manual page
- s/activitiy/activity/

MFC after:      5 days
dc9fd0f379becb94cfa3adb3a53a8a42da336d52 Gordon Bergling 2025-10-26 13:25:49
iwlwifi.4: Fix a typo in the manual page
- s/incosistent/inconsistent/

MFC after:      5 days
7c8c5ac82e27a4d4246574bc1a636b05b1d0937f Gordon Bergling 2025-10-26 13:26:52
mac_do.4: Fix a typo in the manual page
- s/occurences/occurrences/

MFC after:      5 days
72a9bfcfab08da5a00e2ec3fba580157173c6a15 Gordon Bergling 2025-10-26 13:27:53
p9fs.4: Fix a typo in the manual page
- s/recommented/recommended/

MFC after:      5 days
5a739b74650b0746334ddcd92ef73369f0c18c54 Gordon Bergling 2025-10-26 13:28:48
nvmecontrol(8): Fix a typo in an error message
- s/speciifed/specified/

MFC after:      1 week
44004bcffabc3372d6812c2e0c4bf90386919e21 Gordon Bergling 2025-10-26 15:08:31
pfctl(8): Fix a typo in an error message
- s/addresess/addresses/

MFC after:      1 week
a31d432264c461581231c08c00a5d0ad8c38bafd Gordon Bergling 2025-10-26 15:09:43
rtlbtfw(8): Fix a typo in an error message
- s/Parseing/Parsing/

MFC after:      1 week
39d43543b306ac686aa684303ae972c386ccea12 Gordon Bergling 2025-10-26 15:26:21
cxgbetool(8): Fix a typo in an error message
- s/MISCELANEOUS/MISCELLANEOUS/

MFC after:      1 week
8f1c946f1c42bdf9fabd870100b316af71c5e45e Gordon Bergling 2025-10-26 15:27:51
pmcstat(8): Fix a typo in an error message
- s/evalation/evaluation/

MFC after:      1 week
780a50c729c7bc0ac1750947223feadd918b17e8 Gordon Bergling 2025-10-26 15:29:08
fwcontrol(8): Fix a typo in a message
- s/verndor/vendor/

MFC after:      1 week
56a72214a35965197932b6366ffad0fe1e3fc398 Gordon Bergling 2025-10-26 15:30:48

Contrib code

zfs: merge openzfs/zfs@6ae99d269
Notable upstream pull request merges:
 #17750 6e5b836e9 FreeBSD: Correct _PC_MIN_HOLE_SIZE
 #17803 1861a329f zvol: verify IO type is supported
 #17826 51de2d76f Explicit set ashift for non-leaf vdevs
 #17830 f4276479c Suppress some ashift warnings
 #17843 6ae99d269 mmap_seek: print error code and text on failure

Obtained from:  OpenZFS
OpenZFS commit: 6ae99d26924decb5f618b596ec7663e6a26d2e5f
6e6cde8f2bdb235b741061e3c6ee664752f25c18 Martin Matuska 2025-10-20 10:18:26
zfs: zfs_getpages: Don't zero freshly allocated pages
Initially, `zfs_getpages()` is provided with an array of busy pages by
the vnode pager. It then tries to acquire the range lock, but if there
is a concurrent `zfs_write()` running and fails to acquire that range
lock, it "unbusies" the pages to avoid a deadlock with `zfs_write()`.
After that, it grabs the pages again and retries to acquire the range
lock, and so on.

Once it got the range lock, it filters out valid pages, then copy DMU
data to the remaining invalid pages.

The problem is that freshly allocated zero'd pages it grabbed itself are
marked as valid. Therefore they are skipped by the second part of the
function and DMU data is never copied to these pages. This causes mapped
pages to contain zeros instead of the expected file content.

This was discovered while working on RabbitMQ on FreeBSD. I could
reproduce the problem easily with the following commands:

    git clone https://github.com/rabbitmq/rabbitmq-server.git
    cd rabbitmq-server/deps/rabbit

    gmake distclean-ct RABBITMQ_METADATA_STORE=mnesia \
      ct-amqp_client t=cluster_size_3:leader_transfer_stream_send

The testsuite fails because there is a sendfile(2) that can happen
concurrently to a write(2) on the same file. This leads to sendfile(2)
or read(2) (after the sendfile) sending/returning data with zeros, which
causes a function to crash.

The patch consists of not setting the `VM_ALLOC_ZERO` flag when
`zfs_getpages()` grabs pages again. Then, the last page is zero'd if it
is invalid, in case it would be partially filled with the end of the
file content. Other pages are either valid (and will be skipped) or they
will be entirely overwritten by the file content.

This patch was submitted to OpenZFS as openzfs/zfs#17851 which was
approved.

Reviewed by:    avg, mav
Obtained from:  OpenZFS
OpenZFS commit: 8a3533a366e6df2ea770ad7d80b7b68a94a81023
MFC after:      3 days
Differential revision: https://reviews.freebsd.org/D53219
b596b4496568c21e1e8f9c21be913cfc5b71bd9b Jean-Sébastien Pédron 2025-10-16 08:16:18
unbound: Vendor import 1.24.1
Release notes at
        https://nlnetlabs.nl/news/2025/Oct/22/unbound-1.24.1-released/

Security:       CVE-2025-11411
MFC after:      3 days

Merge commit '73dd92916f532cb3fe353220103babe576d30a15'
8b29c373e6ab530b62122ea2adcbe637c07e06c9 Cy Schubert 2025-10-23 18:56:54
iwlwifi: update Intel's mvm/mld drivers
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

Some of the changes we reported upstream got incorporated in this
(or the v6.16) release.

This also includes a change from iwlwifi-next.git::next for missing symbols

iwl_mvm_v3_rate_from_fw() and iwl_mvm_v3_rate_to_fw() were originally
comitted to mvm/rs.[ch] which we do not have.  That left us with
unresolved symbols.  For the never comitted v6.16 driver update I had
started to piece these together but they have been migrated out to
utils.c so take them from there until the next release hopefully ships
this change.

Obtained from:  git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git
        branch next, 1b49af228594452206d5c50a33b6a341428edb63

MFC after:      3 days
6b627f88584ce13118e0a24951b503c0b1f2d5a7 Bjoern A. Zeeb 2025-10-17 17:27:49
rtw88: update Realtek's rtw88 driver
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

MFC after:      3 days
eb15fdb1b72de02e7a4c454f7eeeb1cee5cb83df Bjoern A. Zeeb 2025-10-17 20:22:54
rtw89: update Realtek's rtw89 driver
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

MFC after:      3 days
354a030185c650d1465ed2035a83636b8f825d72 Bjoern A. Zeeb 2025-10-17 20:46:45
mt76: update Mediatek's mt76 driver
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

MFC after:      3 days
14b53301e8d482654f94c23e6884fe96b3d26825 Bjoern A. Zeeb 2025-10-17 21:22:52
zfs: merge openzfs/zfs@0455150f1
Notable upstream pull request merges:
 #17836 adacf020c Fix return value for setting zvol threading
 #17839 44704616b zpool: fix conflict with -v and -o options
 #17851 3a55e76b8 FreeBSD: zfs_getpages: Don't zero freshly allocated pages
 #17863 0455150f1 FreeBSD zio_crypt.c: initialize uio variables before
                  access

Obtained from:  OpenZFS
OpenZFS commit: 0455150f1160dd7089ab31fefcfc58bfa548ab81
e6e941e659ab7b3db6786103c1cdc30735a82e32 Martin Matuska 2025-10-25 07:52:46
MFV: Import blocklist 2025-10-25 (156df4f)
Merge commit '1ae0b2f3a242a48af2deef1e88649bf4a3a74e2f'

Changes:

https://github.com/zoulasc/blocklist/compare/8aa81bf...156df4f

MFC after:      2 days
bcbe0a3c924e09c4d78514e3d16d493e3da54f83 Jose Luis Duran 2025-10-25 21:15:18
blocklist: blacklist: Chase recent upstream changes
Upstream introduced an extra column in blocklistctl(8) to display the
name of the rule associated in the database entry.

It is intended to avoid confusion when seemingly duplicate locations
appear in the output of the blocklistctl dump command.  Especially when
users are transitioning from the old nomenclature to the new one.

The latest patches will not be fully backported to blacklistctl(8), to
avoid breaking current scripts that may be parsing its output.  Also we
are slowly preparing to feature-freeze everything related to blacklist.

MFC:    2 days
eae98e28a0e17f625e29f9849a4dc655636d9164 Jose Luis Duran 2025-10-25 21:24:13
vchiq: update printf-s to more architecture-independent format specifiers
This migrates a bunch of format strings to compile on both 32 and
64 bit platforms.

This should be a no-op, and it isn't yet used by a 64 bit kernel build
as the 64 bit changes to vchiq are not yet in the tree.

Differential Revision:  https://reviews.freebsd.org/D36431
Submitted by: Marco Devesas Campos <devesas.campos@gmail.com>
1d100747d747887a13498216d39b03e26b381d8b Adrian Chadd 2025-10-20 02:38:21

Reverted commits

Commit & revert pair: UDP: let udp_pcblist() support UDP and UDP-Lite
UDP: let udp_pcblist() support UDP and UDP-Lite

Provide the IPPROTO_UDP in the arg2 parameter of udp_pcblist() and use
this to determine the inpcbinfo. This allows the same function to be
used in an upcoming commit to provide the list of pcbs for UDP-Lite
just by providing IPPROTO_UDPLITE in the arg2 parameter.

Reviewed by:            rrs
MFC after:              3 days
Pull Request:           https://reviews.freebsd.org/D53218
5f6f2c3fa25b3f37936b564b433251c33b27a8b3 Michael Tuexen 2025-10-20 21:07:38

Revert "UDP: let udp_pcblist() support UDP and UDP-Lite"

This reverts commit 5f6f2c3fa25b3f37936b564b433251c33b27a8b3.
Missing link to review.
7294d2601f3a605dac3e86e232b43f29a0f5298d Michael Tuexen 2025-10-20 21:19:29

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.18 at 2025-11-03 03:26:54+00:00.

This work is supported by Tarsnap Backup Inc.

Alternate version: 2025-10-20 (debug) (contains info about the classification)