This URL: https://git.freebsd.catflap.wales/src/stable-15/raw-log-html/ _____________________________________________________________________________________________________________ Commit: cc15a53f1adb74e17d8c39faa1ab5296b0a1c076 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cc15a53f1adb74e17d8c39faa1ab5296b0a1c076 Author: Mark Peek (Sat 28 Nov 2026 17:21:58 GMT) Committer: Mark Peek (Sun 6 Dec 2026 00:20:29 GMT) sdt: Don't clear a probe's ID when disabling it A thread may have jumped out of a tracepoint but not yet loaded the probe ID when sdt_disable() clears it. It then calls dtrace_probe() with ID 0, which reads far past the end of the probe array. Leave the ID set. dtrace_probe() does nothing for a disabled probe, and sdt_enable() sets the ID each time. Reviewed by: markj MFC after: 1w Co-authored-by: Claude Opus 5.5 Differential Revision: https://reviews.freebsd.org/D62154 (cherry picked from commit ef6d8eb703b959a91c28222a20b3f3a04ba4ff1a) M sys/cddl/dev/sdt/sdt.c _____________________________________________________________________________________________________________ Commit: 234fb7a45f7b56a7dae4eee7977438e61f452c46 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=234fb7a45f7b56a7dae4eee7977438e61f452c46 Author: Mark Peek (Sat 28 Nov 2026 17:21:46 GMT) Committer: Mark Peek (Sun 6 Dec 2026 00:20:28 GMT) amd64/sdt: Use a single NOP for disabled probes sdt_tracepoint_restore() wrote five one-byte NOPs. A thread interrupted between them could resume in the middle of the jump written when the probe was next enabled, and run its displacement as instructions. Write the single five-byte NOP that the compiler emits for _SDT_ASM_PATCH_INSTR instead. Reviewed by: markj MFC after: 1w Co-authored-by: Claude Opus 5.5 Differential Revision: https://reviews.freebsd.org/D62153 (cherry picked from commit b8180220627577c403b04de3647ac631798fdb8b) i386/sdt: Use a single NOP for disabled probes On i386, both _SDT_ASM_PATCH_INSTR and sdt_tracepoint_restore() used five one-byte NOPs. Use "leal %ds:0(%esi,%eiz,1), %esi" (3e 8d 74 26 00) instead. The multi-byte NOP (0f 1f) is avoided because i386 GENERIC still supports CPUs without it. Tested on stable/15 i386 under bhyve with a reproducer that toggles a probe while other CPUs run its sites. Reviewed by: markj MFC after: 1w Co-authored-by: Claude Opus 5.5 Differential Revision: https://reviews.freebsd.org/D62198 (cherry picked from commit 83d1b6807d592413f3c963cf15ec9a1596533408) M sys/i386/include/sdt_machdep.h M sys/x86/x86/sdt_machdep.c _____________________________________________________________________________________________________________ Commit: 3c21b457dae4b8508acdc3c2ec9b1ff4941b57c4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3c21b457dae4b8508acdc3c2ec9b1ff4941b57c4 Merge: 983831070ee5 443d76f01410 Author: Martin Matuska (Sat 5 Dec 2026 22:59:35 GMT) Committer: Martin Matuska (Sat 5 Dec 2026 23:00:59 GMT) zfs: merge openzfs/zfs@443d76f01 OpenZFS 2.4.5 Notable upstream pull request merges: #18093 -multiple L2ARC: Rework write throttling with DWPD rate limiting and parallel writes #18179 4fa094912 Allow rewrite skip cloned and snapshotted blocks #18310 5096951f8 Remove forced zfs_umount() from zfs_resume_fs() bail path #18387 90b632b05 Handle raidz errors <= nparity rather than ignoring #18718 -multiple zfs_zget and zfs_vget has inconsistent for unlink #18812 029766eda dbuf: use dirty record size for overridden writes #18819 -multiple ddt: fix refcount bypass and gang member leak for dedup gang blocks #18822 e5decdeb5 dnode_sync: Relax constraint on indirect freeing #18826 -multiple FDT: don't extend dedup across RAIDZ expansion #18853 6ff08fa49 Fix double free when cloning a block with a pending free #18861 ed3ce9102 Fix out-of-bound access when resizing in receive_spill #18897 93e458c12 arc: fix race between arc_release() and arc_read_done() #18903 60b68a496 dmu_objset_open_impl: unregister prop callbacks on error #18932 -multiple Inherit the project ID for every object type, and allow same-directory renames #18934 d7b0612b9 zgenhostid: seed the generated hostid from the system CSPRNG #18961 ea7afac18 dmu_recv_begin_check: dsl_dataset_rele() should be called on ds #18962 7ccbe5e78 dmu_redact_snap: Do proper cleanup on ENAMETOOLONG #18967 -multiple Speed up pool rewind and allow it to tolerate minor damage #18968 57fbddf6b arc: harness buf_hdr's anon state invariant checks #18969 1ddb990fb dsl_crypt: validate every key change-key will rewrap #18993 7c1de6bbb vdev_disk_open: fix ENOENT retry & cleanup error handling #19003 ce113c7e3 Write uberblocks only to vdevs used by the txg #19016 3df96ab87 dnode: fix heap-use-after-free in dnode_rele_and_unlock() #19026 d1a315e82 Add alloc factor logic #19031 2bea4c0fc Fix metaslab count assertion in metaslab_group_alloc() for small vdevs #19041 89ae9e100 Do not complete a device removal that hit IO errors #19042 53770cfbe Wait for the initialize and trim threads to exit #19098 47906ec30 libzfs_core: block delivery of SIGUSR1 in send_worker thread #19155 d32b6c227 Propagate vdev state change on probe failure #19170 85106bda8 zio: drop a queued scan read only when its block is freed #19198 2a9baff85 vdev_rebuild: wait for the syncing txg before rebuilding a metaslab #19234 4ce40a6df dbuf: restore BP_IS_HOLE() recheck after dnode_block_freed() #19253 dd705ef2c ZIL: avoid deadlock in xattr owner check #19279 0e915952a raidz: refuse too small replacements during expansion #19281 4c619a511 dmu_recv: fix corrective recv of zstd compressed blocks #19292 44b887dac libzfs: reject malformed numeric ids in userquota props #19301 4886f4fda ddt: fix NULL bp dereference in ddt_repair_entry_done() #19308 b35c92d1b libzfs: don't abort when a recv target's origin is outside the tree #19310 238b39534 dsl_crypt: only expect an IVset guid on snapshots #19312 f2f3ce88f metaslab: use the physical birth to decide checkpointedxi frees #19314 3e892b64b zio: find large gang headers while the pool is loading #19320 4577efe25 ZIL: zero the header bp in zil_crash() only if lwbs own it #19323 0efe79601 dmu_recv: keep rrd->abd current in do_corrective_recv() #19329 52254befe ZIL: Sync the txg that a suspended commit waits foR #19351 dc6db8c92 metaslab: don't gang every block on a degraded single-disk vdev #19356 e9ce2ff47 ZIL replay can apply part of a split WR_NEED_COPY write #19391 e21ca0558 zio: free the gang header ABD when its read fails #19395 12c5a5735 raidz: resilver every child a block born before an expansion spans #19399 dd94cdb3e vdev_mirror: scrub every copy of a gang block in a sorted scrub #19402 51172fdb1 Accept the dedup NOP of zfs rewrite -P in arc_write_done() #19411 451b969c0 icp: record the accelerated GCM hash-table allocation size #19433 -multiple raidz: fix scrub repairs during a raidz expansion #19481 5116561b8 ZIL: Don't acknowledge commits after a failed log block #19506 450ed7c3e raidz: compute the aggregate copy offset before adding it #19511 a40f2782b vdev: atomically account checkpoint space during parallel load #19516 4c7eac35b Fix user accounting after incremental receives into encrypted datasets #19538 df7b36ecc Do not copy stale data from a mirror child in a rebuild #19554 072fb0781 recv: check the temporary clone name length #19556 7767caa76 Release the upgrade hold before clearing os_upgrade_id #19578 9bebc9266 vdev: avoid null member access in statistics updates #19588 d428de9dc Wait for dataset evictions when exporting a read-only pool #19590 -multiple raidz: keep the scratch copy when import recovery fails #19631 4bc3aaf63 L2ARC: Do not write encrypted buffers whose MAC differs #19633 1c9226d62 Fix direct reads of blocks pending free #19700 447cd14c7 nvt_nvpair_match: when duplicates allowed, only match the exact pair #19705 557e1636f raidz: take the reflow range lock when spa_ubsync advances #19769 873556895 Fix FreeBSD fallout from simd_aarch64 changes #19782 12ca1b4d4 arc: fix use-after-free in synchronous L2ARC read retry #19815 ff37959bb Don't busy-loop in txg_sync_thread() while the pool is suspended Obtained from: OpenZFS OpenZFS commit: 443d76f01410fe4e9365039b6950292a6a1d6119 OpenZFS tag: zfs-2.4.5 _____________________________________________________________________________________________________________ Commit: 983831070ee53c6958beee7feb647b84ba709c19 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=983831070ee53c6958beee7feb647b84ba709c19 Author: Dag-Erling Smørgrav (Sat 5 Dec 2026 20:43:34 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 20:44:47 GMT) ObsoleteFiles.inc: Correct two old paths At the time we retired the cp(4) driver, we still had per-arch man subdirectories. Fixes: 895992bb66d2 ("retire cp(4) driver") Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D62503 (cherry picked from commit 1eb959c52c684dfa8f3efd17897fba70c006d62e) M ObsoleteFiles.inc _____________________________________________________________________________________________________________ Commit: b90c66ac07b19b86cba0e05628549569d0541790 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b90c66ac07b19b86cba0e05628549569d0541790 Author: Christos Longros (Tue 21 Apr 2026 15:14:09 BST) Committer: Abdelkader Boudih (Sat 5 Dec 2026 17:40:22 GMT) ure: add USB device IDs for additional RTL8152/RTL8153 adapters Add device IDs for several USB Ethernet adapters that use RTL8152 and RTL8153 chips but are not yet recognized by ure(4). This includes adapters from Cisco/Linksys, D-Link, Lenovo, Microsoft Surface, Realtek, Samsung, and TP-Link. All added devices use chip revisions already handled by ure_read_chipver(). Signed-off-by: Christos Longros Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D55748 (cherry picked from commit 76c082180719f42481289eb837e44b055efc003a) M sys/dev/usb/net/if_ure.c M sys/dev/usb/usbdevs _____________________________________________________________________________________________________________ Commit: 73856e5ead173479198ba09145ea438810970b05 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=73856e5ead173479198ba09145ea438810970b05 Author: Daniel Berger (Sat 28 Nov 2026 14:39:01 GMT) Committer: Abdelkader Boudih (Sat 5 Dec 2026 17:40:22 GMT) acpi_ibm: handle ThinkPad programmable star key Handle extended HKEY events separately from legacy event mask indices. Report the programmable star key as KEY_BOOKMARKS instead of treating it as brightness down, and preserve extended event arguments for devd. Tested on: ThinkPad X1 Carbon Gen 9 Pull Request: https://github.com/freebsd/freebsd-src/pull/2595 MFC after: 3 days Reviewed by: ngie, adrian Differential Revision: https://reviews.freebsd.org/D62159 (cherry picked from commit 225fadb1697803353f4664fa8618fdf1dbc8edff) M sys/dev/acpi_support/acpi_ibm.c _____________________________________________________________________________________________________________ Commit: eefa078a2ba0868a156d8b78ab912e63316e04ec URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=eefa078a2ba0868a156d8b78ab912e63316e04ec Author: Konstantin Belousov (Wed 24 Jun 2026 16:23:12 BST) Committer: Abdelkader Boudih (Sat 5 Dec 2026 17:40:22 GMT) acpi_support/acpi_ibm.c: move the 'key' definition to the block that uses it This eliminates a warning from compilation of kernels without EVDEV_SUPPORT. Fixes: 7e7f8b2c6641 ("acpi_ibm: Report mic mute key evdev events") Sponsored by: The FreeBSD Foundation (cherry picked from commit 31b7d80016a37e4de10f166bc7ff353c7d1ef534) M sys/dev/acpi_support/acpi_ibm.c _____________________________________________________________________________________________________________ Commit: 2b94cc40714d4113003fca733029da533e494fe1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2b94cc40714d4113003fca733029da533e494fe1 Author: Aymeric Wibo (Sat 20 Jun 2026 22:29:49 BST) Committer: Abdelkader Boudih (Sat 5 Dec 2026 17:40:21 GMT) acpi_ibm: Report mic mute key evdev events While here, make the naming of micmute_led more consistent. PR: 296140 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296140 ) Event: Halifax Hackathon 202606 Reported by: David Lundqvist Reviewed by: olce Tested by: David Lundqvist, Oleksandr Kryvulia Co-authored-by: David Lundqvist Sponsored by: The FreeBSD Foundation (cherry picked from commit 7e7f8b2c66410bcc6408482be73bd9c059e2bbe2) M share/man/man4/acpi_ibm.4 M sys/dev/acpi_support/acpi_ibm.c _____________________________________________________________________________________________________________ Commit: 30c13107e10109ce8610bc9ea3b97409cb3b48c1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=30c13107e10109ce8610bc9ea3b97409cb3b48c1 Author: Aymeric Wibo (Mon 22 Jun 2026 15:50:52 BST) Committer: Abdelkader Boudih (Sat 5 Dec 2026 17:40:21 GMT) acpi_ibm.4: Remove extraneous .Tn As flagged by mandoc linter. Event: Halifax Hackathon 202606 Sponsored by: The FreeBSD Foundation (cherry picked from commit 8de929962a38855c8c38d117d20b71d7c9eaee77) M share/man/man4/acpi_ibm.4 _____________________________________________________________________________________________________________ Commit: 9a24b8f9be872b9633c9a49e1737d8a60e0d5d91 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9a24b8f9be872b9633c9a49e1737d8a60e0d5d91 Author: Aymeric Wibo (Mon 22 Jun 2026 15:42:55 BST) Committer: Abdelkader Boudih (Sat 5 Dec 2026 17:40:21 GMT) acpi_ibm(4): Refer to "mic *mute* led" instead of "mic led" Event: Halifax Hackathon 202606 Sponsored by: The FreeBSD Foundation (cherry picked from commit 40ab0a05640051eed02ccbf1c5150e97e8cc27da) M share/man/man4/acpi_ibm.4 M sys/dev/acpi_support/acpi_ibm.c _____________________________________________________________________________________________________________ Commit: 429e975d67bdd82df6d17c58c0102e9bc443991d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=429e975d67bdd82df6d17c58c0102e9bc443991d Author: Aymeric Wibo (Mon 22 Jun 2026 15:22:01 BST) Committer: Abdelkader Boudih (Sat 5 Dec 2026 17:40:21 GMT) acpi_ibm.4: Fix mic_led sysctl name Fixes: 707347f88649 ("Add missing documentation for dev.acpi_ibm.0.mic_led added in r335304") Event: Halifax Hackathon 202606 Sponsored by: The FreeBSD Foundation (cherry picked from commit b9d6497bd1f16e906f4dc6e600368b86d3fe0317) M share/man/man4/acpi_ibm.4 _____________________________________________________________________________________________________________ Commit: 61e4c84c9d17bf8d51a4a384d88059d2f8d4c3ea URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=61e4c84c9d17bf8d51a4a384d88059d2f8d4c3ea Author: Quentin Thébault (Wed 27 Aug 2025 11:05:27 BST) Committer: Abdelkader Boudih (Sat 5 Dec 2026 17:40:21 GMT) acpi_ibm: register all appropriate sysctls as uint All sysctls except thermal sensor readings and the handlerevents whitelist-separated string are bitmasks or small integers. This avoids some bitmasks being erroneously displayed as negative values. Signed-off-by: Quentin Thébault Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1824 (cherry picked from commit e881b8ee0bc7bf552c9c0a63c7d84542243f9f0d) M sys/dev/acpi_support/acpi_ibm.c _____________________________________________________________________________________________________________ Commit: 8067820aadded8c5d5d53f2086ba17c27f1546ac URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8067820aadded8c5d5d53f2086ba17c27f1546ac Author: Dag-Erling Smørgrav (Thu 3 Dec 2026 01:49:05 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 16:31:55 GMT) stdio: Fix negated wchar scansets We were recording the start of the scanset before checking if it began with a caret. We need to check for a caret first, then record whatever comes next as the start of the scanset. Note that scanf() did not have this bug, only wscanf(), but this adds regression tests for both anyway. MFC after: 1 week Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D62328 (cherry picked from commit 71c723518d22b2ae9c9c7819aa2625af3532bba5) stdio: Fix typo in scanset test Fixes: 71c723518d22 ("stdio: Fix negated wchar scansets") (cherry picked from commit c5917853354369d9537c5a5aee4f0d2854325ed4) M lib/libc/stdio/vfwscanf.c M lib/libc/tests/stdio/sscanf_test.c M lib/libc/tests/stdio/swscanf_test.c _____________________________________________________________________________________________________________ Commit: 0158ac09841347e57462045c75cb3d9571fd3d67 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0158ac09841347e57462045c75cb3d9571fd3d67 Author: Dag-Erling Smørgrav (Wed 2 Dec 2026 16:53:12 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 16:31:55 GMT) stdio: Add test cases for scansets Add test cases that exercise scanf() / wscanf() scansets, including hyphenated ranges and the missing closing bracket bug we recently fixed. MFC after: 1 week Reviewed by: kevans, emaste Differential Revision: https://reviews.freebsd.org/D62201 (cherry picked from commit c24ab9f32d9bb63b426f346cb5f28c00e63922c2) M lib/libc/tests/stdio/sscanf_test.c M lib/libc/tests/stdio/swscanf_test.c _____________________________________________________________________________________________________________ Commit: 71e480da47ac5488a2079678875135f3603d2dba URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=71e480da47ac5488a2079678875135f3603d2dba Author: Dag-Erling Smørgrav (Wed 2 Dec 2026 16:53:09 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 16:31:55 GMT) stdio: Implement ranges for wchar scansets The C and POSIX standards allow but do not require hyphenated ranges to be supported in scanf() / wscanf() scansets. We implemented them for scanf() but not for wscanf(). Do so using similar logic as for scanf(). This is hard to do efficiently for wide characters, which can in theory span the full 32-bit range (and even the actual range of about 1 million Unicode codepoints is difficult to handle), so we don't try to be efficient, but just focus on producing the same results for wscanf() as for scanf(). MFC after: 1 week Reviewed by: kevans, emaste Differential Revision: https://reviews.freebsd.org/D62200 (cherry picked from commit 50eb68efcb473c8c20c016d618a8cd674d3706dc) stdio: Use correct comparison function Fixes: 50eb68efcb47 ("stdio: Implement ranges for wchar scansets") (cherry picked from commit 342ddce1a0e96dab554926985d2d3fe5e49f8a69) M lib/libc/stdio/vfwscanf.c _____________________________________________________________________________________________________________ Commit: 57318b78dd2464b446fb05da95bb497726c4e4dd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=57318b78dd2464b446fb05da95bb497726c4e4dd Author: Dag-Erling Smørgrav (Wed 2 Dec 2026 16:53:03 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 16:31:55 GMT) stdio: Handle unterminated scansets In both vfscanf() and vfwscanf(), if the end of the format string was reached before the closing bracket of a scanset, we treated the NUL as the closing bracket and continued to read beyond the end of the format string. Add an error check to catch this case. MFC after: 1 week Reported by: Nick L. Leppelmeier Reviewed by: kevans, emaste Differential Revision: https://reviews.freebsd.org/D62199 (cherry picked from commit c5e0899d9908da5935cfaaade073d6911880fcb5) M lib/libc/stdio/vfscanf.c M lib/libc/stdio/vfwscanf.c _____________________________________________________________________________________________________________ Commit: bc41f99619becebb0723fcabea307f7bff57951b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bc41f99619becebb0723fcabea307f7bff57951b Author: Dag-Erling Smørgrav (Wed 2 Dec 2026 19:26:46 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 16:31:55 GMT) tests: Simplify printf tests ATF can now directly compare wchar strings. MFC after: 1 week Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D61617 (cherry picked from commit c855b9431ffc1af81b2a135bcce4da5fb6b4f943) M lib/libc/tests/stdio/snprintf_test.c M lib/libc/tests/stdio/swprintf_test.c _____________________________________________________________________________________________________________ Commit: 8acb50de842fea4c27f26711d891f9640fed6b42 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8acb50de842fea4c27f26711d891f9640fed6b42 Author: Roman Bogorodskiy (Sun 29 Nov 2026 08:09:09 GMT) Committer: Roman Bogorodskiy (Sat 5 Dec 2026 14:46:38 GMT) bhyve: disable SIGPIPE for TCP uart backend Currently, if a TCP uart client disconnects while the guest is writing to the serial port, a subsequent write to the socket raises SIGPIPE and kills the VM. Set SO_NOSIGPIPE on the listening socket to prevent that. Accepted connections inherit it. Reviewed by: markj Fixes: 1f903953fbf8 ("bhyve: Add raw tcp to uart backend") MFC after: 3 days MFC to: stable/15 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D62215 (cherry picked from commit cbfe766aac6f316007438c9f5557dd0c99bcbad3) M usr.sbin/bhyve/uart_backend.c _____________________________________________________________________________________________________________ Commit: daff3ca420f9683aa903e0e311b06c9b0fa49725 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=daff3ca420f9683aa903e0e311b06c9b0fa49725 Author: Roman Bogorodskiy (Sun 29 Nov 2026 07:43:22 GMT) Committer: Roman Bogorodskiy (Sat 5 Dec 2026 14:46:38 GMT) bhyve: disable SIGPIPE for vtcons Currently, if a virtio-console socket client closes the connection or shuts down the read side, the next guest write to the socket raises SIGPIPE and kills the VM. Set SO_NOSIGPIPE on this socket to prevent that. Reviewed by: markj Fixes: 13ee8dde0409 ("Add virtio-console support to bhyve.") MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D62216 (cherry picked from commit 293dac30b9955d64cff74f3d31138950cc6bfafe) M usr.sbin/bhyve/pci_virtio_console.c _____________________________________________________________________________________________________________ Commit: 0bb45abc82fa9d6cfc137e82685d175e01ef6d82 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0bb45abc82fa9d6cfc137e82685d175e01ef6d82 Author: Dag-Erling Smørgrav (Tue 1 Dec 2026 00:24:13 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 12:09:25 GMT) kern.post.mk: Fix unprivileged ports module build When building ports modules along with the kernel, we run the build target during buildkernel, and the install target during installkernel. This was fine back in the day when we installed ports straight from the working directory, but these days we stage them first, then build a package, and install the package. This staging and packaging should be seen as part of the build process, not the installation process, so we should use the package target, rather than the build target, during buildkernel. This fixes an issue where doing buildkernel as an unprivileged user, then installkernel as root, left a root-owned staging directory in the kernel object tree which the next unprivileged buildkernel would be unable to remove or replace. MFC after: 1 week Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D62195 (cherry picked from commit b393df657811e724369507c566f4780d19c2ab21) kern.post.mk: Further refine ports module build A handful of kmod ports have NO_PACKAGE set, which disables the package target, which means the previous commit made things worse for those ports rather than better. Work around this by explicitly building the stage target first. Fixes: b393df657811 ("kern.post.mk: Fix unprivileged ports module build") (cherry picked from commit 2b4bc0ffe940569aaa6bed64054dd13ef483041f) kern.post.mk: Really fix ports module build The package target was never needed; we install directly from the staging directory. Fixes: b393df657811 ("kern.post.mk: Fix unprivileged ports module build") (cherry picked from commit 44062d2ee959b0cbd91bef68f0ea8e9408e90b5d) M sys/conf/kern.post.mk _____________________________________________________________________________________________________________ Commit: aa8de86fd99f2c4f044cd41d5a04e809b518e886 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=aa8de86fd99f2c4f044cd41d5a04e809b518e886 Author: Dag-Erling Smørgrav (Tue 1 Dec 2026 00:24:09 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 12:09:25 GMT) linuxkpi: Make list_sort stable Linux's list_sort() is intended to be stable, but linuxkpi implemented it as a wrapper around qsort(), which is not. This used to work because our qsort() had a bug that effectively turned it into insertion sort, but this is no longer the case. Replace the qsort() call with an inline implementation of insertion sort. MFC after: 1 week Reviewed by: bz, markj Differential Revision: https://reviews.freebsd.org/D62194 (cherry picked from commit e79b273db1a92542c4efb90ed80b92643e6ea2a6) M sys/compat/linuxkpi/common/src/linux_compat.c _____________________________________________________________________________________________________________ Commit: f9dab72920d6b242fb3ea1cc2d3617b7256ecba0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f9dab72920d6b242fb3ea1cc2d3617b7256ecba0 Author: Dag-Erling Smørgrav (Wed 25 Nov 2026 17:13:34 GMT) Committer: Dag-Erling Smørgrav (Sat 5 Dec 2026 12:09:25 GMT) kern_linker: Fix struct version mismatch The kldstat(2) syscall supports two different structures, identified by their size, which the application stores in the version field before the call. Since one is a prefix of the other, instead of calling different functions to fill each one in like modstat(2) does, we fill in the larger of the two and simply don't copy out the extra fields if the smaller one was requested. As a side effect, we failed to fill out the version field in either case. This causes application code that sets the version field once and calls kldstat(2) repeatedly to fail since the version field is now incorrect for subsequent calls, whereas the same pattern works fine for modstat(2) because it copies the same version value back out. Fix this by setting the version field immediately before copying the struct out. While here, amend the manual pages for both kldstat(2) and modstat(2) to clarify that the version field is unchanged on return and remove bad advice about rebuilding world if either syscall returns EINVAL. MFC after: 1 week Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D61992 (cherry picked from commit a65e23fb8ab662c880f3d1eedfaa4659ef5f673d) M lib/libsys/kldstat.2 M lib/libsys/modstat.2 M sys/kern/kern_linker.c _____________________________________________________________________________________________________________ Commit: f97b5c6c075d9c8967d609ee09465b5fa239ce15 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f97b5c6c075d9c8967d609ee09465b5fa239ce15 Author: Cafer Can Gündoğdu (Wed 2 Dec 2026 21:58:51 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:12 GMT) libthr: fix libc spinlock initialization PR: 301407 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301407 ) (cherry picked from commit 496b57cd1efeb0ead418d0e55bd45a954730b20e) M lib/libthr/thread/thr_spinlock.c _____________________________________________________________________________________________________________ Commit: 7c52672a899413f2ec39f10df2035eef6e469d58 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7c52672a899413f2ec39f10df2035eef6e469d58 Author: Konstantin Belousov (Wed 2 Dec 2026 00:00:50 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:12 GMT) proc_reap(): assert that the reaped process has no children left (cherry picked from commit 6bd3a58f5fe6005697e7fc149c0a47c007f17ac0) M sys/kern/kern_exit.c _____________________________________________________________________________________________________________ Commit: 06c2026a664ba3e9e303992e1c9f08c5fc47b7ae URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=06c2026a664ba3e9e303992e1c9f08c5fc47b7ae Author: Konstantin Belousov (Wed 2 Dec 2026 00:00:50 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) linux(4): do not give a CLONE_PARENT child to an exiting parent (cherry picked from commit 5ff429a19ff177a34d630ceb046ee24366f09f78) M sys/compat/linux/linux_fork.c _____________________________________________________________________________________________________________ Commit: c7b405a87a9ebfe301064f5b7540759e1873f256 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c7b405a87a9ebfe301064f5b7540759e1873f256 Author: Konstantin Belousov (Wed 2 Dec 2026 00:00:50 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) tests/sys/kern/ptrace_test: reaper parent exits before PT_TRACE_ME (cherry picked from commit 7cce593ab3df8100f5072dac651a5d8bd1cf6487) M tests/sys/kern/ptrace_test.c _____________________________________________________________________________________________________________ Commit: 94ddfb60d02a7567a9a01a3b7fe78c1dc056f7b2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=94ddfb60d02a7567a9a01a3b7fe78c1dc056f7b2 Author: Konstantin Belousov (Wed 2 Dec 2026 00:00:49 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) ptrace(2): refuse PT_TRACE_ME when the parent is exiting (cherry picked from commit 028dcdf62b8596de5d2d7f217d2365e1cec59f19) M sys/kern/sys_process.c _____________________________________________________________________________________________________________ Commit: 2e8ace9f335291f4c1268d534fa379b0ba80b279 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2e8ace9f335291f4c1268d534fa379b0ba80b279 Author: Konstantin Belousov (Tue 1 Dec 2026 21:28:17 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) tests/sys/kern/ptrace_test: reap a reaper which has a traced orphan (cherry picked from commit 162f76d3846af5977b70022c5d3e8aa18f8ac909) M tests/sys/kern/ptrace_test.c _____________________________________________________________________________________________________________ Commit: e377ffcf0af90bc7e591729d91d463525aa045c6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e377ffcf0af90bc7e591729d91d463525aa045c6 Author: Konstantin Belousov (Tue 1 Dec 2026 21:28:17 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) reaper_abandon_children(): leave no orphans on a reaped reaper (cherry picked from commit 6a079e1d87f226b2d6463a9f749546b5225ed7e6) M sys/kern/kern_exit.c _____________________________________________________________________________________________________________ Commit: 9df1041438e2fb8aac8606cb06bbee6988971594 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9df1041438e2fb8aac8606cb06bbee6988971594 Author: Konstantin Belousov (Tue 1 Dec 2026 18:51:40 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) tests/sys/kern/procdesc: test the reaper exit while at the debugger (cherry picked from commit 939586b05b1370d26b3ea8e33eba25f26b22eea8) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: 57a0a0c25d5361e23befd7ae227e7a4335a51f09 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=57a0a0c25d5361e23befd7ae227e7a4335a51f09 Author: Konstantin Belousov (Tue 1 Dec 2026 04:37:16 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) tests/sys/kern/procdesc: test the reaper change while at the debugger (cherry picked from commit 9c707f3f78ebe94ac4aeadb8ca7ec334189bb2ab) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: 0f6970852b04a6fa4d6afb1c0bb0a1b55d6b5361 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0f6970852b04a6fa4d6afb1c0bb0a1b55d6b5361 Author: Konstantin Belousov (Tue 1 Dec 2026 04:37:16 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) tests/sys/kern/ptrace_test: reaper parent exits before the traced child (cherry picked from commit a00bb4693a946015ccb70fbe54ca2319368b7bd9) M tests/sys/kern/ptrace_test.c _____________________________________________________________________________________________________________ Commit: e72f82cc3965e6ef7bdb2b547905b843a3c79b53 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e72f82cc3965e6ef7bdb2b547905b843a3c79b53 Author: Konstantin Belousov (Tue 1 Dec 2026 04:37:16 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) reaper_abandon_children(): pass the real parent role to the new reaper (cherry picked from commit 38ab6d47b7cbb3f51ae5b58cb03e54930cfd67f1) M sys/kern/kern_exit.c M sys/kern/kern_procctl.c _____________________________________________________________________________________________________________ Commit: af074b220c30389a063bef188eb3a0c01351bfe5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=af074b220c30389a063bef188eb3a0c01351bfe5 Author: Konstantin Belousov (Tue 1 Dec 2026 04:37:15 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) procdesc_close(): extract reaper_adopt() (cherry picked from commit 72cbfba1879c767d2c4dca965b04f1c153f20751) M sys/kern/kern_exit.c M sys/kern/sys_procdesc.c M sys/sys/proc.h _____________________________________________________________________________________________________________ Commit: bcbabde247d1d2103adf6a93d1587a22564bd795 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bcbabde247d1d2103adf6a93d1587a22564bd795 Author: Konstantin Belousov (Tue 1 Dec 2026 02:04:15 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) kern/kern_exit.c: fix decision to give back to real parent in proc_reap() (cherry picked from commit f3d3ae5c2dc032f425738f7f03f72ac9c7f9cba5) M sys/kern/kern_exit.c _____________________________________________________________________________________________________________ Commit: 57898fb4b0f5346cb8ba2583694533d343510c27 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=57898fb4b0f5346cb8ba2583694533d343510c27 Author: Konstantin Belousov (Sun 22 Nov 2026 11:26:01 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) amd64, powerpc64: treat procctl(P_PID, 0) as request for current process (cherry picked from commit 07ae7601c303aae33ba468a95407dfbce507888a) M sys/amd64/amd64/vm_machdep.c M sys/powerpc/powerpc/vm_machdep.c _____________________________________________________________________________________________________________ Commit: 6882543143418d296fe5cf2ca791ab81e06713cb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6882543143418d296fe5cf2ca791ab81e06713cb Author: Konstantin Belousov (Tue 1 Dec 2026 00:59:13 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:11 GMT) tests/sys/kern/procdesc: test the reap by a close from a non-parent (cherry picked from commit 56d0da266ab9569b73ab149abd4e826556f194bb) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: e0520f8ea3aea54113538645ee9e51cd8ff29438 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e0520f8ea3aea54113538645ee9e51cd8ff29438 Author: Konstantin Belousov (Tue 1 Dec 2026 00:59:12 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) tests/sys/kern/procdesc: test the debugger's wait after the last close (cherry picked from commit 56d0faf2754f51c0e4fae8655e3d05a1936a560a) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: d2812f343a63919422a84d52b69a649aa5279130 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d2812f343a63919422a84d52b69a649aa5279130 Author: Konstantin Belousov (Mon 30 Nov 2026 23:38:41 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) proc_reap(): account the reaped child to its parent (cherry picked from commit b00886b6498ee57d8335d46ecf3805e5333c7c2f) M sys/kern/kern_exit.c _____________________________________________________________________________________________________________ Commit: 7f7beb2c4e1222f078c9e7e5cbc5108a08dbbc29 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7f7beb2c4e1222f078c9e7e5cbc5108a08dbbc29 Author: Konstantin Belousov (Mon 30 Nov 2026 23:38:41 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) proc_reap(): dequeue the child's SIGCHLD under the parent's lock (cherry picked from commit 66f2f765dea8ffa0fbd7d8bdc1f948c87a9f5977) M sys/kern/kern_exit.c _____________________________________________________________________________________________________________ Commit: 58fdccaa7462a15d32da873c8f231578361c7a24 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=58fdccaa7462a15d32da873c8f231578361c7a24 Author: Konstantin Belousov (Mon 30 Nov 2026 23:38:41 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) procdesc_close(): leave a zombie parked at its debugger with it (cherry picked from commit c8198b5c1ed80f8815961a732a4f1dcd667691cd) M sys/kern/sys_procdesc.c _____________________________________________________________________________________________________________ Commit: e0655b481ea803f325396b89d6bc500d0c24a377 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e0655b481ea803f325396b89d6bc500d0c24a377 Author: Konstantin Belousov (Mon 30 Nov 2026 22:21:20 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) membarrier(2): issue the leading fence before reading other CPUs' state (cherry picked from commit 8a25b8b4e8e6e1378b877b430532e8fdfb0291ac) M sys/kern/kern_membarrier.c _____________________________________________________________________________________________________________ Commit: 8be1d734741fe3935ecd63b2dd223c74a0c412f7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8be1d734741fe3935ecd63b2dd223c74a0c412f7 Author: Konstantin Belousov (Mon 30 Nov 2026 18:58:19 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) membarrier(2): do not call smp_rendezvous_cpus() with an empty mask PR: 301240 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301240 ) (cherry picked from commit 162dcf946b157d529ed37a2c57ca18b25434c2ec) M sys/kern/kern_membarrier.c _____________________________________________________________________________________________________________ Commit: 15c52279ec93a116787e8f169d3e9baddb7a40f0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=15c52279ec93a116787e8f169d3e9baddb7a40f0 Author: Konstantin Belousov (Mon 30 Nov 2026 21:44:12 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) snp(4): for snp_read(), check tty_gone() under tty lock before cv_wait() (cherry picked from commit bf96b5bfa8fa4fd8b90651c60d58dd09c860f1bf) M sys/dev/snp/snp.c _____________________________________________________________________________________________________________ Commit: b029f976390182a666df3052d50d3f30dea7dff3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b029f976390182a666df3052d50d3f30dea7dff3 Author: Konstantin Belousov (Sat 24 Oct 2026 06:35:36 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) procfdcat(1): utility to read content of a file opened by process (cherry picked from commit ec8ee3f70c2f27287a00b66da0e246f8ebedb3a1) M usr.bin/Makefile A usr.bin/procfdcat/Makefile A usr.bin/procfdcat/procfdcat.1 A usr.bin/procfdcat/procfdcat.c _____________________________________________________________________________________________________________ Commit: 4a64ba719e1357800d1c8e992b8d7c4ae05b23d8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4a64ba719e1357800d1c8e992b8d7c4ae05b23d8 Author: Konstantin Belousov (Fri 23 Oct 2026 16:56:43 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) tests/sys/kern/procdesc: test pddupfd(PD_DUPFD_EXECUTABLE) (cherry picked from commit 60fa25d01fc46edb0528396c90826c7769988321) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: 6b316f9548a225013a48894e264b435656ed53cc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6b316f9548a225013a48894e264b435656ed53cc Author: Konstantin Belousov (Fri 23 Oct 2026 16:56:42 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) tests/sys/kern/procdesc: test pddupfd(PD_DUPFD_ME) (cherry picked from commit 46019d494d7a5ceeb274963105a44931378f10de) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: 4a8623fa6d2462423805f0ecf5c3575c46a4776e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4a8623fa6d2462423805f0ecf5c3575c46a4776e Author: Konstantin Belousov (Fri 23 Oct 2026 14:49:06 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) pdfork.2: document PD_DUPFD_ME and PD_DUPFD_EXECUTABLE (cherry picked from commit 1ba902d56e4c06e226e2ba3fec81fd111ddacdc8) M lib/libsys/pdfork.2 _____________________________________________________________________________________________________________ Commit: 42ed46f356e80e4126e9788fa455fc6286cb2a61 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=42ed46f356e80e4126e9788fa455fc6286cb2a61 Author: Konstantin Belousov (Fri 23 Oct 2026 14:04:42 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) pddupfd(2): allow to open the executable (cherry picked from commit efc319ce5a9b17b4414e454941e00b02160eddf5) M sys/kern/sys_procdesc.c M sys/sys/procdesc.h _____________________________________________________________________________________________________________ Commit: a93136836e5a48fa28f561ec9b7259ec4786f6db URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a93136836e5a48fa28f561ec9b7259ec4786f6db Author: Konstantin Belousov (Fri 23 Oct 2026 13:32:31 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) pddupfd(2): add a designator for the current process (cherry picked from commit c6d75f9996dfa21cd2584c41eb200bde309ea185) M sys/kern/sys_procdesc.c M sys/sys/procdesc.h _____________________________________________________________________________________________________________ Commit: 9653cd90aee98a304c5f57c4168314819e0d0234 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9653cd90aee98a304c5f57c4168314819e0d0234 Author: Konstantin Belousov (Fri 23 Oct 2026 18:05:04 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:10 GMT) tmpfs: VOP_OPEN() should be allowed on unlinked files (cherry picked from commit e87aab104b02b89c5a0eb602c08d779200cb111d) M sys/fs/tmpfs/tmpfs_vnops.c _____________________________________________________________________________________________________________ Commit: 3b071bc6e50cc2337b52b3dc4177ec1f7563d141 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3b071bc6e50cc2337b52b3dc4177ec1f7563d141 Author: Konstantin Belousov (Fri 23 Oct 2026 14:05:15 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) sys: un-staticise finit_open() (cherry picked from commit e590e2f3570b8fed91c916c93f51733cfc85c851) M sys/kern/vfs_syscalls.c M sys/sys/file.h _____________________________________________________________________________________________________________ Commit: b543f8844928d6f66157d61b3c65535faa8cc564 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b543f8844928d6f66157d61b3c65535faa8cc564 Author: Konstantin Belousov (Wed 25 Nov 2026 16:09:52 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) ptrace_test: test that the debugger does not steal a pdfork child (cherry picked from commit ea161c3e6d8efb94f32ba5c743b057be1d7d583f) M tests/sys/kern/ptrace_test.c _____________________________________________________________________________________________________________ Commit: 327214c08fbc0fb617f782f9719ba43ab783c57b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=327214c08fbc0fb617f782f9719ba43ab783c57b Author: Konstantin Belousov (Wed 25 Nov 2026 11:45:31 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) ptrace_test: use PD_NOWAITPID in procdesc_reparent_wait_child (cherry picked from commit d1e3d977c1daa5c188c07d4703c6f424eb89d2e9) M tests/sys/kern/ptrace_test.c _____________________________________________________________________________________________________________ Commit: dbe462fb78306bfa1af2958e29cd0a39deb3d500 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dbe462fb78306bfa1af2958e29cd0a39deb3d500 Author: Konstantin Belousov (Wed 25 Nov 2026 11:19:34 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) tests/sys/kern/procdesc: test the debugger's wait for its tracee (cherry picked from commit 2da2fc3e3d7131c97014f046d82950c746ed6c16) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: 4b4db6b527f9b9a6bee0dd7e7d3458119baf28a8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4b4db6b527f9b9a6bee0dd7e7d3458119baf28a8 Author: Konstantin Belousov (Wed 25 Nov 2026 11:17:16 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) proc_to_reap(): let the debugger wait for its exited tracee (cherry picked from commit e41e771cd2abae45f5d70e6d59024157f1f0f789) M sys/kern/kern_exit.c _____________________________________________________________________________________________________________ Commit: 9cfcbd06cfbf9d4dcc7f2a3ee127c9872f20ffa9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9cfcbd06cfbf9d4dcc7f2a3ee127c9872f20ffa9 Author: Konstantin Belousov (Wed 25 Nov 2026 11:09:35 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) tests/sys/kern/procdesc: test exit of a non-reaper tracer (cherry picked from commit 96ac9c1cf05b16faf639d267eb1593268f62a4cc) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: 69bf80fb2bb95c8eb0973658e1142c3523aeece1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=69bf80fb2bb95c8eb0973658e1142c3523aeece1 Author: Konstantin Belousov (Wed 25 Nov 2026 11:09:35 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) exit1(): clear P_TRACED before reparenting a traced child (cherry picked from commit 8b57cd4d41a00c17cfc616b3934774ab4dcf604e) M sys/kern/kern_exit.c _____________________________________________________________________________________________________________ Commit: 80a6ac01dc64d1d9e0146c141b030976fe74375a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=80a6ac01dc64d1d9e0146c141b030976fe74375a Author: Konstantin Belousov (Tue 24 Nov 2026 06:20:47 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) watch(8): detach the gone tty before attaching again (cherry picked from commit ff4bc075ed40f9713a50f44b8046262e384741a2) M usr.sbin/watch/watch.c _____________________________________________________________________________________________________________ Commit: 01d415ce4120dd90f2395024df6cc37b1922529a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=01d415ce4120dd90f2395024df6cc37b1922529a Author: Konstantin Belousov (Tue 24 Nov 2026 06:17:09 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) snp(4): wake up the readers and pollers when the tty is gone (cherry picked from commit d8569724dc0d04b9fd64419c71676a3803e6b4ea) M sys/dev/snp/snp.c _____________________________________________________________________________________________________________ Commit: 1fc407d3e79ce8dc0fb866b167945f99b0e29fe0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1fc407d3e79ce8dc0fb866b167945f99b0e29fe0 Author: Konstantin Belousov (Tue 24 Nov 2026 06:17:09 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) tty: call the close hook when the TTY is gone (cherry picked from commit e6d8f695774290bc6bb1aa18bf9250165725f899) M sys/kern/tty.c M sys/sys/ttyhook.h _____________________________________________________________________________________________________________ Commit: 3bf18b38b7c584ea5908563bf894b4fb41719851 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3bf18b38b7c584ea5908563bf894b4fb41719851 Author: Konstantin Belousov (Tue 24 Nov 2026 04:47:31 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) snp(4): drain the users of the tty before detaching it (cherry picked from commit d6b896e70983eb518891d55619f14db823fd95e6) M sys/dev/snp/snp.c _____________________________________________________________________________________________________________ Commit: 83d19bc080dba7d9c82d262856b8ef9181958ffb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=83d19bc080dba7d9c82d262856b8ef9181958ffb Author: Konstantin Belousov (Tue 24 Nov 2026 04:15:33 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) snp(4): a wakeup from snp_getc_capture() can be lost (cherry picked from commit 30224686d611ab8c2fa30bce527805df56acbf79) M sys/dev/snp/snp.c _____________________________________________________________________________________________________________ Commit: 6b7c8c3b71407c37fdf470af25dbe32b70eebc7e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6b7c8c3b71407c37fdf470af25dbe32b70eebc7e Author: Konstantin Belousov (Fri 27 Nov 2026 18:22:33 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:09 GMT) libsys: add test checking that -lsys alone is linkable (cherry picked from commit 493c84741c45a5010f98cfffb823ad3ad290117d) M etc/mtree/BSD.tests.dist M lib/libsys/Makefile A lib/libsys/tests/Makefile A lib/libsys/tests/hermetic.c A lib/libsys/tests/hermetic_test.sh _____________________________________________________________________________________________________________ Commit: 315cef6c2691c0259cc8a0f12c9612af4ae7c03c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=315cef6c2691c0259cc8a0f12c9612af4ae7c03c Author: Konstantin Belousov (Fri 27 Nov 2026 10:03:18 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) libsys: do not link in csu, and compile as freestanding (cherry picked from commit d64d2be2f3afacc278a27faa7f458abd2110263e) M lib/libsys/Makefile _____________________________________________________________________________________________________________ Commit: 1c4d3d4d21952c8f608cc25378a23d0d48b799f2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1c4d3d4d21952c8f608cc25378a23d0d48b799f2 Author: Konstantin Belousov (Fri 27 Nov 2026 10:02:22 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) libsys: this is libsys, not libc (cherry picked from commit 98a7f08de77617b59f92c71d917f29940e4f37f2) M lib/libsys/Makefile _____________________________________________________________________________________________________________ Commit: 6f3032a1042012ce83c2bb10418653d4872edc78 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6f3032a1042012ce83c2bb10418653d4872edc78 Author: Konstantin Belousov (Fri 27 Nov 2026 09:57:45 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) libsys: link internal copies of fls*(3), str*(3), and mem*(3) functions used by libsys (cherry picked from commit 0425a733927f73eb74ef434e8f27bc7b9a679f5b) M lib/libsys/Makefile _____________________________________________________________________________________________________________ Commit: 0ae76814dbce8365c69f58416a56d958b105cbd3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0ae76814dbce8365c69f58416a56d958b105cbd3 Author: Konstantin Belousov (Fri 27 Nov 2026 09:45:08 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) libsys: avoid depending on libc _once() (cherry picked from commit 2fbea17fcbc88843a5a2dc36430c96c0a680dc0d) M lib/libsys/auxv.c _____________________________________________________________________________________________________________ Commit: 6fcaf3da03328b28186fb580e8eaf3be16d27e47 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6fcaf3da03328b28186fb580e8eaf3be16d27e47 Author: Konstantin Belousov (Tue 24 Nov 2026 08:47:53 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) tests/sys/kern/procdesc: test the reaper's own PD_NOWAITPID child PR: 301072 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 ) (cherry picked from commit 24ebe1ef7e264b7e000383aed30826bd184174b2) M tests/sys/kern/procdesc.c _____________________________________________________________________________________________________________ Commit: 5af25944d81f510193f1f8ad8836fbd7f2c32a52 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5af25944d81f510193f1f8ad8836fbd7f2c32a52 Author: Laam Alif (Tue 24 Nov 2026 08:11:56 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) procdesc_close(): grant waitpid(2) when the reaper is already the parent PR: 301072 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301072 ) (cherry picked from commit a16f0b2e5c6a9ea396147e6a832d8d999e85a95a) M sys/kern/sys_procdesc.c _____________________________________________________________________________________________________________ Commit: ea988cb7922b5a2a3153a3dcdab084573d936b5b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ea988cb7922b5a2a3153a3dcdab084573d936b5b Author: Konstantin Belousov (Tue 24 Nov 2026 03:26:21 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) snp(4): do not ignore errors from devfs_set_cdevpriv() (cherry picked from commit e035f2783661085545d2d0ea8b9cf58f7fb3de7e) M sys/dev/snp/snp.c _____________________________________________________________________________________________________________ Commit: c9b7f2512909509ab1b9878f76911075e5c84944 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c9b7f2512909509ab1b9878f76911075e5c84944 Author: Laam Alif (Tue 24 Nov 2026 03:23:21 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) snp(4): drain snp_outpoll before destroying the open data PR: 301062 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301062 ) (cherry picked from commit f6bd65e922f6acb0756f9e7d0610a23ec7f69318) M sys/dev/snp/snp.c _____________________________________________________________________________________________________________ Commit: 7b23acf4e345648d9be78804d5fed00d69bb0238 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7b23acf4e345648d9be78804d5fed00d69bb0238 Author: Konstantin Belousov (Mon 23 Nov 2026 19:25:53 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) kern: fix use after free in sysctl_kern_proc_umask() (cherry picked from commit 6845310381261099da1f39386657a9efd7122070) M sys/kern/kern_proc.c _____________________________________________________________________________________________________________ Commit: 913d3da2caff5990fc35bc409fb7472f80fc625b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=913d3da2caff5990fc35bc409fb7472f80fc625b Author: Konstantin Belousov (Mon 23 Nov 2026 01:39:14 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) kern: pwd_hold_proc() might dereference the NULL p_pd (cherry picked from commit fa577dbc5fdc9b282c0fb97b5da7d44ff2fddcb3) M sys/kern/kern_descrip.c M sys/kern/kern_fork.c _____________________________________________________________________________________________________________ Commit: 4d3b1e1890291a910e7532c8165dc68dbe3721dc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4d3b1e1890291a910e7532c8165dc68dbe3721dc Author: Konstantin Belousov (Mon 23 Nov 2026 01:39:14 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) kern/kern_descrip.c: add pdswap() helper (cherry picked from commit 2832d06f8b428c7bdedaa21724ca4d8a196529db) M sys/kern/kern_descrip.c M sys/sys/filedesc.h _____________________________________________________________________________________________________________ Commit: 3c22f22b3dde745e4db80975308a1b9082bb9f96 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3c22f22b3dde745e4db80975308a1b9082bb9f96 Author: Konstantin Belousov (Mon 23 Nov 2026 03:33:44 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) pdptrace(2): handle audit (cherry picked from commit 318895df272fa6d63ba2e5b5cc71e3b8a2bf9f5a) M sys/security/audit/audit_bsm.c _____________________________________________________________________________________________________________ Commit: 250aa89f16f759c7749d2fe7d93c584a6c614e45 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=250aa89f16f759c7749d2fe7d93c584a6c614e45 Author: Konstantin Belousov (Mon 23 Nov 2026 01:43:10 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) Regen M sys/compat/freebsd32/freebsd32_sysent.c M sys/kern/init_sysent.c M sys/sys/sysproto.h _____________________________________________________________________________________________________________ Commit: c7b5fb21152de33bfa0e5803b1d31e5fe60ab573 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c7b5fb21152de33bfa0e5803b1d31e5fe60ab573 Author: Konstantin Belousov (Mon 23 Nov 2026 01:29:54 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:08 GMT) fchroot(2): audit (cherry picked from commit c7b2fd667952a2c7347b290922f1dededbbc620c) M sys/kern/syscalls.master M sys/kern/vfs_syscalls.c M sys/security/audit/audit_bsm.c _____________________________________________________________________________________________________________ Commit: 875e99eee4ab4decf1e5a7e19e8813fd6ca38920 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=875e99eee4ab4decf1e5a7e19e8813fd6ca38920 Author: Konstantin Belousov (Mon 23 Nov 2026 01:26:26 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) contrib/openbsm/etc/audit_event: add entries for {f,}chaltroot (cherry picked from commit a6da18f838179bc5e691d583d56633aa3c357375) M contrib/openbsm/etc/audit_event _____________________________________________________________________________________________________________ Commit: f18314737e2a1eed578414275df89cc4f4fb08a8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f18314737e2a1eed578414275df89cc4f4fb08a8 Author: Konstantin Belousov (Mon 23 Nov 2026 02:03:38 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) contrib/openbsm/etc/audit_event: add entries for pdopenpid and pdptrace (cherry picked from commit 951dcca4b40fb283f10eb93d9c5d3d721e6c0ed5) M contrib/openbsm/etc/audit_event _____________________________________________________________________________________________________________ Commit: b50f6cb6a377ef8ab781d9bfc03638ffeb5a8c89 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b50f6cb6a377ef8ab781d9bfc03638ffeb5a8c89 Author: Konstantin Belousov (Fri 20 Nov 2026 01:17:02 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) sys: use bdflush task to fsync mntfs devvp for all filesystems (cherry picked from commit d689a4aad9cf058b7a842d53b71903b25201f2f0) M sys/fs/mntfs/mntfs_vnops.c M sys/fs/msdosfs/msdosfs_vfsops.c M sys/kern/vfs_bio.c M sys/kern/vfs_mount.c M sys/sys/mount.h M sys/ufs/ffs/ffs_extern.h M sys/ufs/ffs/ffs_snapshot.c M sys/ufs/ffs/ffs_vfsops.c M sys/ufs/ufs/ufsmount.h _____________________________________________________________________________________________________________ Commit: 03cf5db09075db6549fa92c6b5d745b0ef253614 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=03cf5db09075db6549fa92c6b5d745b0ef253614 Author: Konstantin Belousov (Fri 20 Nov 2026 00:56:15 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) sys/mount.h: wrap long lines (cherry picked from commit fe75f57be9a5f23c5a47601ca5249f1974c1e1a5) M sys/sys/mount.h _____________________________________________________________________________________________________________ Commit: 5fbeaaeb66a1def718e1d538349655a120d32b7e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5fbeaaeb66a1def718e1d538349655a120d32b7e Author: Konstantin Belousov (Sun 22 Nov 2026 00:31:44 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) vm_page_unwire_unmanaged(): fix a double free of the page (cherry picked from commit a4a353f0d089d35aceeaf26df7ab436de20fc8cb) M sys/vm/vm_page.c _____________________________________________________________________________________________________________ Commit: b419148de4ae70303aa5eb19a2e4a7c1b0763919 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b419148de4ae70303aa5eb19a2e4a7c1b0763919 Author: Konstantin Belousov (Sat 21 Nov 2026 06:22:21 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) vm/vm_page.c: extract vm_page_unwire_unmanaged() (cherry picked from commit 75dce373664aea1206f68897a9eb1f6e638a85e3) M sys/vm/vm_page.c M sys/vm/vm_page.h _____________________________________________________________________________________________________________ Commit: 23649e76cd8be39b22fb4ec24186ffa7254ab0e3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=23649e76cd8be39b22fb4ec24186ffa7254ab0e3 Author: Konstantin Belousov (Fri 28 Mar 2025 02:29:16 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) vm_page_alloc.9: document vm_page_alloc_noobj_domainset(9) (cherry picked from commit a69e1831c50c354c61274b26e9c5395e39234944) M share/man/man9/Makefile M share/man/man9/vm_page_alloc.9 _____________________________________________________________________________________________________________ Commit: 4fcaaf5118459df6a8ea4281abad50b51e8185fc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4fcaaf5118459df6a8ea4281abad50b51e8185fc Author: Konstantin Belousov (Fri 28 Mar 2025 02:29:16 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) vm_page_alloc_noobj_domainset(9): noobj page allocator honoring domainset (cherry picked from commit 916ecca56a92e6221320a5c27306da5baa133398) M sys/vm/vm_page.c M sys/vm/vm_page.h _____________________________________________________________________________________________________________ Commit: b1ab7652ccbbf0671d33149e74ed47ef27baa420 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b1ab7652ccbbf0671d33149e74ed47ef27baa420 Author: Konstantin Belousov (Sat 21 Nov 2026 23:50:11 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) vm/vm_page.c: improve vm_page_alloc_noobj_domain() prototype (cherry picked from commit 79f12b52d571e005e0447e9f2e060579939aedf3) M sys/vm/vm_page.h _____________________________________________________________________________________________________________ Commit: 45698e9804907cbfe11fca79451de494826f10d6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=45698e9804907cbfe11fca79451de494826f10d6 Author: Konstantin Belousov (Sat 21 Nov 2026 08:20:07 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) fchaltroot(2): fix auditing (cherry picked from commit a559977dfb37e01fb95a1386c7734eed72beec75) M sys/kern/vfs_syscalls.c M sys/security/audit/audit_bsm.c _____________________________________________________________________________________________________________ Commit: 9f4b2707ba496780f01713ab9e13b75c8d0be732 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9f4b2707ba496780f01713ab9e13b75c8d0be732 Author: Konstantin Belousov (Sat 21 Nov 2026 04:29:44 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) kern/kern_descrip.c: do not leak ctty/textvp/tracevp use counts (cherry picked from commit ddc7069ba5adf6e8f1536b3206030c12fa8eadd1) M sys/kern/kern_descrip.c _____________________________________________________________________________________________________________ Commit: b614fbe29a263a7b0c7bd47967e8033a2fa2dcd5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b614fbe29a263a7b0c7bd47967e8033a2fa2dcd5 Author: Konstantin Belousov (Sat 21 Nov 2026 03:59:55 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) kern/kern_descrip.c: avoid leaking vnode use count hold when vnode export fails (cherry picked from commit 8b25c9ed40daf5c1d75c8f08f815a3b267fb1364) M sys/kern/kern_descrip.c _____________________________________________________________________________________________________________ Commit: 21bd43ed108679cb0c125f071d0e866c6ad04c0d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=21bd43ed108679cb0c125f071d0e866c6ad04c0d Author: Konstantin Belousov (Sat 21 Nov 2026 03:19:50 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:07 GMT) kern/kern_descrip.c: avoid leaking pwd hold when vnode export fails (cherry picked from commit 16e5fecccd0e79fe9439ab526745f23b31051c34) M sys/kern/kern_descrip.c _____________________________________________________________________________________________________________ Commit: 81483b8ddb3622ced4e0d43334c15c0145abd332 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=81483b8ddb3622ced4e0d43334c15c0145abd332 Author: Konstantin Belousov (Sat 21 Nov 2026 04:02:31 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) execve(): unshare pwd (cherry picked from commit 77552467648aa06b8c9ac95fb45099630c2a769b) M sys/kern/kern_exec.c _____________________________________________________________________________________________________________ Commit: 5b17b3cc44f0d399f880115ab816b3da96563051 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5b17b3cc44f0d399f880115ab816b3da96563051 Author: Konstantin Belousov (Sat 21 Nov 2026 03:07:58 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) linux: harden the linux_pwd_onexec() altroot entry (cherry picked from commit 7396c23e5deb0713f02c7138834f5a5a963f9f08) M sys/compat/linux/linux_util.c _____________________________________________________________________________________________________________ Commit: aba35101ec69f0528e1d16814d426d06cab2ac7c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=aba35101ec69f0528e1d16814d426d06cab2ac7c Author: Konstantin Belousov (Sun 22 Nov 2026 15:29:46 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) kern: add pwd_altroot_clear() helper (cherry picked from commit ef7c9c88e99dbaaad718a2fb302354042c54260e) M sys/compat/linux/linux_util.c M sys/kern/kern_descrip.c M sys/kern/kern_exec.c M sys/kern/sys_capability.c M sys/kern/vfs_syscalls.c M sys/sys/filedesc.h _____________________________________________________________________________________________________________ Commit: 5c43a86184a0722126a53d1cbb873058a1b214dc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5c43a86184a0722126a53d1cbb873058a1b214dc Author: Konstantin Belousov (Mon 28 Sep 2026 23:09:03 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) fstat(1), fuser(1): teach about altroot (cherry picked from commit face51fd9c8213f6f4133b0e137fcf22e4d1ab76) M usr.bin/fstat/fstat.1 M usr.bin/fstat/fstat.c M usr.bin/fstat/fuser.1 M usr.bin/fstat/fuser.c _____________________________________________________________________________________________________________ Commit: d614eac88feca78a6146b7fe4c96b1653d599688 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d614eac88feca78a6146b7fe4c96b1653d599688 Author: Konstantin Belousov (Mon 28 Sep 2026 23:05:44 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) procstat(1): teach about altroot (cherry picked from commit c97671a416cfce370488834c91bcd5e544e1cc6e) M usr.bin/procstat/procstat.1 M usr.bin/procstat/procstat_files.c _____________________________________________________________________________________________________________ Commit: 34da23ef532943f4427cd8766c9641d08f32b8b6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=34da23ef532943f4427cd8766c9641d08f32b8b6 Author: Konstantin Belousov (Mon 28 Sep 2026 23:04:01 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) libprocstat(3): teach about altroot (cherry picked from commit f92ba7720fcd063eac2a019b15b7714006a00452) M lib/libprocstat/libprocstat.c M lib/libprocstat/libprocstat.h _____________________________________________________________________________________________________________ Commit: ab16c1acef64da244cb797c10d0dd0d81d007633 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ab16c1acef64da244cb797c10d0dd0d81d007633 Author: Konstantin Belousov (Mon 28 Sep 2026 22:59:43 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) kinfo: export altroot (cherry picked from commit 8cfae6883884c4dbe6fb63bdaa19c8e2ecb40952) M sys/kern/kern_descrip.c M sys/sys/user.h _____________________________________________________________________________________________________________ Commit: 8f69074efb1a7c0201d5685b13afb9ca8ce89a3c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8f69074efb1a7c0201d5685b13afb9ca8ce89a3c Author: Konstantin Belousov (Mon 28 Sep 2026 22:57:32 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) sys/user.h: make KF_FD_TYPE macros safer (cherry picked from commit 25f21bb0c04835f21589e0e28005bb4f5b591037) M sys/sys/user.h _____________________________________________________________________________________________________________ Commit: 39bcba60cfede93ea7bef5a1d239fe070ce7a36b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=39bcba60cfede93ea7bef5a1d239fe070ce7a36b Author: Konstantin Belousov (Mon 28 Sep 2026 00:46:36 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) chroot(8): add altroot mode (cherry picked from commit 138bce717ee2dee09a342b8c19512ca0ac6dea59) M usr.sbin/chroot/chroot.8 M usr.sbin/chroot/chroot.c _____________________________________________________________________________________________________________ Commit: ea8b6c46ef68f590ea47f0cc80458e466a96f162 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ea8b6c46ef68f590ea47f0cc80458e466a96f162 Author: Konstantin Belousov (Tue 3 Nov 2026 13:39:13 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) cap_enter.2: document clearing altroot (cherry picked from commit 29691ecea35062c154d3ae36bd486349dc82abae) M lib/libsys/cap_enter.2 _____________________________________________________________________________________________________________ Commit: 519265675ad36e295a943f757997675f0b02eb55 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=519265675ad36e295a943f757997675f0b02eb55 Author: Konstantin Belousov (Tue 20 Oct 2026 18:03:36 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) fchroot.2: document ENOTCAPABLE for O_RESOLVE_BENEATH (cherry picked from commit dae40d1657bae47284b6b6cff56e88021752c337) M lib/libsys/chroot.2 _____________________________________________________________________________________________________________ Commit: bdd2b0f424db14fb571bd868dcee411b98c0f806 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bdd2b0f424db14fb571bd868dcee411b98c0f806 Author: Konstantin Belousov (Sun 27 Sep 2026 21:35:05 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) chroot.2: document chaltroot(2) (cherry picked from commit 763f6cc92910cb740a508762d3cc8c1b2bf50408) M lib/libsys/Makefile.sys M lib/libsys/chroot.2 _____________________________________________________________________________________________________________ Commit: a2b261dc4010d92b38fe303d1d5347a95bcbee5c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a2b261dc4010d92b38fe303d1d5347a95bcbee5c Author: Konstantin Belousov (Sat 26 Sep 2026 00:52:45 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:06 GMT) Regen M lib/libsys/_libsys.h M lib/libsys/syscalls.map M sys/compat/freebsd32/freebsd32_syscall.h M sys/compat/freebsd32/freebsd32_syscalls.c M sys/compat/freebsd32/freebsd32_sysent.c M sys/compat/freebsd32/freebsd32_systrace_args.c M sys/kern/init_sysent.c M sys/kern/syscalls.c M sys/kern/systrace_args.c M sys/sys/syscall.h M sys/sys/syscall.mk M sys/sys/sysproto.h _____________________________________________________________________________________________________________ Commit: 7467acf6145ac4d4a225c48b8634c601561a0358 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7467acf6145ac4d4a225c48b8634c601561a0358 Author: Konstantin Belousov (Sat 26 Sep 2026 00:51:10 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) chaltroot(2)/fchaltroot(2): make accessible to userspace (cherry picked from commit f2ee207dd4ea96cbfe6e43194963e91cc856fe96) M include/unistd.h M lib/libsys/Symbol.sys.map _____________________________________________________________________________________________________________ Commit: 0e02bb2e7200d238d940364e6e67508227ae9b03 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0e02bb2e7200d238d940364e6e67508227ae9b03 Author: Konstantin Belousov (Sat 26 Sep 2026 00:49:37 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) chaltroot(2) and fchaltroot(2): new syscalls (cherry picked from commit 9757c0cf98e4fde6b2f2be6ae6095798fbdb95cc) M sys/kern/syscalls.master M sys/kern/vfs_syscalls.c M sys/sys/unistd.h _____________________________________________________________________________________________________________ Commit: 22c038ab0b95afffddaa18a8423de430a3f4508f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=22c038ab0b95afffddaa18a8423de430a3f4508f Author: Konstantin Belousov (Tue 3 Nov 2026 13:34:08 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) cap_enter(2): clear altroot when entering cap mode. (cherry picked from commit db5ea2918fb8e0cc23045af9e1244aeaa87fe919) M sys/kern/sys_capability.c _____________________________________________________________________________________________________________ Commit: 9b6db1e7bf57ade4cee21aeeff081cc411faf2f5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9b6db1e7bf57ade4cee21aeeff081cc411faf2f5 Author: Konstantin Belousov (Wed 21 Oct 2026 22:39:02 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) namei: disallow altroot for beneath lookups (cherry picked from commit 151a23fa79b2a6047e60f65edf77e1634308a1fa) M sys/kern/vfs_lookup.c _____________________________________________________________________________________________________________ Commit: eb74e756254799ebe9623d6016ddf31ecdfbd705 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=eb74e756254799ebe9623d6016ddf31ecdfbd705 Author: Konstantin Belousov (Mon 28 Sep 2026 22:53:05 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) exec_new_vmspace(): drop altroot for native processes if setuid (cherry picked from commit 2137bad49a6f4336cbc6c4045fdaf408dcc96f06) M sys/kern/kern_exec.c _____________________________________________________________________________________________________________ Commit: 4296c209a8023c1c67838d2f53d3df9f3e4f46a3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4296c209a8023c1c67838d2f53d3df9f3e4f46a3 Author: Konstantin Belousov (Sun 27 Sep 2026 21:50:06 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) mac(4): add vnode_check_chaltroot (cherry picked from commit e880b7ad36567d5ba3cfd47c4c376b18ace2330a) M sys/security/mac/mac_framework.h M sys/security/mac/mac_policy.h M sys/security/mac/mac_vfs.c M sys/security/mac_stub/mac_stub.c M sys/security/mac_test/mac_test.c _____________________________________________________________________________________________________________ Commit: ce7c393cdc4cd4daffbee80061bb0cb643e7ccf1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ce7c393cdc4cd4daffbee80061bb0cb643e7ccf1 Author: Konstantin Belousov (Sun 27 Sep 2026 21:29:51 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) sys: add AUE_CHALTROOT and AUE_FCHALTROOT (cherry picked from commit 3dac77482537ddca19d2ee49fe4a4741f00f9fb0) M sys/bsm/audit_kevents.h M sys/security/audit/audit_bsm.c _____________________________________________________________________________________________________________ Commit: f20ecee201a7c5adb2cc8d485e6ebf63f634cc5b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f20ecee201a7c5adb2cc8d485e6ebf63f634cc5b Author: Konstantin Belousov (Mon 12 Oct 2026 16:38:12 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) pwd_altroot(9): expand herald comment (cherry picked from commit 06ec6146b0a7f24a3657b0d4c46eb5e87533bc91) M sys/kern/kern_descrip.c _____________________________________________________________________________________________________________ Commit: 78ace6f43545205c45b48a2cd88e6bbf9367f1cc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=78ace6f43545205c45b48a2cd88e6bbf9367f1cc Author: Konstantin Belousov (Sat 26 Sep 2026 00:48:49 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) pwd_altroot(): avoid creating new pwd structure if altroot does not change (cherry picked from commit 43339648088b5fb71ff5e05c5b2937950f849654) M sys/kern/kern_descrip.c _____________________________________________________________________________________________________________ Commit: e5256cddcd4ecd8feea6705b4a15b826262863f6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e5256cddcd4ecd8feea6705b4a15b826262863f6 Author: Konstantin Belousov (Sat 26 Sep 2026 00:36:56 BST) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) vfs: guard against altroot pointing to not a directory (cherry picked from commit 06c455dd9bbbb2560ae78414949b8bd3be3cbab6) M sys/compat/linux/linux_util.c M sys/kern/kern_descrip.c M sys/sys/filedesc.h _____________________________________________________________________________________________________________ Commit: c44ca1e03fed06b5a451c076c699e7b7010b713a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c44ca1e03fed06b5a451c076c699e7b7010b713a Author: Konstantin Belousov (Tue 17 Nov 2026 19:19:59 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) ffs_bdflush(): remove an alias for devvp (cherry picked from commit 3541b0ee1ccde668e106a17a0f36d03e52afc0fb) M sys/ufs/ffs/ffs_snapshot.c _____________________________________________________________________________________________________________ Commit: 160263fc132f8b861b36eb8200bf371d70c92e06 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=160263fc132f8b861b36eb8200bf371d70c92e06 Author: Konstantin Belousov (Tue 17 Nov 2026 19:20:48 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) ffs_bdflush(): do not call VOP_FSYNC(devvp) for unlocked devvp (cherry picked from commit 148d61e4d0efada9626f665e30beb28c1ec83748) M sys/ufs/ffs/ffs_extern.h M sys/ufs/ffs/ffs_snapshot.c M sys/ufs/ffs/ffs_vfsops.c M sys/ufs/ufs/ufsmount.h _____________________________________________________________________________________________________________ Commit: 0e4eed1c1ec605de5f6dd11180bc4eb8b6d19c12 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0e4eed1c1ec605de5f6dd11180bc4eb8b6d19c12 Author: Konstantin Belousov (Tue 17 Nov 2026 19:17:14 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:05 GMT) ffs/ffs_snapshot.c: clean up includes (cherry picked from commit bf69b89b219742c0c0d2a7459e2cc3ddc6cb8fb2) M sys/ufs/ffs/ffs_snapshot.c _____________________________________________________________________________________________________________ Commit: 07f2436080bf78fb9198d9a34bdbd3cd978478c0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=07f2436080bf78fb9198d9a34bdbd3cd978478c0 Author: Konstantin Belousov (Wed 18 Nov 2026 01:42:13 GMT) Committer: Konstantin Belousov (Fri 4 Dec 2026 19:23:04 GMT) mntfs: store the owning mount point in the v_data of the mntfs vnode (cherry picked from commit e72d3b0dc00ed8181dad11f74dc417d2a41d3619) M sys/fs/mntfs/mntfs_vnops.c _____________________________________________________________________________________________________________ Commit: 59409ef15769b0b08f1e86f446bb1c3fb105dbd4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=59409ef15769b0b08f1e86f446bb1c3fb105dbd4 Author: Kristof Provost (Thu 26 Nov 2026 16:44:36 GMT) Committer: Kristof Provost (Fri 4 Dec 2026 18:36:51 GMT) pfsync: account for second tickover in bulk updates When one peer requests a bulk update it keeps track of when it sent this request. The exporting peer includes 'endtime', indicating how long it took to send the entire update along with its final message. That allows the receiving peer to verify that the entire update was done in response to its most recent request. However, due to different second tickovers this calculation might be off by one. Use milliseconds internally. This does not change the wire protocol, 'endtime' is still expressed in seconds. When the exporting peer computes this value it will implicitly round down. PR: 300824 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300824 ) Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit f3cb62f798070570db00b51138873474c31bbc6a) M sys/netpfil/pf/if_pfsync.c _____________________________________________________________________________________________________________ Commit: 14de631a377bbbcc49cee05912022065714cff7d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=14de631a377bbbcc49cee05912022065714cff7d Author: Roman Bogorodskiy (Sun 1 Nov 2026 07:28:37 GMT) Committer: Roman Bogorodskiy (Fri 4 Dec 2026 17:50:17 GMT) top: implement pid highlighting Implement PID highlighting. This can be activated by pressing 'L' and entering a PID to highlight. Highlighting can be cleared by entering '+' as a PID to highlight. This feature is inspired by the OpenBSD top, which uses 'P' key for that. We have to use 'L' because 'P' is already used for toggling per-CPU statistics. Reviewed by: kib Obtained from: OpenBSD (partially) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D61090 (cherry picked from commit 3dcd4a2fd6b84fe962897f3c07e684ce166798a4) M usr.bin/top/commands.c M usr.bin/top/commands.h M usr.bin/top/display.c M usr.bin/top/display.h M usr.bin/top/machine.c M usr.bin/top/machine.h M usr.bin/top/top.1 M usr.bin/top/top.c _____________________________________________________________________________________________________________ Commit: 59d89330d48b5ee34254c22005c0925ef6794835 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=59d89330d48b5ee34254c22005c0925ef6794835 Author: Roman Bogorodskiy (Tue 3 Nov 2026 16:54:38 GMT) Committer: Roman Bogorodskiy (Fri 4 Dec 2026 17:50:10 GMT) top: allow filtering by command name top(1) already supports interactive command filtering using the '/' key. Support it also with a command line argument '-g' / '--grep'. Reviewed by: kib Obtained from: OpenBSD MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D61160 (cherry picked from commit d668d96259d568877fa863095fc28bd6c323dd01) M usr.bin/top/top.1 M usr.bin/top/top.c _____________________________________________________________________________________________________________ Commit: 783031835d75e0a2818e52e24d61c3370189dd1c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=783031835d75e0a2818e52e24d61c3370189dd1c Author: Enji Cooper (Tue 1 Dec 2026 07:00:12 GMT) Committer: Enji Cooper (Thu 3 Dec 2026 22:00:16 GMT) contrib/atf: update to 0.27.0 This release contains the upstreamed version of the wchar_t macros, provided by des@ in https://reviews.freebsd.org/D61616. MFC after: 1 week Merge commit '9e2097a19a9dad81dcd8e7074283b8126464f310' (cherry picked from commit 704c30247527f46e7dd49e79bf32049436eb85ee) M contrib/atf/COPYING M contrib/atf/NEWS M contrib/atf/atf-c++/atf-c++.3 M contrib/atf/atf-c/atf-c.3 M contrib/atf/atf-c/macros.h M contrib/atf/atf-c/macros_test.c M contrib/atf/atf-c/tc.c M contrib/atf/atf-sh/atf-check.1 M contrib/atf/atf-sh/atf-check.cpp M contrib/atf/atf-sh/atf_check_test.sh M contrib/atf/atf-sh/libatf-sh.subr A contrib/atf/atf-sh/libatf-sh/FreeBSD.subr A contrib/atf/atf-sh/libatf-sh/common.subr M contrib/atf/config.h _____________________________________________________________________________________________________________ Commit: 4fc497098fd71ccac544ed56b4bc44bcf9c4039c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4fc497098fd71ccac544ed56b4bc44bcf9c4039c Author: Enji Cooper (Wed 25 Nov 2026 21:18:14 GMT) Committer: Enji Cooper (Thu 3 Dec 2026 22:00:15 GMT) contrib/atf: upgrade to 0.26.1 This is a bugfix release. Please see the related merge commit for more details. MFC after: 1 week Merge commit 'bd8d548676ba2235320c105e0683a758ac742e8e' (cherry picked from commit 87fac2e0c07327a02791fef5d01123abd3e590fe) M contrib/atf/NEWS M contrib/atf/README.md M contrib/atf/atf-c++/atf_c++_test.cpp M contrib/atf/atf-c++/build.cpp M contrib/atf/atf-c++/build_test.cpp M contrib/atf/atf-c++/check.cpp M contrib/atf/atf-c++/check.hpp M contrib/atf/atf-c++/check_test.cpp M contrib/atf/atf-c++/detail/application.cpp M contrib/atf/atf-c++/detail/application.hpp M contrib/atf/atf-c++/detail/application_test.cpp M contrib/atf/atf-c++/detail/env_test.cpp M contrib/atf/atf-c++/detail/exceptions.cpp M contrib/atf/atf-c++/detail/exceptions.hpp M contrib/atf/atf-c++/detail/exceptions_test.cpp M contrib/atf/atf-c++/detail/fs.cpp M contrib/atf/atf-c++/detail/fs.hpp M contrib/atf/atf-c++/detail/fs_test.cpp M contrib/atf/atf-c++/detail/process.cpp M contrib/atf/atf-c++/detail/process.hpp M contrib/atf/atf-c++/detail/process_test.cpp M contrib/atf/atf-c++/detail/sanity.hpp M contrib/atf/atf-c++/detail/test_helpers.cpp M contrib/atf/atf-c++/detail/test_helpers.hpp M contrib/atf/atf-c++/detail/text.cpp M contrib/atf/atf-c++/detail/text.hpp M contrib/atf/atf-c++/detail/text_test.cpp M contrib/atf/atf-c++/macros.hpp M contrib/atf/atf-c++/macros_hpp_test.cpp M contrib/atf/atf-c++/macros_test.cpp M contrib/atf/atf-c++/tests.cpp M contrib/atf/atf-c++/tests.hpp M contrib/atf/atf-c++/tests_test.cpp M contrib/atf/atf-c++/unused_test.cpp M contrib/atf/atf-c++/utils.cpp M contrib/atf/atf-c++/utils.hpp M contrib/atf/atf-c++/utils_test.cpp M contrib/atf/atf-c/atf-c.3 M contrib/atf/atf-c/atf_c_test.c M contrib/atf/atf-c/build.c M contrib/atf/atf-c/build.h M contrib/atf/atf-c/build_test.c M contrib/atf/atf-c/check.c M contrib/atf/atf-c/check.h M contrib/atf/atf-c/check_test.c M contrib/atf/atf-c/defs.h M contrib/atf/atf-c/detail/dynstr.c M contrib/atf/atf-c/detail/dynstr.h M contrib/atf/atf-c/detail/dynstr_test.c M contrib/atf/atf-c/detail/env.c M contrib/atf/atf-c/detail/env.h M contrib/atf/atf-c/detail/env_test.c M contrib/atf/atf-c/detail/fs.c M contrib/atf/atf-c/detail/fs.h M contrib/atf/atf-c/detail/fs_test.c M contrib/atf/atf-c/detail/list.c M contrib/atf/atf-c/detail/list.h M contrib/atf/atf-c/detail/list_test.c M contrib/atf/atf-c/detail/map.c M contrib/atf/atf-c/detail/map.h M contrib/atf/atf-c/detail/map_test.c M contrib/atf/atf-c/detail/process.c M contrib/atf/atf-c/detail/process.h M contrib/atf/atf-c/detail/process_helpers.c M contrib/atf/atf-c/detail/process_test.c M contrib/atf/atf-c/detail/sanity.c M contrib/atf/atf-c/detail/sanity.h M contrib/atf/atf-c/detail/sanity_test.c M contrib/atf/atf-c/detail/test_helpers.c M contrib/atf/atf-c/detail/test_helpers.h M contrib/atf/atf-c/detail/text.c M contrib/atf/atf-c/detail/text.h M contrib/atf/atf-c/detail/text_test.c M contrib/atf/atf-c/detail/tp_main.c M contrib/atf/atf-c/detail/user.c M contrib/atf/atf-c/detail/user.h M contrib/atf/atf-c/detail/user_test.c M contrib/atf/atf-c/error.c M contrib/atf/atf-c/error.h M contrib/atf/atf-c/error_fwd.h M contrib/atf/atf-c/error_test.c M contrib/atf/atf-c/h_build.h M contrib/atf/atf-c/macros.h M contrib/atf/atf-c/macros_h_test.c M contrib/atf/atf-c/macros_test.c M contrib/atf/atf-c/tc.c M contrib/atf/atf-c/tc.h M contrib/atf/atf-c/tc_test.c M contrib/atf/atf-c/tp.c M contrib/atf/atf-c/tp.h M contrib/atf/atf-c/tp_test.c M contrib/atf/atf-c/unused_test.c M contrib/atf/atf-c/utils.c M contrib/atf/atf-c/utils.h M contrib/atf/atf-c/utils_test.c M contrib/atf/atf-sh/atf-check.1 M contrib/atf/atf-sh/atf-check.cpp M contrib/atf/atf-sh/atf-check_test.sh M contrib/atf/atf-sh/atf-sh.cpp M contrib/atf/atf-sh/integration_test.sh M contrib/atf/config.h M contrib/atf/test-programs/c_helpers.c M contrib/atf/test-programs/cpp_helpers.cpp _____________________________________________________________________________________________________________ Commit: 7a21615b00d7404701ce158ea1f7cf4517a7046c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7a21615b00d7404701ce158ea1f7cf4517a7046c Author: Dag-Erling Smørgrav (Wed 11 Nov 2026 20:35:44 GMT) Committer: Enji Cooper (Thu 3 Dec 2026 22:00:14 GMT) atf-check: Add shortcut for not-exit:0 Allow the command to be preceded by an exclamation point, which changes the default expected result to a clean exit with a non-zero exit code. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D58099 (cherry picked from commit 76797b9b6ed4f2fe4ebb08fede0f19a88f985494) M contrib/atf/atf-sh/atf-check.1 M contrib/atf/atf-sh/atf-check.cpp M contrib/atf/atf-sh/atf-check_test.sh M contrib/atf/atf-sh/atf_check_test.sh _____________________________________________________________________________________________________________ Commit: a61ec24c11d052ecbe5cfb9d5bfd11e18d352139 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a61ec24c11d052ecbe5cfb9d5bfd11e18d352139 Author: Ilya Bakulin (Wed 2 Dec 2026 19:18:12 GMT) Committer: Ilya Bakulin (Thu 3 Dec 2026 18:50:16 GMT) GCE: Switch to using kvmclock timecounter on GCE VMs Currently, GCE VMs are configured to use the "ACPI-safe" timecounter, which does not exist on modern VM hardware. The system then falls back to TSC-low because it has a higher quality rating than kvmclock. However, TSC-low may report incorrect time after a VM migrates to a different host system. Instruct GCE VMs to use the kvmclock timecounter so that timekeeping remains accurate across live migrations. Reported by: delphij Reviewed by: delphij Approved by: delphij (mentor) Approved by: re (cperciva) Differential Revision: https://reviews.freebsd.org/D62121 (cherry picked from commit 141e74291075785c7898763d33288b7fd8b9f06d) M release/tools/gce.conf _____________________________________________________________________________________________________________ Commit: e109c8d0861135b8a8d204a04f756496fa3f28cb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e109c8d0861135b8a8d204a04f756496fa3f28cb Author: Roman Bogorodskiy (Tue 24 Nov 2026 17:47:52 GMT) Committer: Roman Bogorodskiy (Thu 3 Dec 2026 18:24:51 GMT) bhyve: fix bootorder for PCI slots >= 10 Currently, bhyve writes slots as decimals. Firmware such as EDK2 interprets them as hexadecimals, so slot 10 becomes 16, breaking the configured boot order. Reviewed by: markj Fixes: 6632a0a4e3ab ("bhyve: add helper to create a bootorder") MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61997 (cherry picked from commit 653c5d3b5f9f3f157c043c0acdcfc2ba85718016) M usr.sbin/bhyve/pci_emul.c _____________________________________________________________________________________________________________ Commit: 98ca8c5a910ec3e5ef3f18cfa0079fb181b5f719 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=98ca8c5a910ec3e5ef3f18cfa0079fb181b5f719 Author: Adrian Chadd (Thu 3 Dec 2026 18:05:44 GMT) Committer: Adrian Chadd (Thu 3 Dec 2026 18:06:45 GMT) vtnet: disable mq by default to work around busdma usage bugs The busdma tag / locking isn't right for multiqueue usage, so disable it for now until it's been resolved. PR: kern/301386 Reviewed by: cperciva Differential Revision: https://reviews.freebsd.org/D62387 (cherry picked from commit a4c9e53a393505c22126f2a929e0087d9a9296f7) M sys/dev/virtio/network/if_vtnet.c _____________________________________________________________________________________________________________ Commit: 073444fcc03f88bf97ea3dde426ffcb0c5d5e042 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=073444fcc03f88bf97ea3dde426ffcb0c5d5e042 Author: Ryan Moeller (Tue 13 Oct 2026 17:42:45 BST) Committer: Ryan Moeller (Thu 3 Dec 2026 16:55:45 GMT) linuxulator: Accept 0 as signal in rt_sigqueueinfo Linux allows 0 as a signal for rt_sigqueueinfo(2) the same as it does for kill(2). This is used to check for process existence and permissions. Allow this value through as a special case in linux_rt_siqgueueinfo the same way as was done for linux_kill. Before this change, lio_listio(3) would fail with EINVAL under Linuxulator. Now it is functional. MFC after: 1 week Reviewed by: kevans Approved by: kevans (mentor) Differential Revision: https://reviews.freebsd.org/D60574 (cherry picked from commit 33d9fbf5f95301f6eefbbf7e7fd49b4e9c098919) M sys/compat/linux/linux_signal.c _____________________________________________________________________________________________________________ Commit: dc7b06df571d318493b99ab44c0124594fb47ff2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dc7b06df571d318493b99ab44c0124594fb47ff2 Author: Kamil Monicz (Thu 16 Jul 2026 23:38:16 BST) Committer: Ryan Moeller (Thu 3 Dec 2026 16:55:44 GMT) ddt: select traditional phys by block identity, not BP DVA count The write path stores a traditional DDT entry in the phys slot chosen by the zp_copies value the block was written with, but the free-path lookup validation (ddt_entry_lookup_is_valid()) selected the slot to compare by the BP's physical DVA count, and ddt_addref() bumped the refcount of that same wrongly-selected slot. The two indexes diverge whenever a deduplicated block's BP carries more DVAs than its copies value, which is exactly what ganging does: a gang header is stored in more copies than the data it gangs, so copies=1 blocks get a two-DVA gang header BP (unconditionally through 2.3.3, and under the default redundant_metadata=all since a46ce73ca8 made it configurable in 2.3.4 and 9250403ba6 in 2.4.0), and from 2.3.4 that default also gives unencrypted copies=2 blocks a three-DVA header BP. Encryption does not avoid the mismatch at copies=1: the header BP still carries two counted DVAs (the salt/IV DVA is separate). For such a block the validation checked the wrong slot, concluded the entry had been pruned, and zio_ddt_free() fell back to a plain physical free: the shared gang header extents were freed once per DDT-referenced delete with no refcount decrement. Consequences per triggering delete: remaining references point at freed header sectors and fail with gang_header checksum errors once the space is reused; the second and later deletes commit overlapping FREE records to the spacemaps ("zfs: rt=...: adding segment ... overlapping with existing one" panics at import or runtime), or free unrelated live allocations if the extents were reused in between; the gang members are never traversed and leak once the last reference is deleted; and the entry itself becomes immortal, so future identical writes dedup against freed storage. Fix the validation to match a phys by block identity (DVA[0] and physical birth) via ddt_phys_select(), which is what the decref path already uses; this also implements the existing "XXX ... maybe can combine" comment. Fix ddt_addref() the same way in the same commit: its identical mis-indexing is currently masked only by the verified lookup failing first, so fixing the lookup alone would unmask a refcount increment on the wrong slot. The verified lookup guarantees a matching phys exists, and the VERIFY keeps DDT_PHYS_NONE from reaching ddt_phys_addref(), which would index out of bounds on release builds. Incidentally this also repairs frees of legacy DDT_PHYS_DITTO blocks (the old code could never select slot 0). Since traditional tables are never pruned (pruning only walks flat tables), a free-time lookup miss on one should not happen on a consistent pool: leave a zfs_dbgmsg trace when it happens instead of silently bypassing the refcount. The free-path regression dates to d4d79451cb ("Add DDT prune command"), first released in 2.3.0; before that the free path selected the phys by DVA identity. The ddt_addref() half predates it and is present in 2.2.x via block cloning. Note the code fix cannot repair damage already committed by the bug: leaked members, spacemap double frees, stale entries, and clones whose references landed in the BRT because ddt_addref() failed all persist on disk. Add a ZTS test that forces ganging on a legacy-DDT pool, takes three references to the same gang blocks (write, dedup copy, block clone), verifies the refcount of the copies=1 phys after every step, and checks the final state with zdb -bcc. It takes the clone reference with FICLONE, so it is registered Linux-only alongside the other FICLONE tests. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18819 PR: 301442 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301442 ) Approved by: kevans (mentor) (cherry picked from commit e7f2c9fb87cae840c85199b2c5633765c5a23e44) M sys/contrib/openzfs/include/sys/ddt.h M sys/contrib/openzfs/module/zfs/ddt.c M sys/contrib/openzfs/module/zfs/zio.c M sys/contrib/openzfs/tests/runfiles/linux.run M sys/contrib/openzfs/tests/zfs-tests/tests/Makefile.am A sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_legacy_gang.ksh _____________________________________________________________________________________________________________ Commit: dc9708bff8c89ad0440df2c91668c70b3a4669a8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dc9708bff8c89ad0440df2c91668c70b3a4669a8 Author: Enji Cooper (Wed 2 Dec 2026 06:26:30 GMT) Committer: Enji Cooper (Thu 3 Dec 2026 16:15:27 GMT) crypto/openssl: commit generated files for 3.5.10 release MFC after: 1 day MFC with: cbbbed654506 (cherry picked from commit a5416fccc9ec871d334960b40b49346db12b1f31) M crypto/openssl/exporters/libcrypto.pc M crypto/openssl/exporters/libssl.pc M crypto/openssl/exporters/openssl.pc M crypto/openssl/include/openssl/opensslv.h M secure/lib/libcrypto/man/man3/ADMISSIONS.3 M secure/lib/libcrypto/man/man3/ASN1_INTEGER_get_int64.3 M secure/lib/libcrypto/man/man3/ASN1_aux_cb.3 M secure/lib/libcrypto/man/man3/ASN1_item_d2i_bio.3 M secure/lib/libcrypto/man/man3/BIO_get_data.3 M secure/lib/libcrypto/man/man3/BIO_push.3 M secure/lib/libcrypto/man/man3/BIO_read.3 M secure/lib/libcrypto/man/man3/BIO_s_bio.3 M secure/lib/libcrypto/man/man3/BIO_s_datagram.3 M secure/lib/libcrypto/man/man3/BIO_s_file.3 M secure/lib/libcrypto/man/man3/BIO_set_flags.3 M secure/lib/libcrypto/man/man3/BN_add.3 M secure/lib/libcrypto/man/man3/BN_generate_prime.3 M secure/lib/libcrypto/man/man3/CMS_EncryptedData_decrypt.3 M secure/lib/libcrypto/man/man3/CMS_EncryptedData_encrypt.3 M secure/lib/libcrypto/man/man3/CMS_EncryptedData_set1_key.3 M secure/lib/libcrypto/man/man3/CMS_decrypt.3 M secure/lib/libcrypto/man/man3/DTLSv1_get_timeout.3 M secure/lib/libcrypto/man/man3/EC_GROUP_new.3 M secure/lib/libcrypto/man/man3/EVP_CIPHER_CTX_get_app_data.3 M secure/lib/libcrypto/man/man3/EVP_EncryptInit.3 M secure/lib/libcrypto/man/man3/EVP_PKEY_keygen.3 M secure/lib/libcrypto/man/man3/EVP_SKEY.3 M secure/lib/libcrypto/man/man3/NAME_CONSTRAINTS_check.3 M secure/lib/libcrypto/man/man3/OPENSSL_armcap.3 M secure/lib/libcrypto/man/man3/OPENSSL_init_crypto.3 M secure/lib/libcrypto/man/man3/OPENSSL_malloc.3 M secure/lib/libcrypto/man/man3/OPENSSL_ppccap.3 M secure/lib/libcrypto/man/man3/OPENSSL_riscvcap.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_ATAV_set0.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_CTX_new.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_HDR_get0_transactionID.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_ITAV_new_caCerts.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_ITAV_set0.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_MSG_get0_header.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_MSG_http_perform.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_SRV_CTX_new.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_STATUSINFO_new.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_exec_certreq.3 M secure/lib/libcrypto/man/man3/OSSL_CMP_validate_msg.3 M secure/lib/libcrypto/man/man3/OSSL_CRMF_MSG_get0_tmpl.3 M secure/lib/libcrypto/man/man3/OSSL_CRMF_pbmp_new.3 M secure/lib/libcrypto/man/man3/OSSL_DECODER_CTX.3 M secure/lib/libcrypto/man/man3/OSSL_DECODER_CTX_new_for_pkey.3 M secure/lib/libcrypto/man/man3/OSSL_ENCODER_CTX.3 M secure/lib/libcrypto/man/man3/OSSL_ENCODER_CTX_new_for_pkey.3 M secure/lib/libcrypto/man/man3/OSSL_HPKE_CTX_new.3 M secure/lib/libcrypto/man/man3/OSSL_HTTP_REQ_CTX.3 M secure/lib/libcrypto/man/man3/OSSL_HTTP_parse_url.3 M secure/lib/libcrypto/man/man3/OSSL_HTTP_transfer.3 M secure/lib/libcrypto/man/man3/OSSL_PARAM_dup.3 M secure/lib/libcrypto/man/man3/OSSL_PROVIDER.3 M secure/lib/libcrypto/man/man3/PEM_read_bio_PrivateKey.3 M secure/lib/libcrypto/man/man3/PKCS5_PBE_keyivgen.3 M secure/lib/libcrypto/man/man3/PKCS7_decrypt.3 M secure/lib/libcrypto/man/man3/RAND_bytes.3 M secure/lib/libcrypto/man/man3/RSA_set_method.3 M secure/lib/libcrypto/man/man3/SSL_CONF_cmd.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set1_curves.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_cert_verify_callback.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_client_hello_cb.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_domain_flags.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_msg_callback.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_psk_client_callback.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_security_level.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_session_cache_mode.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_session_id_context.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_tlsext_servername_callback.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_tmp_dh_callback.3 M secure/lib/libcrypto/man/man3/SSL_CTX_set_verify.3 M secure/lib/libcrypto/man/man3/SSL_get0_group_name.3 M secure/lib/libcrypto/man/man3/SSL_get_ciphers.3 M secure/lib/libcrypto/man/man3/SSL_get_error.3 M secure/lib/libcrypto/man/man3/SSL_get_value_uint.3 M secure/lib/libcrypto/man/man3/SSL_in_init.3 M secure/lib/libcrypto/man/man3/SSL_new.3 M secure/lib/libcrypto/man/man3/SSL_poll.3 M secure/lib/libcrypto/man/man3/SSL_set_quic_tls_cbs.3 M secure/lib/libcrypto/man/man3/UI_new.3 M secure/lib/libcrypto/man/man3/X509V3_EXT_nconf_nid.3 M secure/lib/libcrypto/man/man3/X509V3_EXT_print.3 M secure/lib/libcrypto/man/man3/X509_NAME_ENTRY_get_object.3 M secure/lib/libcrypto/man/man3/X509_NAME_add_entry_by_txt.3 M secure/lib/libcrypto/man/man3/X509_NAME_print_ex.3 M secure/lib/libcrypto/man/man3/X509_STORE_get0_param.3 M secure/lib/libcrypto/man/man3/X509_get_default_cert_file.3 M secure/lib/libcrypto/man/man3/X509_verify_cert.3 M secure/lib/libcrypto/man/man3/d2i_X509.3 M secure/lib/libcrypto/man/man7/EVP_CIPHER-AES.7 M secure/lib/libcrypto/man/man7/EVP_CIPHER-SM4.7 M secure/lib/libcrypto/man/man7/EVP_KEM-ML-KEM.7 M secure/lib/libcrypto/man/man7/EVP_MAC-CMAC.7 M secure/lib/libcrypto/man/man7/EVP_MAC-GMAC.7 M secure/lib/libcrypto/man/man7/EVP_MAC-HMAC.7 M secure/lib/libcrypto/man/man7/EVP_MAC-Poly1305.7 M secure/lib/libcrypto/man/man7/EVP_MD-common.7 M secure/lib/libcrypto/man/man7/EVP_PKEY-DH.7 M secure/lib/libcrypto/man/man7/EVP_PKEY-HMAC.7 M secure/lib/libcrypto/man/man7/EVP_PKEY-ML-DSA.7 M secure/lib/libcrypto/man/man7/EVP_PKEY-ML-KEM.7 M secure/lib/libcrypto/man/man7/EVP_PKEY-RSA.7 M secure/lib/libcrypto/man/man7/EVP_PKEY-SLH-DSA.7 M secure/lib/libcrypto/man/man7/EVP_RAND-CRNG-TEST.7 M secure/lib/libcrypto/man/man7/EVP_RAND-CTR-DRBG.7 M secure/lib/libcrypto/man/man7/EVP_RAND-JITTER.7 M secure/lib/libcrypto/man/man7/EVP_SIGNATURE-DSA.7 M secure/lib/libcrypto/man/man7/EVP_SIGNATURE-ECDSA.7 M secure/lib/libcrypto/man/man7/EVP_SIGNATURE-ED25519.7 M secure/lib/libcrypto/man/man7/EVP_SIGNATURE-HMAC.7 M secure/lib/libcrypto/man/man7/EVP_SIGNATURE-ML-DSA.7 M secure/lib/libcrypto/man/man7/EVP_SIGNATURE-RSA.7 M secure/lib/libcrypto/man/man7/EVP_SIGNATURE-SLH-DSA.7 M secure/lib/libcrypto/man/man7/OSSL_PROVIDER-FIPS.7 M secure/lib/libcrypto/man/man7/RAND.7 M secure/lib/libcrypto/man/man7/fips_module.7 M secure/lib/libcrypto/man/man7/openssl-core_dispatch.h.7 M secure/lib/libcrypto/man/man7/openssl-env.7 M secure/lib/libcrypto/man/man7/openssl-quic-concurrency.7 M secure/lib/libcrypto/man/man7/openssl-quic.7 M secure/lib/libcrypto/man/man7/openssl-threads.7 M secure/lib/libcrypto/man/man7/openssl_user_macros.7 M secure/lib/libcrypto/man/man7/ossl-guide-migration.7 M secure/lib/libcrypto/man/man7/ossl-guide-tls-client-block.7 M secure/lib/libcrypto/man/man7/ossl-guide-tls-introduction.7 M secure/lib/libcrypto/man/man7/property.7 M secure/lib/libcrypto/man/man7/provider-asym_cipher.7 M secure/lib/libcrypto/man/man7/provider-base.7 M secure/lib/libcrypto/man/man7/provider-digest.7 M secure/lib/libcrypto/man/man7/provider-kem.7 M secure/lib/libcrypto/man/man7/provider-signature.7 M secure/usr.bin/openssl/man/CA.pl.1 M secure/usr.bin/openssl/man/openssl-asn1parse.1 M secure/usr.bin/openssl/man/openssl-ca.1 M secure/usr.bin/openssl/man/openssl-ciphers.1 M secure/usr.bin/openssl/man/openssl-cmds.1 M secure/usr.bin/openssl/man/openssl-cmp.1 M secure/usr.bin/openssl/man/openssl-cms.1 M secure/usr.bin/openssl/man/openssl-crl.1 M secure/usr.bin/openssl/man/openssl-crl2pkcs7.1 M secure/usr.bin/openssl/man/openssl-dgst.1 M secure/usr.bin/openssl/man/openssl-dhparam.1 M secure/usr.bin/openssl/man/openssl-dsa.1 M secure/usr.bin/openssl/man/openssl-dsaparam.1 M secure/usr.bin/openssl/man/openssl-ec.1 M secure/usr.bin/openssl/man/openssl-ecparam.1 M secure/usr.bin/openssl/man/openssl-enc.1 M secure/usr.bin/openssl/man/openssl-engine.1 M secure/usr.bin/openssl/man/openssl-errstr.1 M secure/usr.bin/openssl/man/openssl-fipsinstall.1 M secure/usr.bin/openssl/man/openssl-format-options.1 M secure/usr.bin/openssl/man/openssl-gendsa.1 M secure/usr.bin/openssl/man/openssl-genpkey.1 M secure/usr.bin/openssl/man/openssl-genrsa.1 M secure/usr.bin/openssl/man/openssl-info.1 M secure/usr.bin/openssl/man/openssl-kdf.1 M secure/usr.bin/openssl/man/openssl-list.1 M secure/usr.bin/openssl/man/openssl-mac.1 M secure/usr.bin/openssl/man/openssl-nseq.1 M secure/usr.bin/openssl/man/openssl-ocsp.1 M secure/usr.bin/openssl/man/openssl-passwd.1 M secure/usr.bin/openssl/man/openssl-pkcs12.1 M secure/usr.bin/openssl/man/openssl-pkcs7.1 M secure/usr.bin/openssl/man/openssl-pkcs8.1 M secure/usr.bin/openssl/man/openssl-pkey.1 M secure/usr.bin/openssl/man/openssl-pkeyparam.1 M secure/usr.bin/openssl/man/openssl-pkeyutl.1 M secure/usr.bin/openssl/man/openssl-prime.1 M secure/usr.bin/openssl/man/openssl-rand.1 M secure/usr.bin/openssl/man/openssl-rehash.1 M secure/usr.bin/openssl/man/openssl-req.1 M secure/usr.bin/openssl/man/openssl-rsa.1 M secure/usr.bin/openssl/man/openssl-rsautl.1 M secure/usr.bin/openssl/man/openssl-s_client.1 M secure/usr.bin/openssl/man/openssl-s_server.1 M secure/usr.bin/openssl/man/openssl-s_time.1 M secure/usr.bin/openssl/man/openssl-sess_id.1 M secure/usr.bin/openssl/man/openssl-skeyutl.1 M secure/usr.bin/openssl/man/openssl-smime.1 M secure/usr.bin/openssl/man/openssl-speed.1 M secure/usr.bin/openssl/man/openssl-spkac.1 M secure/usr.bin/openssl/man/openssl-srp.1 M secure/usr.bin/openssl/man/openssl-storeutl.1 M secure/usr.bin/openssl/man/openssl-ts.1 M secure/usr.bin/openssl/man/openssl-verification-options.1 M secure/usr.bin/openssl/man/openssl-verify.1 M secure/usr.bin/openssl/man/openssl-version.1 M secure/usr.bin/openssl/man/openssl-x509.1 M secure/usr.bin/openssl/man/openssl.1 M sys/crypto/openssl/aarch64/bsaes-armv8.S M sys/crypto/openssl/arm_arch.h _____________________________________________________________________________________________________________ Commit: 93013273fb42ecaf2ab2ed4e95072c3dc927e70e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=93013273fb42ecaf2ab2ed4e95072c3dc927e70e Author: Enji Cooper (Wed 2 Dec 2026 06:21:59 GMT) Committer: Enji Cooper (Thu 3 Dec 2026 15:51:36 GMT) crypto/openssl: update to 3.5.10 This change updates the OpenSSL source to 3.5.10. This is a security bugfix release which addresses several issues--Medium being the highest severity issue. Users are strongly encouraged to update to this release. Please see the original vendor commit for more details. Merge commit '7ee6425d9f3b6d5fba45b5b525953e4d0b662eff' (cherry picked from commit cbbbed6545063b224659a37da38a73f7de464096) M crypto/openssl/CHANGES.md M crypto/openssl/Configurations/10-main.conf M crypto/openssl/INSTALL.md M crypto/openssl/NEWS.md M crypto/openssl/NOTES-ANDROID.md M crypto/openssl/NOTES-PERL.md M crypto/openssl/README.md A crypto/openssl/REVIEW.md M crypto/openssl/VERSION.dat M crypto/openssl/apps/lib/cmp_mock_srv.c M crypto/openssl/apps/lib/opt.c M crypto/openssl/apps/passwd.c M crypto/openssl/apps/pkcs12.c M crypto/openssl/apps/x509.c M crypto/openssl/crypto/aes/asm/aesni-xts-avx512.pl M crypto/openssl/crypto/aes/asm/bsaes-armv8.pl M crypto/openssl/crypto/arm_arch.h M crypto/openssl/crypto/armcap.c M crypto/openssl/crypto/asn1/d2i_pr.c M crypto/openssl/crypto/bio/bf_readbuff.c M crypto/openssl/crypto/bio/bio_addr.c M crypto/openssl/crypto/bio/bss_dgram.c M crypto/openssl/crypto/bsearch.c M crypto/openssl/crypto/camellia/build.info M crypto/openssl/crypto/chacha/build.info M crypto/openssl/crypto/cmp/cmp_asn.c M crypto/openssl/crypto/conf/conf_api.c M crypto/openssl/crypto/conf/conf_mod.c M crypto/openssl/crypto/des/build.info M crypto/openssl/crypto/dh/dh_key.c M crypto/openssl/crypto/dsa/dsa_ossl.c M crypto/openssl/crypto/ec/ec_asn1.c M crypto/openssl/crypto/ec/ec_key.c M crypto/openssl/crypto/ec/ec_lib.c M crypto/openssl/crypto/ec/ecx_meth.c M crypto/openssl/crypto/err/openssl.txt M crypto/openssl/crypto/evp/bio_enc.c M crypto/openssl/crypto/evp/pmeth_lib.c M crypto/openssl/crypto/hmac/build.info M crypto/openssl/crypto/hpke/hpke.c M crypto/openssl/crypto/init.c M crypto/openssl/crypto/lhash/lhash.c M crypto/openssl/crypto/loongarchcap.c M crypto/openssl/crypto/md5/asm/md5-loongarch64.pl M crypto/openssl/crypto/md5/build.info M crypto/openssl/crypto/mem_clr.c M crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c M crypto/openssl/crypto/modes/build.info M crypto/openssl/crypto/modes/wrap128.c M crypto/openssl/crypto/objects/obj_dat.h M crypto/openssl/crypto/objects/objects.txt M crypto/openssl/crypto/pem/pem_info.c M crypto/openssl/crypto/pkcs12/p12_utl.c M crypto/openssl/crypto/pkcs7/pk7_doit.c M crypto/openssl/crypto/pkcs7/pk7_lib.c M crypto/openssl/crypto/poly1305/build.info M crypto/openssl/crypto/provider_core.c M crypto/openssl/crypto/ripemd/build.info M crypto/openssl/crypto/rsa/rsa_gen.c M crypto/openssl/crypto/sm3/build.info M crypto/openssl/crypto/sm4/build.info M crypto/openssl/crypto/x509/v3_san.c M crypto/openssl/crypto/x509/x509_vfy.c M crypto/openssl/crypto/x509/x509aset.c M crypto/openssl/crypto/x509/x_attrib.c M crypto/openssl/demos/digest/EVP_MD_demo.c M crypto/openssl/demos/sslecho/main.c M crypto/openssl/doc/internal/man3/OSSL_SAFE_MATH_SIGNED.pod M crypto/openssl/doc/man1/openssl-s_client.pod.in M crypto/openssl/doc/man3/EC_GROUP_new.pod M crypto/openssl/doc/man3/EVP_EncryptInit.pod M crypto/openssl/doc/man3/OSSL_CMP_exec_certreq.pod M crypto/openssl/doc/man3/OSSL_PARAM_dup.pod M crypto/openssl/doc/man3/PEM_read_bio_PrivateKey.pod M crypto/openssl/doc/man3/SSL_get0_group_name.pod M crypto/openssl/doc/man3/X509_NAME_add_entry_by_txt.pod M crypto/openssl/doc/man3/d2i_X509.pod M crypto/openssl/doc/man7/RAND.pod M crypto/openssl/doc/man7/openssl-env.pod M crypto/openssl/fuzz/oids.txt M crypto/openssl/fuzz/test-corpus.c M crypto/openssl/include/crypto/riscv_arch.h M crypto/openssl/include/internal/quic_channel.h M crypto/openssl/include/internal/quic_reactor.h M crypto/openssl/include/internal/quic_reactor_wait_ctx.h M crypto/openssl/include/internal/quic_ssl.h M crypto/openssl/include/internal/quic_strm_reas.h M crypto/openssl/include/internal/safe_math.h M crypto/openssl/include/openssl/obj_mac.h M crypto/openssl/include/openssl/proverr.h M crypto/openssl/providers/common/provider_err.c M crypto/openssl/providers/fips-sources.checksums M crypto/openssl/providers/fips.checksum M crypto/openssl/providers/implementations/ciphers/build.info M crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_hw_vaes_avx512.inc M crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv.c M crypto/openssl/providers/implementations/ciphers/cipher_aes_gcm_siv_hw.c M crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c M crypto/openssl/providers/implementations/ciphers/cipher_aes_siv_hw.c M crypto/openssl/providers/implementations/ciphers/ciphercommon_ccm.c M crypto/openssl/providers/implementations/ciphers/ciphercommon_gcm.c M crypto/openssl/providers/implementations/encode_decode/encode_key2any.c M crypto/openssl/providers/implementations/include/prov/names.h M crypto/openssl/providers/implementations/kdfs/argon2.c M crypto/openssl/providers/implementations/kdfs/sshkdf.c M crypto/openssl/providers/implementations/kem/rsa_kem.c M crypto/openssl/providers/implementations/keymgmt/ec_kmgmt.c M crypto/openssl/providers/implementations/keymgmt/ecx_kmgmt.c M crypto/openssl/providers/implementations/rands/drbg.c M crypto/openssl/providers/implementations/rands/fips_crng_test.c M crypto/openssl/providers/implementations/signature/build.info M crypto/openssl/ssl/bio_ssl.c M crypto/openssl/ssl/quic/quic_ackm.c M crypto/openssl/ssl/quic/quic_channel.c M crypto/openssl/ssl/quic/quic_channel_local.h M crypto/openssl/ssl/quic/quic_impl.c M crypto/openssl/ssl/quic/quic_port.c M crypto/openssl/ssl/quic/quic_reactor.c M crypto/openssl/ssl/quic/quic_reactor_wait_ctx.c M crypto/openssl/ssl/quic/quic_rstream.c M crypto/openssl/ssl/quic/quic_stream_map.c M crypto/openssl/ssl/quic/quic_strm_reas.c M crypto/openssl/ssl/record/build.info M crypto/openssl/ssl/rio/poll_immediate.c M crypto/openssl/ssl/s3_lib.c M crypto/openssl/ssl/ssl_lib.c M crypto/openssl/ssl/statem/extensions_clnt.c M crypto/openssl/ssl/statem/extensions_srvr.c M crypto/openssl/ssl/statem/statem_clnt.c M crypto/openssl/ssl/statem/statem_srvr.c M crypto/openssl/ssl/t1_lib.c M crypto/openssl/test/aesgcmtest.c M crypto/openssl/test/bio_enc_test.c M crypto/openssl/test/bio_readbuffer_test.c M crypto/openssl/test/build.info A crypto/openssl/test/certs/ext-subjectDirectoryAttributes-integer.pem M crypto/openssl/test/cmp_client_test.c M crypto/openssl/test/cmp_vfy_test.c M crypto/openssl/test/cmsapitest.c A crypto/openssl/test/conf_parse_list_test.c M crypto/openssl/test/danetest.c M crypto/openssl/test/dtlsv1listentest.c M crypto/openssl/test/ec_internal_test.c M crypto/openssl/test/ectest.c M crypto/openssl/test/evp_extra_test.c M crypto/openssl/test/evp_libctx_test.c M crypto/openssl/test/helpers/quictestlib.c M crypto/openssl/test/hpke_test.c M crypto/openssl/test/lhash_test.c M crypto/openssl/test/pkcs12_api_test.c M crypto/openssl/test/pkcs7_test.c M crypto/openssl/test/provider_fallback_test.c M crypto/openssl/test/quic_ackm_test.c M crypto/openssl/test/quic_multistream_test.c M crypto/openssl/test/quic_stream_test.c M crypto/openssl/test/quicapitest.c M crypto/openssl/test/radix/quic_ops.c M crypto/openssl/test/radix/quic_tests.c M crypto/openssl/test/rand_test.c M crypto/openssl/test/run_tests.pl M crypto/openssl/test/safe_math_test.c M crypto/openssl/test/sanitytest.c M crypto/openssl/test/ssl-tests/32-compressed-certificate.cnf.in M crypto/openssl/test/sslapitest.c M crypto/openssl/test/testutil/provider.c M crypto/openssl/test/tls-provider.c M crypto/openssl/test/tls13secretstest.c M crypto/openssl/test/x509_acert_test.c M crypto/openssl/test/x509_check_cert_pkey_test.c M crypto/openssl/util/mkerr.pl M crypto/openssl/util/perl/OpenSSL/Test.pm _____________________________________________________________________________________________________________ Commit: 1c317439292522c16ad60a66eb862596d8e9e5b4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1c317439292522c16ad60a66eb862596d8e9e5b4 Author: Enji Cooper (Mon 23 Nov 2026 22:20:31 GMT) Committer: Enji Cooper (Thu 3 Dec 2026 15:51:15 GMT) crypto/openssl: correct messages printed out when copying manpages Prior to this change section 1's message applied to 3/5/7 and vice versa. Now the right message is printed out by the Makefile with its respective operation. MFC after: 1 week (cherry picked from commit cb354d6a5a756df35f772acab3ce70caf90c4bda) M crypto/openssl/BSDmakefile _____________________________________________________________________________________________________________ Commit: cada5351b20f3dd1e146d558d0f44a8f9a1f9b52 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cada5351b20f3dd1e146d558d0f44a8f9a1f9b52 Author: David E. O'Brien (Sat 21 Nov 2026 04:53:30 GMT) Committer: David E. O'Brien (Thu 3 Dec 2026 09:48:57 GMT) imgact_elf: accept PT_INTERP segments up to 4096 bytes The Yocto/Poky relocatable SDK NUL-pads the interpreter path in PT_INTERP out to 4096 bytes (within Linux's POSIX PATH_MAX) so that 'relocate_sdk.py' can rewrite the path in place. The kernel rejected any PT_INTERP with p_filesz > BSD's MAXPATHLEN (1024) with "Invalid PT_INTERP" and ENOEXEC, so none of the SDK's binaries could be run under the Linuxulator. - The PT_INTERP segment may now be up to 'PT_INTERP_SEG_MAXSZ' bytes, which may be greater than 'MAXPATHLEN'. - The interpreter path within the segment must still be shorter than 'MAXPATHLEN' -- when violated results in 'ENAMETOOLONG' when the interpreter is looked up. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D62075 (cherry picked from commit 7ee8d41ebb2ffb13e50ea59fd5bc43155123f323) M sys/kern/imgact_elf.c _____________________________________________________________________________________________________________ Commit: 08e7d27315cf51e17bc79f34b96867b924531f24 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=08e7d27315cf51e17bc79f34b96867b924531f24 Author: Joerg Wunsch (Mon 23 Nov 2026 21:43:11 GMT) Committer: Joerg Wunsch (Thu 3 Dec 2026 09:21:40 GMT) Add USB quirk for WCH-Link adapter WCH-Link is a debug adapter from QinHeng Electronics that features a (proprietary) debug bridge for their RISC-V MCUs, as well as a serial gateway, implemented as a CDC device. The CDC's call management descriptor declares the data interface to be 1, but it is actually interface 2. UQ_IGNORE_CDC_CM has already been implemented before to handle this kind of firmware bug, so just add this quirk for WCH-Link. Reported by: Holm Tiffe (cherry picked from commit 1660d69068a0650fcda2ce7497dfa20e33f0b58d) M sys/dev/usb/quirk/usb_quirk.c M sys/dev/usb/usbdevs _____________________________________________________________________________________________________________ Commit: 652a8a74846031f0552b4a9df1a7808cc13d20ed URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=652a8a74846031f0552b4a9df1a7808cc13d20ed Author: Colin Percival (Sat 3 Oct 2026 17:44:03 BST) Committer: Colin Percival (Thu 3 Dec 2026 04:16:28 GMT) EC2: Use stream-optimized VMDK format Once enabled on all of the branches, this will reduce bandwidth consumption from uploading weekly snapshot builds from ~500 GB to ~100 GB, as well as significantly speeding up the process. MFC after: 2 months Sponsored by: Amazon (cherry picked from commit 34f2f57b836d9cec02130419f5272495860d4ddf) M release/Makefile.vm _____________________________________________________________________________________________________________ Commit: ae6b73db4ff63e3dadfc397972e57714f0fc3552 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ae6b73db4ff63e3dadfc397972e57714f0fc3552 Author: Colin Percival (Tue 1 Dec 2026 04:14:50 GMT) Committer: Colin Percival (Thu 3 Dec 2026 00:56:35 GMT) EC2: Explicitly block root login via RDP MFC after: 0 days Security: GHSA-3rww-h298-82rx Sponsored by: Amazon (cherry picked from commit 2112d90be7a855d4c9f598409850d54583089de2) M release/tools/ec2-desktop.conf _____________________________________________________________________________________________________________ Commit: 443d76f01410fe4e9365039b6950292a6a1d6119 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=443d76f01410fe4e9365039b6950292a6a1d6119 Author: Tony Hutter (Wed 11 Nov 2026 19:00:37 GMT) Committer: Tony Hutter (Thu 3 Dec 2026 00:02:10 GMT) Tag zfs-2.4.5 META file and changelog updated. Signed-off-by: Tony Hutter M META _____________________________________________________________________________________________________________ Commit: 4df90ca21887091055f0d3f910e6594a5959ae90 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4df90ca21887091055f0d3f910e6594a5959ae90 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Tue 20 Oct 2026 17:23:05 BST) Committer: Tony Hutter (Thu 3 Dec 2026 00:02:10 GMT) ZTS: detach: pass the pool to the zpool detach that must fail The check that "zpool detach" fails on stripe, raidz and dRAID pools ran "zpool detach $TESTDIR/$TESTFILE1.1" with no pool name. zpool then stops at "missing specification" before it opens any pool, so the check passed whatever a detach of that device would have done. Pass the pool name, as the detach earlier in the test does. While here, set "options" rather than "ptions", so that file_trunc gets -r as in the other replacement tests, and have the assertion describe a detach rather than a replace. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19471 M tests/zfs-tests/tests/functional/replacement/detach.ksh _____________________________________________________________________________________________________________ Commit: e7ebe57f0c8c020848eee9c572a26094b907e484 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e7ebe57f0c8c020848eee9c572a26094b907e484 Author: Brian Behlendorf (Fri 17 Apr 2026 00:44:21 BST) Committer: Tony Hutter (Thu 3 Dec 2026 00:02:10 GMT) ZTS: resilver_restart_001 improvements The resilver_restart_001 test case has not been entirely reliable when run under the CI. Address several small issues which may be responsible. - Configure the pool as raidz2 instead of raidz1 since the test offlines two devices. This ensures the second device is marked as OFFLINE instead of DEGRADED. - Start the zpool replace after setting SCAN_SUSPEND_PROGRESS to close any potential race where the replace finishs to quickly. - Wait for the offlines/onlined vdevs to fully transition to the expected state during the test. - Add the true flag to sync_pool to force a TXG sync to happen even if it might not otherwise be required. - During cleanup dump the zpool events history to aid debugging if the updated test case is still unreliable in the CI. Reviewed-by: Tony Hutter Signed-off-by: Brian Behlendorf Closes #18434 M tests/zfs-tests/tests/functional/replacement/resilver_restart_001.ksh _____________________________________________________________________________________________________________ Commit: 8c4a9ee70c34ba0d6846cffb6d4f689577b3427f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8c4a9ee70c34ba0d6846cffb6d4f689577b3427f Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Tue 1 Dec 2026 22:39:11 GMT) Committer: Tony Hutter (Wed 2 Dec 2026 23:39:55 GMT) ZTS: wait for dRAID unspare after clearing a device wait_resilvered can accept the previous sequential rebuild after clearing the original device. The verification scrub can then start before the pending healing resilver and compare the restored device with its spare. Wait for the first distributed spare to become available before running the verification scrub. Keep the existing 300-second bound and checks. Assisted-by: OpenAI Codex Reviewed-by: Matthew Ahrens Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Giuseppe Piscitelli Closes #19888 M tests/zfs-tests/tests/functional/redundancy/redundancy_draid_spare1.ksh _____________________________________________________________________________________________________________ Commit: 0191a03576fb7f5b7064fb5469b3d666a618d58c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0191a03576fb7f5b7064fb5469b3d666a618d58c Author: Matthew Ahrens (Mon 9 Nov 2026 22:44:05 GMT) Committer: Tony Hutter (Wed 2 Dec 2026 23:39:55 GMT) ZTS: redundancy tests: replacing a device can fail with "is busy" replace_missing_devs recreates each device file with dd and then replaces the device with itself. dd truncates the existing file, and the pool still has that file open as the old device. When the pool's configuration changes before the replace (a detach from the previous replace, for example), the pool writes its labels into the new file, and zpool replace then finds the device in use by the pool: "is busy, or device removal is in progress" (EBUSY), or, if the labels land before zpool checks the file, "is part of active pool". Remove the file before creating the new one, so the pool's writes go to the old, unlinked file. Reviewed by: George Wilson Reviewed-by: Tony Hutter Signed-off-by: Matthew Ahrens Co-authored-by: Claude Opus 5.5 Closes #19788 M tests/zfs-tests/tests/functional/redundancy/redundancy.kshlib _____________________________________________________________________________________________________________ Commit: 86582534da3e291bd6a5c76ff3673f247caed070 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=86582534da3e291bd6a5c76ff3673f247caed070 Author: Rick Macklem (Mon 2 Nov 2026 15:00:40 GMT) Committer: Rick Macklem (Wed 2 Dec 2026 23:20:16 GMT) nfs_nfsdstate.c: Partial revert of 64857418bb23 Dropping the cached reply that is too large causes a correctness problem that is too difficult to fix, so revert this and leave it the way it was. Although there is an argument that not doing could cause resource exhaustion, it has not been reported in the field as a problem. (cherry picked from commit bc7366a340edb366c37352c636b8360de92aa3a2) M sys/fs/nfsserver/nfs_nfsdstate.c _____________________________________________________________________________________________________________ Commit: 4f5e70e06f290511fea4f600b00a9ed21574ccb8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4f5e70e06f290511fea4f600b00a9ed21574ccb8 Author: Acts1631 (Sun 1 Nov 2026 23:27:55 GMT) Committer: Rick Macklem (Wed 2 Dec 2026 23:17:41 GMT) nfsd: Fix handling of RPC messages too large to cache The NFSv4.1/4.2 session negotiates a limit to the size of an RPC reply message that can be cached for the session slot. This patch fixes the code so that it checks that limit and does not cache replies larger than the limit, even if the client requested that it be cached. This patch is slightly different than what the author submitted, but retains the check for reply cache size limit. (cherry picked from commit 64857418bb2379a7d89b6af04cddf92fa48dd28c) M sys/fs/nfsserver/nfs_nfsdserv.c M sys/fs/nfsserver/nfs_nfsdstate.c _____________________________________________________________________________________________________________ Commit: 9ccf8ebde6460dd0e439bcb8e9b86310c4cd8beb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9ccf8ebde6460dd0e439bcb8e9b86310c4cd8beb Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Thu 12 Nov 2026 23:19:35 GMT) Committer: Tony Hutter (Wed 2 Dec 2026 23:06:44 GMT) ZTS: use consistent host identities in concurrent imports Define the MMP fixture's hostids as hexadecimal so zgenhostid and ZFS_HOSTID select the same identities. Strip the prefix in mmp_set_hostid when checking the written value. After a successful zhack export, use a different identity for the activity check and restore the pool identity for the next phase. Both concurrent imports may fail after the initial hard-force export, leaving the pool marked active under its previous hostid. Use -f for the first recovery import so that this allowed outcome does not fail the test. The activity check is still required and verified. Assisted-by: OpenAI Codex Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: ooonea Closes #19585 M tests/zfs-tests/tests/functional/mmp/mmp.cfg M tests/zfs-tests/tests/functional/mmp/mmp.kshlib M tests/zfs-tests/tests/functional/mmp/mmp_concurrent_import.ksh M tests/zfs-tests/tests/functional/mmp/mmp_zhack_reclaim.ksh _____________________________________________________________________________________________________________ Commit: 827da186165c2c907b0e4baec877bd685e2a260f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=827da186165c2c907b0e4baec877bd685e2a260f Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Tue 3 Nov 2026 03:42:04 GMT) Committer: Tony Hutter (Wed 2 Dec 2026 23:06:44 GMT) ZTS: keep the simulated MMP host alive through import probes The active-import test performs more than twenty import probes. On a stalled runner they can outlast the helper's 120-second idle period, so later probes find an inactive host instead of testing the intended active-host rejection. Allow a caller-specific idle duration and use 600 seconds for this test. Cleanup still terminates the helper explicitly, and the finite lifetime remains a failsafe. Other callers retain 120 seconds. Reviewed-by: Brian Behlendorf Signed-off-by: Dmitry R Co-authored-by: Dmitry R Closes #19686 M tests/zfs-tests/tests/functional/mmp/mmp.kshlib M tests/zfs-tests/tests/functional/mmp/mmp_active_import.ksh _____________________________________________________________________________________________________________ Commit: f1fb1f0ec638e45121094109f6094beb723a8396 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f1fb1f0ec638e45121094109f6094beb723a8396 Author: George Melikov (Fri 4 Sep 2026 20:08:20 BST) Committer: Tony Hutter (Wed 2 Dec 2026 23:06:44 GMT) ZTS: wait for the zhack pids mmp_concurrent_import started verify_zhack() looks up the processes to wait for by name: ZHACKPIDS=$(pgrep zhack) for pid in $ZHACKPIDS; do wait $pid so it only waits for the zhacks that pgrep happens to see. One that has not reached its exec() yet is still named after the shell that forked it, and one that has already exited is gone; either way the test continues while a zhack may still hold the pool imported, and the import_activity_check() that follows then finds activity where it requires mmp_result: 0. A zhack missed this way is also not counted, so IMPORT_COUNT can silently disagree with what actually happened. A CI run failed this way. Two zhacks were started, only one was reported, the other was still running at the end and was killed by cleanup: NOTE: PID 1689736 exited with status 1 ... ERROR: import_activity_check expected activity check ... SUCCESS: kill -9 1689739 Start the zhacks directly, keep the pids from $!, and pass them to verify_zhack(), which then waits for exactly the processes the test started. The log_must around a backgrounded command only checked that the fork succeeded, so nothing is lost by dropping it. This is a hardening: the pids in the failed run are three apart, as in the phase that reported both, so the process existed but was not yet visible to pgrep. That window was not reproducible on an idle VM -- pgrep found the process in 20 of 20 attempts there -- so the failure above is explained by this race but was not reproduced. Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #19045 M tests/zfs-tests/tests/functional/mmp/mmp_concurrent_import.ksh _____________________________________________________________________________________________________________ Commit: e82bce5abf6603c857d3d5dde662bbe1956f9756 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e82bce5abf6603c857d3d5dde662bbe1956f9756 Author: Alexander Moch (Thu 27 Aug 2026 17:33:38 BST) Committer: Tony Hutter (Wed 2 Dec 2026 23:06:44 GMT) ZTS: fix zinject argument order in mmp_write_uberblocks glibc's getopt() permutes argv by default (a GNU extension), reordering flags to the front regardless of where they appear. musl's getopt() is strict POSIX and stops parsing options at the first non-option argument. This test's zinject invocation places -L after the positional pool name ($TESTPOOL), which only glibc tolerates; under musl, zinject sees two leftover positional tokens ($TESTPOOL and the argument to the now- unparsed -L) and fails with "device (-d) injection requires a single pool name" instead of injecting the fault. Move "-L uber" before the positional pool name. This is accepted identically under glibc's permuting getopt(), so the change is a no-op on every other platform. Fixes the following tests on Alpine 3.24: - mmp/mmp_write_uberblocks Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #18994 M tests/zfs-tests/tests/functional/mmp/mmp_write_uberblocks.ksh _____________________________________________________________________________________________________________ Commit: 131bf445b609a17d7e0a260c7c989196ea4947c0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=131bf445b609a17d7e0a260c7c989196ea4947c0 Author: Michael Heller <75820586+mkhllr@users.noreply.github.com> (Tue 25 Aug 2026 04:06:04 BST) Committer: Tony Hutter (Wed 2 Dec 2026 23:06:44 GMT) ZTS: resume a suspended pool in mmp_reset_interval cleanup A pool suspended by MMP cannot be destroyed, so a failure which suspends it leaves the pool and its devices behind, and the test which runs next cannot create its own pool either. Since c3f2f1aa2 such a pool can be resumed, so clear it before the destroy. Add mmp_clear_suspended() to mmp.kshlib and call it from mmp_reset_interval cleanup. The helper lives in the library so the rest of the suite can take the same guard. Reviewed-by: Brian Behlendorf Signed-off-by: Michael Heller <75820586+mkhllr@users.noreply.github.com> Closes #18977 M tests/zfs-tests/tests/functional/mmp/mmp.kshlib M tests/zfs-tests/tests/functional/mmp/mmp_reset_interval.ksh _____________________________________________________________________________________________________________ Commit: c6e0d6c47d01658b24bb87fd4bb310fa995742d4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c6e0d6c47d01658b24bb87fd4bb310fa995742d4 Author: Michael Heller <75820586+mkhllr@users.noreply.github.com> (Sun 23 Aug 2026 21:10:55 BST) Committer: Tony Hutter (Wed 2 Dec 2026 23:06:44 GMT) ZTS: give mmp_reset_interval headroom above the suspend window A pool suspends when no MMP write succeeds for fail_intervals * multihost_interval ms. The test drives the interval down to MMP_INTERVAL_MIN while fail_intervals is as low as MMP_FAIL_INTERVALS_MIN, which arms a window of 200 ms. A test machine which stalls for longer than that suspends the pool, and the suspended pool then keeps its devices, so the test which runs next cannot create its own pool either. Add MMP_INTERVAL_TEST_MIN, half the default interval, and use it as the floor wherever this test varies the interval. The smallest window it can arm becomes 1000 ms. The floor is needed in the second loop as well as the first. An import restarts the mmp thread, which initialises the window flat at fail_intervals * interval with no smoothing, so the export and import actions could otherwise still arm a window as small as 200 ms. Reviewed-by: Brian Behlendorf Signed-off-by: Michael Heller <75820586+mkhllr@users.noreply.github.com> Closes #18977 M tests/zfs-tests/tests/functional/mmp/mmp.cfg M tests/zfs-tests/tests/functional/mmp/mmp_reset_interval.ksh _____________________________________________________________________________________________________________ Commit: fda1efb6323a3302274d293da6751e3cbd07dd1b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fda1efb6323a3302274d293da6751e3cbd07dd1b Author: Alexander Moch (Mon 24 Aug 2026 19:17:12 BST) Committer: Tony Hutter (Wed 2 Dec 2026 23:06:44 GMT) ZTS: fix mmp_set_hostid on Alpine Linux (musl libc) musl libc's gethostid() ignores /etc/hostid and returns 0, so the hostid verification in mmp_set_hostid always fails after zgenhostid writes the file. Fall back to reading /etc/hostid directly with od when the hostid command disagrees, which works correctly on both glibc and musl systems. Fixes the following tests on Alpine 3.24: - mmp/mmp_active_import - mmp/mmp_concurrent_import - mmp/mmp_exported_import - mmp/mmp_hostid - mmp/mmp_inactive_import - mmp/mmp_on_off - mmp/mmp_on_thread - mmp/mmp_on_uberblocks - mmp/mmp_on_zdb - mmp/mmp_reset_interval - mmp/mmp_write_distribution - mmp/mmp_write_slow_disk - mmp/mmp_write_uberblocks - mmp/multihost_history Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #18979 M tests/zfs-tests/tests/functional/mmp/mmp.kshlib _____________________________________________________________________________________________________________ Commit: d34d522f3d806c5c9f3533af7661a2f1d3d2c346 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d34d522f3d806c5c9f3533af7661a2f1d3d2c346 Author: Rob Norris (Wed 12 Aug 2026 03:28:59 BST) Committer: Tony Hutter (Wed 2 Dec 2026 23:06:44 GMT) license: fix CDDL license headers identified by spdxcheck All missed in 4b05f927dc by virtue of being "close enough". Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Signed-off-by: Rob Norris Closes #18914 M tests/zfs-tests/cmd/clone_after_trunc.c M tests/zfs-tests/tests/functional/block_cloning/block_cloning_after_trunc.ksh M tests/zfs-tests/tests/functional/cli_root/zhack/zhack_label_repair_001.ksh M tests/zfs-tests/tests/functional/cli_root/zhack/zhack_label_repair_002.ksh M tests/zfs-tests/tests/functional/cli_root/zhack/zhack_label_repair_003.ksh M tests/zfs-tests/tests/functional/cli_root/zhack/zhack_label_repair_004.ksh M tests/zfs-tests/tests/functional/cli_root/zhack/zhack_metaslab_leak.ksh M tests/zfs-tests/tests/functional/mmp/mmp_zhack_reclaim.ksh M tests/zfs-tests/tests/functional/rsend/send_invalid.ksh M tests/zfs-tests/tests/functional/rsend/send_partial_dataset.ksh _____________________________________________________________________________________________________________ Commit: 2f060981c93ab861fcacfe4e8c6b6e9fb34091b2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2f060981c93ab861fcacfe4e8c6b6e9fb34091b2 Author: Mark Johnston (Tue 1 Dec 2026 18:51:22 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:33 GMT) proc: Make the COW generation counter a saturating counter A sleeping thread can hold on to a COW counter value indefinitely while a sibling thread forces the process generation counter to wrap around. This can cause us to free a limit set while it's still in use. This can be exploited to obtain root privileges. Fix this by making p_cowgen a saturating counter: once it reaches UINT_MAX, the value is fixed, and we always take the slow path through thread_cow_update(). The per-process counter is reset at fork time, and I suspect it's quite unlikely that a process will hit the limit organically. Simplify the optimization in setrlimit which proactively syncs the thread's limit structure: now that the counter is saturating, we cannot infer from PROC_COW_CHANGECOUNT(td, p) == 1 that the thread and proc are in sync. Approved by: so Security: FreeBSD-SA-26:104.proc Security: CVE-2026-127763 Reported by: OpenAI Security Research Team Reviewed by: mjg Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D62292 M sys/kern/kern_resource.c M sys/kern/kern_thread.c M sys/sys/proc.h _____________________________________________________________________________________________________________ Commit: 913ba4afd2907f11af1a0442ac8938ae239ecc28 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=913ba4afd2907f11af1a0442ac8938ae239ecc28 Author: Mark Johnston (Mon 30 Nov 2026 23:02:41 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:33 GMT) ptrace: Fix interactions between remote requests and signal handling The debugger may have invoked execve in the debugee via PT_SC_REMOTE, in which case the sigacts structure may have been replaced and freed. Then, sigprocess() can operate on the freed structure. This can be exploited to obtain privileges. Further, we could have nested ptracestop() calls if the debugger requests a blocking syscall while a signal is pending. It is very hard to reason about the correctness of such calls. Make sigprocess() reload the process signal handler state after handing control to the debugger, this might change due to execve(). Set TDB_BOUNDARY in ptracestop() rather than in the AST handler and syscallret(). Plumb a flag through to achieve this. This also ensures that nested ptracestop() calls do not try to handle remote requests. Add a TDB_INREMOTEREQ flag, use it to ensure that we don't pause or consume signals while executing a remote request. Factor out the PT_SC_REMOTE and PT_COREDUMP handlers a bit. Add a regression test. Approved by: so Security: FreeBSD-SA-26:103.ptrace Security: CVE-2026-127758 Reported by: Albert E. of Metnir Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D62113 M sys/kern/kern_exit.c M sys/kern/kern_sig.c M sys/kern/kern_thread.c M sys/kern/subr_syscall.c M sys/kern/sys_process.c M sys/sys/proc.h M sys/sys/signalvar.h M tests/sys/kern/ptrace_test.c _____________________________________________________________________________________________________________ Commit: 4e0671285faeecfeaa690db21a47be4119cf4801 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4e0671285faeecfeaa690db21a47be4119cf4801 Author: Mark Johnston (Tue 1 Dec 2026 14:20:33 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:33 GMT) socket: Disallow listen on SS_ISDISCONNECTED sockets tcp_usr_shutdown() can race with listen(): it calls tcp_output after marking the socket disconnected. This can lead to corruption of the socket union. Simply disallow listen() on disconnected data sockets. This is not a portable feature and it seems unlikely that anything relies on it. Remove a recently added regression test which documents the old behaviour. Approved by: so Security: FreeBSD-SA-26:102.socket Security: CVE-2026-127762 Reported by: Laam Alif at Ibteda Digital Library Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D62220 M sys/kern/uipc_socket.c _____________________________________________________________________________________________________________ Commit: c6d700e1b71f1883ddc1414c48c348b3707939cb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c6d700e1b71f1883ddc1414c48c348b3707939cb Author: Maxim Konovalov (Tue 1 Dec 2026 00:32:43 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:33 GMT) proc: assert td belongs to p in PROC_COW_CHANGECOUNT PROC_COW_CHANGECOUNT(td, p) evaluates p->p_cowgen - td->td_cowgen, which is only meaningful when td is a thread of p. Otherwise it subtracts two unrelated copy-on-write generations, as the kern.proc.rlimit remote update path did before it was fixed. Assert td->td_proc == p to catch such a caller on INVARIANTS kernels. Approved by: so Security: FreeBSD-SA-26:101.setrlimit Suggested by: mjg MFC after: 2 weeks Assisted-by: Claude Opus 4.8 Reviewed by: olce, mjg Differential Revision: https://reviews.freebsd.org/D62162 M sys/sys/proc.h _____________________________________________________________________________________________________________ Commit: 8034a922418e9e64fffa341a7be7dc7a34e6a180 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8034a922418e9e64fffa341a7be7dc7a34e6a180 Author: Maxim Konovalov (Tue 1 Dec 2026 00:32:18 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:33 GMT) kern_proc_setrlimit: take the fast path only for curproc When a thread changes its own process' resource limits, kern_proc_setrlimit() syncs the thread to the new plimit and releases two references on the old one, the process' and the thread's, rather than letting the thread sync itself on its next kernel entry. It takes this path whenever the target process' copy-on-write generation is one ahead of the current thread's, but never checks that the target is the thread's own process. Another process' limits can be set through the kern.proc.rlimit sysctl (used by limits -P), Linux prlimit64(2) and the Linux fork path. On such a remote update the generations can still line up; lim_cowsync() then syncs and releases the calling thread's reference, yet both references are dropped from the target's old plimit. A thread of the target still points at that plimit through td_limit, so it is freed while live -- a use-after-free. Guard the fast path with the target being the calling thread's own process. A remote target's threads then keep their reference and pick up the new limits lazily, as before the optimization. Approved by: so Security: FreeBSD-SA-26:101.setrlimit Security: CVE-2026-127760 Reported by: tsune, GMO Cybersecurity by IERAE, via ZDI Fixes: 93288e2445fe ("Employ thread_cow_synced in setrlimit") MFC after: 3 days Assisted-by: Claude Opus 4.8 Reviewed by: olce, mjg, imp Differential Revision: https://reviews.freebsd.org/D62161 M sys/kern/kern_resource.c _____________________________________________________________________________________________________________ Commit: a97437b8d795d0b91987ee8c149ee65fd69cc17f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a97437b8d795d0b91987ee8c149ee65fd69cc17f Author: Maxim Konovalov (Mon 30 Nov 2026 23:39:57 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:32 GMT) unix: fix use-after-free in SCM_RIGHTS GC after MSG_PEEK uipc_soreceive_dgram() removes a datagram from the receive queue with STAILQ_REMOVE_HEAD() before pinning it in so_rcv.uxdg_peeked for a MSG_PEEK receive. STAILQ_REMOVE_HEAD() does not clear the removed element's link field, and m_stailqpkt is a union with m_nextpkt, so the pinned datagram keeps pointing at the datagram that used to follow it in the queue. That datagram is no longer referenced from here and can be freed independently, for example by unp_disconnect() when the sending peer closes. unp_scan_socket() passes so_rcv.uxdg_peeked to unp_scan(), which walks a record list through m_nextpkt while collecting SCM_RIGHTS garbage. It therefore followed the stale link into the freed datagram. On an INVARIANTS or KASAN kernel this is a panic in unp_remove_dead_ref(); on a release kernel it double-counts the rights in that record and lets the collector reclaim a socket that is still reachable. Clear m_nextpkt when the datagram is pinned so the scan stops at the single pinned record. The stream and seqpacket peek paths do not detach the peeked record, so they are not affected. The bug is reachable by any local process that can create a PF_UNIX SOCK_DGRAM socket and pass a descriptor; no privilege is required. Approved by: so Security: FreeBSD-SA-26:100.unix Security: CVE-2026-127759 Reported by: tsune of GMO Cybersecurity by IERAE, inc. Reported by: Zero Day Initiative (ZDI-CAN-35324) Co-authored-by: Claude Opus 4.8 Fixes: 458f475df8e5 ("unix/dgram: smart socket buffers for one-to-many sockets") MFC after: 2 weeks Reviewed by: markj Discussed with: glebius Differential Revision: https://reviews.freebsd.org/D62160 M sys/kern/uipc_usrreq.c M tests/sys/kern/unix_passfd_test.c _____________________________________________________________________________________________________________ Commit: 8a108344fc5e3b7c7bbee7782eb7fd8bbb329f29 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8a108344fc5e3b7c7bbee7782eb7fd8bbb329f29 Author: Mark Johnston (Mon 30 Nov 2026 22:46:04 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:32 GMT) linux: Release futexes and clear tids earlier during execve During execve, other threads in the process are terminated. As a part of this, they invoke the sv_thread_detach handler, which modifies user memory. This handler is invoked only after the new process image has been loaded, in which case they can modify memory in a setuid or setgid image process. Fix this by implementing sv_onexec_old, which explicitly runs before the new image is loaded. This is how native executables release robust mutexes. Approved by: so Security: FreeBSD-SA-26:99.linux Security: CVE-2026-127757 Reported by: mmacy, kbowling Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D62207 M sys/amd64/linux/linux_sysvec.c M sys/amd64/linux32/linux32_sysvec.c M sys/arm64/linux/linux_sysvec.c M sys/compat/linux/linux_emul.h M sys/compat/linux/linux_fork.c M sys/compat/linux/linux_futex.c M sys/i386/linux/linux_sysvec.c _____________________________________________________________________________________________________________ Commit: e8c2eb7855ca96fe5c0e0a97299a7a2822b48432 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e8c2eb7855ca96fe5c0e0a97299a7a2822b48432 Author: Emmanuel Vadot (Thu 19 Nov 2026 07:58:00 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:32 GMT) pam_xdg: Do not follow symbolic links when removing the runtime directory When the last session of a user ends, the runtime directory is removed by root. The user owns the directory and can still have processes (always without the linger option), so its content can change while it is removed. remove_dir() took the type of each entry from readdir() and opened the directories with openat(fd, name, 0). An entry replaced by a symbolic link between the two was followed and the content of its target was removed as root. Open every entry relative to its parent with O_DIRECTORY | O_NOFOLLOW and unlink what is not a directory at that moment, never what it points to. Also stay on the filesystem of the runtime directory, do not enter a directory that belongs to neither the user nor root, and limit the depth of the recursion. remove_dir() now always consumes the descriptor it is given, the callers closed it a second time. Looking for the last session file also opened a user-controlled entry as root: it followed a symbolic link and waited forever for the writer of a FIFO. Open it with O_NOFOLLOW | O_NONBLOCK. Document in pam_xdg(8) when the directory is removed and what is left in place. Tested on amd64 by changing the tree while the last session was closing: the files of the target tree were removed with the old code and left with the new one. ssh (with pam_xdg in the session stack of sshd) and login still create and remove the directory, also with overlapping sessions. Approved by: so Security: FreeBSD-SA-26:97.pam_xdg Security: CVE-2026-127761 Reported by: Othmane Tamagart Fixes: 6e69612d5df1 ("pam: Add pam_xdg module") M lib/libpam/modules/pam_xdg/pam_xdg.8 M lib/libpam/modules/pam_xdg/pam_xdg.c _____________________________________________________________________________________________________________ Commit: 3968104df93085e54244078c1847db73e72e5e0b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3968104df93085e54244078c1847db73e72e5e0b Author: Mark Johnston (Mon 30 Nov 2026 19:42:59 GMT) Committer: Mark Johnston (Wed 2 Dec 2026 19:25:32 GMT) arm64: Apply boundary checking to ranges in the ARM64_GUARD_PAGE handler Otherwise pmap_bti_set() may end up partially operating on a largepage mapping. In the case of a L2 block mapping, it'll demote the mapping. Then, a subsequent fault will cause pmap_enter_largepage() to remap the whole large page, but without a break-before-make sequence, so we could end up with 4KB TLB entries pointing into the large page. If the largepage object is subsequently destroyed, those TLB entries won't be invalidated, and would allow userspace to access freed memory. Fix this using the vm_map_check_boundary() helper. Don't bother checking for non-canonical addresses, as pmap_bti_set() handles that. Approved by: so Security: FreeBSD-SA-26:95.arm64 Security: CVE-2026-127755 Reviewed by: alc, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61956 M sys/arm64/arm64/sys_machdep.c _____________________________________________________________________________________________________________ Commit: 7e57f3ce1654c0e6478958b23fec68be63606974 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7e57f3ce1654c0e6478958b23fec68be63606974 Author: Ananda Bhattacharya <3408818+anandab@users.noreply.github.com> (Wed 2 Dec 2026 17:29:44 GMT) Committer: Tony Hutter (Wed 2 Dec 2026 17:31:08 GMT) CI: update Alpine Linux 3.24 image to 3.24.4 (#20033) Bump the Alpine 3.24 QEMU cloudinit image from 3.24.2-r2 to 3.24.4-r0. Assisted-by: Antigravity Signed-off-by: Ananda Bhattacharya Reviewed-by: Tony Hutter Reviewed-by: Alexander Moch M .github/workflows/scripts/qemu-2-start.sh _____________________________________________________________________________________________________________ Commit: 1cf5e3954aee44692c6d71f4b96f5e42351fd8fc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1cf5e3954aee44692c6d71f4b96f5e42351fd8fc Author: Piotr Kubaj (Sat 21 Nov 2026 17:58:09 GMT) Committer: Piotr Kubaj (Wed 2 Dec 2026 17:30:23 GMT) libc/powerpc64: save v20-v31 in setjmp setjmp and its variants save the non-volatile GPRs and FPRs, but not the non-volatile vector registers v20-v31, so after a longjmp they hold whatever the code that jumped left in them. Julia runs into this when it switches tasks with sigsetjmp/siglongjmp: the compiler keeps vector values in v20-v31 and they come back from another task. jmp_buf has had room for them all along. Add setjmp entry points that save them and pick those with ifuncs when the CPU has Altivec, so the same libc still works on CPUs without it, like the e5500. They note in the buffer where the registers went, and longjmp loads them back only if the note is there. rtld can't use ifuncs, so it builds its own sigsetjmp that checks hwcap when it's called. It needs the registers saved too: when it restarts a symbol lookup to upgrade its lock, it longjmps out of functions that use v31, and a lazily bound call came back with v31 zeroed. Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61751 (cherry picked from commit a8bf2ad0f12794abd69bd697f49e6ad195d9aeff) M lib/libc/powerpc64/gen/Makefile.inc M lib/libc/powerpc64/gen/_setjmp.S A lib/libc/powerpc64/gen/_setjmp_resolver.c M lib/libc/powerpc64/gen/setjmp.S A lib/libc/powerpc64/gen/setjmp_resolver.c M lib/libc/powerpc64/gen/sigsetjmp.S A lib/libc/powerpc64/gen/sigsetjmp_resolver.c M libexec/rtld-elf/rtld-libc/Makefile.inc _____________________________________________________________________________________________________________ Commit: ce05ea51996994070882f0dd1a65cb319fac6cdd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ce05ea51996994070882f0dd1a65cb319fac6cdd Author: Piotr Kubaj (Wed 23 Sep 2026 10:29:11 BST) Committer: Piotr Kubaj (Wed 2 Dec 2026 17:30:22 GMT) powerpc: fix an off-by-one when widening 32-bit syscall arguments cpu_fetch_syscall_args() widens the arguments a 32-bit syscall passes on the stack. The loop started at narg instead of narg - 1 and wrote td_sa.args[narg], one past the end of the eight entry array, which is td_sigblock_ptr in struct thread. NARGREG is 8, so a plain syscall never enters the loop, but syscall(2) and __syscall(2) lower the register count to 7 and 6, and an eight argument syscall made that way, like freebsd32_sendfile with its two slot off_t, corrupted the pointer. A 32-bit program calling sendfile through syscall(2) changed its own td_sigblock_ptr (watched with DTrace on cpu_fetch_syscall_args); it leaves it alone now. Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61884 (cherry picked from commit ac0cfa40876b3083bbde56d67a258324eea82842) M sys/powerpc/powerpc/trap.c _____________________________________________________________________________________________________________ Commit: 87a732fa614d14b96356adf516f33a1723b9567a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=87a732fa614d14b96356adf516f33a1723b9567a Author: Piotr Kubaj (Wed 23 Sep 2026 10:29:10 BST) Committer: Piotr Kubaj (Wed 2 Dec 2026 17:30:21 GMT) powerpc: don't save the FPU state again in freebsd32_sigreturn() set_mcontext32() restores the floating point registers from the context, then freebsd32_sigreturn() called save_fpu(), which writes the hardware registers, the ones the signal handler left behind, back into the PCB. The process resumed with the handler's registers instead of its own. sys_sigreturn() has no such call; drop it here too. A 32-bit program that loads f14, takes a signal whose handler loads another value and reads f14 back got the handler's value on a COMPAT_FREEBSD32 kernel; it gets its own now, like the 64-bit build. Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61792 (cherry picked from commit 6a83ecfe812ea97f06b3d3640edb41c7dfa8702e) M sys/powerpc/powerpc/exec_machdep.c _____________________________________________________________________________________________________________ Commit: 234bc2159be3334aef5f1fc97567fe9eea3a40ff URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=234bc2159be3334aef5f1fc97567fe9eea3a40ff Author: Piotr Kubaj (Mon 21 Sep 2026 20:48:04 BST) Committer: Piotr Kubaj (Wed 2 Dec 2026 17:30:21 GMT) fbt/powerpc: don't instrument the trap entry path On powerpc an fbt probe is a program interrupt that goes through the normal trap path, powerpc_interrupt() -> trap() -> dtrace_trap(). A probe on trap() or powerpc_interrupt() fires again on the way to its own handler, so it recurses until the kernel stack runs out, and enabling fbt::trap:entry panics the machine right away. Skip both functions, like aarch64 and riscv skip their exception handlers. Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61660 (cherry picked from commit 4588b6358ab140be5553377ec203b65d5f1d0728) M sys/cddl/dev/fbt/powerpc/fbt_isa.c _____________________________________________________________________________________________________________ Commit: 7877bcca7bf573c034ce2e0581ba02363a17919f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7877bcca7bf573c034ce2e0581ba02363a17919f Author: Ananda Bhattacharya <3408818+anandab@users.noreply.github.com> (Wed 2 Dec 2026 00:39:21 GMT) Committer: Tony Hutter (Wed 2 Dec 2026 17:20:56 GMT) CI: calculate and prioritize fast apt mirrors in QEMU setup GitHub-hosted ubuntu-24.04 runners land on both Azure and AWS EC2, where default cloud apt mirrors frequently throttle or stall until the 60 minute Setup QEMU timeout. Probe a random sample of US mirrors in parallel, rank them fastest-first in /etc/apt/apt-mirrors.txt with short socket timeouts and the official Ubuntu mirrors as fallbacks, and retry on the next mirror if apt-get install exceeds 5 minutes. Also run apt-get update only after the mirrors are ranked, and fix the quoting of the unneeded package pattern so the preinstalled packages are actually removed. Assisted-by: Antigravity Reviewed-by: Brian Behlendorf Signed-off-by: Ananda Bhattacharya Closes #20027 M .github/workflows/scripts/qemu-1-setup.sh _____________________________________________________________________________________________________________ Commit: 5a22911b7d8dc14c4599bf61aff7280e2c6049b7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5a22911b7d8dc14c4599bf61aff7280e2c6049b7 Author: Kevin Bowling (Sat 14 Nov 2026 00:33:19 GMT) Committer: Kevin Bowling (Wed 2 Dec 2026 16:16:34 GMT) loader.efi: Measure boot policy and loaded contents with a TPM Use the EFI TCG2 protocol, or the legacy TCG protocol on TPM 1.2 firmware, to extend the loader PCRs and record EV_IPL events in the firmware event log. Extend PCR 8 with the final kernel environment and the type, name, and arguments of each loaded boot input. Prefix both record types with versioned, NUL-terminated domain strings. These make the records self-identifying and define an explicit measured policy encoding. Store the complete measured pre-images in the event data so attestation and diagnostic tools can audit the values without an out of band copy. Extend PCR 9 with the initialized contents of kernels, modules, and raw boot inputs, but record only descriptive labels rather than copying file contents into the event log. The Lua module table has no defined traversal order. Retain content ranges as loader-private metadata, then sort the final file list before extending either PCR. This produces repeatable values and excludes failed or subsequently unloaded files. Measure initialized loaded memory rather than source files. This covers zero initialized ELF data while excluding undefined gaps and debugging information. Do not measure entropy, timing data, or GELI key files. Exclude loader passwords and the GELI passphrase from the kernel environment measurement so low entropy secrets do not acquire a public event-log digest or appear in the event data. Measurement remains best effort. Warn and stop measuring after the first firmware or allocation error rather than preventing the system from booting. Validated with the EFI TCG protocol on a ThinkPad T430 TPM 1.2 using coreboot with a measured EDK2 payload. Replaying the loader events reproduced PCRs 8 and 9, and both PCRs repeated across clean boots. TPM 2.0 testing on a commercial AMI EFI firmware likewise produced stable PCRs across clean boots. A raw firmware-log dump decoded by tpm2_eventlog using tpm(4) changes that will come later confirmed the versioned PCR 8 pre-images and the descriptive PCR 9 event data. On stable/15, build tpm.c against the loader's existing EFI types. Provide the Uefi.h expected by the EDK2 TCG headers only when compiling tpm.c and use the branch's EFI_ERROR_CODE macro. Reviewed by: imp Relnotes: yes Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59141 (cherry picked from commit f429c4a6ee50c99fbff672a3eaa7e5cdaa198a16) M stand/common/bootstrap.h M stand/common/load_elf.c M stand/common/load_elf_obj.c M stand/common/module.c M stand/efi/include/efilib.h M stand/efi/libefi/Makefile A stand/efi/libefi/tpm-compat/Uefi.h A stand/efi/libefi/tpm.c M stand/efi/loader/bootinfo.c M stand/efi/loader/loader_efi.h M stand/efi/loader/main.c M stand/man/loader.efi.8 M sys/sys/linker.h _____________________________________________________________________________________________________________ Commit: a5cc06a1d26bdafbb23ed469d74a49dfd989a70f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a5cc06a1d26bdafbb23ed469d74a49dfd989a70f Author: Warner Losh (Thu 24 Sep 2026 07:34:26 BST) Committer: Kevin Bowling (Wed 2 Dec 2026 16:13:52 GMT) edk2: Import Loadfile2.h and TcgService.h from edk2-stable202502 Verbatim import of these files, with unix line endings. Sponsored by: Netflix (cherry picked from commit e960cb4c033c8f65af1e8b09310c1bd5414f21ac) A sys/contrib/edk2/Include/Protocol/LoadFile2.h A sys/contrib/edk2/Include/Protocol/TcgService.h _____________________________________________________________________________________________________________ Commit: b086f234e365971148f3e4fd0583a05bed3a4ac2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b086f234e365971148f3e4fd0583a05bed3a4ac2 Author: Warner Losh (Sun 16 Nov 2025 17:36:43 GMT) Committer: Kevin Bowling (Wed 2 Dec 2026 16:13:38 GMT) tpm20: Bring in the edk2 includes for TPM 2.0 support Bring these in from edk2-stable202502. They will be used in a forthcoming TPM 2.0 support code. Sponsored by: Netflix (cherry picked from commit 1aa241b4ee657b8a62a0d86b91f82cf792f08dca) A sys/contrib/edk2/Include/IndustryStandard/Tpm12.h A sys/contrib/edk2/Include/IndustryStandard/Tpm20.h A sys/contrib/edk2/Include/IndustryStandard/UefiTcgPlatform.h A sys/contrib/edk2/Include/Protocol/Tcg2Protocol.h _____________________________________________________________________________________________________________ Commit: 2ad0885cd95a64790bb47ba722fcdbaded56461a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2ad0885cd95a64790bb47ba722fcdbaded56461a Author: Konstantin Belousov (Tue 13 Oct 2026 13:17:57 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 14:47:57 GMT) tests/sys/fs/ufs/sync_test.c: hide the alignment warning Reported and tested by: dhw Fixes: afe1dec7425c ("tests: add UFS synchronous write durability tests") Sponsored by: The FreeBSD Foundation (cherry picked from commit af08f29e5fc05d1e67370b36800b20ac95937a51) M tests/sys/fs/ufs/sync_test.c _____________________________________________________________________________________________________________ Commit: cbf9467b188bcdd4ac9a96b9e285f58def231ab5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cbf9467b188bcdd4ac9a96b9e285f58def231ab5 Author: Maxim Sobolev (Tue 13 Oct 2026 03:45:12 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:03 GMT) tests: add UFS synchronous write durability tests Check that once fsync(2), fdatasync(2), or a write(2) with O_SYNC or O_DSYNC returns, the new data, the file size and every block pointer leading to the data are on disk. The cases append a block, fill a hole, append the first block that needs an indirect block and append below an existing indirect block. Two more append after another write left a new direct block unsynced, which with soft updates cuts the size and the later pointers of an inode written meanwhile. With O_SYNC and O_DSYNC on soft updates, those also check that the open already made the unsynced block durable. Each case runs on UFS without soft updates, with soft updates and with SU+J. The file systems live on md(4) and the checks read the inode, the indirect block and the data block straight from the device with libufs right after the synchronous call returns. There is no cache in front of the disk device, so this shows what would survive a crash at that moment without having to crash anything. Sponsored by: Sippy Software, Inc. Reviewed by: pho Tested by: pho Differential Revision: https://reviews.freebsd.org/D60134 MFC after: 1 month (cherry picked from commit afe1dec7425c9f3bec1aafcfed15229a385894eb) M etc/mtree/BSD.tests.dist M tests/sys/fs/Makefile A tests/sys/fs/ufs/Makefile A tests/sys/fs/ufs/sync_test.c _____________________________________________________________________________________________________________ Commit: ec28cf2d459503bc4bc20ae54d082b88903eefcc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ec28cf2d459503bc4bc20ae54d082b88903eefcc Author: Maxim Sobolev (Tue 13 Oct 2026 03:44:40 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:03 GMT) ufs: do not let a rolled back inode write end a data-only sync With soft updates, ffs_syncvnode() writes the inode between its passes while buffers are still dirty. That write can go out with new block pointers rolled back, for instance a new indirect block whose contents are only written in a later pass, yet ffs_update() clears IN_SIZEMOD and IN_IBLKDATA because the write was synchronous. A data-only sync then decides at the end that the inode need not be written, and fdatasync(2) or an O_DSYNC write that allocated the first indirect block returned with the on-disk inode not pointing to it. Note on entry whether a data-only sync has to write the inode, and base the final write, done once all dependencies are flushed, on that alone: nothing else can set IN_SIZEMOD or IN_IBLKDATA meanwhile, as the vnode is locked. A full sync always writes the inode last and was not affected. Sponsored by: Sippy Software, Inc. Reviewed by: kib Tested by: pho Differential Revision: https://reviews.freebsd.org/D60134 MFC after: 1 month (cherry picked from commit e8534ba3ad36b88e94de0a3174e9ab7ac04a929d) M sys/ufs/ffs/ffs_vnops.c _____________________________________________________________________________________________________________ Commit: 674a9cd5c72f7506831ec20b81cf23aac3c5c83d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=674a9cd5c72f7506831ec20b81cf23aac3c5c83d Author: Maxim Sobolev (Tue 13 Oct 2026 03:42:31 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:03 GMT) ufs: flush soft updates dependencies for O_SYNC and O_DSYNC writes For a synchronous write, ffs_write() writes the data buffers with bwrite() and then the inode with ffs_update(vp, 1). With soft updates, a new block pointer can only reach the disk after the dependencies of the block, such as the cylinder group map that allocates it, are written. Until then initiate_write_inodeblock_ufs[12]() and initiate_write_indirdep() roll the pointer, and for an extending write the size, back in the buffer being written. Nothing in the write path flushes those dependencies, so the inode went out with the old size and pointers, ffs_update() cleared IN_SIZEMOD and IN_IBLKDATA, and a crash before the syncer rewrote the inode lost data that O_SYNC or O_DSYNC promised was on stable storage. The same held for a new block below an indirect block, which ffs_balloc() writes synchronously but with the pointer rolled back. When soft updates are enabled and the write allocated blocks, finish it with ffs_syncvnode(), as fsync(2) and fdatasync(2) do: it flushes the dependencies, rewrites the rolled back indirect blocks and writes the inode, or for O_DSYNC only writes the inode when IN_SIZEMOD or IN_IBLKDATA say it is needed. The flags cannot tell whether the write allocated anything, because allocating a block below an existing indirect block sets neither, so compare the inode's block count before and after the write instead. A write that allocated nothing, such as an overwrite of existing blocks, adds no dependencies of its own and keeps writing only the inode, so that it does not pay for a sync of the whole vnode. ffs_syncvnode() only drops the vnode lock when it has to resolve directory dependencies, which ffs_write() never sees. ffs_syncvnode() also writes whatever other descriptors left dirty on the vnode, so the first synchronous write after a lot of buffered writes would pay for all of them. To put that cost on the open instead, where it is less unexpected for a descriptor opened for synchronous writes, add ffs_open() and, with soft updates, sync the vnode there when a regular file is opened for writing with O_SYNC or O_DSYNC, the same way the writes would: a full sync for O_SYNC, a data-only one for O_DSYNC. It calls ffs_syncvnode() rather than VOP_FSYNC(), whose softdep_fsync() may drop the vnode lock in the middle of the open. The sync on open only moves work that the writes would otherwise do, so it is skipped rather than waited for when writes are suspended, and its errors do not fail the open. Without soft updates the writes sync nothing but their own blocks and the inode, so there is nothing to move and the open does not sync. Sponsored by: Sippy Software, Inc. Reviewed by: kib Tested by: pho Differential Revision: https://reviews.freebsd.org/D60134 MFC after: 1 month (cherry picked from commit 26d84bb8bf9b4acd0aa80b0208c1ba4fc9646ff3) M sys/ufs/ffs/ffs_vnops.c _____________________________________________________________________________________________________________ Commit: f86a242054247c782bf72e3cb854e2b7ccf7b8dd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f86a242054247c782bf72e3cb854e2b7ccf7b8dd Author: Maxim Sobolev (Tue 13 Oct 2026 03:41:27 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:03 GMT) ufs: make fdatasync(2) write dirty indirect blocks A data-only ffs_syncvnode() skips dirty indirect blocks on file systems without soft updates, and with soft updates stops making passes once only indirect blocks are left dirty. Indirect blocks only get dirty when the block pointers in them change, and those pointers are what makes a newly allocated block reachable. So when fdatasync() follows a write that extended the file or filled a hole past the direct blocks, the data and the inode size reached the disk but the pointer to the new block did not, and a crash lost the "synced" data. With soft updates the indirect block was usually written once, with the new pointer rolled back, and never rewritten. POSIX requires fdatasync() to write the metadata needed to retrieve the data, which 52488b51489 already acknowledged for the inode, so treat dirty indirect blocks the same way for a data-only sync as for a full one. This restores the loop to what it was before 2f514f92cf0. Plain overwrites, the case data-only sync is meant to speed up, do not dirty indirect blocks and still write neither them nor the inode. Fixes: 2f514f92cf0 ("Implement VOP_FDATASYNC() for UFS.") Sponsored by: Sippy Software, Inc. Reviewed by: kib Tested by: pho Differential Revision: https://reviews.freebsd.org/D60134 MFC after: 1 month (cherry picked from commit 1498efc4243e963503179547221335940e2aeded) M sys/ufs/ffs/ffs_vnops.c _____________________________________________________________________________________________________________ Commit: 5d73fd07d992d25c48b74d65fd25ec4cc8a88bbd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5d73fd07d992d25c48b74d65fd25ec4cc8a88bbd Author: Maxim Sobolev (Tue 13 Oct 2026 03:39:05 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:03 GMT) ufs: make fdatasync(2) and O_DSYNC writes update the inode ffs_syncvnode() in the DATA_ONLY case and ffs_write() for IO_DATASYNC decide whether the inode has to be written by testing IN_SIZEMOD and IN_IBLKDATA against ip->i_flags, the chflags(2) word, instead of the in-core state ip->i_flag. IN_SIZEMOD and IN_IBLKDATA alias UF_READONLY and UF_ARCHIVE, so for ordinary files the test was always false: after an fdatasync() or an O_DSYNC write that extended a file or filled a hole, the data blocks were on disk but the inode size and block pointers were not, and a crash before the syncer got to the inode lost the "synced" data. Files with uarchive or urdonly set got a synchronous inode write on every call instead. journal_mount() has the same mixup and sets IN_MODIFIED in i_flags, which leaves UF_OPAQUE set on the in-core .sujournal inode. The synchronous ffs_update() that follows writes the inode regardless, so only the stray flag is fixed here. Fixes: 7428630b757 ("UFS: write inode block for fdatasync(2) if pointers in inode where allocated") Fixes: 52488b51489 ("Further evaluation of the POSIX spec for fdatasync()...") Fixes: e7347be9e34 ("ffs: Support O_DSYNC.") Fixes: 113db2dddb7 ("Merge soft-updates journaling from projects/suj/head into head.") Sponsored by: Sippy Software, Inc. Reviewed by: kib Tested by: pho Differential Revision: https://reviews.freebsd.org/D60134 MFC after: 1 month (cherry picked from commit 8ff663dde22fe9f50ba5d71d0237bec9b9b44683) M sys/ufs/ffs/ffs_softdep.c M sys/ufs/ffs/ffs_vnops.c _____________________________________________________________________________________________________________ Commit: 666fde7827d7b232e0a9d9e48494b1b3c62d0fc0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=666fde7827d7b232e0a9d9e48494b1b3c62d0fc0 Author: Maxim Sobolev (Tue 13 Oct 2026 04:59:13 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:03 GMT) stress2: add a test for forced unmount racing mkdir at UFS_LINK_MAX On a soft updates file system, keep a directory at UFS_LINK_MAX with workers removing and recreating subdirectories in it, so that mkdir(2) keeps going through ufs_sync_nlink(), and force-unmount, check and remount the file system in a loop. The workers work relative to the directory: a lookup through the mount point would wait for the unmount on the covered vnode lock and never race with it. Before the fix, the first forced unmount deadlocked with mkdir(2) sleeping in vfs_busy(). With dtrace=1, count the vfs_busy() calls made during an unmount by caller, and the mkdir(2) calls that synced and restarted with ERELOOKUP during an unmount, which shows that the race was hit. Sponsored by: Sippy Software, Inc. Reviewed by: pho Tested by: pho Differential Revision: https://reviews.freebsd.org/D60204 MFC after: 1 month (cherry picked from commit 2aca5deff7a0fb9f6f082d562f1ca85e707f674e) A tools/test/stress2/misc/nlink6.sh _____________________________________________________________________________________________________________ Commit: a0eb12ccb664cb306213a5df81179f2de9075041 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a0eb12ccb664cb306213a5df81179f2de9075041 Author: Maxim Sobolev (Tue 13 Oct 2026 04:57:26 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:02 GMT) ufs: do not busy or reference the mount in ufs_sync_nlink() With soft updates, mkdir(2), link(2) and rename(2) into a directory whose i_nlink is at UFS_LINK_MAX while i_effnlink is below it call ufs_sync_nlink1() to sync the file system and restart. It busied the mount with vfs_busy(mp, 0), which sleeps for as long as an unmount is in progress. The caller is still between vn_start_write() and vn_finished_write() there, and the unmount, once it has set MNTK_UNMOUNT, goes on to suspend writes in VFS_UNMOUNT() and waits in vfs_write_suspend() for that write to end. Neither could make progress, and every later vfs_busy() of the mount, such as from getfsstat(2) or a lookup crossing the mount point, hung behind them. The window is wide: after setting MNTK_UNMOUNT, the unmount waits for the busy references to drain, which includes another thread already syncing in ufs_sync_nlink1(), and for vfs_periodic(). A forced unmount of a file system with a directory at the link limit under mkdir/rmdir load hits it within seconds. This is the deadlock that 29d03af1e4da fixed for VOP_RENAME(), and the same reasoning applies: the caller's vn_start_write() already keeps the unmount from getting past the write suspension, before which ffs_unmount() tears nothing down, so the mount point does not need to be busied for VFS_SYNC(). The extra vfs_ref() taken by the callers is not needed either: a successful vn_start_write() keeps the reference that VOP_GETWRITEMOUNT() took until vn_finished_write() drops it. With both gone, ufs_sync_nlink1() was only VFS_SYNC() and ERELOOKUP, so remove it and call VFS_SYNC() directly from ufs_sync_nlink() and the two places in ufs_rename(). Fixes: 8db679af66b0 ("UFS: make mkdir() and link() reliable when using SU and reaching nlink limit") Fixes: bc6d0d72f4f4 ("UFS rename: make it reliable when using SU and reaching nlink limit") Sponsored by: Sippy Software, Inc. Reviewed by: kib Tested by: pho Differential Revision: https://reviews.freebsd.org/D60204 MFC after: 1 month (cherry picked from commit a6728314ff6d6c73cab55c5bbd0025ed4ab56d53) M sys/ufs/ufs/ufs_vnops.c _____________________________________________________________________________________________________________ Commit: ad272cff9966f82849f7c136a4a8d5778e9b8c1f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ad272cff9966f82849f7c136a4a8d5778e9b8c1f Author: Maxim Sobolev (Sun 4 Oct 2026 20:24:16 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:02 GMT) stress2: add a reproducer for the flush_newblk_dep() "Bad newblk" panic flush_pagedep_deps() drops the soft updates lock to obtain the vnode of a new directory. If its MKDIR_BODY dependency completes in that window, the lookup of the directory's first block in flush_newblk_dep() can find a stale allocindir left behind by a previous owner of the same block, relocated by ffs_reallocblks() and freed, and panic. The test grows interleaved files past UFS_NDADDR to keep clusters being relocated, while other workers create subdirectories in a parent with IN_ENDOFF set, so that ffs_vput_pair() syncs it, and fsync() them to complete the mkdir dependencies. The file system layout and the way the writers put their blocks on disk are arranged so that a new directory takes over a freed block whose dependency is still retained; the details are in the script. With dtrace=1, the test also counts how often this precondition is met, which works on a fixed kernel too. PR: 297976 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297976 ) Reviewed by: kib, pho Tested by: pho Sponsored by: Sippy Software, Inc. Differential revision: https://reviews.freebsd.org/D59356 (cherry picked from commit a127039dd0c24bc18b3513322d22fd8fee6724eb) A tools/test/stress2/misc/mkdir_blkreuse.sh _____________________________________________________________________________________________________________ Commit: 7a1e61bb67e9cc1afa7febacb19a17305d2d7945 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7a1e61bb67e9cc1afa7febacb19a17305d2d7945 Author: Maxim Sobolev (Sun 4 Oct 2026 20:24:39 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:02 GMT) ffs: revalidate mkdir dependencies after vnode lookup flush_pagedep_deps() drops the soft updates lock while obtaining the vnode of a newly created directory with get_parent_vp(). The MKDIR_BODY dependency may complete during this interval, invalidating the diradd selected before the lock was dropped. Once the directory's allocdirect is retired, the lookup of its first block by block number in flush_newblk_dep() can find an older dependency for a previous use of the same physical block. The newblk hash is not unique by block number: when ffs_reallocblks() relocates a cluster, the completed allocindirs of the old blocks stay on the indirdep's ir_completehd until the indirect block pointer in the inode is written, while the old blocks are already free and may be allocated to a new directory. flush_newblk_dep() then finds a D_ALLOCINDIR where it expects a D_ALLOCDIRECT and panics with "flush_newblk_dep: Bad newblk". Retain the vnode returned by get_parent_vp(), reacquire the soft updates lock, and restart dependency selection. Use the retained vnode only when the newly selected MKDIR_BODY dependency refers to the same inode. Enter flush_newblk_dep() with the soft updates lock held and pass it the associated diradd. Recheck MKDIR_BODY after every operation that may drop the lock, so that completion during the helper's retry loop cannot result in another lookup of the retired allocation. Keep the vnode handling in flush_pagedep_deps(), which owns the retained vnode and the list of unfinished diradds, and move the dependency selection into flush_pagedep_deps1(). The latter never acquires or releases a vnode: it returns EJUSTRETURN with the inode number when it needs one, or with 0 when the retained vnode must be released first, and every call restarts the selection, so a vnode is only used for a diradd found while it was held. This also merges the two get_parent_vp() call sites. Every restart goes through that return: obtaining or releasing a vnode, and continuing after jwait() or getdirtybuf() had to wait with the softdep lock dropped. The diradds deferred on the unfinished list are put back on the pagedep's list before the lock is dropped for a restart, so that none are kept off it while other threads can run. Assert that flush_newblk_dep() is called with the vnode exclusively locked. This preserves the original newblk dependency ordering and retains the existing assertion for an active MKDIR_BODY dependency that resolves to an unexpected dependency type. PR: 297976 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297976 ) Reviewed by: kib Tested by: pho Sponsored by: Sippy Software, Inc. Differential revision: https://reviews.freebsd.org/D59356 (cherry picked from commit 479c98287ee63496bd44d8d64d63c9ec16323e33) M sys/ufs/ffs/ffs_softdep.c _____________________________________________________________________________________________________________ Commit: 4b6d4f0f98bf5c9be639e84f9250296a22d2552e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4b6d4f0f98bf5c9be639e84f9250296a22d2552e Author: Maxim Sobolev (Thu 1 Oct 2026 17:26:06 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:02 GMT) stress2: Fix script bugs in gnop6.sh, gnop7.sh and fdatasync*.sh gnop6.sh recorded the checkfs result with "checkfs ... || s=1 && s=0", which the shell parses as "(checkfs || s=1) && s=0", so the test passed even when the file system check failed. gnop7.sh only sets s when unmount or fsck_ffs fails and ends with "exit $s". On a clean run s is unset, and the script exits with the status of the preceding "[ $notloaded ] && gnop unload", which is 1 whenever geom_nop was already loaded, for instance by an earlier test. fdatasync.sh and fdatasync2.sh ran "df -i $RUNDIR" before creating the directory. With a RUNDIR that does not exist yet, df failed, the test printed "[: -lt: unexpected operator" and the free inode check was skipped. Reviewed by: pho Differential Revision: https://reviews.freebsd.org/D60136 Sponsored by: Sippy Software, Inc. MFC after: 2 weeks (cherry picked from commit a68d11d310dd5100a18f187c1108df6703315989) M tools/test/stress2/misc/fdatasync.sh M tools/test/stress2/misc/fdatasync2.sh M tools/test/stress2/misc/gnop6.sh M tools/test/stress2/misc/gnop7.sh _____________________________________________________________________________________________________________ Commit: c87adb97ac0437fd52792ab4847c821005040d69 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c87adb97ac0437fd52792ab4847c821005040d69 Author: Maxim Sobolev (Wed 30 Sep 2026 06:11:10 BST) Committer: Maxim Sobolev (Wed 2 Dec 2026 06:24:02 GMT) ufs: report a mismatched ".." in ufs_dirrewrite() When ufs_rename() moves a directory to a new parent and ufs_dirrewrite() fails to rewrite its ".." entry, it reports "bad dir ... rename: missing .. entry" whatever the error. ufs_dirrewrite() never finds a missing "..", though: it fails with EIDRM when the ".." entry names another inode than the expected one, and otherwise only when the directory block cannot be read or written. The latter happens for every directory rename in flight when the device goes away under a forcibly unmounted file system, and the log then fills with reports of directories that are intact on disk. Report the EIDRM case with ufs_dirbad() in ufs_dirrewrite() itself, so that all of its callers get the same diagnostic, and drop the report from ufs_rename(). Errors from the lower layers are not reported, as usual for an I/O initiator. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60137 (cherry picked from commit a179e72489f8601f37b9039c86d3f224c73b3d51) M sys/ufs/ufs/ufs_lookup.c M sys/ufs/ufs/ufs_vnops.c _____________________________________________________________________________________________________________ Commit: 4e033451cba2795a152d17caed8b88d71db28012 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4e033451cba2795a152d17caed8b88d71db28012 Author: Xin LI (Wed 25 Nov 2026 23:23:23 GMT) Committer: Xin LI (Wed 2 Dec 2026 05:20:16 GMT) MFV: zstd 1.6.0 Security: CVE-2026-124851 MFC after: 3 days (cherry picked from commit 0412a4034e277629245c8bd87978680216bb06b5) M lib/libzstd/Makefile M stand/defs.mk M sys/conf/kern.pre.mk M sys/contrib/zstd/CHANGELOG M sys/contrib/zstd/FREEBSD-Xlist M sys/contrib/zstd/FREEBSD-upgrade M sys/contrib/zstd/README.md M sys/contrib/zstd/lib/README.md M sys/contrib/zstd/lib/common/allocations.h M sys/contrib/zstd/lib/common/bits.h M sys/contrib/zstd/lib/common/bitstream.h A sys/contrib/zstd/lib/common/bmi2.h M sys/contrib/zstd/lib/common/compiler.h M sys/contrib/zstd/lib/common/entropy_common.c M sys/contrib/zstd/lib/common/fse_decompress.c M sys/contrib/zstd/lib/common/pool.c M sys/contrib/zstd/lib/common/portability_macros.h M sys/contrib/zstd/lib/common/threading.c M sys/contrib/zstd/lib/common/zstd_common.c M sys/contrib/zstd/lib/common/zstd_internal.h M sys/contrib/zstd/lib/compress/hist.c M sys/contrib/zstd/lib/compress/hist.h M sys/contrib/zstd/lib/compress/huf_compress.c M sys/contrib/zstd/lib/compress/zstd_compress.c M sys/contrib/zstd/lib/compress/zstd_compress_internal.h M sys/contrib/zstd/lib/compress/zstd_compress_sequences.c M sys/contrib/zstd/lib/compress/zstd_compress_superblock.c M sys/contrib/zstd/lib/compress/zstd_double_fast.c M sys/contrib/zstd/lib/compress/zstd_fast.c M sys/contrib/zstd/lib/compress/zstd_lazy.c M sys/contrib/zstd/lib/compress/zstd_ldm.c M sys/contrib/zstd/lib/compress/zstd_ldm.h M sys/contrib/zstd/lib/compress/zstd_opt.c M sys/contrib/zstd/lib/compress/zstd_preSplit.c M sys/contrib/zstd/lib/compress/zstdmt_compress.c M sys/contrib/zstd/lib/compress/zstdmt_compress.h M sys/contrib/zstd/lib/decompress/huf_decompress.c M sys/contrib/zstd/lib/decompress/huf_decompress_amd64.S M sys/contrib/zstd/lib/decompress/zstd_ddict.c M sys/contrib/zstd/lib/decompress/zstd_ddict.h M sys/contrib/zstd/lib/decompress/zstd_decompress.c M sys/contrib/zstd/lib/decompress/zstd_decompress_block.c M sys/contrib/zstd/lib/decompress/zstd_decompress_internal.h M sys/contrib/zstd/lib/dictBuilder/cover.c M sys/contrib/zstd/lib/dictBuilder/divsufsort.c M sys/contrib/zstd/lib/dictBuilder/fastcover.c M sys/contrib/zstd/lib/dictBuilder/zdict.c M sys/contrib/zstd/lib/legacy/zstd_v01.c M sys/contrib/zstd/lib/legacy/zstd_v02.c M sys/contrib/zstd/lib/legacy/zstd_v03.c M sys/contrib/zstd/lib/legacy/zstd_v04.c M sys/contrib/zstd/lib/legacy/zstd_v05.c M sys/contrib/zstd/lib/legacy/zstd_v06.c M sys/contrib/zstd/lib/legacy/zstd_v07.c M sys/contrib/zstd/lib/libzstd.mk M sys/contrib/zstd/lib/libzstd.pc.in M sys/contrib/zstd/lib/module.modulemap M sys/contrib/zstd/lib/zstd.h M sys/contrib/zstd/programs/README.md M sys/contrib/zstd/programs/benchfn.c M sys/contrib/zstd/programs/benchzstd.c M sys/contrib/zstd/programs/benchzstd.h M sys/contrib/zstd/programs/dibio.c M sys/contrib/zstd/programs/fileio.c M sys/contrib/zstd/programs/fileio.h M sys/contrib/zstd/programs/fileio_asyncio.c M sys/contrib/zstd/programs/fileio_types.h M sys/contrib/zstd/programs/platform.h M sys/contrib/zstd/programs/timefn.c M sys/contrib/zstd/programs/util.c M sys/contrib/zstd/programs/util.h M sys/contrib/zstd/programs/zstd.1 M sys/contrib/zstd/programs/zstd.1.md M sys/contrib/zstd/programs/zstdcli.c M sys/contrib/zstd/programs/zstdcli_trace.c M sys/contrib/zstd/programs/zstdgrep M sys/contrib/zstd/programs/zstdgrep.1 M sys/contrib/zstd/programs/zstdgrep.1.md M sys/contrib/zstd/programs/zstdless.1 M sys/contrib/zstd/zlibWrapper/gzguts.h M sys/contrib/zstd/zlibWrapper/gzlib.c M sys/contrib/zstd/zlibWrapper/gzwrite.c M usr.bin/zstd/Makefile _____________________________________________________________________________________________________________ Commit: eca31f2d9e6ec5b1ed6abf89584b962d58601f16 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=eca31f2d9e6ec5b1ed6abf89584b962d58601f16 Author: Warner Losh (Fri 26 Jun 2026 15:45:42 BST) Committer: Xin LI (Wed 2 Dec 2026 05:19:38 GMT) loader: Add defines for ZLIB_CFLAGS, BZIP2_CFLAGS and ZSTD_CFLAGS These are scattered in several places, so centralize the setting of these flags. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D57861 (cherry picked from commit 53811ed6237972f92a80627ea2c17ece212315a7) M stand/defs.mk M stand/efi/gptboot/Makefile M stand/efi/loader/Makefile M stand/i386/gptboot/Makefile M stand/i386/gptzfsboot/Makefile M stand/i386/loader/Makefile M stand/libsa/Makefile M stand/loader.mk M stand/uboot/Makefile _____________________________________________________________________________________________________________ Commit: ff37959bb05f68b50fa4c829859cf1ecdb73fc56 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ff37959bb05f68b50fa4c829859cf1ecdb73fc56 Author: Will Rouesnel (Wed 14 Oct 2026 16:33:57 BST) Committer: Tony Hutter (Wed 2 Dec 2026 01:20:13 GMT) Don't busy-loop in txg_sync_thread() while the pool is suspended Since c3f2f1aa2 ("vdev probe to slow disk can stall mmp write checker"), txg_sync_thread() skips the sync of a suspended pool with a bare "continue". Whatever ended its wait (an expired txg timer, a txg_wait_synced() caller, an active scan or pending frees) stays true while the pool is suspended, so the thread loops without sleeping, holding tx_sync_lock, until the pool resumes. An exiting thread loops forever. A pool suspended while no txg is syncing, which is how an MMP suspension usually happens, therefore costs a whole CPU. Kernels without full preemption report soft lockups and RCU stalls, and every caller of txg_wait_synced() or txg_wait_open() blocks on the mutex instead of the condvar, so TXG_WAIT_SIGNAL and TXG_WAIT_SUSPEND waits can no longer be interrupted or return early. Wait on tx_sync_more_cv for up to a second instead, and let an exiting thread go on to exit. This makes the fault/suspend_txg_sync_idle test pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19815 M module/zfs/txg.c _____________________________________________________________________________________________________________ Commit: b74e1f5153b81fdb0c553f4a79f99ce28340d967 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b74e1f5153b81fdb0c553f4a79f99ce28340d967 Author: Will Rouesnel (Wed 14 Oct 2026 16:33:23 BST) Committer: Tony Hutter (Wed 2 Dec 2026 01:20:13 GMT) ZTS: txg_sync must not spin on a suspended pool Add fault/suspend_txg_sync_idle. It suspends a single-vdev pool while no txg is syncing: a read error starts a vdev probe, the probe's label write fails, and the async thread faults the vdev and suspends the pool. It then checks that txg_sync uses almost no CPU while a read and a write wait for the pool to resume, and that "zpool clear" resumes the pool, with both completing and the data intact after an export and import. Without a fix, txg_sync runs at 100% of a CPU from the moment the txg timer expires until the pool resumes. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19815 M tests/runfiles/linux.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/fault/suspend_txg_sync_idle.ksh _____________________________________________________________________________________________________________ Commit: 2f7b010384800342385e537a685d56b5a069a997 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2f7b010384800342385e537a685d56b5a069a997 Author: George Melikov (Wed 7 Oct 2026 11:13:59 BST) Committer: Tony Hutter (Wed 2 Dec 2026 01:20:13 GMT) ZTS: use IPv4 loopback explicitly in HTTPS key tests The Python HTTPS fixture binds an IPv4 socket, while clients resolve localhost independently and can select IPv6. Use the same explicit IPv4 loopback address for the server and keylocation URLs. Add an IP subject alternative name to the test certificate so verification continues to validate the endpoint. Debian 13 CI reset every HTTPS key request without logging a request at the fixture. This change removes address-family ambiguity; the original reset's precise cause is not established by the CI logs. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: George Melikov Closes #19265 M tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key.cfg M tests/zfs-tests/tests/functional/cli_root/zfs_load-key/zfs_load-key_common.kshlib _____________________________________________________________________________________________________________ Commit: 4fa094912631af597002cba8f76640e315631163 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4fa094912631af597002cba8f76640e315631163 Author: Alexander Motin (Mon 9 Feb 2026 18:17:56 GMT) Committer: Tony Hutter (Wed 2 Dec 2026 01:20:13 GMT) Allow rewrite skip cloned and snapshotted blocks Rewrite of cloned and snapshotted blocks can allocate additional space, that may be undesired. In some cases it may have sense to still rewrite snapshotted blocks, expecting the snapshots to rotate with time, freeing space. In other cases rewrite of cloned blocks may be acceptable, despite persistent space usage increase. For this reason add them as separate flags to `zfs rewrite`. Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Reviewed-by: Ameer Hamza Signed-off-by: Alexander Motin Closes #18179 M cmd/zfs/zfs_main.c M include/sys/dmu_objset.h M include/sys/fs/zfs.h M man/man8/zfs-rewrite.8 M module/zfs/dmu_objset.c M module/zfs/zfs_vnops.c M tests/runfiles/common.run M tests/runfiles/sanity.run M tests/zfs-tests/include/libtest.shlib M tests/zfs-tests/tests/Makefile.am M tests/zfs-tests/tests/functional/block_cloning/block_cloning.kshlib A tests/zfs-tests/tests/functional/cli_root/zfs_rewrite/zfs_rewrite_skip_clone.ksh A tests/zfs-tests/tests/functional/cli_root/zfs_rewrite/zfs_rewrite_skip_snapshot.ksh _____________________________________________________________________________________________________________ Commit: 8758499c800fde9f899c72b379793c14d69c2a65 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8758499c800fde9f899c72b379793c14d69c2a65 Author: Maxim Konovalov (Mon 16 Nov 2026 00:34:34 GMT) Committer: Maxim Konovalov (Wed 2 Dec 2026 00:33:38 GMT) traceroute6: do not print an ECN report for an echo reply packet_ok() takes the ECN bits from the IPv6 header quoted by an ICMPv6 error message. The destination answers an ICMPv6 probe (-I) with an echo reply, which repeats the ICMPv6 data of the probe but not its IPv6 header, so for that reply the main loop used whatever an earlier packet had left in ecn. With -E the ECN report for the destination therefore repeated the bits quoted by an earlier ICMPv6 error. If no ICMPv6 error had been received before, because the destination is one hop away, the first hops are skipped with -f or the routers on the path are silent, ecn was still uninitialized: $ traceroute6 -E -I -n -q 1 ::1 traceroute6 to ::1 (::1) from ::1, 64 hops max, 20 byte packets 1 ::1 0.055 ms (ecn=bleached) Print the ECN report only when there is a quoted header. Document that there is no ECN report for an echo reply. Reviewed by: jlduran, Kevin Day Fixes: 0c2218d1d5fd ("traceroute6: Implement ECN bleaching detection") MFC after: 2 weeks Co-Authored-By: Claude Opus 5.5 Differential Revision: https://reviews.freebsd.org/D61607 (cherry picked from commit 098eea00500eaf1f2e495cac3d43c393ecbcb15a) M usr.sbin/traceroute6/traceroute6.8 M usr.sbin/traceroute6/traceroute6.c _____________________________________________________________________________________________________________ Commit: b09f9a9b4b8e490018b25f747f73b0900fc78b1d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b09f9a9b4b8e490018b25f747f73b0900fc78b1d Author: Maxim Konovalov (Mon 16 Nov 2026 00:28:47 GMT) Committer: Maxim Konovalov (Wed 2 Dec 2026 00:33:37 GMT) traceroute: do not use a stale or NULL quoted header with -E packet_ok() points the global hip at the IP header quoted by an ICMP error message and nothing resets it afterwards. The destination answers an ICMP probe (-I) with an echo reply, which repeats the ICMP data of the probe but not its IP header, so for that reply the main loop used whatever an earlier packet had left in hip. With -E the ECN report for the destination was therefore read from the payload of the echo reply. If no ICMP error had been received before, because the destination is one hop away, the first hops are skipped with -f or the routers on the path are silent, hip was still NULL and traceroute crashed: $ traceroute -E -I 127.0.0.1 traceroute to 127.0.0.1 (127.0.0.1), 64 hops max, 48 byte packets Segmentation fault With -D the stale quote was compared with the probe. Reset hip and hiplen for every received packet and print the ECN report only when there is a quoted header. Document that there is no ECN report for an echo reply. Reviewed by: jlduran, Kevin Day Fixes: 8aafae66394f ("traceroute: Implement ECN bleaching detection") MFC after: 2 weeks Co-Authored-By: Claude Opus 5.5 Differential Revision: https://reviews.freebsd.org/D61606 (cherry picked from commit d6473780b8d9d7ac4a3ed40a455fae6302df708e) M usr.sbin/traceroute/traceroute.8 M usr.sbin/traceroute/traceroute.c _____________________________________________________________________________________________________________ Commit: f6e6b8e6ddbdba1975c81b4c626ac45e62353314 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f6e6b8e6ddbdba1975c81b4c626ac45e62353314 Author: Maxim Konovalov (Sat 14 Nov 2026 13:25:45 GMT) Committer: Maxim Konovalov (Tue 1 Dec 2026 20:13:27 GMT) ipfw: print the log, not the config, for "nat show log" Add a test too. PR: 286122 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286122 ) Reviewed by: ae Fixes: d6164b77f8b7 ("Make ipfw_nat module use IP_FW3 codes.") Found with: Claude Opus 4.8 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D61588 (cherry picked from commit 611046b15dbb92226c346cfbd61dffb4b402b4f6) M sbin/ipfw/nat.c M tests/sys/netpfil/ipfw/Makefile A tests/sys/netpfil/ipfw/nat.sh _____________________________________________________________________________________________________________ Commit: a2ba339ccf9c87f8398b98a16e1edd57f81bf155 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a2ba339ccf9c87f8398b98a16e1edd57f81bf155 Author: Maxim Konovalov (Thu 12 Nov 2026 08:39:57 GMT) Committer: Maxim Konovalov (Tue 1 Dec 2026 17:59:12 GMT) ipfw_nat: fix the buffer length check in IP_FW_NAT44_XGETLOG nat44_get_log() compared the user buffer length against the request header plus another ipfw_obj_header instead of the request header plus the log buffer. A buffer that passed this check but was shorter than the full reply left too little room in the sockopt window, so ipfw_get_sopt_space() returned NULL and the following memcpy() of the log wrote through a NULL pointer, panicking the kernel. The handler was cloned from nat44_get_cfg() in the commit below, under the convention of that time where ucfg->size held the payload only and the ipfw_obj_header was added back in the length check. 9f925e8a920e ("Fix IP_FW_NAT44_LIST_NAT size calculation.") later switched nat44_get_cfg() to count the header in ucfg->size and reduced its check to "valsize < size", but nat44_get_log() was not updated. It kept the stale idiom, whose check counts the header twice, and by coincidence of the struct sizes that never leaves room for the log. Compare against the full reply length and check the result of ipfw_get_sopt_space(). Also report the full reply length, including the ipfw_obj_header, in the size field returned with ENOMEM, as nat44_get_cfg() now does: ipfw(8) retries with that value, and the old one was itself too short to pass the check. Add tests: getlog_short_buffer - every buffer shorter than the reply gets ENOMEM and the reply length; the reply length works. getlog_retry - a retry with the length reported along with ENOMEM succeeds. Without the fix, getlog_short_buffer panics the kernel and getlog_retry fails. Reviewed by: ae Fixes: d6164b77f8b7 ("Make ipfw_nat module use IP_FW3 codes.") Co-Authored-By: Claude Opus 4.8 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D61587 (cherry picked from commit 1c8725c9e900da333d376e22133a95193805ded3) M sys/netpfil/ipfw/ip_fw_nat.c M tests/sys/netpfil/ipfw/Makefile A tests/sys/netpfil/ipfw/nat_getlog.c _____________________________________________________________________________________________________________ Commit: 17dfc1a4680c52c352333bd6dd89815b4b0019e9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=17dfc1a4680c52c352333bd6dd89815b4b0019e9 Author: Philip Paeps (Tue 24 Nov 2026 04:07:45 GMT) Committer: Philip Paeps (Tue 1 Dec 2026 01:50:27 GMT) contrib/expat: import expat 2.11.0 Changes: https://github.com/libexpat/libexpat/blob/R_2_11_0/expat/Changes Security: CVE-2026-124317 Security: CVE-2026-128241 Security: CVE-2026-134703 (cherry picked from commit aeab7c6e62d1ff6ba3d33edf2d853dcebb10c1fe) M contrib/expat/Changes M contrib/expat/Makefile.am M contrib/expat/Makefile.in M contrib/expat/README.md M contrib/expat/configure.ac M contrib/expat/doc/Makefile.in M contrib/expat/doc/reference.html M contrib/expat/doc/xmlwf.1 M contrib/expat/doc/xmlwf.xml M contrib/expat/examples/Makefile.in M contrib/expat/examples/element_declarations.c M contrib/expat/examples/elements.c M contrib/expat/examples/outline.c A contrib/expat/gennmtab/Makefile.am A contrib/expat/gennmtab/Makefile.in A contrib/expat/gennmtab/gennmtab.c M contrib/expat/lib/Makefile.in M contrib/expat/lib/expat.h M contrib/expat/lib/internal.h M contrib/expat/lib/latin1tab.h M contrib/expat/lib/libexpat.map.in M contrib/expat/lib/nametab.h M contrib/expat/lib/xmlparse.c M contrib/expat/lib/xmltok.c M contrib/expat/lib/xmltok.h M contrib/expat/lib/xmltok_impl.c M contrib/expat/lib/xmltok_ns.c M contrib/expat/tests/Makefile.am M contrib/expat/tests/Makefile.in M contrib/expat/tests/acc_tests.c M contrib/expat/tests/alloc_tests.c M contrib/expat/tests/basic_tests.c M contrib/expat/tests/benchmark/Makefile.in M contrib/expat/tests/common.c M contrib/expat/tests/common.h M contrib/expat/tests/entities_tests.c A contrib/expat/tests/fifth_edition_tests.c A contrib/expat/tests/fifth_edition_tests.h M contrib/expat/tests/handlers.c M contrib/expat/tests/misc_tests.c M contrib/expat/tests/ns_tests.c M contrib/expat/tests/nsalloc_tests.c M contrib/expat/tests/props_tests.c M contrib/expat/tests/runtests.c A contrib/expat/tests/utfx.c A contrib/expat/tests/utfx.h M contrib/expat/tests/xmltest.log.expected M contrib/expat/tests/xmltest.sh M contrib/expat/xmlwf/Makefile.in M contrib/expat/xmlwf/filemap.h M contrib/expat/xmlwf/readfilemap.c M contrib/expat/xmlwf/unixfilemap.c M contrib/expat/xmlwf/win32filemap.c M contrib/expat/xmlwf/xmlfile.c M contrib/expat/xmlwf/xmltchar.h M contrib/expat/xmlwf/xmlwf.c M lib/libexpat/expat_config.h M lib/libexpat/libbsdxml.3 _____________________________________________________________________________________________________________ Commit: bedca0f9b9418c949097eb452585db4b33bdbea7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bedca0f9b9418c949097eb452585db4b33bdbea7 Author: Dag-Erling Smørgrav (Tue 17 Nov 2026 11:44:02 GMT) Committer: Dag-Erling Smørgrav (Tue 1 Dec 2026 00:25:55 GMT) libfetch: Fix buffer overruns in FTP code * When parsing the reply to a CWD, PWD, or CDUP command, if we ran out of space in the destination buffer, we would correctly terminate the loop, but then incorrectly see the remaining length as non-zero, causing us to write a terminating NUL one past the end of the buffer and report success instead of a protocol error. Additionally, the code would fail to notice an improperly terminated pathname, and was hard to follow, so rewrite the entire loop. * When comparing the current working directory to the intended working directory to calculate the minimal operation to get from one to the other, if the current working directory was an empty string, we would improperly read one byte below the start of the intended working directory. MFC after: 1 week Reported by: Laam Alif at Ibteda Digital Library Differential Revision: https://reviews.freebsd.org/D61502 (cherry picked from commit 243ac45800de387065246271b13f5b5cb3f6c857) M lib/libfetch/ftp.c _____________________________________________________________________________________________________________ Commit: ce113c7e3aa4e7d246703ee250d023b462d2cfda URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ce113c7e3aa4e7d246703ee250d023b462d2cfda Author: Alexander Motin (Thu 3 Sep 2026 17:24:57 BST) Committer: Tony Hutter (Mon 30 Nov 2026 23:48:14 GMT) Write uberblocks only to vdevs used by the txg Instead of picking random top-level vdevs to write the uberblock to, prefer the ones actually written during this txg. This allows idle vdevs to stay asleep, which is important for pools with spun-down HDDs. If fewer than SPA_SYNC_MIN_VDEVS were written, top up from special and dedup vdevs, which are expected to have no seek penalty. Pools without those classes keep the old behavior of topping up from any vdev, preserving the uberblock redundancy where there is nothing to gain by reducing it. While here, pass spa explicitly to vdev_config_sync() and vdev_uberblock_sync_list() instead of deriving it from svd[0]. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Motin Closes #19003 M include/sys/vdev.h M module/zfs/spa.c M module/zfs/vdev_label.c M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: d1a315e82a8aea91950b27dcbea793719d21e077 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d1a315e82a8aea91950b27dcbea793719d21e077 Author: Paul Dagnelie (Tue 6 Oct 2026 19:32:17 BST) Committer: Tony Hutter (Mon 30 Nov 2026 23:48:14 GMT) Add alloc factor logic RAIDz vdevs always perform allocations in multiples of nparity + 1 sectors. This is to prevent fragmentation from leaving small scattered records everywhere that cannot be allocated and just pollute the spacemaps. This rule was always preserved until the introduction of the allocation range code, which allows allocation of not just specific sizes, but anywhere in a range. The sizes that end up being allocated may not be a multiple of nparity + 1 sectors in certain cases (primarily when the allocation is at the end of a metaslab). If that happens, when converting from the asize to the psize and back, we can end up with two different psize values, which can theoretically cause issues in a few different ways. This PR adds logic to the metaslab code to check if there is a factor that the allocations must be a multiple of, and if we're doing a dynamically sized allocation, ensures that the allocation meets that requirement. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Paul Dagnelie Closes #19026 M include/sys/vdev.h M include/sys/vdev_impl.h M lib/libspl/include/os/linux/sys/sysmacros.h M module/zfs/metaslab.c M module/zfs/vdev.c M module/zfs/vdev_draid.c M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: 387c1b16dbb2ea81fd40957feda5edd645090f67 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=387c1b16dbb2ea81fd40957feda5edd645090f67 Author: Ameer Hamza (Tue 22 Sep 2026 20:21:25 BST) Committer: Tony Hutter (Mon 30 Nov 2026 23:48:14 GMT) Linux: report a snapshot's fsid from its .zfs/snapshot entry statfs() on a control directory inode ('.zfs', '.zfs/snapshot', or an unmounted snapshot entry reached without the automount) fails with EIO because zfs_statvfs() verifies the znode's SA handle, which these inodes lack. Handle them explicitly: '.zfs' and '.zfs/snapshot' report the containing filesystem, and a '.zfs/snapshot/' entry reports the fsid of its snapshot, read from the dataset's bonus buffer (the objset id is encoded in the entry's inode number) without instantiating the dataset, so a probe costs a few microseconds. This identifies a snapshot without mounting it: open the entry with O_PATH, which does not trigger the automount, and fstatfs() it. The value is what the snapshot's superblock reports once mounted, and path based statfs() still automounts as before. An NFS server resolving a file handle for an unmounted snapshot (expired, or imported on another node) can probe entries instead of mounting every snapshot until one matches. Add the statfs_nomount helper, the snapdir_statfs_fsid test and a zfsconcepts(7) note. [2.4.5] snapdir_statfs_fsid.ksh backport provided by @tigerblue77 Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Signed-off-by: Ameer Hamza Closes #19174 M include/os/linux/zfs/sys/zfs_ctldir.h M man/man7/zfsconcepts.7 M module/os/linux/zfs/zfs_ctldir.c M module/os/linux/zfs/zfs_vfsops.c M tests/runfiles/linux.run M tests/zfs-tests/cmd/.gitignore M tests/zfs-tests/cmd/Makefile.am A tests/zfs-tests/cmd/statfs_nomount.c M tests/zfs-tests/include/commands.cfg M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/snapshot/snapdir_statfs_fsid.ksh _____________________________________________________________________________________________________________ Commit: 85106bda8ba69ff47d2742f2e8df186a8bb3d2d6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=85106bda8ba69ff47d2742f2e8df186a8bb3d2d6 Author: Kamil Monicz (Tue 13 Oct 2026 01:04:58 BST) Committer: Tony Hutter (Mon 30 Nov 2026 23:48:14 GMT) zio: drop a queued scan read only when its block is freed zio_free_sync() tells the scan that a block is freed before it knows whether the space will be released. A dedup or cloned block with other references is only dereferenced, but the scan still removes its queued read. The sorted scan queue holds one read per location, so the block's remaining references are never verified or repaired: a scrub reports nothing and a resilver can leave the block missing on the new device. Notify the scan where the space is actually released: in zio_free_sync() just before an immediate free, which also receives a dedup block's last free from ddt_phys_free(), and in zio_dva_free(), which cloned and gang blocks reach once they are no longer referenced. The regression verifies physical sharing, forces sorted scanning, and bounds in-flight I/O so the shared block remains queued behind a larger file after traversal. Removing one reference must leave the other file readable from the replacement alone. Reviewed-by: Brian Behlendorf Signed-off-by: Kamil Monicz Closes #19170 M module/zfs/zio.c M tests/runfiles/common.run M tests/zfs-tests/include/tunables.cfg M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/block_cloning/block_cloning_resilver_free.ksh _____________________________________________________________________________________________________________ Commit: d62fc398c63746cb67aba7dbd2736326a2d3daf5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d62fc398c63746cb67aba7dbd2736326a2d3daf5 Author: Ryan Moeller (Sat 7 Nov 2026 20:33:54 GMT) Committer: Tony Hutter (Mon 30 Nov 2026 23:48:14 GMT) simd_aarch64 (Linux): Unsplit statement expression The `get_ftr()` macro splits statement expression tokens between a macro and its callers, which is unhygienic and gets flagged by clang due to `-Wcompound-token-split-by-macro`. With `--enable-debug` the warning is an error, which breaks the build. Move the parentheses around the expression into the macro so it forms a complete statement expression. Fixes: cef125313548 ("Add SHA2 SIMD feature tests for Linux") Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Ryan Moeller Closes #19650 Closes #19769 M include/os/linux/kernel/linux/simd_aarch64.h _____________________________________________________________________________________________________________ Commit: a42c30b84308d596a1ec219bd4a7094f6ded9b19 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a42c30b84308d596a1ec219bd4a7094f6ded9b19 Author: Kamil Monicz (Sun 23 Aug 2026 14:37:43 BST) Committer: Tony Hutter (Mon 30 Nov 2026 23:48:14 GMT) zio: prevent DDT extension across RAIDZ expansion A flat DDT entry can gain DVAs after its initial write, but stores one physical birth. If a pre-expansion entry receives a post-expansion RAIDZ DVA, the BP cannot represent both width epochs. RAIDZ then reads the new copy at the old geometry; repair can map beyond its allocation. Before extending a live phys, compare each newly allocated RAIDZ top's logical width at the phys birth with its width at the allocation txg. Refuse only a mismatched epoch and retry without dedup. This produces a fresh BP whose DVAs share one birth. Same-epoch extensions, non-RAIDZ tops, new entries, and traditional DDT tables keep their behavior. Add raidz_expand_008_pos, which checks the block pointers written: extension before expansion, refusal across a 3-to-4 disk expansion for a 128K block and for a 16K block, whose allocation has the same size at both widths, a clean scrub, and extension of a new entry after the expansion. The last case distinguishes this exact check from a permanent pool-wide gate. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18826 M include/sys/vdev_raidz.h M module/zfs/vdev_raidz.c M module/zfs/zio.c M tests/runfiles/common.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/raidz/raidz_expand_008_pos.ksh _____________________________________________________________________________________________________________ Commit: ee6025b08b55285d09c2b8a684f6c2b9ecf3dffa URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ee6025b08b55285d09c2b8a684f6c2b9ecf3dffa Author: Kamil Monicz (Sun 23 Aug 2026 14:37:34 BST) Committer: Tony Hutter (Mon 30 Nov 2026 23:48:14 GMT) zio: consume DDT fallback errors before reporting DDT extension deliberately returns EAGAIN when adding a copy would need a mixed gang and non-gang block pointer. The logical write classified that error as a non-dedup retry only after normal error reporting. It therefore recorded a persistent data error and posted an ereport for a hole BP even though the plain-write retry succeeded. Classify an allocating dedup write's EAGAIN after transforms. Disable dedup, clear the deliberate error, and request reexecution before vdev statistics and ereports are processed. The retry terminates because dedup changes monotonically to false. A backend EAGAIN receives at most one non-dedup retry before ordinary error handling. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18826 M module/zfs/zio.c _____________________________________________________________________________________________________________ Commit: 0f7a75e0c01fc74800ed54638dad75a14dcb30ed URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0f7a75e0c01fc74800ed54638dad75a14dcb30ed Author: Gordon Tetlow (Mon 23 Nov 2026 20:41:55 GMT) Committer: Mark Johnston (Mon 30 Nov 2026 19:49:49 GMT) bsnmp: drop messages with an unsupported SNMP version snmp_pdu_decode_header() returned SNMP_CODE_BADENC for an unknown version. snmp_input_start() treats BADENC as a bad value in a SET and carries on, so its version check, which runs only for SNMP_CODE_OK, was skipped. The message then reached snmp_pdu_auth_access(), which with snmp_vacm loaded switched on pdu->version and called abort() for SNMP_Verr. A single unauthenticated packet could stop bsnmpd. Return SNMP_CODE_BADVERS instead, as bsnmplib(3) documents, so the message is counted in snmpInBadVersions and dropped. Remove the mapping in snmp_pdu_decode() that tried to do this but was never reached, and have snmp_pdu_auth_access() deny an unknown version rather than abort. Reported by: Hila Cohen, Apiiro (hillalee on github) Reviewed by: harti MFC after: 3 days (cherry picked from commit 72d7d152c2ff4708928ae1f94b940b5528ba5013) M contrib/bsnmp/lib/snmp.c M contrib/bsnmp/snmpd/main.c _____________________________________________________________________________________________________________ Commit: 1751658c01285c9747d3b724aba3f8af1e185df4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1751658c01285c9747d3b724aba3f8af1e185df4 Author: Tijl Coosemans (Mon 14 Apr 2025 10:03:21 BST) Committer: Tijl Coosemans (Sun 29 Nov 2026 20:08:46 GMT) hid: Increase HID_ITEM_MAXUSAGE to 32 I have a Logitech mouse that reports 16 buttons. Bump to 32 to be a little more future proof. This increases the size of struct hid_item but this struct is not exported to userland. Reviewed by: wulf Differential Revision: https://reviews.freebsd.org/D59273 (cherry picked from commit 5cc15fef2656b078982d453b8915379b47ff0e88) M sys/dev/hid/hid.h _____________________________________________________________________________________________________________ Commit: 0f5a6a0ec860e38be23ad3a13950c8698518858e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0f5a6a0ec860e38be23ad3a13950c8698518858e Author: Abdelkader Boudih (Thu 3 Sep 2026 16:34:11 BST) Committer: Abdelkader Boudih (Sat 28 Nov 2026 15:05:33 GMT) nvme: limit namespace character-device I/O size The namespace character device does not initialize si_iosize_max, so physio falls back to DFLTPHYS and can produce a bio larger than the qpair payload DMA tag on a controller whose maximum transfer size is below 64KB. Such a bio fails DMA mapping and is never submitted. Approved by: ngie (co-mentor) MFC after: 1 week Reviewed by: ngie, imp Differential Revision: https://reviews.freebsd.org/D59152 (cherry picked from commit 125ec0e30785bb0cbca7aa6c0b1a34b75e53078d) M sys/dev/nvme/nvme_ns.c _____________________________________________________________________________________________________________ Commit: 5ec829c147fc429d5fee2dffba44522b32f360fc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5ec829c147fc429d5fee2dffba44522b32f360fc Author: Abdelkader Boudih (Thu 3 Sep 2026 16:33:49 BST) Committer: Abdelkader Boudih (Sat 28 Nov 2026 15:05:33 GMT) nvme: complete requests when payload DMA mapping fails bus_dmamap_load_mem() reports most mapping failures, including EFBIG, only through its callback and then returns zero. nvme_payload_map() logged the error without telling the submission path, so the tracker stayed on the outstanding list with no command submitted and no timeout armed, stalling all later I/O on the queue behind it. Approved by: ngie (co-mentor) MFC after: 1 week Reviewed by: ngie, imp Differential Revision: https://reviews.freebsd.org/D59151 (cherry picked from commit b90c2b13e975c803e426a6e6f080a6089d08e6ab) M sys/dev/nvme/nvme_qpair.c _____________________________________________________________________________________________________________ Commit: 1a1eeeaf30aaa099daf7f23ed469886a4f5c7534 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1a1eeeaf30aaa099daf7f23ed469886a4f5c7534 Author: Abdelkader Boudih (Sat 29 Aug 2026 19:46:23 BST) Committer: Abdelkader Boudih (Sat 28 Nov 2026 15:05:33 GMT) gpioled: defer gpio pin writes to a taskqueue led(4) invoked the led_t callback with its mutex held, including from the blink callout, so the callback must not sleep. PR: 251032 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251032 ) MFC After: 1 week Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D59263 (cherry picked from commit cd7541977e2ce5aebeeeae3e8a375256ee1ecb1d) M sys/dev/gpio/gpioled_fdt.c _____________________________________________________________________________________________________________ Commit: 3a171a61ac53b1f061280da047b2ab84f2c1ddb9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3a171a61ac53b1f061280da047b2ab84f2c1ddb9 Author: Brad Smith (Sat 10 Jan 2026 03:57:17 GMT) Committer: Ed Maste (Sat 28 Nov 2026 14:16:05 GMT) rge: Add to amd64 GENERIC and to sys/conf/NOTES Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D54609 (cherry picked from commit e28529ca4d34084452ca9acf63aa40279787239a) M sys/amd64/conf/GENERIC M sys/conf/NOTES _____________________________________________________________________________________________________________ Commit: 50b2581de9e67a0159523b99ddb36faeb298fb8c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=50b2581de9e67a0159523b99ddb36faeb298fb8c Author: Brad Smith (Sat 17 Jan 2026 03:23:19 GMT) Committer: Ed Maste (Sat 28 Nov 2026 14:13:27 GMT) aq: Add to amd64 GENERIC and to sys/conf/NOTES Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D54633 (cherry picked from commit c75eff16ef54aaae7b5dc52ed894cc73a855f469) M sys/amd64/conf/GENERIC M sys/conf/NOTES _____________________________________________________________________________________________________________ Commit: 2fb943ab3ce744788fa2108d913ecf7753dba3d0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2fb943ab3ce744788fa2108d913ecf7753dba3d0 Author: Maxim Konovalov (Tue 17 Nov 2026 02:22:18 GMT) Committer: Maxim Konovalov (Fri 27 Nov 2026 20:42:12 GMT) ipfw: fix off-by-one in the IP_FW_XADD rule count check Restore the pre-4a77657cbc0 ">=" comparison, otherwise parse_rules_v1() writes one rule_check_info beyond the allocated buffer. Do the same in ip_fw_compat.c, which has a copy of the loop but is not built at the moment. stable/14 is not affected. Reviewed by: ae Fixes: 4a77657cbc0 ("ipfw: migrate ipfw to 32-bit size rule numbers") MFC after: 1 week MFC to: stable/15 Found with: Claude Code Opus 5.5 Differential Revision: https://reviews.freebsd.org/D61727 (cherry picked from commit 8364b6bc0c36ab66f71cb2b3e00479326132c80f) M sys/netpfil/ipfw/ip_fw_compat.c M sys/netpfil/ipfw/ip_fw_sockopt.c _____________________________________________________________________________________________________________ Commit: c0724c77fed10c6f3fb2067a4ecc19b077d11c02 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c0724c77fed10c6f3fb2067a4ecc19b077d11c02 Author: Timothy Pearson (Wed 4 Feb 2026 05:16:39 GMT) Committer: Piotr Kubaj (Fri 27 Nov 2026 14:03:23 GMT) powerpc64: Fix disappearing low memory on radix MMU systems (POWER9) The FreeBSD radix implementation piggybacks on the physical memory allocation function from the HPT implementation, but did not share the same state information for number of physical memory ranges. This led to a situation where the HPT physical memory allocator would attempt to shift the physical memory ranges in the shared range table, but would use the wrong number of entries, thus overwriting the large segment of low memory that should have been available for e.g. 32-bit DMA. Incorrect physical memory map: real memory = 33997058048 (32422 MB) available KVA = 34359619583 (32767 MB) Physical memory chunk(s): 0x0000000000003000 - 0x0000000000002fff, 0 bytes (0 pages) 0x000000000000e000 - 0x000000000000ffff, 8192 bytes (2 pages) 0x0000000000094000 - 0x0000000000ffffff, 16171008 bytes (3948 pages) 0x0000000100000000 - 0x00000007a2042fff, 28487987200 bytes (6955075 pages) 0x00000007d0006000 - 0x00000007fc72dfff, 745701376 bytes (182056 pages) 0x00000007fdc00000 - 0x00000007ff79ffff, 28966912 bytes (7072 pages) 0x00000007ff7d1000 - 0x00000007ff7effff, 126976 bytes (31 pages) avail memory = 29190103040 (27837 MB) FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs Correct physical memory map: real memory = 33997058048 (32422 MB) available KVA = 34359619583 (32767 MB) Physical memory chunk(s): 0x0000000000003000 - 0x0000000000002fff, 0 bytes (0 pages) 0x000000000000e000 - 0x000000000000ffff, 8192 bytes (2 pages) 0x0000000000094000 - 0x0000000000ffffff, 16171008 bytes (3948 pages) 0x0000000002000000 - 0x000000000284ffff, 8716288 bytes (2128 pages) 0x0000000004627000 - 0x000000002fffffff, 731746304 bytes (178649 pages) 0x0000000034040000 - 0x00000000efffffff, 3153854464 bytes (769984 pages) 0x0000000100000000 - 0x00000007982ecfff, 28323008512 bytes (6914797 pages) 0x00000007cc20a000 - 0x00000007fc72dfff, 810696704 bytes (197924 pages) 0x00000007fdc00000 - 0x00000007ff79ffff, 28966912 bytes (7072 pages) 0x00000007ff7d1000 - 0x00000007ff7effff, 126976 bytes (31 pages) avail memory = 32984436736 (31456 MB) FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs Signed-off-by: Timothy Pearson Sponsored-by: Raptor Computing Systems, LLC (cherry picked from commit 1364e7d0921bfd79738dae80748d836730e39056) M sys/powerpc/aim/mmu_oea64.c M sys/powerpc/aim/mmu_oea64.h M sys/powerpc/aim/mmu_radix.c _____________________________________________________________________________________________________________ Commit: 29ab1cce6b3aa290238eba6619ba8a4af5a8c418 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=29ab1cce6b3aa290238eba6619ba8a4af5a8c418 Author: Kristof Provost (Thu 19 Nov 2026 13:14:36 GMT) Committer: Kristof Provost (Fri 27 Nov 2026 12:22:40 GMT) pf: fix sctp normalisation cleanup If we fail to allocate the dst scrub structure we should free the src one too, but we passed src rather than src->scrub. Reported by: llm-postcr MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit e53632189f09d7b5c6664fef51cbe4429e4b3243) M sys/netpfil/pf/pf_norm.c _____________________________________________________________________________________________________________ Commit: 837762525dd2de5f74c357166e7bc022bc527989 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=837762525dd2de5f74c357166e7bc022bc527989 Author: Kristof Provost (Thu 19 Nov 2026 10:47:03 GMT) Committer: Kristof Provost (Fri 27 Nov 2026 12:22:39 GMT) pf: fix nat46 ICMP handling When porting from OpenBSD I typo'd the variable where we store the ICMP type, in the nat46 direction. The nat64 direction was correct. Fix this so ICMP translation works for nat46. Add a test case for this, as well as basic TCP and UDP cases because nat46 was entirely untested. PR: 300461 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300461 ) MFC after: 1 week Submitted by: Charles Marshall (pf patch) Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 5165da26f31f576328d99d5ac736bdfd1aa04fe8) M sys/netpfil/pf/pf_lb.c M tests/sys/netpfil/pf/Makefile A tests/sys/netpfil/pf/nat46.sh _____________________________________________________________________________________________________________ Commit: 2a2918a4a2ef72cf33a008b403d200070c233a80 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2a2918a4a2ef72cf33a008b403d200070c233a80 Author: Kristof Provost (Wed 18 Nov 2026 16:48:48 GMT) Committer: Kristof Provost (Fri 27 Nov 2026 12:22:39 GMT) pf tests: test pfTablesTblCount in snmp_pf This works fine on main, but not on stable/15 so add a test. PR: 300818 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300818 ) MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 5131335c7d48eaec427aa9ed27862ca56e3e95bc) M tests/sys/netpfil/pf/snmp.sh _____________________________________________________________________________________________________________ Commit: bd2eb4580da22e146784cb692061d60a903a05c6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bd2eb4580da22e146784cb692061d60a903a05c6 Author: Osvaldo Janeri Filho (Wed 18 Nov 2026 10:50:14 GMT) Committer: Kristof Provost (Fri 27 Nov 2026 12:22:39 GMT) dummynet: validate object length before fixed-size copies in do_config() do_config() checks that each command's o.len fits in the remaining buffer, but the DN_LINK, DN_PROFILE, DN_SCH and DN_FS cases then copy a fixed sizeof(struct) out of the command, which can be larger than o.len. A command with o.len == sizeof(struct dn_id) reads past the end of the sockopt buffer (DN_PROFILE copies about 4 KB). Reject a command whose o.len is shorter than the structure it carries. Add a test. Reviewed by: kp MFC after: 1 week Sponsored by: Advanced Micro Devices, Inc. Signed-off-by: Osvaldo Janeri Filho Differential Revision: https://reviews.freebsd.org/D61440 (cherry picked from commit 42d358453d056e70bd112c63247e89c1ecf575d5) M sys/netpfil/ipfw/ip_dummynet.c M tests/sys/netpfil/common/Makefile A tests/sys/netpfil/common/dummynet_config_test.c _____________________________________________________________________________________________________________ Commit: 6c0f5b267160be8793090d94ab3487e590432692 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6c0f5b267160be8793090d94ab3487e590432692 Author: Kristof Provost (Tue 10 Nov 2026 14:54:37 GMT) Committer: Kristof Provost (Fri 27 Nov 2026 10:45:18 GMT) pf: improve anchor string validation Ensure that these are not overly long. Add a test case. Reported by: Kevin Day MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit a396a0218cc59cff48547fdf97d9e1a8c306f090) M sys/netpfil/pf/pf_table.c M tests/sys/netpfil/pf/ioctl/validation.c _____________________________________________________________________________________________________________ Commit: 659562f3c9fe610b697b8b74d4b527716728838b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=659562f3c9fe610b697b8b74d4b527716728838b Author: R. Christian McDonald (Wed 28 Oct 2026 16:55:07 GMT) Committer: Kristof Provost (Fri 27 Nov 2026 10:45:18 GMT) pf: Free the stack key when attaching it collides pf_state_key_attach() attaches the wire key first and then the stack key, setting sks to NULL before the second pass. When the stack key collides with an existing state, the error path removes the wire key again but then frees sks, which is NULL by then: the stack key leaks. pfsync hits this. A peer that gets a plain state in a bulk update before a redirected state whose stack key is the plain state's key fails to import the redirected state, leaks its stack key, and leaks another one with every later update of that state. Free sk, the key of the pass that collided (skw on the wire pass), and add a test. Reviewed by: kp Fixes: 371bd29d4b22 ("pf: fix potential state key leak") MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D60951 (cherry picked from commit 389ae8e4fabeaf1c655f8116b1a1402e597fa515) M sys/netpfil/pf/pf.c M tests/sys/netpfil/pf/pfsync.sh _____________________________________________________________________________________________________________ Commit: 1d3b5b2b87d666996bf23aa7d40b904c07a3206e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1d3b5b2b87d666996bf23aa7d40b904c07a3206e Author: Pouria Mousavizadeh Tehrani (Wed 18 Nov 2026 19:00:11 GMT) Committer: Pouria Mousavizadeh Tehrani (Fri 27 Nov 2026 06:28:32 GMT) route/fib_algo: Fix nexthop reference leak on FLM_BATCH handle_rtable_change_cb() references the new nexthop before calling the algorithm. If the algorithm asks to batch the change by returning FLM_BATCH, queue_rtable_change() references the same nexthop again for the queued entry, while apply_rtable_changes() only unreferences the old nexthop of each entry. Reference new nhop once in handle_rtable_change_cb(), before deciding whether the change is queued or passed to the algorithm, and do not reference it again in fill_change_entry(). This also leaves the queue reallocation as the only way for queue_rtable_change() to fail. Currently, dxr is the only algorithm returning FLM_BATCH. Fixes: 6b8ef0d428c9 ("Add batched update support for the fib algo.") MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61577 (cherry picked from commit c15a606d2f4443e3f3ba775532f0f499efaff3b7) M sys/net/route/fib_algo.c _____________________________________________________________________________________________________________ Commit: 3e6cc854304958dae40ae96458fccced32428d5f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3e6cc854304958dae40ae96458fccced32428d5f Author: Pouria Mousavizadeh Tehrani (Fri 13 Nov 2026 21:40:45 GMT) Committer: Pouria Mousavizadeh Tehrani (Fri 27 Nov 2026 06:28:09 GMT) rtnetlink: Use default weight for unset weights in NHA_GROUP newnhg() copied the weights of a nhgrp as is and a group whose members all have a zero weight, which is what userland sends when it leaves the weight unset, made calc_min_mpath_slots_fast() divide by zero. Therefore replace weight of zero with RT_DEFAULT_WEIGHT. While here, return early from calc_min_mpath_slots_fast() if all weights are zero. MFC after: 3 days Fixes: 7e5bf68495cc ("netlink: add netlink support") (cherry picked from commit 1db6e2c6c3554efe5acdcc20bc7aa889e1efe372) M sys/net/route/nhgrp_ctl.c M sys/netlink/route/nexthop.c _____________________________________________________________________________________________________________ Commit: 9798193157fd8ab112adee68ddd7f07bb5491716 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9798193157fd8ab112adee68ddd7f07bb5491716 Author: Pouria Mousavizadeh Tehrani (Thu 12 Nov 2026 21:34:06 GMT) Committer: Pouria Mousavizadeh Tehrani (Fri 27 Nov 2026 06:27:38 GMT) routing: Fix nhop double free in rib_copy_route() add_route_flags() consumes the nexthop reference on every failure path, so nhop_free() in rib_copy_route() releases it for the second time. This is reachable when growing net.fibs while two existing fibs hold the same pinned prefix. MFC after: 3 days Fixes: 40503b792f7e ("routing: populate fibs with interface...") (cherry picked from commit efa14ab698fe5c3a1586aec006f98e3781f4af78) M sys/net/route/route_ctl.c _____________________________________________________________________________________________________________ Commit: da83cb9c21e5fe5cca75fd5398b48b7522a88f0c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=da83cb9c21e5fe5cca75fd5398b48b7522a88f0c Author: Ed Maste (Wed 25 Nov 2026 21:39:41 GMT) Committer: Ed Maste (Thu 26 Nov 2026 23:59:41 GMT) tzcode: Avoid integer truncation resulting in wrong weekday From a report[1] on the tz mailing list: In timesub() the weekday is stored in (int) tm_wday before reduction modulo seven (DAYSPERWEEK). Previously this could overflow a 32-bit int, resulting in an incorrect weekday calculation. Calculate two additional intermediate terms modulo seven to avoid an intermediate value that does not fit in 32 bits. We're committing this patch now so we can have something in place for FreeBSD 15.2. If a different change is committed upstream we will replace this. [1] https://lists.iana.org/hyperkitty/list/tz@iana.org/thread/O3RZGBKSO5GXBFDZKW2JXO3OQIIGYBF3/ PR: 300977 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300977 ) Requested by: re (cperciva) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D62073 (cherry picked from commit ecb47941d089b9f9946afa6c52a33418491bfc66) M contrib/tzcode/localtime.c _____________________________________________________________________________________________________________ Commit: 01111efd98158bc3f7f5d5fbb8cf12c86eb643f0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=01111efd98158bc3f7f5d5fbb8cf12c86eb643f0 Author: Nick Price (Sun 8 Nov 2026 01:36:01 GMT) Committer: Nick Price (Thu 26 Nov 2026 19:58:55 GMT) pci: restore resizable BAR sizes in pci_cfg_restore() After a device reset, resizable BARs return to their default sizes. Restore them to the sizes they had prior to reset. Reviewed by: imp, adrian Differential Revision: https://reviews.freebsd.org/D61110 Approved by: adrian (mentor) (cherry picked from commit 665afd2a9d6469ce692de4018c7c015a194c201d) M sys/dev/pci/pci.c M sys/dev/pci/pcireg.h _____________________________________________________________________________________________________________ Commit: 4efbfe6ab09b42d04fe3c1c6e5c45a85f08d8ced URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4efbfe6ab09b42d04fe3c1c6e5c45a85f08d8ced Author: Nick Price (Wed 2 Sep 2026 18:43:13 BST) Committer: Nick Price (Thu 26 Nov 2026 19:58:55 GMT) fdescfs: descend through /dev/fd/N when mounted linrdlnk Linux resolves a path below /proc/self/fd/N in the directory the descriptor names, and linprocfs makes /proc//fd a symlink to /dev/fd. Under linrdlnk the fdescfs node carries only VV_READLINK, which namei will not walk through, so such a path fails with ENOTDIR. Return the underlying vnode from fdesc_lookup for a non-final component, or a trailing slash, reusing the machinery the nodup option already uses. The last component is untouched, so open("/dev/fd/N") keeps its dup(2) semantic; a descriptor with no vnode behind it, such as a pipe, yields ENOTDIR. Add ATF coverage for traversal, descriptor reuse, and preservation of last-component and mount-option semantics. Approved by: adrian (mentor) Reviewed by: kib, adrian Differential Revision: https://reviews.freebsd.org/D59393 (cherry picked from commit b3f7a438bb233c85290dcdc5241d86c49100b6b7) M etc/mtree/BSD.tests.dist M share/man/man4/fdescfs.4 M sys/fs/fdescfs/fdesc_vnops.c M tests/sys/fs/fdescfs/fdescfs_test.c _____________________________________________________________________________________________________________ Commit: aacae7b35a22a56e187a0a41db231d63ca9cefb6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=aacae7b35a22a56e187a0a41db231d63ca9cefb6 Author: Nick Price (Fri 13 Nov 2026 20:27:46 GMT) Committer: Michael Tuexen (Thu 26 Nov 2026 19:55:44 GMT) tcp: count only the SACK blocks that fit in tcp_maxseg() tcp_addoptions() sends only the SACK blocks that fit in TCP_MAXOLEN. tcp_maxseg() counted every pending block and clamped the total, so without timestamps and with five or more blocks pending it came out 4 bytes below the segment tcp_output() sends. Limited transmit after an RTO then sent one full segment and failed the "sent too much" KASSERT. PR: 282605 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282605 ) Approved by: adrian (mentor) Signed-off-by: Nick Price Reviewed by: tuexen, glebius, adrian Differential Revision: https://reviews.freebsd.org/D60460 (cherry picked from commit d3b02115d4b373c719d9a716da38d94511de3f07) M sys/netinet/tcp_subr.c _____________________________________________________________________________________________________________ Commit: 44276cb4146c4500aa33e0388fa4905c8686c4d0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=44276cb4146c4500aa33e0388fa4905c8686c4d0 Author: Colin Percival (Wed 25 Nov 2026 04:16:31 GMT) Committer: Colin Percival (Thu 26 Nov 2026 18:16:57 GMT) acpica: Fix SRAT memory region insertion sort The SRAT table can list memory regions in any order, but we need them sorted. There is an insertion sort to accomplish this when building the mem_info array, but instead of inserting the new region before the *first* higher-base-address region, it was inserting the new region before the *last* higher-base-address region; i.e. if the array already held "1 3 4" then inserting "2" would produce "1 3 2 4". Break out of the insertion-location-finding loop when we find the right spot to insert the new memory region into the list, rather than looking further. Reviewed by: jhb Fixes: dd540b46236b ("Add a parser for the ACPI SRAT table...") MFC after: 1 day Sponsored by: Amazon Tested on: c5n.9xlarge, c6a.24xlarge, c6a.metal, c7a.metal-48xl c7i.metal-24xl, c7i.metal-48xl, c8a.metal-24xl c8i.metal-48xl, c8i.metal-96xl, c8in.96xlarge c8in.metal-48xl, c8in.metal-96xl, m8azn.metal-24xl Differential Revision: https://reviews.freebsd.org/D62059 (cherry picked from commit 276085c192993e68aca41e2402f94436f99aa33b) M sys/dev/acpica/acpi_pxm.c _____________________________________________________________________________________________________________ Commit: 927b349ff141b936adfe9ffd1eb10bea72f0307c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=927b349ff141b936adfe9ffd1eb10bea72f0307c Author: Colin Percival (Tue 24 Nov 2026 23:36:48 GMT) Committer: Colin Percival (Thu 26 Nov 2026 18:16:56 GMT) EC2: Set hw.dmar.enable="1" Large EC2 "bare metal" instances route interrupts to APIC IDs > 255, and unlike the "virtualized" instances, don't support extended APIC destination IDs (since that's a hypervisor feature, and bare metal instances have no hypervisor). Enable the IOMMU for interrupt remapping; this unbreaks booting on m8i.metal-96xl and variants thereof (e.g. c8in). MFC after: 1 day Sponsored by: Amazon Tested on: c5n.9xlarge, c6a.24xlarge, c8in.96xlarge, c5.metal, c6in.metal, c6a.metal, c7a.metal-48xl, c7i.metal-24xl, c7i.metal-48xl, c8a.metal-24xl, c8a.metal-48xl, c8i.metal-48xl, c8i.metal-96xl, c8in.metal-48xl, c8in.metal-96xl, m5.metal, m8azn.metal-24xl (cherry picked from commit 3c03ab02cf312d4fdf37ce3ff90b901722c4b3cb) M release/tools/ec2.conf _____________________________________________________________________________________________________________ Commit: 12776051e061bf371ded16e48bce644e1a48df9e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=12776051e061bf371ded16e48bce644e1a48df9e Author: Mark Johnston (Wed 25 Nov 2026 15:17:44 GMT) Committer: Mark Johnston (Thu 26 Nov 2026 14:20:03 GMT) imgact_elf: Pass program headers to the sv_protect hook We handle program headers beyond the first page of the file, but arm64_exec_protect() wasn't updated to handle this. Pass the program header array directly to the sv_protect hook. Also fix a pre-existing bug: imgp->et_dyn_addr isn't the right base address to use for the SV_INTERP case. Reported by: alc Reviewed by: alc, kib Fixes: 804daf166406 ("imgact_elf: read program headers if not contained in the first page") Fixes: 670af174e27b ("arm64: Enable BTI in the kernel ELF loader") MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61999 (cherry picked from commit 884e1a00151d181e5dd1ba9d83c1adcffd25e5e8) M sys/arm64/arm64/elf_machdep.c M sys/kern/imgact_elf.c M sys/sys/sysent.h _____________________________________________________________________________________________________________ Commit: bc405804570e339f474cb76cd98d165f0148b9dd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bc405804570e339f474cb76cd98d165f0148b9dd Author: Mark Johnston (Wed 11 Nov 2026 14:15:35 GMT) Committer: Mark Johnston (Thu 26 Nov 2026 14:20:03 GMT) pmap: Fix some bugs around accounting of wired mappings The amd64 and arm64 pmaps failed to decrement the count when tearing down a 1GB largepage mapping. The riscv pmap failed to decrement the count when unwiring a superpage mapping. Reported by: alc Reviewed by: bnovkov, alc, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61414 (cherry picked from commit da507ac5503d9af35f5aff4a7a773f6a92746e4a) M sys/amd64/amd64/pmap.c M sys/arm64/arm64/pmap.c M sys/riscv/riscv/pmap.c _____________________________________________________________________________________________________________ Commit: 42e71f0bafc23c0707752381d0b25649d12ae8c4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=42e71f0bafc23c0707752381d0b25649d12ae8c4 Author: Mark Johnston (Fri 13 Nov 2026 19:44:59 GMT) Committer: Mark Johnston (Thu 26 Nov 2026 14:20:03 GMT) procctl: Zero the output structure for the compat32 syscall Otherwise the freebsd32 implementation of PROC_REAP_STATUS leaks uninitialized kernel stack memory. Reviewed by: kib Reported by: Dennys Kaluzny Pereira MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61510 (cherry picked from commit 5a834ad15f1f09d43a6840c74da194db6f890aa2) M sys/compat/freebsd32/freebsd32_misc.c _____________________________________________________________________________________________________________ Commit: 2e2f6d9eb845462c77c09ef82df3c416311ee486 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2e2f6d9eb845462c77c09ef82df3c416311ee486 Author: Tim Hostetler (Wed 4 Nov 2026 23:24:59 GMT) Committer: Mark Johnston (Thu 26 Nov 2026 14:20:03 GMT) gve: Fix AdminQ buffer DMA sync directions In gve_verify_driver_compatibility(), the driver populates the gve_driver_info buffer for the device to read. Sync this buffer with BUS_DMASYNC_PREWRITE instead of BUS_DMASYNC_PREREAD before issuing the command. In gve_adminq_describe_device(), the device populates the gve_device_descriptor buffer for the driver to read. Sync this buffer with BUS_DMASYNC_PREREAD instead of BUS_DMASYNC_PREWRITE before issuing the command. In gve_adminq_get_ptype_map_dqo(), the device populates the gve_ptype_map buffer for the driver to read. Add the missing BUS_DMASYNC_PREREAD and BUS_DMASYNC_POSTREAD syncs around the command. In normal GCP environments this did not cause a functional failure because the underlying platforms are DMA cache-coherent and bus_dmamap_sync() inside gve_adminq_issue_cmd() still provided a memory barrier before ringing the AdminQ doorbell. However, if bounce buffers are used, the wrong or missing sync directions would cause the OS to skip copying between the driver buffer and the bounce buffer in the expected direction. Signed-off-by: Tim Hostetler Reviewed by: markj, Jasper Tran O'Leary Fixes: 54dfc97b0bd9 ("Add gve, the driver for Google Virtual NIC (gVNIC)") Fixes: d438b4ef0cfc ("gve: Add DQO RDA support") Differential Revision: https://reviews.freebsd.org/D61172 (cherry picked from commit 64ea2b980884adcc774b04b2c0d206ced711bd76) M sys/dev/gve/gve_adminq.c M sys/dev/gve/gve_main.c _____________________________________________________________________________________________________________ Commit: 620a12371c627e86a4656d9fd2bf8a76bb954dce URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=620a12371c627e86a4656d9fd2bf8a76bb954dce Author: Tim Hostetler (Wed 4 Nov 2026 23:25:00 GMT) Committer: Mark Johnston (Thu 26 Nov 2026 14:20:03 GMT) gve: Page-align DQO descriptor and completion rings Currently, gve_rx_alloc_ring_dqo() and gve_tx_alloc_ring_dqo() request CACHE_LINE_SIZE alignment when allocating DMA memory for the DQO TX/RX descriptor and completion rings. The device requires stronger alignment than cache line alignment, which was incidentally being met due to how the kernel allocates memory. Explicitly meet this requirement by requesting page aligned memory. Signed-off-by: Tim Hostetler Reviewed by: markj, Jasper Tran O'Leary MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D61211 (cherry picked from commit 9d48e88e023634e12530bf9db4a2e85d022b93db) M sys/dev/gve/gve_rx_dqo.c M sys/dev/gve/gve_tx_dqo.c _____________________________________________________________________________________________________________ Commit: c2f9ee027b85b2e582441e096fa8cf345dd35f0f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c2f9ee027b85b2e582441e096fa8cf345dd35f0f Author: Osvaldo Janeri Filho (Mon 9 Nov 2026 00:50:17 GMT) Committer: Mark Johnston (Thu 26 Nov 2026 14:20:03 GMT) cryptodev: zero key material before freeing it The /dev/crypto cipher and MAC keys are copied from userland and released with free(), leaving the key bytes in freed kernel memory. Use zfree() so the key material is cleared on session teardown and on the setup error path. Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61324 (cherry picked from commit edaa6ba7be8666d4f543317845899e1a1b684bbf) M sys/opencrypto/cryptodev.c _____________________________________________________________________________________________________________ Commit: 6bcd61d008ae565c2ef443c78020b7db59585e59 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6bcd61d008ae565c2ef443c78020b7db59585e59 Author: Mark Johnston (Sun 8 Nov 2026 15:40:03 GMT) Committer: Mark Johnston (Thu 26 Nov 2026 14:20:03 GMT) gptzfsboot: Use snprintf() to format file names The stack buffer in fs_list() can be overflowed if a file name is too long. Reported by: Yudi Yang MFC after: 1 week (cherry picked from commit 956a05c3cbf5f5cb9d1c4d58e3a5fc22db1446b8) M stand/i386/gptzfsboot/zfsboot.c _____________________________________________________________________________________________________________ Commit: 9f880eb6019d7172e4cfcbcc1508d0a9e4e7aae8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9f880eb6019d7172e4cfcbcc1508d0a9e4e7aae8 Author: Wanpeng Qian (Sun 8 Nov 2026 16:05:04 GMT) Committer: Mark Johnston (Thu 26 Nov 2026 14:20:03 GMT) vmm: Emulate the byte forms of OR and AND with an immediate Opcode 0x80 (group 1: r/m8, imm8) is in the decode table and emulate_cmp() handles 80 /7, but emulate_or() and emulate_and() only accept 0x81 and 0x83. An "or byte ptr [mem], imm8" or "and byte ptr [mem], imm8" on emulated memory therefore fails with EINVAL and bhyve stops the guest with "Failed to emulate instruction sequence [ 80 ... ]". Seen with macOS: VoodooHDA starts the HDA controller's CORB with "or byte [rax+0x4c], 2" (CORBCTL |= CORBRUN), and the guest died at the first sound. Accept 0x80 in both, with a one byte operand as emulate_cmp() does. The file is shared with bhyve(8), so the fix covers the in-kernel devices (HPET, local APIC without APICv, I/O APIC) and the user space device models alike. Signed-off-by: Wanpeng Qian Reviewed by: markj MFC after: 1 week Sponsored by: keelos.dev Differential Revision: https://reviews.freebsd.org/D60997 (cherry picked from commit 8e7f9aa97b3e886afc2c445bb51c4d781a106a1e) M sys/amd64/vmm/vmm_instruction_emul.c _____________________________________________________________________________________________________________ Commit: ce78b5a3d47574fafbe86d1ce9dcef7c19360e95 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ce78b5a3d47574fafbe86d1ce9dcef7c19360e95 Author: Michael Tuexen (Tue 24 Nov 2026 13:45:27 GMT) Committer: Michael Tuexen (Thu 26 Nov 2026 08:15:48 GMT) tcp: improve ISS checking for ghost ACKs The check in tcp_adapt_iss_check() depends on SND.UNA and therefore should be performed whenever SND.UNA is incremented. PR: 298560 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298560 ) Reviewed by: Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D61749 (cherry picked from commit 9e345ca583f702e7472f836136e766d3346c049d) M sys/netinet/tcp_input.c M sys/netinet/tcp_stacks/bbr.c M sys/netinet/tcp_stacks/rack.c _____________________________________________________________________________________________________________ Commit: 6c07c170a2648d96e712f430cd0e58e894601c01 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6c07c170a2648d96e712f430cd0e58e894601c01 Author: Tony Hutter (Thu 19 Nov 2026 16:58:56 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: Temporarily ignore Lustre build result (#19946) Lustre is currently having issues building against the Linux kernel. Temporarily ignore the return code from the Lustre test build. Signed-off-by: Tony Hutter Reviewed-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Reviewed-by: Brian Behlendorf M .github/workflows/scripts/qemu-6-tests.sh _____________________________________________________________________________________________________________ Commit: b48acc7010fad30b3c9a65e77b2fe14382d634a0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b48acc7010fad30b3c9a65e77b2fe14382d634a0 Author: Christos Longros (Thu 19 Nov 2026 15:45:18 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: update the FreeBSD 15 STABLE CI runner to 15.2-STABLE Follow the stable/15 snapshots, which are now published as 15.2-STABLE. Reviewed-by: Brian Behlendorf Reviewed-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Signed-off-by: Christos Longros Closes #19899 M .github/workflows/README.md M .github/workflows/scripts/qemu-2-start.sh _____________________________________________________________________________________________________________ Commit: 8b9963dd63515a5f17fed8d1512b39b3858c58d2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8b9963dd63515a5f17fed8d1512b39b3858c58d2 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Wed 18 Nov 2026 19:20:11 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: give the Linux test VMs 6 GiB, as FreeBSD's Each zfs-qemu job runs two test VMs on a 16 GiB GitHub-hosted runner. The Linux VMs got 8 GiB each, counting on KSM to share pages between them. Since the end of October about one Linux job in four lands on an AWS-hosted runner (EC2 m8id.xlarge, 15.7 GiB) whose root file system, and so the swap file that qemu-1-setup.sh creates, sits on a device-mapper snapshot. Every such job loses its runner: GitHub reports "The hosted runner lost communication with the server" 48 to 52 minutes after the tests start. A probe on the fork sampled one such runner per setting every minute. With two 8 GiB guests, with KSM on or off, the runner stopped reporting 3 to 4 minutes into the tests, once one guest's resident memory had passed 6.8 GB and the host's available memory had fallen below 4.3 GB; GitHub declared it lost about 45 minutes later. KSM had merged no page by then. With two 6 GiB guests, the same kind of runner ran the tests for the 76 minutes the probe allowed. Give every test VM 6 GiB, as the FreeBSD ones already have. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Reviewed-by: Will Rouesnel Reviewed-by: Alexander Motin Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19898 Closes #19910 M .github/workflows/scripts/qemu-5-setup.sh _____________________________________________________________________________________________________________ Commit: 3e6b66b0587a7566eda75aef0e1fd1eceeacfbf2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3e6b66b0587a7566eda75aef0e1fd1eceeacfbf2 Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Fri 13 Nov 2026 23:48:47 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: fetch source matching the FreeBSD image kernel FreeBSD snapshot images can outlive their src.txz archive. If it is missing, fetch the running image's kernel revision from the official FreeBSD source mirror. Require an empty destination before extracting the fallback archive. Assisted-by: OpenAI Codex Reviewed-by: Brian Behlendorf Signed-off-by: ooonea Closes #19876 M .github/workflows/scripts/qemu-2-start.sh _____________________________________________________________________________________________________________ Commit: da01f411059ac95cd8262ab0eec8733707504162 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=da01f411059ac95cd8262ab0eec8733707504162 Author: Will Rouesnel (Thu 12 Nov 2026 23:41:36 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) ZTS: zvol_stress: no fio verify_async on FreeBSD On FreeBSD 16.0-CURRENT since main-n290812 (CI image 20261109), zvol_stress fails every run: each fio dies with "got signal=11", "err= 4" and "file hash not empty on exit" once its verify pass is done. It isn't ZFS: the same fio command line crashes on a plain file on UFS. fio starts its verify_async threads with a 2 * PTHREAD_STACK_MIN stack, which is 4 KiB on FreeBSD amd64. freebsd-src 2734bbbcba3c ("libthr: Create landing pad in thr_once in C++ exception") made libthr.so link libgcc_s, so the first pthread_exit() in a process now finds _Unwind_ForcedUnwind and dlopen()s libgcc_s in thread_uw_init(). On a verify thread that overflows the one-page stack into its guard page: #0 object_match_name (name="/lib/libgcc_s.so.1") rtld.c:6056 #1 load_object rtld.c:2928 #2 dlopen_object rtld.c:4044 #3 rtld_dlopen rtld.c:4004 #4 thread_uw_init thr_exit.c:86 #5 _pthread_exit_mask thr_exit.c:241 #6 _Tthr_exit thr_exit.c:206 #7 thread_start thr_create.c:299 With the libthr.so.3 from the previous CI image (main-n290542, without the libgcc_s dependency) the same fio and kernel pass. Leave verify_async off on FreeBSD. The verify still reads back and checks every block, in the job thread. The libthr change is due to be merged to the stable branches, so this covers 14 and 15 too. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19854 M tests/zfs-tests/tests/functional/zvol/zvol_stress/zvol_stress.ksh _____________________________________________________________________________________________________________ Commit: da23fe47596d8103917910ff3f92cbbc494a4c97 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=da23fe47596d8103917910ff3f92cbbc494a4c97 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Tue 10 Nov 2026 22:25:23 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: Wait for fork QEMU jobs still running on a PR push When a PR is pushed, the fork usually starts a push run of the same commit as the PR run starts. The fork then has no result to reuse yet, and both repositories run every QEMU job, although OpenZFS CI is limited to 60 concurrent runners and each of the 16 OS jobs takes two to four hours. When a push run of the PR head tree has QEMU jobs running, let the Setup job of the PR run wait for them, checking every ten minutes, for at most REUSE_WAIT_MINUTES (a repository variable: default 240, capped at 300 to stay clear of the six hour job limit, 0 disables it). It then reuses the jobs that succeeded and runs the others as before. The wait holds one runner instead of one per OS. Jobs still queued 30 minutes after the wait began are not waited for, since a fork with no runner free may not start them for hours. Successful jobs of a run still in progress are now reused: the wait can end before the run does, and a job's result does not change once it has finished. A check takes two run lists and the job list of each candidate run, usually one. Any error still ends the search without reuse, as does having fewer than 200 API requests left, so that waiting cannot use up the token's limit. The other workflows run as a single job, which would hold a runner as long by waiting as by testing: they do not wait. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19819 Closes #19855 M .github/workflows/README.md M .github/workflows/scripts/reuse-ci.py M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: 44737bc29c9d365aa320674ad9118fa48323db41 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=44737bc29c9d365aa320674ad9118fa48323db41 Author: Matthew Ahrens (Wed 11 Nov 2026 20:34:39 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) ZTS: refreserv_004_pos fails: its space limits are off The test sets a dataset's refreservation to the dataset's available space and expects any larger value to fail. But a refreservation also covers the space the dataset already uses, so it can grow to available + used; setting available + 1 succeeds. The test is listed as a known failure on every platform. It also writes a file into the refreservation while the parent is at its quota. That write can fail with EDQUOT however small it is: a transaction's worst-case space estimate is far larger than the data, and the part that exceeds the unused refreservation is charged to the parent. The write only goes through while the parent is a few KiB short of its quota, which for the pool's root dataset ends as soon as the MOS grows. Check that available + used + 1 MiB fails. The margin is needed because the kernel checks against the on-disk available space, which differs from the avail property by the writes in flight. Drop both writes; the test is about the refreservation's limit. Clear the refreservation after each dataset, so the second pass starts from the same state as the first. Remove the test from the known failures. Reviewed-by: Tony Hutter Reviewed-by: Will Rouesnel Reviewed by: George Wilson Signed-off-by: Matthew Ahrens Co-authored-by: Claude Fable 5.2 Closes #19786 M tests/test-runner/bin/zts-report.py.in M tests/zfs-tests/tests/functional/refreserv/refreserv_004_pos.ksh _____________________________________________________________________________________________________________ Commit: 02eb23f1330ebd1ead3683def75cfcc0da4ac0f4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=02eb23f1330ebd1ead3683def75cfcc0da4ac0f4 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Tue 10 Nov 2026 22:20:46 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: Reuse fork results of commits with the same tree reuse-ci.py only reuses fork push runs of the exact PR head SHA. A commit amended only to add a sign-off or reword its message, or a squash that leaves the code as it was, gets a new SHA, so its PR runs every job again although the fork has already tested the same files. A push run checks out and tests the tree of its commit, which the run records as head_commit.tree_id. Look up the tree of the PR head and accept push runs of any commit with that tree: the latest runs of the exact SHA, as before, and those found among the latest hundred push runs of the workflow. The newest finished result still decides each job. Earlier PR runs in the base repository are still not reused. They check out the PR head too, but the QEMU test suite and OS list of a PR run depend on ZFS-CI-Type lines in the commit messages and on the files the PR changes, which a message-only change can alter and which the run does not record. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19855 M .github/workflows/README.md M .github/workflows/scripts/reuse-ci.py _____________________________________________________________________________________________________________ Commit: f8aaa5c9e4e7aea6cbac4cb26ebdbf0ac4e3e020 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f8aaa5c9e4e7aea6cbac4cb26ebdbf0ac4e3e020 Author: Kamil Monicz (Mon 19 Oct 2026 02:08:49 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: install userspace build dependencies for unit tests The unit job uses VM preparation that upgrades installed packages, installs kernel and ZTS dependencies, and removes packaged ZFS modules. None of that machine preparation is needed for the userspace unit build. Share the Debian userspace build packages between the unit job and the full VM installer, leaving the latter's other dependencies and setup in place. Deliver the shared installer alongside the VM script when it runs before the repository is copied into the guest. Use the native unit target in the documented minimum-build example. Reviewed-by: Brian Behlendorf Signed-off-by: Kamil Monicz Closes #19456 A .github/workflows/scripts/debian-user-deps.sh M .github/workflows/scripts/qemu-3-deps-vm.sh M .github/workflows/scripts/qemu-3-deps.sh _____________________________________________________________________________________________________________ Commit: cacd0e62968ef8253ac26d8bf139e0a304d05e6f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cacd0e62968ef8253ac26d8bf139e0a304d05e6f Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Wed 11 Nov 2026 20:57:27 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: Let the labels jobs ride out GitHub server errors One transient error from GitHub fails a whole job of the labels workflow, and with it every PR the job had not labelled yet: area gh: Server Error: Sorry, this diff is temporarily unavailable due to heavy server load. (HTTP 500) conflict HTTP 502: 502 Bad Gateway (https://api.github.com/graphql) inactive invalid character '<' looking for beginning of value The area job is the worst off: it runs once per push, for that PR only, so a PR it fails on has no area labels until its next push. The area job now lists the files of a PR with git rather than with the pulls/N/files endpoint, which needs GitHub's diff service: one partial fetch, without file contents, of the PR heads and their base branches into a bare repository, then git diff --name-only from the merge base, which lists what GitHub shows, renames included. Nothing of a PR is checked out or run. The fetch takes about 2 s and 20 MB for one PR, and 2.5 s and 24 MB for the heads of 400 open PRs at once. --filter=tree:0 fetches 8 MB for one PR, but each diff then fetches two trees on demand: two more requests that can fail, and about 5 minutes for 400 PRs. A failed fetch still fails the job. The conflict and inactive jobs page through the open PRs themselves, 100 and 50 at a time as before. A page that gets a 5xx or a body that is not JSON is asked again from the same cursor with half as many PRs, down to 10, as large pages are what time out under load; the smaller size is kept for the rest of the run. A failure at 10, or any other error, still fails the job, so that an outage stays visible. A PR whose files cannot be listed, or whose label cannot be added or removed, now gets a warning and the job goes on with the next PR. The conflict and inactive jobs run every 3 hours and catch up then; a PR that misses its area labels gets them at its next push, on a manual run or by hand. Removing a label that another run already removed is still not an error. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19829 M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: a3a52056ccc96a7c63eaf54eb176011caf97a247 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a3a52056ccc96a7c63eaf54eb176011caf97a247 Author: FingerlessGloves (Tue 10 Nov 2026 21:16:15 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) CI: Add AlmaLinux 10 x86-64-v2 package build EL10 is built for x86-64-v3 CPUs, so the packages built on AlmaLinux 10 cannot be installed on its x86-64-v2 variant. Add an almalinux10-v2 job to the package workflow that builds on the x86_64_v2 cloud image, and store its RPMs in a separate x86_64_v2 directory so they do not collide with the regular EL10 packages. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: FingerlessGlov3s Closes #19811 M .github/workflows/scripts/qemu-2-start.sh M .github/workflows/scripts/qemu-3-deps-vm.sh M .github/workflows/scripts/qemu-4-build-vm.sh M .github/workflows/scripts/qemu-6-tests.sh M .github/workflows/zfs-qemu-packages.yml _____________________________________________________________________________________________________________ Commit: 447cd14c79af4d1317be69e5e6c5e7bc872903c1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=447cd14c79af4d1317be69e5e6c5e7bc872903c1 Author: Rob Norris (Tue 3 Nov 2026 03:46:45 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) nvt_nvpair_match: when duplicates allowed, only match the exact pair Previously, this would match any pair with the same name, which when duplicates are allowed could allow nvt_remove_nvpair() to remove the wrong pair, leaving the wanted one on a hashtable bucket list. In the case of nvlist_remove_nvpair(), it would then free the pair, leaving a dangling pointer on the hashtable. Fix this by always matching the specific pair (by pointer) when duplicates are allowed. Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Signed-off-by: Rob Norris Closes #19700 M module/nvpair/nvpair.c _____________________________________________________________________________________________________________ Commit: 7413ac313a05ea02b8a91fcde0e31bf2140d805a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7413ac313a05ea02b8a91fcde0e31bf2140d805a Author: Tony Hutter (Wed 14 Oct 2026 21:44:59 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) zpool: Add 'zpool status -c phy' for SAS PHY stats Add a number of SAS PHY stats to the 'zpool status -c' scripts. This can be useful for identifying flaky SAS connections. Also, widen the 'zpool status -c' help column to accommodate longer names. Reviewed-by: Brian Behlendorf Signed-off-by: Tony Hutter Closes #19238 M cmd/zpool/Makefile.am A cmd/zpool/zpool.d/phy A cmd/zpool/zpool.d/phy_errors A cmd/zpool/zpool.d/phy_invalid_dword_count A cmd/zpool/zpool.d/phy_link A cmd/zpool/zpool.d/phy_loss_of_dword_sync_count A cmd/zpool/zpool.d/phy_maximum_linkrate A cmd/zpool/zpool.d/phy_minimum_linkrate A cmd/zpool/zpool.d/phy_name A cmd/zpool/zpool.d/phy_negotiated_linkrate A cmd/zpool/zpool.d/phy_reset_problem_count A cmd/zpool/zpool.d/phy_running_disparity_error_count A cmd/zpool/zpool.d/phy_topo A cmd/zpool/zpool.d/phy_total_errors M cmd/zpool/zpool_main.c _____________________________________________________________________________________________________________ Commit: 017a63a793f612dccf7eb234b21ff9a2c337aa06 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=017a63a793f612dccf7eb234b21ff9a2c337aa06 Author: Tony Hutter (Wed 14 Oct 2026 17:29:06 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) build: Fix uninitialized errors in 'make rpm-utils' Fix 'make rpm-utils' error on Fedora 42: CCLD libzfs_core.la tests/unit/test_nvpair.c: In function 'test_nv_fnvpair_value': tests/unit/test_nvpair.c:1713:9: error: 'rv' may be used uninitialized 1713 | unit_str_eq(fnvpair_value_string(fnvlist_lookup_nvpair ... | ^ module/nvpair/fnvpair.c:575:21: note: 'rv' was declared here 575 | const char *rv; | ^ Reviewed-by: Brian Behlendorf Signed-off-by: Tony Hutter Closes #19386 M module/nvpair/fnvpair.c _____________________________________________________________________________________________________________ Commit: dd705ef2ce0e201b367e98091c33d4f89b06b617 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dd705ef2ce0e201b367e98091c33d4f89b06b617 Author: Jaromir Hamala (Thu 8 Oct 2026 17:25:07 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) ZIL: avoid deadlock in xattr owner check zfs_xattr_owner_unlinked() runs with an assigned transaction. A final zrele() can run inode or vnode cleanup inline. During Linux writeback, cleanup may wait for the caller's own I_SYNC state. Cleanup may also open another transaction while the current transaction remains assigned. The caller cannot return to commit its transaction, so the txg remains open and cannot sync. Treat the input znode as borrowed on all platforms. Release only parents acquired by zfs_zget() with zfs_zrele_async(). This removes the Linux zhold()/zrele() pair and the platform split. Check the current walk node in the assertion. Reviewed-by: Brian Behlendorf Signed-off-by: Jaromir Hamala Closes #19253 M module/zfs/zfs_log.c _____________________________________________________________________________________________________________ Commit: 4ce40a6dfbb9c4abcff3ddbab7f9a15d8e4fc16d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4ce40a6dfbb9c4abcff3ddbab7f9a15d8e4fc16d Author: Cyrille C. <18537428+CrochetFeve0251@users.noreply.github.com> (Wed 7 Oct 2026 00:11:09 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:02 GMT) dbuf: restore BP_IS_HOLE() recheck after dnode_block_freed() Commit 79cf54582 ("Fix reads for blocks freed after being cloned") reworked the level-0 check in dbuf_read_hole() and dropped the BP_IS_HOLE() recheck that followed dnode_block_freed(), together with the comment explaining it. That recheck was not about overrides: it closes a race with dnode_sync(). dnode_sync_free_ranges() drops dn_mtx, clears the bps through dnode_sync_free_range_impl() -> free_blocks(), then retakes dn_mtx and removes the range from dn_free_ranges. For blkptrs held in the dnode (dn_nlevels == 1), free_blocks() writes the bp without the parent's db_rwlock, so holding that lock in dbuf_read() does not serialize against it. A reader that saw a non-hole bp, then waited on dn_mtx in dnode_block_freed() until the range was removed, gets "not freed" while the bp it is about to copy is already a hole (with HOLE_BIRTH, lsize and birth preserved). dbuf_read_impl() then hands that hole to arc_read(): no child I/O is issued, checksum verification fails with EINVAL, and without ZIO_FLAG_CANFAIL the pool is suspended. Restore the recheck for the non-override path. The override path (block clone / Direct I/O) checks the overriding bp, which free_blocks() does not touch, so it is left as is. Reproduced on 2.3.9 with a test-only delay widening the window between the first BP_IS_HOLE() and dnode_block_freed(): reads of punched single-block files return EINVAL with the same ereport as in #19185. With this change, the same test returns no error. This change, its analysis and its description were prepared with the help of an AI assistant (Claude), then reviewed and tested by the submitter. Reviewed-by: Brian Behlendorf Signed-off-by: Cyrille C. Co-authored-by: Claude Opus 5.5 Fixes: 79cf54582 ("Fix reads for blocks freed after being cloned") Closes #19185 Closes #19234 M module/zfs/dbuf.c _____________________________________________________________________________________________________________ Commit: 8e5c1ddb40e0c11ff630d3fbff9b20c537b46f91 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8e5c1ddb40e0c11ff630d3fbff9b20c537b46f91 Author: Tony Hutter (Wed 30 Sep 2026 18:01:30 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:01 GMT) ZTS: Make redundancy tests faster The redundancy tests can take a very long time. I was able to reduce the redundancy tests from 7min 10sec to 4min on a local VM with these changes: - Reduce zfs_txg_timeout from 5 -> 1 for all redundancy tests. This speeds up `zpool replace` operations. - Reduce the vdev sizes in many of the tests. Reviewed-by: Brian Behlendorf Signed-off-by: Tony Hutter Closes #19140 M tests/zfs-tests/tests/functional/redundancy/cleanup.ksh M tests/zfs-tests/tests/functional/redundancy/redundancy_draid.ksh M tests/zfs-tests/tests/functional/redundancy/redundancy_draid_damaged1.ksh M tests/zfs-tests/tests/functional/redundancy/redundancy_draid_damaged2.ksh M tests/zfs-tests/tests/functional/redundancy/redundancy_draid_degraded1.ksh M tests/zfs-tests/tests/functional/redundancy/redundancy_draid_degraded2.ksh M tests/zfs-tests/tests/functional/redundancy/redundancy_raidz.ksh M tests/zfs-tests/tests/functional/redundancy/setup.ksh _____________________________________________________________________________________________________________ Commit: 79c869d68f247d1728c2d1371c02cc5cbdf2658f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=79c869d68f247d1728c2d1371c02cc5cbdf2658f Author: Tony Hutter (Tue 22 Sep 2026 18:59:34 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:01 GMT) ZTS: Speed up replace_resilver_sit_out Reduce replace_resilver_sit_out test time from 1:14 to 30sec. - Use 4 "lanes" in zinject instead of 1. - Use a 1M recordsize to speed up replacements. - Use 1 second zfs_txg_timeout to help with replacement Also, double the number or reads to more reliably hit the sit-out condition. This test has been flaky in the past. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Moch Reviewed-by: George Melikov Signed-off-by: Tony Hutter Closes #19156 M tests/zfs-tests/tests/functional/replacement/replace_resilver_sit_out.ksh _____________________________________________________________________________________________________________ Commit: d32b6c227536291c93cca8a16f53da7a1cbfcef5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d32b6c227536291c93cca8a16f53da7a1cbfcef5 Author: Andriy Tkachuk (Wed 23 Sep 2026 00:13:10 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:01 GMT) Propagate vdev state change on probe failure Currently, when probe fails on some vdev, it would became faulted, but the parent's vdev state won't be changed. So we can have a situation, for example, when several disks in draid vdev are faulted (domain failure), but draid vdev itself and pool are online, which doesn't seem right. Solution: set isopen argument to false when calling vdev_set_state() from spa_async_fault_vdev(). It's not quite clear why it was set to true in the first place when the code was introduced at commit c4f2f1aa2d. isopen argument to vdev_set_state() is normally set to true when we are "in the process of opening children depth-first", in which case we don't want to propagate the change of state to the parent, but it doesn't seem to be the case here. Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: Andriy Tkachuk Closes #19155 M module/zfs/spa.c M tests/zfs-tests/tests/functional/mmp/mmp_write_slow_disk.ksh _____________________________________________________________________________________________________________ Commit: 78c131bbf05ec3717e5f69c2cad6695beb084d79 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=78c131bbf05ec3717e5f69c2cad6695beb084d79 Author: Tony Hutter (Sat 19 Sep 2026 01:52:10 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:01 GMT) ZTS: Change zpool_initialize_multiple_pools devsize Change zpool_initialize_multiple_pools test vdev sizes from 5GB -> 1GB. This size reduction is important since the test creates four vdevs of this size (20GB) and initializes them. This space reduction is need for running 3 CI VMs in parallel. Reviewed-by: Brian Behlendorf Reviewed-by: George Melikov Signed-off-by: Tony Hutter Closes #19134 M tests/zfs-tests/tests/functional/cli_root/zpool_initialize/zpool_initialize_multiple_pools.ksh _____________________________________________________________________________________________________________ Commit: cd03b9909a8b5f18cc53898e6a9569872434924d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cd03b9909a8b5f18cc53898e6a9569872434924d Author: Tony Hutter (Sat 19 Sep 2026 01:47:27 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:01 GMT) ZTS: Make zpool_prefetch_001_pos faster zpool_prefetch_001 creates 16 thousand files, and makes copies of a fraction of them. This takes a long time, especially when run on the slow CI VMs. Make it faster by only creating 8k files, and do some of the creations in parallel. Both optimizations help to bring down the test time from 40sec -> 14sec, as measured on a local, 10-core, VM. Reviewed-by: Brian Behlendorf Reviewed-by: George Melikov Signed-off-by: Tony Hutter Closes #19133 M tests/zfs-tests/tests/functional/cli_root/zpool_prefetch/zpool_prefetch_001_pos.ksh _____________________________________________________________________________________________________________ Commit: 6ff08fa49be8f5254e70207ce15903cd7af630b5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6ff08fa49be8f5254e70207ce15903cd7af630b5 Author: Patrick Domack (Wed 9 Sep 2026 19:08:26 BST) Committer: Tony Hutter (Wed 25 Nov 2026 21:16:01 GMT) Fix double free when cloning a block with a pending free dmu_read_l0_bps() captures the source block pointers for a clone without consulting dnode_block_freed(). A block whose free is recorded but not yet synced still has a valid on-disk pointer, so the clone registers a BRT reference to a block about to be returned to the allocator, and it is freed twice. On a debug build this trips the metaslab double-free verifier; on a release build the space map is silently corrupted. Check for a pending free and return EAGAIN, as dbuf_read_hole() already does for buffered reads. zfs_clone_range() waits a TXG and retries, by which point the block reads as a hole. Two cases need more than the plain check. A hole has nothing to free, so guard with !BP_IS_HOLE(bp), otherwise a hole inside a pending free range fails a FICLONE that master cloned. When the head dirty record already overrode the BP, only frees after the override count against it, so use dnode_block_freed_after(); dbuf_free_range() leaves the override in place across a later punch, and cloning the clone would otherwise capture it. Reproduced with fstests generic/733, which panicked within a minute on a debug build, and with a FICLONE of a sparse file in a pending free range. Both clean after. bclonesaved is correct and scrub is clean. Suggested-by: mkhllr Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Signed-off-by: Patrick Domack Closes #18842 Closes #18853 M module/zfs/dmu.c _____________________________________________________________________________________________________________ Commit: 19974dd05833dd417da8152f8a7583d0a76d7e30 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=19974dd05833dd417da8152f8a7583d0a76d7e30 Author: Piotr Kubaj (Sun 15 Nov 2026 20:57:46 GMT) Committer: Piotr Kubaj (Wed 25 Nov 2026 20:35:17 GMT) elfctl: add la52 for powerpc64 The 0x40 feature bit is la57 on amd64 and la52 on powerpc64. Tag each feature with the machine it belongs to and only accept and show the names that match the file's e_machine, so la57 is only known for amd64 files and la52 only for powerpc64 ones. Reviewed by: kib MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61331 (cherry picked from commit 46ce9acd6d157d3a63ca351a522d45a35ae83499) M usr.bin/elfctl/elfctl.1 M usr.bin/elfctl/elfctl.c _____________________________________________________________________________________________________________ Commit: 38bae8ba315fe349acaa911212e29b0598ad648c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=38bae8ba315fe349acaa911212e29b0598ad648c Author: Piotr Kubaj (Sun 15 Nov 2026 20:57:41 GMT) Committer: Piotr Kubaj (Wed 25 Nov 2026 20:35:16 GMT) powerpc64: give processes a 48-bit address space by default Since ASLR got enabled for ELFv2, the random bases for the heap, the dynamic linker and PIE binaries can land anywhere in the 52-bit address space radix gives us. A lot of userland doesn't like that: SpiderMonkey, JavaScriptCore, QV4 and friends pack pointers into 47 or 48 bits and crash on startup (gjs, cjs, qml, ...). Do what amd64 does on LA57 hardware: keep the full range in the kernel and give processes a smaller map by default through a second set of sysvecs. The default is 48 bits (256 TiB), the same as arm64. One caveat for 48 bits: SpiderMonkey's GC allocator has no fallback there and relies on mmap(2) hints staying 1 MiB-aligned, which ASLR on FreeBSD breaks (hinted mappings move in 4 KiB steps, 64 KiB on arm64). The versions in ports need Mozilla's bug 1876632 (MAP_ALIGNED on FreeBSD, in Firefox 143) to be reliable; with it gjs runs clean. The full 52 bits stay available per process through the la52 feature control note (elfctl(1)) and PROC_LA_CTL (proccontrol(1)), and vm.pmap.prefer_uva_la48 flips the default. la52 is the powerpc64 name for the note bit amd64 calls la57, the procctl(2) values are the same. Fixes: 30ed27ff2556 ("sys/powerpc/powerpc/elf64_machdep.c: enable ASLR on ELFv2") Reviewed by: kib MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61331 (cherry picked from commit 5f2956673c280fa3de5615dfeecdc6c92e62d307) M share/man/man7/arch.7 M sys/powerpc/include/proc.h M sys/powerpc/include/procctl.h M sys/powerpc/include/vmparam.h M sys/powerpc/powerpc/elf64_machdep.c M sys/powerpc/powerpc/exec_machdep.c M sys/powerpc/powerpc/vm_machdep.c M sys/sys/elf_common.h _____________________________________________________________________________________________________________ Commit: 915b4aa4897845bf1fbcc34fd80ed3ca83b922e1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=915b4aa4897845bf1fbcc34fd80ed3ca83b922e1 Author: Piotr Kubaj (Sun 15 Nov 2026 20:57:11 GMT) Committer: Piotr Kubaj (Wed 25 Nov 2026 20:31:22 GMT) proccontrol: support la52 on powerpc64 powerpc64 is getting the same PROC_LA_CTL interface as amd64, but calls the full address space la52 instead of la57. Take the mode name and the constants from whichever one machine/procctl.h defines. Reviewed by: kib MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61331 (cherry picked from commit a637aa182bb1c1dc1e545fc5af2bceff4013affc) M usr.bin/proccontrol/proccontrol.1 M usr.bin/proccontrol/proccontrol.c _____________________________________________________________________________________________________________ Commit: 029766edafd750aebdb3be896d9b318c9e3df522 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=029766edafd750aebdb3be896d9b318c9e3df522 Author: Kamil Monicz (Wed 5 Aug 2026 18:52:36 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) dbuf: use dirty record size for overridden writes A level-0 dirty record retains its ARC buffer after dmu_sync() writes it for an indirect ZIL record. If a newer transaction group changes the block size before the older one syncs, that retained buffer and the live dbuf legitimately have different sizes. The normal fallback is reachable when encryption and dedup are enabled. dmu_sync() keeps the dedup checksum for the override BP. Syncing-context policy then enables dedup, but zio_write_bp_init() cannot reuse an encrypted dedup override and restores the regular write pipeline. dbuf_write() built its ABD from the retained buffer but passed the live dbuf size to ZIO. After growth, compression can therefore read beyond the retained allocation. After shrink, the older transaction group's block is instead written with the newer, smaller LSIZE and truncated data. This was observed as a 527 KiB compression request against a retained 340 KiB allocation; the compressor faulted at the allocation boundary. Stop trusting the live dbuf size anywhere in the override branch. When the dirty record has data, use the retained ARC buffer's size for the ABD and both ZIO sizes, asserting that it matches the buffer's logical size and, for non-holes, the override BP's LSIZE. Data-less overrides pass zero for both ZIO sizes. WP_NOFILL prevents them from selecting encryption or dedup, and BRT writes, embedded BPs, holes, recorded nopwrites, and the remaining non-dedup overrides all switch to ZIO_INTERLOCK_PIPELINE in zio_write_bp_init(), before any data- or size-consuming stage. Add a deterministic ztest covering growth and shrink across transaction groups. It verifies the intermediate block size and contents as well as the final resized contents, and holds whether or not the intermediate block gangs. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18812 M cmd/ztest.c M module/zfs/dbuf.c _____________________________________________________________________________________________________________ Commit: a4db5685f17cccd97d0d1fe745f04dc48043e0e0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a4db5685f17cccd97d0d1fe745f04dc48043e0e0 Author: Kamil Monicz (Mon 20 Jul 2026 17:21:37 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) zdb: account pending DDT-log frees in leak detection With fast dedup, the last decref of a block lands in the DDT log, and the physical free happens only when the log entry is flushed back into the DDT. ddt_phys_decref() only decrements the in-memory refcount, the log append path issues no free, and ddt_phys_free() -- the only caller of zio_free() on this path -- runs from ddt_sync_flush_entry(). A pool examined inside that window contains blocks that no block pointer references but that are still allocated. zdb's leak detection never enumerates the log, so it misreports those blocks: as "leaked space" and a block traversal size mismatch in the generic accounting (print-only since d63f5d7e50), and as a fatal "obsolete indirect mapping count mismatch" when such a block sits behind a removed vdev's indirect mapping -- which is what intermittently fails the zloop CI job. Count the phys that the flush will free the same way as the deferred-free bplist, under a new "DDT pending free" bucket: reconstruct the BP, clear the dedup bit exactly as ddt_phys_free() will at flush, and feed it through zdb_count_block(). The selection mirrors ddt_sync_flush_entry(): an unborn phys owns no allocation, an obsolete ditto slot is freed whatever its refcount, and any other slot is freed once its last reference is gone. This fixes both symptom classes through one mechanism, since claiming also removes the extents from the indirect vdev's ms_allocatable that the obsolete-count recomputation scans. The accounting is exact, and does not require replaying the log against the DDT ZAP, because the import has already normalized them. ddt_log_load() replays each log in order so the newest record for a key wins, drops flushing-log entries duplicated in the active log, and skips everything at or before the flush checkpoint (whose frees were committed in the same tx). ddt_lookup() then searches the live tree, the active log and the flushing log before the stored objects, so a stale ZAP record is never consulted for a key the log describes. This code walks those already-normalized in-memory trees, so each key is represented exactly once. Non-ditto entries with a nonzero refcount are referenced by block pointers and remain covered by the traversal's lookup; pruned entries log a zeroed phys and are skipped by the birth check -- their blocks are still referenced and must not be claimed. A ditto slot is never the target of a logical BP, so claiming one cannot collide with the traversal. Genuine leaks still trip the existing checks; if a block pointer references a pending-free block (a corruption), the traversal's claim now fails visibly instead of passing silently. On a ztest pool captured inside the window, unpatched zdb reported 518 leaked extents and a 2080768-byte traversal mismatch; with this change the same pool reports no leaks, with 866 blocks accounted as DDT pending free. Add a ZTS test covering the generic window, the device-removal variant (which exits nonzero without this fix), that logged live entries and prune tombstones are not wrongly claimed, and that an entry resurrected by a new write before the log is flushed is not left pending. Reviewed-by: Brian Behlendorf Signed-off-by: Kamil Monicz Closes #18820 M cmd/zdb/zdb.c M tests/runfiles/common.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/dedup/dedup_log_zdb_leak.ksh _____________________________________________________________________________________________________________ Commit: fe0b36c116a3d7f9c2806c6ac5cb41e878d9fc00 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fe0b36c116a3d7f9c2806c6ac5cb41e878d9fc00 Author: Kamil Monicz (Mon 20 Jul 2026 17:21:18 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) zdb: don't index an indirect vdev's metaslabs in the --class filter zdb_count_block()'s --class filter resolves a block's allocation class by indexing the top vdev's metaslab array. An indirect vdev, left behind by a device removal, normally has no metaslabs; zdb synthesizes them in zdb_leak_init_prepare_indirect_vdevs() so that zio_claim() has somewhere to claim into. That only happens when leak tracking is enabled, so under -L the array is NULL and any block whose first DVA names a removed vdev dereferences it. Classify an indirect vdev from its allocation bias instead. The bias determines the vdev's primary metaslab group, and is available whether or not the synthetic metaslabs exist. For an indirect vdev with more than zfs_embedded_slog_min_ms metaslabs this also changes what the filter reports. The synthetic metaslabs carry no space maps, so they all look empty, and vdev_metaslab_init() moves the emptiest into the embedded log group; blocks in that range then classified as "other". Measured on a ztest pool with two removed vdevs, lowering the threshold so the move triggers: without the change 19 of the 1K blocks reachable through an indirect vdev counted under --class=other, and with it those same 19 count under --class=normal. Reporting the vdev's own class is both more useful and no longer dependent on whether -L was given. The metaslab lookup is kept for concrete vdevs, whose metaslabs can belong to an embedded log group that the bias alone does not describe. Add a test that removes the only disk data was written to, so every block is reached through the resulting indirect vdev, and runs the filter under -L. Reviewed-by: Brian Behlendorf Signed-off-by: Kamil Monicz Closes #18820 M cmd/zdb/zdb.c M tests/runfiles/common.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/removal/removal_indirect_class.ksh _____________________________________________________________________________________________________________ Commit: 85d773204b975ff65bd403a4f45d5a57d86ca548 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=85d773204b975ff65bd403a4f45d5a57d86ca548 Author: Kamil Monicz (Thu 16 Jul 2026 23:38:20 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) zio: don't strip gang stages from the DDT free pipeline zio_create() adds ZIO_GANG_STAGES to the pipeline of a logical free of a gang BP, but zio_free_bp_init() replaced the whole pipeline with ZIO_DDT_FREE_PIPELINE for dedup BPs, discarding those stages. When zio_ddt_free() takes the pruned-entry fallback (the entry was legitimately removed by zpool ddtprune, or missing for any other reason), the plain free that follows only frees the gang header extents (metaslab_free_dva() frees vdev_gang_header_asize() for a gang DVA) and every gang member leaks permanently. OR the full ZIO_DDT_FREE_PIPELINE into the existing pipeline instead of replacing it. zio_free_sync() is the only creator of these zios, and for a dedup BP it already builds them with ZIO_FREE_PIPELINE and ZIO_STAGE_ISSUE_ASYNC, so today this only adds ZIO_STAGE_DDT_FREE -- but ORing the whole declaration keeps this site correct if the DDT free pipeline ever grows a stage. Adding rather than replacing also keeps any stage zio_create() adds for this BP, so a future conditional stage cannot be silently dropped here again. The gang stages still run only on the true fall-through: when the DDT handles the reference, or a BRT reference remains, those stages truncate the pipeline before the gang stages execute (since the restructuring in #18520), and the refcount-to-zero path is unaffected (ddt_phys_free() rebuilds a dedup-cleared BP whose free zio gets its own gang stages). Extend the dedup_prune_leak test with a forced-ganging phase: write gang blocks on a dedup dataset, verify they are present and ganged in the DDT, prune, delete, and verify with zdb -bcc that the members were freed. Also capture zdb's exit status in both phases so a traversal error cannot go unnoticed. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18819 M module/zfs/zio.c M tests/zfs-tests/tests/functional/dedup/dedup_prune_leak.ksh _____________________________________________________________________________________________________________ Commit: 8d27111a031bf1a40d26af05a9c4964edc5f4134 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8d27111a031bf1a40d26af05a9c4964edc5f4134 Author: Kamil Monicz (Thu 16 Jul 2026 23:38:16 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ddt: select traditional phys by block identity, not BP DVA count The write path stores a traditional DDT entry in the phys slot chosen by the zp_copies value the block was written with, but the free-path lookup validation (ddt_entry_lookup_is_valid()) selected the slot to compare by the BP's physical DVA count, and ddt_addref() bumped the refcount of that same wrongly-selected slot. The two indexes diverge whenever a deduplicated block's BP carries more DVAs than its copies value, which is exactly what ganging does: a gang header is stored in more copies than the data it gangs, so copies=1 blocks get a two-DVA gang header BP (unconditionally through 2.3.3, and under the default redundant_metadata=all since a46ce73ca8 made it configurable in 2.3.4 and 9250403ba6 in 2.4.0), and from 2.3.4 that default also gives unencrypted copies=2 blocks a three-DVA header BP. Encryption does not avoid the mismatch at copies=1: the header BP still carries two counted DVAs (the salt/IV DVA is separate). For such a block the validation checked the wrong slot, concluded the entry had been pruned, and zio_ddt_free() fell back to a plain physical free: the shared gang header extents were freed once per DDT-referenced delete with no refcount decrement. Consequences per triggering delete: remaining references point at freed header sectors and fail with gang_header checksum errors once the space is reused; the second and later deletes commit overlapping FREE records to the spacemaps ("zfs: rt=...: adding segment ... overlapping with existing one" panics at import or runtime), or free unrelated live allocations if the extents were reused in between; the gang members are never traversed and leak once the last reference is deleted; and the entry itself becomes immortal, so future identical writes dedup against freed storage. Fix the validation to match a phys by block identity (DVA[0] and physical birth) via ddt_phys_select(), which is what the decref path already uses; this also implements the existing "XXX ... maybe can combine" comment. Fix ddt_addref() the same way in the same commit: its identical mis-indexing is currently masked only by the verified lookup failing first, so fixing the lookup alone would unmask a refcount increment on the wrong slot. The verified lookup guarantees a matching phys exists, and the VERIFY keeps DDT_PHYS_NONE from reaching ddt_phys_addref(), which would index out of bounds on release builds. Incidentally this also repairs frees of legacy DDT_PHYS_DITTO blocks (the old code could never select slot 0). Since traditional tables are never pruned (pruning only walks flat tables), a free-time lookup miss on one should not happen on a consistent pool: leave a zfs_dbgmsg trace when it happens instead of silently bypassing the refcount. The free-path regression dates to d4d79451cb ("Add DDT prune command"), first released in 2.3.0; before that the free path selected the phys by DVA identity. The ddt_addref() half predates it and is present in 2.2.x via block cloning. Note the code fix cannot repair damage already committed by the bug: leaked members, spacemap double frees, stale entries, and clones whose references landed in the BRT because ddt_addref() failed all persist on disk. Add a ZTS test that forces ganging on a legacy-DDT pool, takes three references to the same gang blocks (write, dedup copy, block clone), verifies the refcount of the copies=1 phys after every step, and checks the final state with zdb -bcc. It takes the clone reference with FICLONE, so it is registered Linux-only alongside the other FICLONE tests. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18819 M include/sys/ddt.h M module/zfs/ddt.c M module/zfs/zio.c M tests/runfiles/linux.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/dedup/dedup_legacy_gang.ksh _____________________________________________________________________________________________________________ Commit: e5decdeb59f4b0ca8f81fe92f3f4c81492e69835 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e5decdeb59f4b0ca8f81fe92f3f4c81492e69835 Author: Ryan Moeller (Fri 12 Jun 2026 19:43:58 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) dnode_sync: Relax constraint on indirect freeing One of the roles of the dnode sync thread is freeing. There are two modes of this operation: freeing a portion of an object, and freeing the object itself. Freeing is handled by `free_children()`. This function verifies that if the dnode has children there must be at least one marked as dirty before proceeding to recursively free the tree of block pointers. As described in a comment, this VERIFY is overly strict. In practice, children may not be marked as dirty when the dnode itself is being freed. Relax the VERIFY slightly by avoiding the VERIFY when indirect blocks are to be immediately freed, to more closely match the comment motivating the VERIFY. While here, clarify the logic of the test by using VERIFY_IMPLY instead of chaining multiple tests. Sponsored-by: Cybersecure Pty Ltd Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Ryan Moeller Closes #18822 M module/zfs/dnode_sync.c _____________________________________________________________________________________________________________ Commit: 90b632b05335e08ad077f9fb6828011d0f26dc81 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=90b632b05335e08ad077f9fb6828011d0f26dc81 Author: Paul Dagnelie (Tue 21 Apr 2026 22:17:37 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) Handle raidz errors <= nparity rather than ignoring This PR adds a check in the mirror and raidz code for the case where there are errors <= nparity. In that case, ZFS sets a new flag on the zio that will be checked in zio_done. If that flag is set, when the write IO completes, we issue a read IO for the same blkptr. That will allow ZFS's auto-healing mechanisms and other errors recovery tools to detect the effectively-corrupt data, and handle it accordingly. Note that because draid raidz's IO done function, it also benefits from this functionality. Reviewed-by: Brian Behlendorf Signed-off-by: Paul Dagnelie Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Closes #18387 M cmd/zinject/zinject.c M include/sys/zio.h M man/man4/zfs.4 M man/man8/zinject.8 M module/zfs/vdev_raidz.c M module/zfs/zio.c M tests/runfiles/common.run M tests/zfs-tests/include/libtest.shlib M tests/zfs-tests/tests/Makefile.am M tests/zfs-tests/tests/functional/cli_root/zinject/zinject_args.ksh A tests/zfs-tests/tests/functional/raidz/raidz_zinject.ksh _____________________________________________________________________________________________________________ Commit: 14f2d53b51ba0db4a9c6a3f45c98915cedade108 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=14f2d53b51ba0db4a9c6a3f45c98915cedade108 Author: Will Rouesnel (Sun 1 Nov 2026 02:18:33 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: import_rewind_metadata_damaged: allow the checkpointed state The test noted the last synced txg after "zpool checkpoint" and required the rewind past the damaged txg to report exactly that txg. That txg is not protected by the checkpoint: the checkpoint is created by a sync task that records the previous synced uberblock, so the txg the test noted is the one that creates the checkpoint (or a later one), and the blocks it allocates (its MOS root among them) are freed by the overwrite and can be reused by the txgs the export syncs. When that happens the txg fails to load ("unable to open rootbp in dsl_pool_init", or "unable to retrieve MOS config") and the rewind correctly goes on to the checkpointed state, an older txg, and the test fails with "The txg N was not reported as the rewind target". This is the same misconception as #19077 in import_relax_metadata_damaged. Read the txg of the checkpointed state with zdb (a new get_checkpointed_txg helper) and accept any rewind target from that state up to the txg noted before the overwrite. A rewind to the checkpointed state itself leaves no checkpoint behind, so check the checkpoint property instead of discarding it unconditionally. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19501 M tests/zfs-tests/tests/functional/cli_root/zpool_import/import_rewind_metadata_damaged.ksh M tests/zfs-tests/tests/functional/cli_root/zpool_import/zpool_import.kshlib _____________________________________________________________________________________________________________ Commit: 2c99f35496acfc72f15da7ee1cfe578bebde5ed9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2c99f35496acfc72f15da7ee1cfe578bebde5ed9 Author: Will Rouesnel (Mon 12 Oct 2026 23:55:18 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: fix the dRAID case of import_rewind_device_replaced The dRAID case creates a draid vdev with no distributed spares, the default, but expects the pool to end up with 'spares draid1-0-0'. No such spare can exist, so wait_for_pool_config always times out and the test has failed on every run since the case was added. The test was already on the known-failure list for unreliable rewinds, which hid this. The dRAID case of import_cachefile_device_replaced, added in the same commit, creates its pool with 'draid:1s' and expects the same final configuration, so create this one with a distributed spare too, from five disks, and replace a child with the sixth. Since the configuration zpool status then shows differs from the zpool create arguments, let test_replace_vdev take the expected configuration of the rewound pool as an optional argument. The test now passes, so move it from the known failures to the tests that may fail: a rewind can still be unreliable, but a pass is no longer unexpected. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19287 M tests/zfs-tests/tests/functional/cli_root/zpool_import/import_rewind_device_replaced.ksh _____________________________________________________________________________________________________________ Commit: e07274b71997024bfc9da097e5704fd8a72617a4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e07274b71997024bfc9da097e5704fd8a72617a4 Author: Alexander Motin (Fri 21 Aug 2026 15:29:14 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) Speed up pool rewind and allow it to tolerate minor damage Importing a damaged pool with -F/-X could take days: every rewind attempt scanned the whole pool, and it kept scanning long after it hit an error that already disqualified the txg. Worse, the scan is all or nothing -- a single unreadable block of file meta-data rejects a txg even when the pool itself is perfectly consistent, forcing the admin to rewind much further back and lose unrelated data for no reason. Abort the verification scan as soon as a txg is known to be unusable, and skip the data scan entirely for attempts that are only looking for a rewind target. Then split the errors found into those that really prevent the pool from working and those that only cost the contents of some files, and add a new "zpool import -M" asking to accept the latter. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Motin Closes #18967 M cmd/zpool/zpool_main.c M include/sys/fs/zfs.h M lib/libzfs/libzfs_pool.c M man/man4/zfs.4 M man/man8/zpool-import.8 M module/zcommon/zfs_comutil.c M module/zfs/dmu_traverse.c M module/zfs/spa.c M tests/runfiles/common.run M tests/zfs-tests/include/blkdev.shlib M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/cli_root/zpool_import/import_relax_metadata_damaged.ksh A tests/zfs-tests/tests/functional/cli_root/zpool_import/import_rewind_metadata_damaged.ksh _____________________________________________________________________________________________________________ Commit: 1894faf3698a662745dbaaf6c2966c660d98075c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1894faf3698a662745dbaaf6c2966c660d98075c Author: Tony Hutter (Wed 30 Sep 2026 18:03:15 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) CI: Split up tests evenly on runner VMs Our CI spawns two VMs on each github runner, and runs half the test suite on each. It naively splits up the tests by count, and doesn't take into account how long the individual tests groups take to run. This leads to one VM finishing the test suite before the other. For example, one recent run on Fedora 44: vm1 03:16:28 vm2 02:50:54 This commit attempts to balance the tests on the VMs by runtime. It does this by adding a test completion time database to zfs-tests.sh which is use to portion out the test groups equally. The database is just a big associative array that is generated by the new 'make-testdb.sh' helper script. Just point make-testdb.sh at a test results tarball and it will generate the new test times database. Note that the database will get stale over time and will periodically have to be re-generated (maybe every couple years). It doesn't hurt anything if it is stale though. If a new test is added that is not in the database, zfs-test.sh is smart enough to assign it a default value of whatever the average test runtime is, so it still stays relatively balanced. Reviewed-by: Brian Behlendorf Signed-off-by: Tony Hutter Closes #19084 A scripts/make-testdb.sh M scripts/zfs-tests.sh _____________________________________________________________________________________________________________ Commit: 6fd2a12fe8755c60b0ff7afe01469f23caa14e94 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6fd2a12fe8755c60b0ff7afe01469f23caa14e94 Author: Will Rouesnel (Fri 23 Oct 2026 18:37:01 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: pass only numbers to return ksh93u+m 1.0 (533ab5f932, 2026-10-22) rejects a non-numeric argument to return with "bad number" and exit status 128. The Alpine CI runners build ksh from the head of that branch, so since then zpool_prefetch_001_pos (return true) and zinject_counts (return [[ ... ]]) fail there on every run. Older versions silently treated those arguments as 0, so check_count_freq() in zinject_counts never failed: its equality test was also malformed ([[ $match -eq 0 $inject ]]), and the object injection case read /tank/file instead of the test pool's file, so it never matched the rule. Use the [[ ]] result as the status, compare the injection count with the match count, and read the right file. zed_stop() returned "" on FreeBSD; return 0. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19530 M tests/zfs-tests/include/libtest.shlib M tests/zfs-tests/tests/functional/cli_root/zinject/zinject_counts.ksh M tests/zfs-tests/tests/functional/cli_root/zpool_prefetch/zpool_prefetch_001_pos.ksh _____________________________________________________________________________________________________________ Commit: 41c135707033e4f326e7c9d580affaca9c8a6990 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=41c135707033e4f326e7c9d580affaca9c8a6990 Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Tue 3 Nov 2026 04:31:56 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) test-runner: preserve command argument boundaries Building sudo arguments by splitting a command string inserts an empty argument when TMPDIR is unset and splits paths containing spaces. Construct the argument list directly and add the optional environment assignment only when TMPDIR is set. Reviewed-by: Brian Behlendorf Signed-off-by: ooonea <35407790+ooonea@users.noreply.github.com> Assisted-by: OpenAI Codex Closes #19575 M tests/test-runner/bin/test-runner.py.in _____________________________________________________________________________________________________________ Commit: 6d3adbbd9a9f9e138205126a1230374e3514410d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6d3adbbd9a9f9e138205126a1230374e3514410d Author: Alexander Moch (Sat 24 Oct 2026 18:05:24 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) test-runner: write the kmemleak report into the log When kmemleak reports objects after a test, the test runner marks the test as failed and writes the report to a kmemleak file in the test's output directory, but not to the log. The CI's Test Summary and job summary take a failed test's output from the log, so the report only shows up in the downloaded archive. Also write the report into the log, after the test's own output, with each line prefixed "kmemleak:". The kmemleak file is unchanged. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19472 M tests/test-runner/bin/test-runner.py.in _____________________________________________________________________________________________________________ Commit: 6a930d8e366a368d495b26c576c7f147e4d3248f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6a930d8e366a368d495b26c576c7f147e4d3248f Author: Alexander Moch (Wed 16 Sep 2026 23:13:09 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: fix test-runner crashing immediately under -m sudo has no -c option, so it exits with a usage error and the run dies before the first test case. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19117 M tests/test-runner/bin/test-runner.py.in _____________________________________________________________________________________________________________ Commit: 26a40aa163d60d0e38c1f7214c9bef4fde1d863c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=26a40aa163d60d0e38c1f7214c9bef4fde1d863c Author: Brian Behlendorf (Thu 7 May 2026 17:12:33 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: use 'zpool trim -w' in zpool_trim_partial.ksh Don't use trim_progress() which is racy to wait for the pool trim to complete. Instead use the wait (-w) option which is intended for this. Reviewed-by: Tino Reichardt Signed-off-by: Brian Behlendorf Closes #18496 M tests/zfs-tests/tests/functional/cli_root/zpool_trim/zpool_trim_partial.ksh _____________________________________________________________________________________________________________ Commit: be5340dbe044905ca9ba84dc7e9f3d799201c39e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=be5340dbe044905ca9ba84dc7e9f3d799201c39e Author: Christos Longros (Tue 7 Apr 2026 22:02:02 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: fix trim test portability for FreeBSD Replace GNU-specific du flags (--block-size, -B1) and dd conv=nocreat with POSIX compatible commands. Move -O flag before pool name in zpool create to align with FreeBSD's strict POSIX getopt(). Relax vdev size thresholds in trim_config to account for ZFS-on-ZFS overhead. Add sync_pool before zpool trim -w to ensure freed blocks are committed before trimming. Skip zpool_trim_partial, zpool_trim_verify_trimmed, trim_config, and autotrim_config on FreeBSD where trim does not reclaim space on file vdevs stored on a ZFS filesystem within the test framework. Tested on FreeBSD 16.0-CURRENT: 26 PASS, 4 SKIP, 0 FAIL. Reviewed-by: Brian Behlendorf Signed-off-by: Christos Longros Closes #18398 M tests/zfs-tests/tests/functional/cli_root/zpool_trim/zpool_trim_online_offline.ksh M tests/zfs-tests/tests/functional/cli_root/zpool_trim/zpool_trim_partial.ksh M tests/zfs-tests/tests/functional/cli_root/zpool_trim/zpool_trim_start_and_cancel_neg.ksh M tests/zfs-tests/tests/functional/cli_root/zpool_trim/zpool_trim_verify_trimmed.ksh M tests/zfs-tests/tests/functional/trim/autotrim_config.ksh M tests/zfs-tests/tests/functional/trim/trim.kshlib M tests/zfs-tests/tests/functional/trim/trim_config.ksh _____________________________________________________________________________________________________________ Commit: 4e9f576fd7ac0d56520987a02fac90a39d1fdbe7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4e9f576fd7ac0d56520987a02fac90a39d1fdbe7 Author: Kamil Monicz (Sun 25 Oct 2026 19:12:30 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: preserve failures across repeated test executions The reporter keeps only the last result for each test pathname. A pass from another runfile group or a later iteration can overwrite an earlier failure and make zfs-tests.sh report success. Keep each result record and apply the existing pathname-based known and intermittent failure policies. Cover duplicate groups and repeated iterations with logs emitted by the test runner. Reviewed-by: Brian Behlendorf Reviewed-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Signed-off-by: Kamil Monicz Closes #19438 M tests/runfiles/common.run M tests/test-runner/bin/zts-report.py.in M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/test_runner/test_runner_report.ksh _____________________________________________________________________________________________________________ Commit: 7db05a6d0eebc2345693621f65b9410a3b7501cb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7db05a6d0eebc2345693621f65b9410a3b7501cb Author: Kamil Monicz (Sat 24 Oct 2026 17:59:20 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: select failed tests from current runner logs The rerun filters only recognize unprefixed, unlabelled result lines. Current timestamps and platform identifiers prevent failures from being selected, so automatic retries can report success without rerunning a failed test. Parse the emitted result headers and retain group identifiers when matching failures. Match resolved directories first, with relative runfile group paths allowing reruns after the suite moves. Absolute groups and standalone tests keep exact path matching. Let the runner parse retry records after the wrapper filters eligible test names, retaining older log support. Reviewed-by: Brian Behlendorf Reviewed-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Signed-off-by: Kamil Monicz Closes #19437 M man/man1/test-runner.1 M scripts/zfs-tests.sh M tests/runfiles/common.run M tests/test-runner/bin/test-runner.py.in M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/test_runner/test_runner_rerun.ksh _____________________________________________________________________________________________________________ Commit: 9ed72f2f46b1c344159da94fafad9e74c14defe8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9ed72f2f46b1c344159da94fafad9e74c14defe8 Author: Kamil Monicz (Sun 18 Oct 2026 20:35:16 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) ZTS: reject incomplete test selections The runner drops tests and groups whose scripts or users fail verification. A runfile with a missing test can therefore pass after running only its remaining tests. Apply tag and rerun filters before verification, then abort on an invalid selected test, auxiliary script or execution user. Limit directory discovery to executable files so support files do not become test requirements. Resolve relative group failsafe paths correctly before checking them. Reviewed-by: Brian Behlendorf Reviewed-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Signed-off-by: Kamil Monicz Closes #19436 M man/man1/test-runner.1 M tests/runfiles/common.run M tests/test-runner/bin/test-runner.py.in M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/test_runner/test_runner_selection.ksh _____________________________________________________________________________________________________________ Commit: 557e1636f3f9240a1a67dd7ca16235bb7f579172 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=557e1636f3f9240a1a67dd7ca16235bb7f579172 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Tue 10 Nov 2026 06:01:55 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) raidz: take the reflow range lock when spa_ubsync advances vdev_raidz_io_start() maps an i/o to an expanding RAID-Z vdev with the reflow offset in spa_ubsync: rows below it use the new location only, rows above it the old location, and also the new one where the copy has started. raidz_reflow_sync() takes the range lock as a writer over the range it commits, but it only writes the new offset into spa_uberblock. spa_sync() copies that into spa_ubsync at its very end, without the lock, so an i/o that starts in between still writes the old location of the committed range. Once spa_ubsync has advanced, the reflow copies other data over those old locations, and new writes there go to the new location only. An i/o from the window that is still in flight then (queued, slow or retried) lands on data that has already been copied, and that data is lost once the reflow has passed it. Take the range lock as a writer over the range spa_ubsync is about to pass while spa_sync() updates it, so that the update waits for those i/os. raidz_reflow_sync() and the scratch sync already change the offsets they own under that lock. In a userspace reproduction against libzpool, a zio_rewrite() of a block in the window, with its old-location writes held until the reflow had copied and synced other sectors over them, left a permanent error in another block once the expansion completed (3 of 3 runs). With this change spa_sync() waits for the write and the scrub is clean (3 of 3). A read in the window that repairs a column is covered only together with #19433, which keeps the read's range lock until its repair writes are done. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19705 M module/zfs/spa.c _____________________________________________________________________________________________________________ Commit: f2f3ce88fcb5f8f0cd03e7d3fa325a122d703668 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f2f3ce88fcb5f8f0cd03e7d3fa325a122d703668 Author: Will Rouesnel (Thu 8 Oct 2026 16:42:25 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) metaslab: use the physical birth to decide checkpointed frees metaslab_free() keeps freed blocks out of the free space while a checkpoint references them, which it decides with BP_GET_BIRTH(bp) <= spa_checkpoint_txg. For a block clone, BP_GET_BIRTH() is the logical birth: the txg of the clone, not of the allocation. When the original file is removed and later its clone, the clone holds the last reference and frees blocks that were allocated before the checkpoint, but they are returned to the normal free space. New writes can then overwrite them, and after 'zpool import --rewind-to-checkpoint' the checkpointed files read back with checksum errors. Use the physical birth, the txg the space was allocated in. It equals the logical birth for ordinary blocks and the rewrite txg for rewritten ones. This makes pool_checkpoint/checkpoint_bclone pass. Reviewed-by: Brian Behlendorf Reviewed-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Signed-off-by: Will Rouesnel Closes #19225 Closes #19312 M module/zfs/metaslab.c _____________________________________________________________________________________________________________ Commit: 873556895bd32a279f33a3b7eeba3c6c52d6c1ae URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=873556895bd32a279f33a3b7eeba3c6c52d6c1ae Author: Ryan Moeller (Sat 7 Nov 2026 20:32:17 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) Fix FreeBSD fallout from simd_aarch64 changes FreeBSD ARM requires sys/simd.h to be included before sys/vnode.h because simd.h pulls in definitions of AT_UID and AT_GID from elf_common.h, which vnode.h has to undef before its own definitions. This does not work in the reverse order. When 45e778b6bce7 included sys/simd.h in vdev_raidz_math_impl.h (included by vdev_raidz_math_scalar.c after sys/vnode.h) and zio_checksum.c, it broke the ordering. Restore the required include order to fix FreeBSD ARM builds. Fixes: 45e778b6bce7 Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Ryan Moeller Closes #19769 M module/zfs/vdev_raidz_math_scalar.c M module/zfs/zio_checksum.c _____________________________________________________________________________________________________________ Commit: 0951a738dcefb8fe971825fd695ba9e6e0b096cb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0951a738dcefb8fe971825fd695ba9e6e0b096cb Author: Matthew Ahrens (Thu 29 Oct 2026 19:42:32 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) raidz: fix write ASSERTs for scratch area columns While a RAID-Z expansion is in RRSS_SCRATCH_VALID, I/O to the start of the vdev uses the scratch area: vdev_raidz_map_alloc_expanded() subtracts VDEV_BOOT_SIZE from rc_offset and rc_shadow_offset, which wraps below zero. The bounds ASSERTs in vdev_raidz_io_start_write() compared these offsets directly, so any write to that region panicked debug builds, for example a resilver after a scratch I/O error paused the expansion. Compare the physical offset, including VDEV_LABEL_START_SIZE, instead. Reviewed-by: Paul Dagnelie Reviewed-by: Brian Behlendorf Signed-off-by: Matthew Ahrens Co-Authored-By: Claude Opus 5.5 Closes #19590 M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: b035f37f3b4058b93ba4478d70c2fbdc89d84960 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b035f37f3b4058b93ba4478d70c2fbdc89d84960 Author: Matthew Ahrens (Tue 27 Oct 2026 03:17:00 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) raidz: keep the scratch copy when import recovery fails When a pool is imported with a raidz expansion stopped in the scratch phase (RRSS_SCRATCH_VALID), vdev_raidz_reflow_copy_scratch() copies the scratch area over the start of the vdev. It ignored errors from both the scratch read and the write to the real location. A failed read left the buffer uninitialized, which was then written over live data, and the uberblock was moved to RRSS_SCRATCH_INVALID_SYNCED_ON_IMPORT, discarding the only good copy. On debug builds the same failure trips the io_error/ZIO_FLAG_CANFAIL assertion in zio_done() instead, because the root zios were created without ZIO_FLAG_CANFAIL. Create the zios with ZIO_FLAG_CANFAIL, as raidz_reflow_scratch_sync() does, check both zio_wait() calls, and on failure return with the state still RRSS_SCRATCH_VALID. I/O to the start of the vdev then keeps going to the scratch area, and the expansion thread retries the copy through raidz_reflow_scratch_sync(), which already checks these errors and pauses until the devices are healthy. Reviewed-by: Paul Dagnelie Reviewed-by: Brian Behlendorf Signed-off-by: Matthew Ahrens Co-Authored-By: Claude Opus 5.5 Closes #19590 M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: 12ca1b4d44fa4f43a9ece0a844265557971560ef URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=12ca1b4d44fa4f43a9ece0a844265557971560ef Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 21:52:42 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) arc: fix use-after-free in synchronous L2ARC read retry When a synchronous arc_read() (ARC_FLAG_WAIT) reads a block from the L2ARC and that read fails, arc_read() reads the block again from the pool with zio_read() into hdr_abd, the header buffer it took before issuing the L2ARC read. l2arc_read_done() runs l2arc_untransform() whenever the checksum matches. That decrypts and/or decompresses the block into a new buffer, frees the old b_pabd and puts the new buffer in its place. The read can still fail after that: the cache device reported an error although the data read is intact, the header was evicted from the L2ARC while it was being read (HDR_L2_EVICTED), or decryption succeeded and decompression failed. The read from the pool then writes the block into freed memory. This needs a synchronous read of a block that l2arc_untransform() replaces: an encrypted block read without ZIO_FLAG_RAW_ENCRYPT, or a compressed block with zfs_compressed_arc_enabled=0. The asynchronous retry in l2arc_read_done() already takes the buffer from the header under the hash lock. Take hdr_abd from the header again once the hash lock is held. The new buffer has the size of the one it replaces (arc_hdr_size() for both), and b_rabd is never replaced on this path, so the size of the read does not change. Tested in a userspace debug build with a libzpool program that reads blocks of an encrypted dataset with ARC_FLAG_WAIT through a cache device whose reads fail with EIO after the data was read (zio_inject_fault()). Without this change, the program aborts in abd_verify() on the freed abd_t, and under valgrind it shows invalid writes by zio_decrypt() (compressed ARC enabled) and by zio_decompress() (compressed ARC disabled) into buffers freed by l2arc_untransform(). With it, there is no abort and valgrind reports no invalid access. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19782 M module/zfs/arc.c _____________________________________________________________________________________________________________ Commit: ab3128b088ddf894cd437f8a30e500cf11f8c4f4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ab3128b088ddf894cd437f8a30e500cf11f8c4f4 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 18:53:12 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) CI: Label PRs reviewed by someone who can push to the repository "Status: Reviewed" tells that someone other than its author has reviewed a PR, but not whether one of the people who can merge it has, which is what a maintainer looking for PRs to merge, or for PRs that nobody who can merge them has read yet, wants to know. Add "Status: Maintainer Reviewed", created when missing, in the same periodic run, from the same reviews and under the same rules, when one of these reviewers can push to the repository. GraphQL gives this as authorCanPushToRepository on each review. The author association of a review would not do: it shows a private member of the organization as a contributor to the workflow's token. "Status: Reviewed" is unchanged. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: e2d26f4021e3b69817b5ab8611f85d24f590220a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e2d26f4021e3b69817b5ab8611f85d24f590220a Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 18:50:54 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) CI: Label PRs that nobody has updated for 90 days "Status: Inactive" exists but was only ever set by hand, so a PR that nobody has touched for months, lost in review or abandoned, does not stand out. Add it, every three hours with the review labels and on a manual run, to an open PR that has had no activity for 90 days by anyone but a bot: no commit, force-push, comment, review or reopening, and no change between draft and ready for review. Its opening counts too. These include every event that already takes the label off, so that the job does not put it back three hours later. Drafts are included: one left alone for 90 days is the PR most likely to be abandoned. The PR's updatedAt cannot tell, as every label change, this workflow's included, moves it. The job reads instead the last 50 of these events of each open PR, with the changes of the label, from its timeline, in one GraphQL query per 50 PRs, like the reviewed job. A commit counts from its commit date, as GitHub no longer gives the date of a push: a rebase or an amended commit gets a new one, and a force-push is an event of its own. A comment or a review starts no workflow, so the job also removes the label once there has been activity since it was added, but only when a bot added it, which the timeline tells: a label added by hand stays until a push, a reopening or a change of draft state removes it, as now. A label removed by hand is not added again before the PR has had activity, then 90 more days without. Removing a label that another run has already removed is not an error. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 5e0753c70b93ce1e1f280605b72ebfc9000c772f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5e0753c70b93ce1e1f280605b72ebfc9000c772f Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 18:44:55 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) CI: Label PRs from the other type boxes ticked in them Four of the eight "Types of Changes" boxes of the PR template gave no label, as no label matched them. Labels now exist upstream for them, so "Code cleanup", "Quality assurance", "Breaking change" and "Library ABI change" now add "Type: Code Cleanup", "Type: QA", "Type: Breaking Change" and "Type: Library API Change", the name of the label created for the last box. They are read when the other boxes are: when a PR is opened, when the description of an open PR is edited and on a manual run. "Code cleanup" and "Quality assurance" say what kind of change a PR is, and follow the rules of the other types: after opening, a PR gets them only if it has no type label yet, and the type labels of the issues it closes take their place. "Breaking change" and "Library ABI change" say instead what a change does, whatever its kind, which the type of an issue cannot tell. Each is therefore a kind of label of its own: it is added whenever its box is ticked and the PR does not have that label, whatever type labels the PR or the issues it closes have, and it is no type for the other boxes, so a PR opened as a bug fix that later ticks "Breaking change" gets the label. Labels are still only added. The comment of the PR template now says this instead of listing the boxes, and so does the README. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/PULL_REQUEST_TEMPLATE.md M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: f461bdf324ff5eaa76d12e4b2962269e709a38df URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f461bdf324ff5eaa76d12e4b2962269e709a38df Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 11:26:30 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) CI: Let a manual run of the labels workflow run one job A manual run labels every open PR from six jobs at once. The first one after these jobs are merged has hundreds of labels to add, which can exceed GitHub's limits of 80 label changes a minute and 500 content-creating requests an hour, although each job pauses after every change, and the limit of 1,000 REST API requests an hour of the workflow's token, which the other workflows share. Add a "job" choice to the manual run, "all" by default, so that the first run can be made one job at a time, an hour apart, as the README now says. Later manual runs have few labels to add, and "all" stays the default for them. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: f1aadfef9108ec7f478118b5ccb3351405a9d76c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f1aadfef9108ec7f478118b5ccb3351405a9d76c Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 10:33:38 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) CI: Label PRs that conflict with their base A PR that no longer merges cleanly shows it only on its own page, and waits for someone to open it. Add "Status: Merge Conflict", created when missing, while GitHub reports that a PR conflicts with its base, and remove it once GitHub reports it mergeable again: only this job sets the label, so it can also take it off. GitHub works the answer out in the background and reports UNKNOWN until then, which leaves the label as it is. When a PR is opened, pushed to or reopened, it is asked again every 10 seconds for up to a minute. Every three hours, with the review labels, and on a manual run, every open PR is checked, since a change to the base branch can make a PR conflict without any event of its own; a periodic run waits for a manual one rather than cancelling it. Removing the label when another run has already removed it is not an error. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 4a3731b4b25d81a0717e5470d97b1334e5568ff2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4a3731b4b25d81a0717e5470d97b1334e5568ff2 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 11:25:56 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) CI: Label PRs that a maintainer asked to change "Status: Revision Needed" was only ever set by hand, although the push job already takes it off when the author pushes. In the periodic run, add it to an open PR when the latest verdict of any reviewer with write access asks for changes to the PR's head commit, so that no push has answered it yet. The verdicts come from the GraphQL query of "Status: Reviewed", as latestOpinionatedReviews with writersOnly: GitHub then keeps only the latest approval or request for changes of each reviewer, and knows who can write to the repository, which the author association of a review does not tell the workflow's token, as a private member of the organization shows there as a contributor. A draft does not get it: converting a PR to a draft takes it off, and marking it ready for review asks for review. Like "Status: Reviewed", the periodic run reads only the verdicts submitted since its last successful run, so that a label removed by hand does not come back for the same verdict, except once for one submitted just before a run; the next push takes it off and asks for review again. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 5da716b7ad1118074f098d5be5229722f66f6b88 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5da716b7ad1118074f098d5be5229722f66f6b88 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 10:17:40 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:42 GMT) CI: Label PRs reviewed by someone other than their author The project board's "Approved" moves only on approvals that count for merging, so a PR reviewed by a contributor, or by a maintainer who asked for changes or only commented, looks the same as one nobody has read. Add "Status: Reviewed", created when missing, to an open PR once someone other than its author, and not a bot, has submitted a review of it: an approval, a request for changes or a comment, dismissed since or not. The label is only added. A review event cannot label a PR from a fork, as pull_request_review gets a read-only token for those, so the job runs every three hours, at 41 minutes past, over the last 100 reviews of every open PR, read with one GraphQL query per 50 PRs. It reads only the reviews submitted since 10 minutes before the last successful periodic run started, so that a run that GitHub skipped or that failed misses none, and a label removed by hand comes back only with a new review, or once more for a review submitted just before a run. Finding that run needs "actions: read", which only this job gets. When there is none, or it cannot be read, the job reads the last four hours, the interval and an hour of margin for a late run. A manual run looks at all the reviews, to label the PRs reviewed before the job existed, and a periodic run waits for it rather than cancelling it. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 72395d6e9340cdb9240fa2ad78c57575fe0a7563 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=72395d6e9340cdb9240fa2ad78c57575fe0a7563 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 10:16:30 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Ask for review when a PR is opened or revised "Status: Code Review Needed" was added only when a draft was marked ready for review, so a PR opened ready for review, the usual case, did not get it, nor did a PR whose author pushed the changes a reviewer had asked for. Add it when a PR is opened other than as a draft, which still gets "Status: Work in Progress" instead, and when a push or a reopening takes "Status: Revision Needed" off a PR that is not a draft. The labels these events remove are unchanged. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: fcb91a2b189bb492ad3e9d95f3848177fa5305c5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fcb91a2b189bb492ad3e9d95f3848177fa5305c5 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 09:54:36 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Label PRs blocked by the PRs or issues they depend on PRs that build on another one already say so on a line of their description, such as "Depends on #19564, "Record the former guid ..."", but "Status: Blocked" had to be set and cleared by hand. Read such lines: one that starts with "Depends on", optionally followed by "PR" or "pull request", then PRs or issues of this repository as "#N", "owner/repo#N" or their URL, separated by spaces, commas or "and". Only the start of a line counts, so prose such as "this no longer depends on #N" does not. A PR that declares a dependency gets "Status: Blocked" while any of them is open and loses it once all are closed. A PR that declares none is left alone, so the label set by hand on it stays, as does the label of a PR whose line is deleted. A dependency that cannot be read leaves the PR as it is, and a PR that names itself is not blocked by it. Only the first 10 dependencies are read, so that a long list does not cost an API call per number on every event; the workflow tells the author so in a comment, once, recognised by a marker on later events. The description is read when a PR is opened, reopened or pushed to, or edited while open, and for every open PR on a manual run. The workflow now also runs when a PR is closed and when an issue is closed or reopened, to update the open PRs that depend on it, as it now does when a PR is reopened, so that closing and reopening one blocks them again. No other job runs on these events: the jobs that run when a PR is reopened now check that it is a PR. The update has a concurrency group of its own, so that an edit or a push right after a reopening does not cancel it. Removing a label that another run has already removed is not an error. A closing keyword would not do: "Closes #N" says that merging the PR closes #N. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 29d10c574dad61f572ed414380e1d804f5dbf8f9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=29d10c574dad61f572ed414380e1d804f5dbf8f9 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 09:45:35 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Copy the type and component labels of the issues a PR closes An issue's labels were set by the maintainer who triaged it, and a PR that closes it is usually of the same type and component, but they had to be set again by hand on the PR. Copy the "Type: " labels and the active "Component: " labels of the issues a PR closes, when and as the template boxes are read: when the PR is opened, then only for a kind it has no label of yet. The issues' types take the place of the ticked type boxes, since a maintainer chose them; when the issues have no type, the boxes still count. Archived labels, such as most components today, are skipped: GitHub gives the archived_at of each label of an issue. The issues are those GitHub itself links as closed by the PR, from a closing keyword in its description (Closes, Fixes or Resolves, with "#N" or the issue's URL) or from the Development section of its page, so the job does not parse keywords itself. Issues of other repositories are ignored, and a pull request is never linked this way. GitHub links them only for PRs into the default branch. At most 10 issues are read per PR, and one that cannot be read is skipped. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/PULL_REQUEST_TEMPLATE.md M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 1b9044a3678ae1422c8cfb25a5eb272b7956e5de URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1b9044a3678ae1422c8cfb25a5eb272b7956e5de Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 09:44:04 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Label PRs that change only the build or packaging Add "Type: Building", an existing label, to the area job: a PR whose files are all CI, tests, documentation or build and packaging files gets the label of each of these it changes. Like "Type: Documentation", it is a fact about the files, so it is added whatever other type the PR has, never removed, and read on every push rather than on description edits. Build and packaging files are those used only to configure, build or package OpenZFS: configure.ac, autogen.sh, every Makefile.am, config/ (the m4 checks, automake fragments and deb, rpm and tgz targets), META (the version and supported kernels), zfs.release.in, the kernel module builds (module/Kbuild.in, module/Makefile.in and module/Makefile.bsd), copy-builtin, which builds OpenZFS into a Linux tree, the packages in rpm/ and contrib/debian/, and the scripts they run: scripts/kmodtool, scripts/dkms.mkconf, scripts/dkms.postbuild and scripts/make_gitrev.sh. Left out are the rest of scripts/ (test, style and developer tools), the rest of contrib/ (dracut, initramfs, PAM, pyzfs and other parts built and shipped like code), etc/ and udev/ (files the packages install) and .gitignore files. A Makefile.am under tests/ or man/ counts as tests or documentation, so adding a test or a man page is not a build change. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: bf7d8d3893bbb6477a8175964ebfc82fb5b3a508 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bf7d8d3893bbb6477a8175964ebfc82fb5b3a508 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Mon 9 Nov 2026 09:42:44 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Label PRs from the type and priority boxes ticked in them The priority label was read only when a PR was opened, so a PR opened before the Priority section existed, or with no box ticked, could never get one: ticking a box later did nothing. The "Types of Changes" boxes were not read at all, although four of them match labels in use. Read both sections when a PR is opened, again whenever the description of an open PR is edited, and for every open PR when the workflow is run by hand. "Bug fix", "New feature", "Performance enhancement" and "Documentation" add "Type: Defect", "Type: Feature", "Type: Performance" and "Type: Documentation"; the other boxes have no label. A priority still needs exactly one box ticked. A PR gets these labels when it is opened, and later only those of a kind it has no label of yet, so a label set by hand is never overridden; labels are only added. At opening, the PR's labels are not looked at: one that another job adds at that moment, such as "Type: Documentation" from the area job, is no choice, and the result must not depend on which job runs first. Later runs read the PR from the API rather than from the event, so that a label added by the run for an earlier event counts, and runs for one PR do not overlap. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19800 M .github/PULL_REQUEST_TEMPLATE.md M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 6aa66a3b7532d26ff664c5b4b4da2652aacb7929 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6aa66a3b7532d26ff664c5b4b4da2652aacb7929 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Thu 5 Nov 2026 09:59:37 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Label PRs with the priority picked when they are opened Add a Priority section to the PR template: how soon the PR should be merged, whatever its type: now, for the next release, in a later release, or whenever convenient. When a PR is opened with exactly one of its boxes ticked, add the matching "Priority: Critical", "Priority: High", "Priority: Medium" or "Priority: Low" label. The description is read only then, so later edits leave the label alone; changing it takes the Triage role or above. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19777 M .github/PULL_REQUEST_TEMPLATE.md M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 752acfd90912e062295d4788dc97f866a9713a05 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=752acfd90912e062295d4788dc97f866a9713a05 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Thu 5 Nov 2026 14:20:33 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Label PRs that change only CI, tests or documentation When every file a PR changes is under .github/, under tests/, or is a man page or a Markdown file, add the matching existing labels: "Component: CI", "Component: Test Suite" or "Type: Documentation", one for each of these the PR changes. The rule uses directories and one extension only, so there is no list of files to keep current. Labels are only added, never removed, so labels set by hand stay. Running the workflow by hand labels all open PRs. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19777 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: a0f7c074cdf6202839ad2e5ac08431885aeb8d6b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a0f7c074cdf6202839ad2e5ac08431885aeb8d6b Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Thu 5 Nov 2026 09:59:37 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Label PRs by the number of lines they change Add a "Size: XS" to "Size: XXL" label to every PR, from the lines it adds and removes as the PR page counts them: fewer than 10, 30, 100, 500 or 1000 lines, or more. The label is set when a PR is opened or reopened and kept current on every push. Running the workflow by hand labels all open PRs, and is safe to repeat. The labels are created the first time they are needed. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19777 M .github/workflows/README.md M .github/workflows/labels.yml _____________________________________________________________________________________________________________ Commit: 7d666d2489a2514a9495b5b258f6e61f7f0d686d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7d666d2489a2514a9495b5b258f6e61f7f0d686d Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Sun 8 Nov 2026 19:35:16 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) zfsprops.7: explain available on RAID-Z with small blocks On RAID-Z the conversion from allocated space to the units used by available, used and quotas relies on a ratio computed for a 128 KiB block on the vdev's original layout (vdev_deflate_ratio). The figure is therefore accurate for 128 KiB blocks on an unexpanded vdev, but not for other sizes or after a RAID-Z expansion. With ashift=12 on RAID-Z1 to RAID-Z3 of 3 to 12 disks, the allocation arithmetic of vdev_raidz_psize_to_asize_width() and that ratio charge a 4 KiB block 1.33 to 2.91 times its data, and a 1 MiB block 0 to 8% less than its data. Small files in a recordsize=128K filesystem behave like small blocks. Document this next to the available property so that users sizing datasets with small recordsize or volblocksize are not surprised. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19663 M man/man7/zfsprops.7 _____________________________________________________________________________________________________________ Commit: 0e915952a3680471f443f96749186e1961539452 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0e915952a3680471f443f96749186e1961539452 Author: Will Rouesnel (Wed 30 Sep 2026 20:26:03 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) raidz: refuse too small replacements during expansion While a raidz expansion is in progress, `zpool replace` of a raidz child accepts a device that is too small. The resilver or the reflow then writes past the end of the new device, tripping this VERIFY in a debug build (or writing past the end of the device otherwise): VERIFY3U(rc->rc_offset + rc->rc_size, <, cvd->vdev_psize - VDEV_LABEL_END_SIZE) failed PANIC at vdev_raidz.c:vdev_raidz_io_start_write() Reproducer: truncate -s 1G /var/tmp/d{1..4}; truncate -s 800M /var/tmp/small zpool create tank raidz1 /var/tmp/d1 /var/tmp/d2 /var/tmp/d3 zfs set compression=off tank dd if=/dev/urandom of=/tank/f bs=1M count=1200; zpool sync tank zpool replace tank /var/tmp/d1 /var/tmp/small # "device is too small" echo 1 > /sys/module/zfs/parameters/raidz_expand_max_reflow_bytes zpool attach tank raidz1-0 /var/tmp/d4 zpool replace tank /var/tmp/d1 /var/tmp/small # accepted spa_vdev_attach() requires the new device to be at least vdev_get_min_asize() of the child being replaced, which for a raidz child is the top-level vdev's vdev_min_asize (its allocatable size rounded down to a metaslab) divided by vdev_children. During an expansion from W to W+1 children, vdev_children is already W+1. But the reflow proceeds from offset 0 to the end of the last metaslab (vdev_ms_count << vdev_ms_shift, E), and everything beyond the current reflow offset is still laid out W wide, reaching child offset E/W. In the example above the limit was ~764M while E/W is ~1019M, so the 800M device was accepted. Add vdev_raidz_expand_child_min_asize(), which returns E/W rounded up to whole sectors of the vdev's ashift (the last W-wide row ending at E ends at child offset ceil((E >> ashift) / W) << ashift), and require devices replacing a child of an expanding raidz vdev to be at least that large in addition to the existing check. The already reflowed region only needs E/(W+1). vdev_rz_expanding is restored from the config on import, so this also holds when a paused expansion is resumed after export/import, and it is cleared when the expansion completes, at which point all data uses the new layout and the regular check is correct again. This also applies to replacing the newly attached child; that is conservative, but it was attached with at least vdev_get_min_asize() of the W-wide vdev, which is no smaller. The check is deliberately only applied to new devices in spa_vdev_attach() rather than folded into vdev_raidz_min_asize(), which every child is checked against whenever it is opened: the top-level vdev_asize can legitimately exceed W times the smallest child during an expansion (e.g. when it was computed W+1 wide), and a stricter open-time limit would make such existing pools unopenable, even though their metaslabs, and thus the W-wide region, fit. This makes raidz_expand_012_neg, added in the previous commit, pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19279 M include/sys/vdev_raidz.h M module/zfs/spa.c M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: e1bc3be85a663adfe1d5a6e9bdf63cd22576ec75 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e1bc3be85a663adfe1d5a6e9bdf63cd22576ec75 Author: Ivan Volosyuk (Sun 1 Nov 2026 23:11:27 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: unhash zero-link znodes when resuming after rollback zfs_resume_fs() calls zfs_rezget() for every cached znode after a rollback or a receive into a mounted filesystem. If zfs_rezget() fails, the inode is unhashed so that a new object created with the same number does not collide with it. zfs_rezget() can also succeed for an object that has zero links in the new state: a file that was open-unlinked when the snapshot was taken and is still held open. It then sets z_unlinked and drops the SA handle, but the inode stays hashed. The unlinked drain that runs after resume finds no znode attached to the object, so it allocates a new unhashed one and frees the object. When the object number is reused, insert_inode_locked() finds the old inode and fails: VERIFY0(insert_inode_locked(ip)) failed (-16) PANIC at zfs_znode_os.c:641:zfs_znode_alloc() The panicking thread holds an assigned transaction, so txg_quiesce and all writers to the pool then hang. Treat a zero-link znode the same as a failed zfs_rezget(): drop its aliases and remove it from the inode hash. The SA handle is already gone, so the remaining descriptors keep failing with EIO as before. This makes zfs_rollback_held_unlinked, added in the previous commit, pass. Co-Authored-By: Claude Opus 5.5 Reviewed-by: Brian Behlendorf Signed-off-by: Ivan Volosyuk Closes #19678 M module/os/linux/zfs/zfs_vfsops.c _____________________________________________________________________________________________________________ Commit: 1c9226d6243de8b9f1dc56901a3856a8e179d297 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1c9226d6243de8b9f1dc56901a3856a8e179d297 Author: Wale Zhang (Thu 5 Nov 2026 04:31:09 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Fix direct reads of blocks pending free Direct reads only check the on-disk block pointer for holes, so they can read stale data after a block has been freed but before the free has synced. Share buffered read hole detection with direct reads to honor pending frees as well. Keep cached data ahead of hole detection and preserve the transaction ordering of block clone and direct write overrides. Retain the block pointer recheck after dnode_block_freed() for concurrent syncing. Reviewed-by: Brian Behlendorf Signed-off-by: Wale Zhang Closes #19633 M include/sys/dbuf.h M module/zfs/dbuf.c M module/zfs/dmu_direct.c _____________________________________________________________________________________________________________ Commit: 52254befefd4096c701978a2fef8d825eee63019 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=52254befefd4096c701978a2fef8d825eee63019 Author: Patrick Domack (Thu 5 Nov 2026 03:10:27 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) ZIL: Sync the txg that a suspended commit waits for zil_suspend() raises zl_suspend and then calls zil_commit_impl(). With zl_suspend set, zil_get_commit_list() leaves every itx on the per-txg lists, including the commit itx that carries the caller's own waiter, and returns that txg for the caller to wait for instead. But zil_commit_impl() waits on the waiter first, and the waiter is on no lwb. Only zil_itxg_clean() can mark it done, once the txg syncs, and nothing asks for that sync. The wait lasts until the sync thread's zfs_txg_timeout timer fires. A zil_commit() that loses the race with zil_suspend() waits the same way. spa_reset_logs() suspends the ZIL of each dataset in turn while it holds spa_namespace_lock. zpool remove, zpool split, removing a log device that holds log blocks and offlining a non-redundant log device all call it. Each dataset with a ZIL chain adds up to zfs_txg_timeout to the command, and every other pool command waits for the lock meanwhile. At the default of 5 seconds, the zpool remove in removal_nopwrite takes 10 to 11 seconds for its two file systems. With a large zfs_txg_timeout the command looks hung. Call txg_kick() for the returned txg before waiting on the waiter. The txg syncs without waiting for the timer and zil_itxg_clean() completes the waiter. The error handling after the wait does not change. The new ZTS case removal_with_zil sets zfs_txg_timeout to 300 seconds, writes a file with O_SYNC so the file system has a ZIL chain, and removes a vdev. The removal must return within 60 seconds. Without this change it waits for the timer. The test then runs sync(1), whose zil_commit() on the suspended ZIL calls txg_wait_synced() and releases the removal, and fails. With the change the removal returns in under a second. Reviewed-by: Brian Behlendorf Signed-off-by: Patrick Domack Closes #19329 M module/zfs/zil.c M tests/runfiles/common.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/removal/removal_with_zil.ksh _____________________________________________________________________________________________________________ Commit: 0efe79601ed0f0e3f7169f7854e72b2801d41671 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0efe79601ed0f0e3f7169f7854e72b2801d41671 Author: Will Rouesnel (Thu 5 Nov 2026 02:46:24 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) dmu_recv: keep rrd->abd current in do_corrective_recv() do_corrective_recv() works on a local copy of rrd->abd, and may replace it up to three times: with the decompressed stream data, with the recompressed data, and with the re-encrypted data. Each time the old buffer is freed, but rrd->abd is only updated just before the rewrite zio is issued. receive_process_record() unconditionally frees rrd->abd after do_corrective_recv() returns for a healing receive, so any error return between the first swap and that assignment frees the original stream buffer a second time and leaks the current one. The affected returns are the three error returns in the re-encryption block (taken for a non-raw receive into an encrypted dataset), when reached after the data has been decompressed (compressed stream) or recompressed (compressed on-disk block): - dsl_dataset_hold_flags(..., DS_HOLD_FLAG_DECRYPT, ...) failing (returns EACCES), - spa_keystore_lookup_key() failing (returns EACCES), - zio_do_crypt_abd() failing. These are not reachable in practice today: dmu_recv_begin_check() refuses a non-raw healing receive into an encrypted dataset unless its key is loaded, and the receive owns the snapshot being healed with DS_HOLD_FLAG_DECRYPT for its duration, which keeps the key mapped and prevents it from being unloaded (zfs unload-key fails with EBUSY); zio_do_crypt_abd() only fails on internal crypto errors. The ownership contract is nevertheless fragile, and any new error return added after a swap (for example a check of the recompressed size) would silently inherit the bug. Update rrd->abd every time the buffer is swapped, so the caller always frees the buffer that is actually live. Also assert that the three error returns aren't taken, so debug builds catch a change to these assumptions, while release builds keep returning the error. Reviewed-by: Ameer Hamza Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19323 M module/zfs/dmu_recv.c _____________________________________________________________________________________________________________ Commit: 4c619a51167bc4e19eeeac66810a43636d12a48d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4c619a51167bc4e19eeeac66810a43636d12a48d Author: Will Rouesnel (Wed 30 Sep 2026 20:43:49 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) dmu_recv: fix corrective recv of zstd compressed blocks A corrective ("healing") receive into a dataset using zstd compression panics on debug builds, and overruns a heap buffer on production builds: zpool create -o ashift=12 tp /var/tmp/zd zfs create -o compression=zstd -o recordsize=128k tp/fs zfs snap tp/fs@s; zfs send tp/fs@s > s.zs zfs recv -c tp/fs@s < s.zs VERIFY3U(aiter->iter_pos, <=, aiter->iter_abd->abd_size) failed (131072 <= 24576) PANIC at abd_os.c:841:abd_iter_at_end() do_corrective_recv() recompresses the stream data with the block's algorithm and rwa->os->os_complevel, into a buffer of the block's physical size. There are three problems with this: - A healing receive writes into a snapshot, and dmu_objset_open_impl() does not register the compression property callbacks for snapshots, so os_complevel is always 0 (ZIO_COMPLEVEL_INHERIT). For zstd, zio_compress_data() returns the source size unchanged when asked for the inherited level. - The returned size is not checked against the physical size, so csize ends up as the logical size, which is larger than the physical size of the buffer, and abd_zero_off(cabd, csize, psize - csize) is called with a wrapped length. - The maximum compressed size passed to zio_compress_data() is the block's physical size, whereas zio_write_compress() used zio_get_compression_max_size() when the block was written. The output of zstd depends on this: for levels at or above zstd_cutoff_level (which includes the default level) and 128k blocks, the early abort heuristic first checks whether LZ4 or zstd-1 can compress the data into the maximum size, and gives up if not. With the tighter limit those passes fail for data that zstd at the real level compresses fine, so the block can never be reproduced. Fix this by: - Taking the zstd level from the effective compression property of the dataset (which for a snapshot is inherited from its head), falling back to the default zstd level if the property names another algorithm. This makes the common case, blocks written with the dataset's current compression setting, heal correctly. The level a block was written with is only recorded in its zstd header, and the on-disk copy is by definition corrupt, so it can not be relied upon. If the level does not match, the checksum verification that already precedes the rewrite rejects the data and nothing is written. - Compressing with the same maximum size as zio_write_compress(), and treating a result larger than the block's physical size as unhealable: the data can not reproduce the on-disk block, so fail with ECKSUM (or skip the block when zfs_recv_best_effort_corrective is set), exactly as for a checksum mismatch. Raw receives are unaffected: their data is written as-is. Non-raw receives into encrypted datasets are encrypted after the recompressed data is prepared, as before. This makes zfs_receive_zstd_corrective, added in the previous commit, pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19281 M module/zfs/dmu_recv.c _____________________________________________________________________________________________________________ Commit: 06559e996765e033162d0420762f3d43c6740506 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=06559e996765e033162d0420762f3d43c6740506 Author: Walter McKelvie (Wed 4 Nov 2026 18:41:13 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux 7.0 compat: kernel_neon_begin() takes a state buffer Linux 6.2 made the arm64 kernel_neon_* functions EXPORT_SYMBOL_GPL, and commit 7b89149c9 ("Linux 6.2 compat: add check for kernel_neon_* availability") added a configure probe that uses them when they are visible to the module and otherwise turns kfpu_begin()/kfpu_end() into no-ops. Users could still get NEON by building against a kernel that re-exports those symbols, or with a GPL-compatible module license. Linux 7.0 broke that: it moved the arm64 kernel mode NEON save buffer out of task_struct and changed the interface to kernel_neon_begin/end(struct user_fpsimd_state *), so the caller now provides the buffer (the kernel's own users put it on the stack) and the region can be preempted. The probe no longer compiled, so NEON was silently disabled even where the license was not a problem. Support the new interface by making the context explicit in the kfpu API. kfpu_begin() and kfpu_end() take a kfpu_ctx_t *, declared by the caller for each region. On Linux arm64 with the new interface it is struct user_fpsimd_state; everywhere else it is a placeholder struct that the implementation ignores, so other platforms are unchanged. The fletcher ABD checksum holds its region open across init, iterate and fini, so its context lives in fletcher_4_abd_priv_t and reaches the adapters through acd_private. zio_abd_checksum_data_t is unchanged. Configure now probes both interfaces and, as the kernel crypto API check does, warns when a kernel with CONFIG_KERNEL_MODE_NEON matches neither even with a GPL-compatible license, since that means the interface changed again and SIMD would otherwise be lost silently. Assisted-By: Claude Fable 5.1 Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Signed-off-by: Walter McKelvie Closes #19546 M config/kernel-fpu.m4 M include/os/freebsd/spl/sys/simd.h M include/os/freebsd/spl/sys/simd_aarch64.h M include/os/freebsd/spl/sys/simd_arm.h M include/os/freebsd/spl/sys/simd_powerpc.h M include/os/freebsd/spl/sys/simd_x86.h M include/os/linux/kernel/linux/simd.h M include/os/linux/kernel/linux/simd_aarch64.h M include/os/linux/kernel/linux/simd_arm.h M include/os/linux/kernel/linux/simd_powerpc.h M include/os/linux/kernel/linux/simd_x86.h M include/zfs_fletcher.h M lib/libspl/include/sys/simd.h M module/icp/algs/aes/aes_impl_aesni.c M module/icp/algs/blake3/blake3_impl.c M module/icp/algs/modes/gcm.c M module/icp/algs/modes/gcm_pclmulqdq.c M module/icp/algs/sha2/sha256_impl.c M module/icp/algs/sha2/sha512_impl.c M module/zcommon/simd_stat.c M module/zcommon/zfs_fletcher.c M module/zfs/vdev_raidz_math_aarch64_neon_common.h M module/zfs/vdev_raidz_math_avx2.c M module/zfs/vdev_raidz_math_avx512bw.c M module/zfs/vdev_raidz_math_avx512f.c M module/zfs/vdev_raidz_math_impl.h M module/zfs/vdev_raidz_math_powerpc_altivec_common.h M module/zfs/vdev_raidz_math_scalar.c M module/zfs/vdev_raidz_math_sse2.c M module/zfs/vdev_raidz_math_ssse3.c M module/zfs/zio_checksum.c _____________________________________________________________________________________________________________ Commit: 0a79bfe75b092601a80c495472af54cc5135f974 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0a79bfe75b092601a80c495472af54cc5135f974 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Wed 4 Nov 2026 00:16:30 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: FreeBSD 15.2 PRERELEASE The FreeBSD 15.1-STABLE CI images are no longer available: the snapshots/CI-IMAGES directory of download.freebsd.org now lists 14.5-STABLE, 15.2-PRERELEASE and 16.0-CURRENT, and every freebsd15-1s job fails in "Start build machine". Rename the builder to freebsd15-2s and point it at the 15.2-PRERELEASE images, as #18490 did for 15.1. Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> M .github/workflows/README.md M .github/workflows/scripts/qemu-2-start.sh M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: d9b7ee0e132df9dcc07175ce9ace146da79f5bac URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d9b7ee0e132df9dcc07175ce9ace146da79f5bac Author: Tony Hutter (Wed 4 Nov 2026 17:57:30 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Add Fedora 45 Reviewed-by: Brian Behlendorf Signed-off-by: Tony Hutter Closes #19710 M .github/workflows/scripts/qemu-2-start.sh M .github/workflows/zfs-qemu-packages.yml M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: 487be88678d9a952eaf4de345c941e00de53d292 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=487be88678d9a952eaf4de345c941e00de53d292 Author: Will Rouesnel (Thu 15 Oct 2026 08:46:45 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) raidz: reconstruct rows not yet reflowed with their own width When a raidz read fails its checksum and the damaged columns are not known, vdev_raidz_combrec() tries every combination of up to nparity failed children. Besides the current children, it also simulates children that failed before an expansion: the reflow copies their bad sectors without checking them, spreading them diagonally over the new layout, and raidz_simulate_failure() finds them by the sector's position in the old width. It numbered every column's sector by the current physical width, though. During an expansion, the rows the reflow has not copied yet are still at their old location, one child narrower, and for them that numbering is wrong: simulating a child that failed before the expansion picked unrelated columns of those rows, and their damage only matched the simulated failure of the current child. A block that straddles the reflow offset then needed two simulated failures for one bad disk, one for the damage the reflow had copied into its new rows and one for its old rows. A scrub reported a permanent error for such a block on raidz1 even though every row had a single bad sector (raidz_expand_boundary_repair fails 20 of 20 runs), and a scrub that runs while the reflow copies damaged data meets such blocks at every txg. Mark rows that are still at their old location in vdev_raidz_map_alloc_expanded() and number their sectors by the old width in raidz_simulate_failure(): a child that failed before the expansion in progress is then the child their columns are on, the same as for a child that failed since. Reviewed-by: Brian Behlendorf Reviewed-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Signed-off-by: Will Rouesnel Closes #19433 M include/sys/vdev_raidz_impl.h M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: 2afd2db4edc35905b591bacb2e25212282225ad6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2afd2db4edc35905b591bacb2e25212282225ad6 Author: Will Rouesnel (Mon 12 Oct 2026 20:41:49 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) raidz: hold the expansion rangelock until repair writes finish A raidz read takes the expansion rangelock as a reader for its range in vdev_raidz_io_start(), so the reflow cannot copy those rows while the read uses their locations. vdev_raidz_io_done() released the lock at its end, but the repair writes it issues for damaged columns (and the scrub's shadow writes) are only started there with zio_nowait(); they complete later. The reflow could then take the range, copy the rows before the repairs reached the disk, and advance past them. A repair that lands afterwards writes to a location the reflow may already have filled with other data in the expanded layout. With damage on as many disks as there is parity, a scrub during an expansion then reported permanent data errors (raidz_expand_scrub_repair failed 20 of 20 runs). raidz_expand_001_pos, which scrubs such a pool during a paused expansion, fails now and then in CI with the same signature: a permanent error from the first scrub, with only nparity disks zeroed. Release the lock in vdev_raidz_map_free_vsd() instead. The vsd is freed in zio_vdev_io_assess() after all of the zio's vdev children, including the repair writes, are done, and also when io_done never ran. Reviewed-by: Brian Behlendorf Reviewed-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Signed-off-by: Will Rouesnel Closes #19433 M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: 2f85a937e028a9184daaa705bfdc6a17371289c0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2f85a937e028a9184daaa705bfdc6a17371289c0 Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Tue 3 Nov 2026 04:13:53 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: install Alpine PAM development headers Install linux-pam-dev so configure finds security/pam_modules.h and builds pam_zfs_key in the Alpine VM. Keep the existing module source and installation path. Reviewed-by: Brian Behlendorf Signed-off-by: ooonea <35407790+ooonea@users.noreply.github.com> Co-authored-by: ooonea Assisted-by: OpenAI Codex Closes #19584 M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: 5116561b8ff1c355fb6245499e3e4863f6b2a88c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5116561b8ff1c355fb6245499e3e4863f6b2a88c Author: Matthew Ahrens (Tue 3 Nov 2026 03:36:52 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) ZIL: Don't acknowledge commits after a failed log block After a log block (lwb) fails to write, a later fsync() or O_DSYNC write can return success, and then be lost in a crash. When an lwb's write fails, its waiters fall back to txg_wait_synced(). zil_lwb_set_zio_dependency() passes the error on to the next lwb only while the failed one is still in flight. An lwb issued after the failed one reached LWB_STATE_FLUSH_DONE has no dependency on it, so it completes without error and its waiters return success. But on disk, the log chain ends at the failed lwb, because zil_parse() can't read it. Until the txg holding the failed lwb's records syncs and zil_sync() moves zh_log past it, a crash loses every record after it, including ones zil_commit() reported as stable. The same happens when the lwb itself is written but a dmu_sync() write for one of its WR_INDIRECT records fails. That error also reaches the lwb's root zio, so the lwb's own waiters fall back, and again later lwbs complete without error. After a crash, zil_claim_log_record() can't read the record's data block, declares that the end of the log, and every record after it is lost. This is easy to hit: the failed lwb's waiters sit in the fallback while other threads keep committing, and each of those commits opens an lwb after the failed one is done. Ack timestamps from a crash test (a transient slog write error, then a crash before the txg synced) showed hundreds of acknowledged writes lost. When an lwb fails, record its issue txg in zl_lwb_error_txg: it bounds the alloc and max txgs of that lwb and every earlier one, so zil_sync() of that txg frees them and moves zh_log past the failed block. Until that txg has synced, give an error to waiters that would otherwise be marked done without one, in zil_lwb_flush_vdevs_done() and zil_prune_commit_list(), so that zil_commit_impl() falls back to txg_wait_synced() as it does when the waiter's own lwb fails. In a frozen pool, txgs after the freeze sync without reaching disk, so treat an error txg after the freeze as never synced, as zil_process_commit_list() does for itxs. An lwb whose write succeeds can also end the on-disk chain. If zil_lwb_write_issue() can't allocate the next log block, it still writes the lwb, with a hole for zc_next_blk, but without the next block's checksum. zil_read_log_block() only accepts a block whose zc_next_blk has the checksum of the next block in the sequence, so it rejects this lwb, and its records and every record after it are lost, though its waiters were acknowledged once it was flushed. Set the checksum even if the allocation failed. The lwb is then a valid end of the log, and the next lwb, which inherits the allocation error, fails and records zl_lwb_error_txg. This also closes a smaller hole: zil_prune_commit_list() marked a waiter done with no error whenever zl_last_lwb_opened was FLUSH_DONE, even if that lwb failed and held the waiter's itxs. New ZTS test functional/slog/slog_replay_lwb_error makes a slog write fail with zinject -e io-prefail while the main vdevs are slowed down, fsyncs another file once slog writes succeed again, then simulates a crash (io-prefail on every vdev, then copies the vdevs) and imports the copy. Without this change the second fsync returns before the crash and its file is missing after import. Reviewed-by: Rob Norris Reviewed by: George Wilson Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Matthew Ahrens Co-authored-by: Claude Opus 5.5 Closes #19481 M include/sys/zil_impl.h M module/zfs/zil.c M tests/runfiles/common.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/slog/slog_replay_lwb_error.ksh _____________________________________________________________________________________________________________ Commit: 4c7eac35bca30ef65c0a2f1b98e99837e4aad939 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4c7eac35bca30ef65c0a2f1b98e99837e4aad939 Author: Matthew Ahrens (Tue 3 Nov 2026 03:34:45 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Fix user accounting after incremental receives into encrypted datasets Until now, user, group and project accounting was skipped while any receive into an encrypted dataset was in progress. A raw receive can't account for the objects it changes, because their owners and sizes are encrypted, and non-raw receives skipped it too so that a raw incremental could be received on top of them later. Since 63a26454ba, a raw incremental stream can be received into a dataset whose base snapshot already has accounting, which happens when sending changes back to the dataset they came from (for example, failing back after a failover). The receive leaves the accounting objects and each object's DNODE_FLAG_USER*USED_ACCOUNTED flags as they were, and the upgrade that runs at the next mount only dirties every object again. For an object that is already marked as accounted, the old and new charges both come from the received state, so they cancel. Objects that the stream changed or freed keep their old charges: a chown isn't reflected, freed space stays charged, and later frees can wrap the counts below zero. A non-raw incremental onto a base snapshot with complete accounting is never recounted at all, with the same result. Throw the accounting away at the end of a raw receive, while the dataset is still inconsistent and owned by the receive. The key isn't needed: - The DNODE_FLAG_USER*USED_ACCOUNTED flags aren't covered by the MAC of the dnode block, so each block of dnodes with any accounted dnode is rewritten raw with the crypt params it already has, and dnode_sync() clears the flags of every dnode dirtied in a raw receive. - The accounting objects are encrypted, so they can't be emptied, but they can be freed like any other object, and the objset's accounting-complete flags are cleared. dnode_sync_free() now handles these special dnodes, which live in the objset_phys_t and have no dirty hold. That leaves the dataset as a full raw receive does, which every implementation already handles, and the usual upgrade at the next mount counts every object from scratch. If the receive is interrupted, the dataset stays inconsistent; a resumed receive repeats the reset. A non-raw receive has the key, so skip accounting only for raw receives. Set os_raw_receive before a raw stream's key payload creates a new dataset's objset, so that accounting is never enabled for it. Accounting an object's change needs its owner before the change, which dmu_objset_userquota_get_ids() reads from the bonus buffer in dn_phys when the dnode is first dirtied. dnode_hold() reads blocks of dnodes raw, and a receive can change an object, for example its block size, before anything has read its bonus buffer, so that buffer may still be encrypted. Decrypt the block of dnodes first. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Matthew Ahrens Co-authored-by: Claude Opus 5.5 Closes #19516 M include/sys/dmu.h M include/sys/dnode.h M module/zfs/dbuf.c M module/zfs/dmu_objset.c M module/zfs/dmu_recv.c M module/zfs/dnode.c M module/zfs/dnode_sync.c M tests/runfiles/common.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/userquota/userspace_send_encrypted_changes.ksh _____________________________________________________________________________________________________________ Commit: f6b3972d02d6f953c5410390a788ae0e48423e8b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f6b3972d02d6f953c5410390a788ae0e48423e8b Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Tue 3 Nov 2026 03:07:18 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: quote QEMU OS configuration expansions Preserve the OS selection JSON and output-file path instead of applying shell word splitting and globbing. Read the CI type and source without interpreting backslash escapes. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Giuseppe Piscitelli Assisted-by: OpenAI Codex Closes #19619 M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: 6baa2d79fa5eb88785980ea3e556f12b5f8723d1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6baa2d79fa5eb88785980ea3e556f12b5f8723d1 Author: Will Rouesnel (Mon 12 Oct 2026 17:13:01 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) zed: don't count solved cases as peers of a new diagnosis Since ddf5f34f0 the diagnosis engine skips faulting a vdev when another leaf under the same parent has an active SERD case, on the grounds that errors on several drives at once point at something above the drives. A solved case also counts: its engine has fired. But a solved case stays open for as long as its vdev stays faulted, so once ZED has faulted one leaf of a mirror or raidz and a hot spare has replaced it, no other leaf under that parent can be faulted by ZED again until the first one is repaired or replaced. The second failing disk keeps its errors, gets no spare, and the case is retired over and over ("pool ... is tracking 1 other io error cases -- skip faulting the vdev"). Skip solved cases when counting peers. A faulted vdev gets no more I/O, so its case no longer says anything about errors happening now. Cases that are still accumulating errors, or whose fault is pending, still hold off a diagnosis as before. This makes auto_spare_multiple pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closed #19523 Closes #19666 M cmd/zed/agents/zfs_diagnosis.c _____________________________________________________________________________________________________________ Commit: cc4d7d6b9914ab9140043a649defcc123990b785 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cc4d7d6b9914ab9140043a649defcc123990b785 Author: Kamil Monicz (Tue 3 Nov 2026 01:10:27 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: stop QEMU dependency preparation on failure The dependency wrapper continues after failed boot checks, transfers and remote preparation. It can then wait for a guest that never powers off, or return success after losing the original error. Select Bash explicitly and stop on failed commands so the calling workflow receives the preparation failure immediately. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Kamil Monicz Closes #19462 M .github/workflows/scripts/qemu-3-deps.sh _____________________________________________________________________________________________________________ Commit: 44b887dacc23ecbd40624437b52ecd91015f7c27 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=44b887dacc23ecbd40624437b52ecd91015f7c27 Author: Will Rouesnel (Wed 30 Sep 2026 20:03:43 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) libzfs: reject malformed numeric ids in userquota props userquota_propname_decode() parsed numeric user/group/project ids with strtoul() into a uid_t and only checked that the whole string was consumed. strtoul() accepts an empty string, leading whitespace and a sign, and the result was silently truncated to 32 bits, so: zfs set userquota@=10M pool # sets uid 0 (root)'s quota zfs set userquota@-1=10M pool # sets uid 4294967295's quota zfs set userquota@4294968296=1G pool # sets uid 1000's quota zfs set groupquota@' 5'=1G pool # sets gid 5's quota all succeeded, and "zfs get userquota@root pool" then reported the quota. The same applied to every {user,group,project}{quota,used, objquota,objused} property. Since MAXUID is UINT32_MAX on Linux and FreeBSD, the "id > MAXUID" check could never catch the overflow. Require the id to be a non-empty string of decimal digits, parse it with strtoull() checking errno, and reject values that do not fit in 32 bits. UINT32_MAX itself is still accepted for users and groups, as before; the kernel already rejects it as a project id. Also make zfs_set_userquota() reject a rid wider than 32 bits, which would otherwise be truncated when encoded into the FUID. This makes userquota_014_neg, added in the previous commit, pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19292 M lib/libzfs/libzfs_dataset.c M module/zfs/zfs_quota.c _____________________________________________________________________________________________________________ Commit: 4bc3aaf63c9670b921e95bfd93e7425218d7e476 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4bc3aaf63c9670b921e95bfd93e7425218d7e476 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Sun 1 Nov 2026 02:07:35 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) L2ARC: Do not write encrypted buffers whose MAC differs When compressed ARC is disabled, l2arc_apply_transforms() compresses an encrypted buffer again and encrypts the result with the block's salt and IV. If the compressor's output differs from the bytes on disk, for example for a block written before an update of the compressor, the MAC differs from the one saved in the header too. A debug build then panics on the ASSERT0() that compares them, and a release build writes a copy that fails its checksum when read back. Skip the write instead, as is already done when the recompressed buffer does not fit in its original size: the caller clears ARC_FLAG_L2CACHE, so the buffer is not tried again until it is accessed again, and no L2ARC accounting has been done for it yet. Keep asserting for a buffer that was not recompressed, whose MAC can only differ through a bug elsewhere. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19631 M module/zfs/arc.c _____________________________________________________________________________________________________________ Commit: 7af10cb723760604c6d28197d65b453535ff32a9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7af10cb723760604c6d28197d65b453535ff32a9 Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Sat 31 Oct 2026 22:04:32 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Allow more time for bootstrap FreeBSD startup installs packages before the dependency phase. Increase the startup timeout to 20 minutes for all platforms. Reviewed-by: Tony Hutter Reviewed-by: Alexander Motin Signed-off-by: Giuseppe Piscitelli Assisted-by: OpenAI Codex Closes #19624 M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: 072fb07818fb033201aafc5fd0939f1a502a29fb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=072fb07818fb033201aafc5fd0939f1a502a29fb Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Sat 31 Oct 2026 22:01:44 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) recv: check the temporary clone name length Reject an incremental receive whose temporary child name cannot fit before syncing context formats its history entry. Corrective receives create no child. Exercise both sides of the name limit and preserve the base snapshot GUID after rejection. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: ooonea <35407790+ooonea@users.noreply.github.com> Assisted-by: OpenAI Codex Closes #19554 M module/zfs/dmu_recv.c M tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_005_neg.ksh _____________________________________________________________________________________________________________ Commit: df7b36ecc60df4e7084048e2339d63c276bf8530 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=df7b36ecc60df4e7084048e2339d63c276bf8530 Author: Jared Maxwell <128261747+ThatRetiredDude@users.noreply.github.com> (Thu 22 Oct 2026 17:01:19 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Do not copy stale data from a mirror child in a rebuild A sequential rebuild reads with a block pointer that has no checksum and birth txg TXG_INITIAL. vdev_mirror_child_select() only skips a child whose DTL contains that txg, so a child that missed later writes, for example one onlined while the rebuild runs, can serve the read. Its stale data is then written to the leaf being rebuilt and nothing verifies it. The resilver of the onlined child does not repair the rebuilt leaf, so unless a scrub covers those blocks, for example with zfs_rebuild_scrub_enabled=0, the rebuilt leaf keeps the bad copies until a full scrub. For rebuild reads, prefer children whose DTL is empty, and fall back to one that missed writes only when no other child can be read. dRAID is left unchanged: its distributed spares must stay preferred, and its own reconstruction can still read such a child, which this change does not address. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Jared Maxwell <128261747+ThatRetiredDude@users.noreply.github.com> Closes #19538 M module/zfs/vdev_mirror.c _____________________________________________________________________________________________________________ Commit: ec0bb051409265db3ec61e161c5d6454d3e70a8a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ec0bb051409265db3ec61e161c5d6454d3e70a8a Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Sat 31 Oct 2026 21:33:11 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) zdb: exit non-zero when block traversal finds leaked space Commit d63f5d7e5 ("zdb: rework DDT block count and leak check to just count the blocks") dropped the "leaks = B_TRUE" that followed the "block traversal size ... != alloc ..." message in dump_block_stats(). Neither the commit message nor the review discussion mentions it, and nothing else in the change depends on it. Since then zdb -b prints "leaked space" and the size mismatch but exits 0. Only BRT, DDT and obsolete-count leaks still fail it. ztest treats a non-zero zdb exit as fatal, so ztest and zloop have not caught space map leaks since 2.3.0, and neither has any script that checks zdb's exit status. Set leaks again when the totals differ. Also set it in zdb_leak_fini() when a metaslab still has segments left after the traversal, so that the exit status follows the "leaked space" lines directly and not only the totals. Both are skipped with -L, as before. Document in zdb.8 that exit status 2 also covers leaked space; the code has returned 2 for leaks since before d63f5d7e5. Reviewed-by: Brian Behlendorf Reviewed-by: Matthew Ahrens Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19606 M cmd/zdb/zdb.c M man/man8/zdb.8 _____________________________________________________________________________________________________________ Commit: d428de9dc1997a0d289ffba7f8f3d9930e6f97fc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d428de9dc1997a0d289ffba7f8f3d9930e6f97fc Author: Will Rouesnel (Tue 13 Oct 2026 06:31:14 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Wait for dataset evictions when exporting a read-only pool spa_export_common() waits for the asynchronous evictions of closed datasets before it checks the pool's references, but only when the pool has a sync thread. A pool imported read-only has none, so the datasets that zpool export has just unmounted can still be evicting: each dsl_dir_t holds a reference on the pool until dsl_dir_evict_async() runs, and the export fails with "pool is busy". A retry a moment later succeeds. Call spa_evicting_os_wait() for every pool. It needs no sync thread; spa_unload() already calls it for read-only pools. This makes zpool_export_readonly_pos pass. It also removes the cause of failures that existing tests work around, so drop those workarounds: - import_rewind_device_replaced: the remaining failures were not failed rewinds. All five in recent CI runs (debian13 x3, ubuntu24, ubuntu26) were "cannot export 'testpool1': pool is busy" right after the read-only rewind import succeeded and its data checked out. Remove it from the maybe list, and the now unused rewind_reason. - rsend_014_pos: the export of the read-only pool was changed to log_must_busy in 4cb932d951 because it occasionally failed with EBUSY, after the sends had released their datasets. Check it like any other export again. - import_devices_missing: 29a0ffe795 made both exports retry on "pool is busy". The second one exports the pool imported read-only with missing devices; check it without retrying again. The first export is of the read-write pool and keeps its retry. - zfs_send_005_pos: the cleanup exports the pool the test imported read-only; check it without retrying. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19588 M module/zfs/spa.c M tests/test-runner/bin/zts-report.py.in M tests/zfs-tests/tests/functional/cli_root/zfs_send/zfs_send_005_pos.ksh M tests/zfs-tests/tests/functional/cli_root/zpool_import/import_devices_missing.ksh M tests/zfs-tests/tests/functional/rsend/rsend_014_pos.ksh _____________________________________________________________________________________________________________ Commit: 451b969c01935e1b842a48f55916e52a4105d0d6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=451b969c01935e1b842a48f55916e52a4105d0d6 Author: Kamil Monicz (Sat 31 Oct 2026 20:55:47 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) icp: record the accelerated GCM hash-table allocation size gcm_init_avx() allocates the hash table but leaves gcm_htab_len zero in an atomic context. gcm_clear_ctx() uses that field to wipe the authentication-subkey table and free its storage, so the wipe is skipped and kmem_free() receives the wrong size. Record the allocated length before initializing the table. This covers both the AVX and AVX2/VAES table sizes. Fixes: bb9225ea86dc Reviewed-by: Alexander Motin Reviewed-by: Attila Fülöp Signed-off-by: Kamil Monicz Closes #19411 M module/icp/algs/modes/gcm.c _____________________________________________________________________________________________________________ Commit: 7767caa7688daef2e4308bf443987961ba32b51e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7767caa7688daef2e4308bf443987961ba32b51e Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Thu 29 Oct 2026 00:52:40 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Release the upgrade hold before clearing os_upgrade_id dmu_objset_upgrade_task_cb() clears os_upgrade_id under os_upgrade_lock and only then, after dropping the lock, releases its long hold on the dataset. dmu_objset_upgrade_stop() waits for the task only if it finds os_upgrade_id set, so in that window it returns at once, dmu_objset_disown() can drop the last hold, and the async eviction finds the long hold still counted: VERIFY3U(rc->rc_count, ==, number) failed (1 == 0) PANIC at refcount.c:91:zfs_refcount_destroy_many() dsl_dataset_evict_async+0x151/0x290 [zfs] The task's own release then touches a dataset that may be freed. dmu_objset_own() starts a userspace upgrade task on every writable mount, so a pool destroyed right after it is created can hit this: zpool_create_024_pos did once in CI. Release the hold while os_upgrade_lock is still held, before clearing os_upgrade_id. Reviewed-by: Alexander Motin Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19556 M module/zfs/dmu_objset.c _____________________________________________________________________________________________________________ Commit: 9bebc92660a4651e57cd6c3d46b6ae117eb09569 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9bebc92660a4651e57cd6c3d46b6ae117eb09569 Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Thu 29 Oct 2026 00:41:32 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) vdev: avoid null member access in statistics updates Initialize the statistics pointers only in the successful non-root I/O path, where they are used. Remove the early sanitizer-specific initializations without adding a null check. Assisted-by: OpenAI Codex Reviewed-by: Alexander Motin Signed-off-by: ooonea Closes #19578 M module/zfs/vdev.c _____________________________________________________________________________________________________________ Commit: d73257c107b40f80a27db74b2c1cab8c66ab7029 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d73257c107b40f80a27db74b2c1cab8c66ab7029 Author: Walter McKelvie (Sun 25 Oct 2026 19:16:22 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: fix zfs_sha256_available() on ARM CPUs that also have SHA-512 ID_AA64ISAR0_EL1.SHA2 is 0b0001 when SHA-256 is implemented and 0b0010 when SHA-256 and SHA-512 both are. zfs_sha256_available() tested bit 0 of the field, so on every CPU that also implements SHA-512, which includes Apple silicon and recent Cortex and Neoverse cores, it reported SHA-256 as absent. The sha256 armv8-ce implementation was then never listed and the slower NEON variant was the fastest available, while zfs_sha512_impl correctly offered armv8-ce on the same CPU. Treat any nonzero field value as SHA-256 present, matching the kernel's HWCAP_SHA2 logic. FreeBSD and userspace use HWCAP and were already correct. Reviewed-by: Tino Reichardt Reviewed-by: Rob Norris Reviewed-by: Alexander Motin Signed-off-by: Walter McKelvie Closes #19536 M include/os/linux/kernel/linux/simd_aarch64.h _____________________________________________________________________________________________________________ Commit: a40f2782b07830cad818cb8b2b5309aabcda5912 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a40f2782b07830cad818cb8b2b5309aabcda5912 Author: Dmitry R (Thu 22 Oct 2026 19:18:17 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) vdev: atomically account checkpoint space during parallel load Each vdev_load task adds its checkpoint space to the same pool-wide sci_dspace counter. Plain updates can lose contributions from other vdevs loading concurrently. Use atomic addition during load and atomic subtraction when tearing down a loaded checkpoint space map. The other updates of the counter, in metaslab_sync() and in the checkpoint discard callback, are not known to race, but use the same atomic helpers so that every update of the field is consistent. This addresses a candidate cause of the sci_dspace verification failure in #12053; that failure has not been reproduced locally. Sponsored-by: TAKT (ABX DEVELOPMENT LLP) Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Dmitry R Co-authored-by: Claude Opus 5.5 Closes #11946 Closes #12053 Closes #19511 M module/zfs/metaslab.c M module/zfs/spa_checkpoint.c M module/zfs/vdev.c _____________________________________________________________________________________________________________ Commit: 450ed7c3eb773ee4776e9fa5fa1b884e92ea6f8a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=450ed7c3eb773ee4776e9fa5fa1b884e92ea6f8a Author: Jorgen Lundman (Thu 22 Oct 2026 18:03:55 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) raidz: compute the aggregate copy offset before adding it vdev_raidz_io_done() found a column's data in an aggregate read buffer with physbuf + rc_offset - prc_offset. That adds the column's device offset to the pointer before taking off the aggregate's, so the intermediate pointer is far outside the buffer, which is undefined. macOS arm64e kexts are built with pointer arithmetic checks that poison a result whose top bits differ from the base pointer. Once a child offset was large enough to wrap the kernel heap address, the intermediate pointer was poisoned and the memcpy() in abd_copy_from_buf() took a data abort on a non-canonical address. Subtract the two offsets first so only the in-bounds result is formed. Reviewed-by: Matthew Ahrens Reviewed-by: Brian Behlendorf Reviewed-by: Kamil Monicz Signed-off-by: Joergen Lundman Co-authored-by: Claude Opus 5.5 Closes #19506 M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: 4886f4fda6842fb3da11d1fffae8a41b4661aeb0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4886f4fda6842fb3da11d1fffae8a41b4661aeb0 Author: Will Rouesnel (Sat 3 Oct 2026 04:34:25 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) ddt: fix NULL bp dereference in ddt_repair_entry_done() ddt_repair_entry() issues the DDT self-heal rewrites under a null zio, created with zio_null(rio, spa, NULL, ddt_repair_entry_done, rdde, ...). Since d17ab631a ("ddt: rework access to phys array slots"), the done callback finds the ddt for ddt_free() with ddt_select(zio->io_spa, zio->io_bp), but a null zio has no bp, so BP_GET_CHECKSUM(NULL) faults. Every DDT repair therefore ends in a NULL pointer dereference in the z_null_int taskq. Affected since zfs-2.3.0. This is reachable in normal kernel operation on a pool with a legacy (non fast_dedup) DDT, where an entry keeps one phys slot per copies= value: if the same block is written with copies=1 and copies=2 and all DVAs of one slot are damaged, a read of that block is served from the other slot by zio_ddt_read_start()/zio_ddt_child_read_done(), which queues the entry on ddt_repair_tree, and the next txg sync panics in ddt_sync() -> ddt_repair_table() -> ddt_repair_entry(). Fix it by passing the ddt to the done callback together with the repair entry in a small context, allocated per repaired entry. This makes dedup_legacy_repair, added in the previous commit, pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19301 M module/zfs/ddt.c _____________________________________________________________________________________________________________ Commit: b35c92d1b583a9e77a9e2a1cd4b34157bbbfc8ff URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b35c92d1b583a9e77a9e2a1cd4b34157bbbfc8ff Author: Will Rouesnel (Thu 8 Oct 2026 15:37:56 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) libzfs: don't abort when a recv target's origin is outside the tree recv_incremental_replication() compares the stream's origin of a file system with the local one, and created_before() looks both up in the local tree with fsavl_find(), passing the result straight to fnvlist_lookup_string(). If the local origin was moved out of the received tree, for example by promoting the original file system back after the target had been cloned and promoted, the lookup returns NULL and zfs receive aborts. An origin outside the received tree can't have been promoted inside it, so only check for a promote when both origins are in the tree, and make created_before() report "same" for snapshots it can't find. This makes cli_root/zfs_receive/zfs_receive_promote_outside pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #17087 Closes #19308 M lib/libzfs/libzfs_sendrecv.c _____________________________________________________________________________________________________________ Commit: 238b39534393c9ae2a65a5a57078671a06f47bdc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=238b39534393c9ae2a65a5a57078671a06f47bdc Author: Will Rouesnel (Thu 8 Oct 2026 15:37:55 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) dsl_crypt: only expect an IVset guid on snapshots dsl_crypto_populate_key_nvlist() looks up DS_FIELD_IVSET_GUID on the dataset being sent and asserts that a missing one means the pool has the ZOL_8308 errata. Only snapshots get an IVset guid, though, and a raw send of an unmounted encrypted file system, or zdb -B of its objset, sends the head dataset, so debug builds panic (zdb aborts) on 'zfs send -w pool/fs'. Release builds send with to_ivset_guid 0. Only assert for snapshots. This makes cli_root/zfs_send/zfs_send_raw pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19018 Closes #19310 M module/zfs/dsl_crypt.c _____________________________________________________________________________________________________________ Commit: ff0440234b6f1547c1180347c5bb2ddae16e44a2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ff0440234b6f1547c1180347c5bb2ddae16e44a2 Author: Alexander Moch (Wed 21 Oct 2026 00:54:11 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: run only the dependency part of qemu-3-deps-vm.sh in zfs-arm zfs-arm runs qemu-3-deps-vm.sh on the ARM runner itself, without ONLY_DEPS. Its Ubuntu branch therefore still installs linux-modules-extra-$(uname -r), and ARM runners on image 20261018.154.1 boot 7.0.0-1017-azure, which has no such package. apt-get fails and the job fails in "Install dependencies". zfs-arm needs only the dependencies. After them the script prepares a test VM: it enables NFS, Samba and the guest agent, rewrites the GRUB command line and resets cloud-init. zfs-arm then only builds, loads the zfs.ko it built and creates a pool on a file. Set ONLY_DEPS=1, as the other workflows that run the script on the runner do. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19502 M .github/workflows/zfs-arm.yml _____________________________________________________________________________________________________________ Commit: 99adc5dd0dffe1f2d4e4d613c755521602191e64 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=99adc5dd0dffe1f2d4e4d613c755521602191e64 Author: Will Rouesnel (Wed 30 Sep 2026 20:21:48 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: don't dereference NULL z_ctldir in zfs_vget() for snapshots A snapshot's zfsvfs never gets a .zfs control directory (zfsctl_create() is skipped for z_issnap), but z_show_ctldir keeps its default value because property callbacks are not registered for snapshots. A short file handle for ZFSCTL_INO_ROOT or ZFSCTL_INO_SNAPDIR with a zero generation, presented on a mounted snapshot, therefore sets *ipp to NULL in zfs_vget(), which a debug build catches with "VERIFY(*ipp != NULL) failed". Return ENOENT when there is no control directory, the same as when snapdir=disabled. This makes snapdir_fh_ctldir, added in the previous commit, pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19290 M module/os/linux/zfs/zfs_vfsops.c _____________________________________________________________________________________________________________ Commit: bb0b8dda30d3697dfcc437ad669f2a06cd395c37 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bb0b8dda30d3697dfcc437ad669f2a06cd395c37 Author: Will Rouesnel (Wed 30 Sep 2026 20:03:31 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: report correct d_ino for .zfs/snapshot entries zpl_snapdir_iterate() has emitted each snapshot with an inode number of ZFSCTL_INO_SHARES - objsetid since the .zfs control directory was first added. Every other path which names a snapshot directory, the lookup (zfsctl_snapdir_lookup), getattr of the unmounted placeholder and of the automounted snapshot root (zfs_getattr_fast), the file handle code (zfsctl_fid, zfs_vget), and statfs, uses ZFSCTL_INO_SNAPDIRS - objsetid. As a result the d_ino returned by readdir(3) for .zfs/snapshot/ is off by two from the st_ino reported by stat(2) for the same entry, and it can even collide with the inode number of a different snapshot's directory. Tools which correlate readdir inode numbers with stat results, such as find(1), du(1) and rsync(1) hard link and cycle detection, or programs that use d_ino to avoid a stat per entry (e.g. Python's os.scandir()), see inconsistent inode numbers. It also breaks deriving the snapshot objsetid from the directory entry, which is now otherwise possible without triggering an automount via an O_PATH open and statx(2). Emit ZFSCTL_INO_SNAPDIRS - objsetid so readdir agrees with lookup. The '.zfs' entries 'snapshot' and 'shares' and the '.zfs' entry in the dataset root were already consistent. FreeBSD has its own .zfs implementation and is not changed here. This makes snapdir_readdir_ino, added in the previous commit, pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19286 M module/os/linux/zfs/zpl_ctldir.c _____________________________________________________________________________________________________________ Commit: b7ec7ea0c5d120a0735aae2cd39b71f78431930a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b7ec7ea0c5d120a0735aae2cd39b71f78431930a Author: Alexander Moch (Tue 20 Oct 2026 16:39:10 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: do not install linux-modules-extra on the runner Runners now boot 7.0.0-1017-azure, for which Ubuntu publishes no linux-modules-extra package. apt-get fails with "Unable to locate package" and every QEMU job on such a runner fails in "Setup QEMU". The runner does not need the package. In the 6.17.0-1022-azure and 7.0.0-1017-azure kernels, zfs.ko and spl.ko are in linux-modules, which comes with the kernel. So are kvm, vhost_net, bridge and the netfilter modules for libvirt's network in 6.17.0-1022-azure, and loop and tun are built in. linux-modules-extra there holds hardware drivers. checkstyle, smatch, unit-tests and zloop run qemu-3-deps-vm.sh with ONLY_DEPS=1 on the runner itself, where its Ubuntu branch fails the same way. They do not need the package either: only zloop loads a module, the zfs.ko it just built. Skip it with ONLY_DEPS and keep it for the Ubuntu test VMs. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19492 Closes #19497 M .github/workflows/scripts/qemu-1-setup.sh M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: 3c59f5834f6933897813956919ad922146caf5da URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3c59f5834f6933897813956919ad922146caf5da Author: jomplox <21096700+jomplox@users.noreply.github.com> (Tue 20 Oct 2026 00:19:08 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: avoid waking kswapd when growing vmem slabs Since Linux 7.0, vm_area_alloc_pages() first tries to back a vmalloc area with pages of order up to ilog2(nr_pages). Those attempts clear __GFP_DIRECT_RECLAIM but keep __GFP_KSWAPD_RECLAIM, so every failed attempt wakes kswapd even though the order-0 fallback succeeds. SPL slabs of the zio_buf_comb caches are 1-8 MiB (obj_per_slab x object size), so their growth requests orders 8-10. On a host whose free memory is fragmented these attempts fail continuously during I/O, kswapd reclaims the ARC (down to arc_c_min) and then swaps anonymous memory, while tens of GiB stay free. Slabs are grown asynchronously from spl_cache_grow_work(), which can sleep and reclaim directly. Clear __GFP_KSWAPD_RECLAIM for these allocations. The high-order attempts then fail quietly, and the order-0 path keeps direct reclaim and retries, so a grow cannot fail where it would not have failed before. Assisted-by: Claude Code Reviewed-by: Brian Behlendorf Signed-off-by: Jose Vega <21096700+jomplox@users.noreply.github.com> Closes #18893 Closes #19276 M module/os/linux/spl/spl-kmem-cache.c _____________________________________________________________________________________________________________ Commit: e9ce2ff47a4b6cdbbabed0fe7152b5d9cbc35294 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e9ce2ff47a4b6cdbbabed0fe7152b5d9cbc35294 Author: Matthew Ahrens (Sat 17 Oct 2026 18:13:40 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) ZIL replay can apply part of a split WR_NEED_COPY write After a crash while an fsync() is still writing the log, ZIL replay can apply the first part of a write without the rest, leaving the write torn at an arbitrary 8-byte-aligned offset. This exposes a state that no reader could have observed before the crash: new data up to the tear, old data after it. While POSIX doesn't specify anything before fsync() completes, ZFS intends to preserve the atomicity of writes as much as possible: writes within a single block are intended to be atomic, with larger writes torn only on recordsize boundaries. The problem occurs with WR_NEED_COPY TX_WRITE records. When such a record does not fit in the current log block, zil_lwb_assign() splits it into several TX_WRITE records in consecutive log blocks. If the system crashes after the first of those blocks is on disk but before all of them are, zil_parse() stops at the missing block, but replay has already applied the pieces before it. Files are affected for async writes that a later fsync() commits, and for writes of any size with a slog. Zvols are affected too, where a tear inside a sector breaks the sector atomicity that consumers of a block device expect. Mark the pieces of a split write in the log, and have replay apply the write only once it holds every piece: - Rename the unused lr_blkoff field of lr_write_t to lr_flags. Set LR_WRITE_MORE (bit 63) on every piece but the last, and LR_WRITE_CONT (bit 62) on every piece but the first. - If zl_get_data() returns ENOENT for a piece (the file was truncated below it or removed since the write), log that piece as zeros. Otherwise replay would drop the whole write, losing the other pieces' data. The TX_TRUNCATE or TX_REMOVE that follows undoes the zeros. So that this happens only for a file that is gone, zfs_get_data() now reports any other zfs_zget() failure as EIO rather than ENOENT (such as EBUSY on FreeBSD during unmount, or ENOENT when no znode could be allocated for an object that still exists), and zil_lwb_commit() waits for the txg to sync instead. - Replay gathers the pieces in its record buffer. A piece joins the pending write only if its lrc_seq is the next one and its txg, object and offset match; otherwise the pending write and the piece are dropped. The last piece replays the gathered write as one TX_WRITE. Any other record, or the end of the log, drops a pending write. On an opposite-endian host, whose log blocks the ARC swaps as 8-byte words, each piece's data is swapped back as it's gathered. If replay by older software was interrupted partway through a split write, the first record left to replay is a later piece; replay treats it as the start of a write. - Replay gathers up to 32M of data (DMU_MAX_ACCESS / 2), as much as zfs_write() and zvol_write() apply in one transaction, and so log in one record. The replay buffer grows by a record header to hold it. A larger write can't be applied in one transaction anyway; replay applies it in parts. If a piece doesn't fit, replay applies the gathered data up to its last multiple of SPA_MAXBLOCKSIZE (always a block boundary) first. If that replay is interrupted, it resumes with the piece after the last one wholly applied. No feature flag is needed. lr_blkoff was last set by 2007-2009 software, which read it at replay only for WR_INDIRECT records, and later software ignores it. So old logs replay as before, and older software replays new logs as before (still torn). New kstats zil_replay_split_merged (writes) and zil_replay_split_dropped (pieces), global and per dataset, count what replay did. zdb -ivvv prints the markers. This is a port of the illumos fix, with these OpenZFS differences: - OpenZFS already assigns lrc_seq before calling zl_get_data(), so a piece it leaves out leaves a gap in the sequence. - illumos splits a record after fetching the data for its first piece, so if that fails the whole record is skipped, and only later pieces are logged as zeros. OpenZFS splits it in zil_lwb_assign(), and the pieces' data may be fetched concurrently by different threads, so the first piece is logged as zeros too. The file ends up the same. - illumos gathers up to DMU_MAX_ACCESS, which is 32M there. - The zvol tests set sync=always, since FreeBSD's GEOM zvols ignore O_SYNC, and write with O_DIRECT so that Linux submits the write as one request. Like slog_replay_volume, they retry a busy export. New ZTS tests in functional/slog lose a log block by overwriting it with zeros, and check the data and the replay kstats: slog_replay_fs_split_write, slog_replay_volume_split_write, slog_replay_volume_split_boundary and slog_replay_fs_split_truncate. Reviewed by: George Wilson Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Matthew Ahrens Co-authored-by: Claude Opus 5.5 Closes #19356 M cmd/zdb/zdb_il.c M cmd/ztest.c M include/sys/zil.h M module/zfs/dataset_kstats.c M module/zfs/zfs_log.c M module/zfs/zfs_vnops.c M module/zfs/zil.c M module/zfs/zvol.c M tests/runfiles/common.run M tests/zfs-tests/tests/Makefile.am M tests/zfs-tests/tests/functional/slog/slog.kshlib A tests/zfs-tests/tests/functional/slog/slog_replay_fs_split_truncate.ksh A tests/zfs-tests/tests/functional/slog/slog_replay_fs_split_write.ksh A tests/zfs-tests/tests/functional/slog/slog_replay_volume_split_boundary.ksh A tests/zfs-tests/tests/functional/slog/slog_replay_volume_split_write.ksh _____________________________________________________________________________________________________________ Commit: dd94cdb3e1877d476a4d306d3e4d2fb96190e659 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dd94cdb3e1877d476a4d306d3e4d2fb96190e659 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Wed 14 Oct 2026 08:31:09 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) vdev_mirror: scrub every copy of a gang block in a sorted scrub A sorted scrub queues one read per DVA of a block, and each of these reads carries all of the block's DVAs so that a damaged copy can be repaired. vdev_mirror_map_init() therefore reads only the first DVA of a scrub read while a sorted scrub runs, since the other DVAs are checked by their own queued reads, and reads them all only on retry. Gang blocks are not queued: dsl_scan_enqueue() issues them at once and whole, and their gang headers and gang members are read by gang children of that one read. These inherit ZIO_FLAG_SCRUB and so take the same shortcut, but nothing else ever reads their other DVAs. A damaged copy of a gang header or gang member, other than the first, is neither detected nor repaired by a scrub, unless the first copy is damaged too and the retry reads them all. With the default redundant_metadata=all every gang header has at least two copies, and gang members have as many as the copies property asks for. A legacy scrub (zfs_scan_legacy=1) reads and repairs every copy. Leave gang children out of the shortcut, so that a sorted scrub checks every copy of a gang block as a legacy scrub does. The reads of the sorted queues are not gang children, nor are the DDT children of the dedup blocks among them, so they still read one DVA each. Resilvers, legacy scrubs and retries do not take the shortcut and are unchanged. The scan's progress accounting already counts every DVA of a gang block as issued. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19399 M module/zfs/vdev_mirror.c _____________________________________________________________________________________________________________ Commit: 648bbe8710a5fc1577f6ff23fc14d3c0bc612a7e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=648bbe8710a5fc1577f6ff23fc14d3c0bc612a7e Author: Will Rouesnel (Sat 17 Oct 2026 17:49:52 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: reuse fork jobs from any recent push run of the PR head reuse-ci.py only looks at the newest push run of each workflow for the PR head SHA. A fork's workflows run on every push, so pushing an already tested commit to the PR branch starts new push runs for the same SHA just as the PR event fires. Those runs are still queued when the PR's reuse step checks, so nothing is reused and every workflow runs in both repositories (#19410). A cancelled newer run hides an older success the same way, and with reuse limited to the first attempt a rerun can no longer pick up the fork results once they finish. Look at the latest ten push runs for the SHA, newest first, and let the newest finished result for each job decide it: a success in a completed run is reused and a failure is not, so an older success still cannot replace a newer failure. Jobs that were cancelled, skipped or have not finished have no result and fall through to older runs. A failure that has already finished in a running workflow still blocks reuse. Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19431 M .github/workflows/README.md M .github/workflows/scripts/reuse-ci.py _____________________________________________________________________________________________________________ Commit: 3c1534b956fbc7bafbd5828a60bcdd5d063c81cd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3c1534b956fbc7bafbd5828a60bcdd5d063c81cd Author: Alexander Moch (Fri 16 Oct 2026 17:45:08 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: make kmemleak and no CPU mitigations the Alpine default Boot the Alpine runner with kmemleak=on and mitigations=off, and run ZTS with -m whenever the kernel booted with kmemleak=on, so each test is followed by a kmemleak scan. CPU mitigations roughly double the run time with kmemleak on AMD runners. Without them, the run fits into the time limit. A -nokmemleak or -mitigations suffix keeps the kernel's default for that option, so alpine3-24-nokmemleak-mitigations boots the plain kernel. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19426 M .github/workflows/scripts/qemu-3-deps-vm.sh M .github/workflows/scripts/qemu-6-tests.sh _____________________________________________________________________________________________________________ Commit: 2a9baff8583e722dd54229b42d3270a0bf369d16 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2a9baff8583e722dd54229b42d3270a0bf369d16 Author: Kamil Monicz (Thu 15 Oct 2026 21:41:19 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) vdev_rebuild: wait for the syncing txg before rebuilding a metaslab Before a sequential rebuild reads a metaslab, it disables allocations from it and waits for pending allocations to sync. Later passes of the syncing txg can still rewrite blocks born in that txg in place: a rewrite allocates nothing, and the first pass has already moved their allocations to the space map. A rebuild read which overlaps such a rewrite sees some columns before it and some after. dRAID then finds the row's parity inconsistent and withholds its repair, and a read which completes before the rewrite can write the old block over the new one on the device being rebuilt. Wait for the txg that is syncing when the metaslab is disabled. No later txg can allocate from it, so none can rewrite its blocks in place. Reviewed-by: Brian Behlendorf Reviewed-by: Andriy Tkachuk Signed-off-by: Kamil Monicz Closes #19198 M module/zfs/vdev_rebuild.c _____________________________________________________________________________________________________________ Commit: 12c5a573582d12671b2ba9a220ac1a525110721e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=12c5a573582d12671b2ba9a220ac1a525110721e Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Wed 14 Oct 2026 18:51:50 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) raidz: resilver every child a block born before an expansion spans vdev_raidz_need_resilver() assumes that a block spans its sectors plus one row of parity over consecutive children. A block born before a RAID-Z expansion keeps its logical width and is laid out in rows of that width, each with its own parity columns, so it spans s + p * howmany(s, width - p) children. Once the vdev has been expanded more than once, this can exceed s + p while staying below the vdev's width, and when the rows past the first end on a child whose DTL is dirty, the resilver skips the block and leaves that child without its sectors. A later scrub repairs them, but a second failure in the same row before that leaves the row one column short of what its parity can rebuild. Count the columns of every row, from the logical width of the block's birth txg. The count is unchanged for a block of the vdev's width, which needs one row whenever the count is below the vdev's width. The lookup takes vd_expand_lock, so it comes after the DTL check and after the one-row test, which already settles most blocks. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19395 M module/zfs/vdev_raidz.c _____________________________________________________________________________________________________________ Commit: 3e892b64baf0c75031c789ee0863bc041c412ee0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3e892b64baf0c75031c789ee0863bc041c412ee0 Author: Will Rouesnel (Thu 8 Oct 2026 16:44:10 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) zio: find large gang headers while the pool is loading zio_gang_tree_assemble() and zio_checksum_error() size gang headers with spa_feature_is_active(dynamic_gang_header). During import the MOS is read before spa_ld_check_features() loads the feature refcounts, so the feature looks inactive: a ganged MOS block with a large (ashift-sized) header is read as a 512-byte one, fails its checksum, and the fallback only tries large-to-small. Every txg the import tries fails the same way, so a pool that ganged MOS blocks after the feature went active can't be imported. Add spa_dynamic_gang_header(), which while the pool is loading also checks the label's features_for_read, where dynamic_gang_header is listed when active, and use it for both decisions. This makes gang_blocks/gang_blocks_dyn_header_import pass. Reviewed-by: Paul Dagnelie Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19189 Closes #19314 M include/sys/spa.h M module/zfs/spa_misc.c M module/zfs/zfeature.c M module/zfs/zio.c M module/zfs/zio_checksum.c _____________________________________________________________________________________________________________ Commit: 51172fdb1a993557d5a875cb3102090fd414f0dc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=51172fdb1a993557d5a875cb3102090fd414f0dc Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Thu 15 Oct 2026 21:21:02 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Accept the dedup NOP of zfs rewrite -P in arc_write_done() A physical rewrite (zfs rewrite -P) of a dedup block that the DDT still holds unchanged becomes a NOP in zio_ddt_write(), which sets ZIO_FLAG_NOPWRITE so that the block pointer and its accounting are kept, as for a nopwrite. arc_write_done() asserts that a write with that flag has zp_nopwrite set, but dmu_write_policy() turns nopwrite off whenever dedup is on. When the header of the block is still in the ARC, a debug build therefore panics in arc_write_done() with "VERIFY(zio->io_prop.zp_nopwrite) failed", and the pool hangs: the first zfs rewrite -P -r of a dedup=on dataset holding a file and a copy of it did so on master. Builds without assertions are not affected. Accept the flag for a physical rewrite of a dedup block as well, and rewrite a deduplicated file and its copy twice with -P in zfs_rewrite_physical. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19402 M module/zfs/arc.c M tests/zfs-tests/tests/functional/cli_root/zfs_rewrite/zfs_rewrite_physical.ksh _____________________________________________________________________________________________________________ Commit: 9f13f0d21605cc9b08d59d3ccf696a19164ae3d9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9f13f0d21605cc9b08d59d3ccf696a19164ae3d9 Author: George Melikov (Thu 15 Oct 2026 10:54:43 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Cancel outdated push runs on the same branch Push events have no head_ref, so the run_id fallback puts every push in a separate concurrency group. Use the pushed ref to group runs from the same branch and let cancel-in-progress stop outdated runs. Keep the existing grouping for PRs and independent manual runs. Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #19412 M .github/workflows/checkstyle.yaml M .github/workflows/codeql.yml M .github/workflows/smatch.yml M .github/workflows/zfs-arm.yml M .github/workflows/zfs-precheck.yml M .github/workflows/zfs-qemu.yml M .github/workflows/zloop.yml _____________________________________________________________________________________________________________ Commit: 57fe644b32813bd69b9ff6ab599fad62df9e5fd1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=57fe644b32813bd69b9ff6ab599fad62df9e5fd1 Author: George Melikov (Tue 13 Oct 2026 22:36:00 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Extend fork result reuse and honor requested reruns Extend QEMU result reuse to zloop, unit tests, ARM builds and checkstyle. Use one helper with workflow file, runner, job name and required step profiles. Require successful lint and ABI checks for checkstyle, and exclude manual ARM runs with custom GCC inputs. Reuse fork results only on the first workflow attempt. Requested reruns execute in the base repository. Ignore cached Setup outputs on selective QEMU matrix reruns and collect their new artifacts and summaries. Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #19412 M .github/workflows/README.md M .github/workflows/checkstyle.yaml R057 .github/workflows/scripts/reuse-qemu.py .github/workflows/scripts/reuse-ci.py M .github/workflows/zfs-arm.yml M .github/workflows/zfs-qemu.yml M .github/workflows/zloop.yml _____________________________________________________________________________________________________________ Commit: e21ca05583c8a99a8783d028f728b436b4b66248 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e21ca05583c8a99a8783d028f728b436b4b66248 Author: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> (Thu 15 Oct 2026 01:06:00 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) zio: free the gang header ABD when its read fails zio_gang_tree_assemble() wraps the gang header buffer in an ABD with abd_get_from_buf(). zio_gang_tree_assemble_done() frees it, but only when the read succeeded: on an error it returns first and the abd_t is never freed. Each failed gang header read, whether from a checksum or an I/O error, leaks one. A pool whose MOS has large gang headers that can not be read while the pool is loading (#19189) shows it. On a debug kernel, the failed imports of such a pool left six abd_t objects behind and "rmmod zfs" then panicked on VERIFY3U(percpu_counter_sum(&skc->skc_linux_alloc), ==, 0). valgrind on a failed "zdb -e" of the same kind of pool reports the abd_t allocated by abd_get_from_buf() in zio_gang_tree_assemble() as definitely lost. Free the ABD on the error path as well. Nothing else owns it: the gang tree only frees the header buffer, and the other gang callbacks free their ABDs unconditionally. With this change valgrind reports no leak and no invalid access on the same images. Reviewed-by: Brian Behlendorf Signed-off-by: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Closes #19391 M module/zfs/zio.c _____________________________________________________________________________________________________________ Commit: 4577efe2560ca8eb726c8bc9d3afac6dabf49430 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4577efe2560ca8eb726c8bc9d3afac6dabf49430 Author: Will Rouesnel (Fri 9 Oct 2026 09:35:17 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) ZIL: zero the header bp in zil_crash() only if lwbs own it zil_crash() zeroes the syncing header's zh_log because the lwbs it takes over include the block zh_log points to, and zil_clean() frees them. When it takes no lwbs, nothing frees that block. Since 5d1ed14b3 zil_create() can crash the ZIL before it has an lwb, while it waits for a pending zil_destroy(). zil_replay() does a keep_first destroy at every mount of a file system whose ZIL needs no replay, and the destroy's sync keeps the block that zh_log points to at that time: after the zeroing, none. The pool then leaks the kept log block, which zdb -b reports after the pool resumes. Leave zh_log alone when there are no lwbs to free. The header still owns the block, and the next zil_create() reuses it. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19320 M module/zfs/zil.c _____________________________________________________________________________________________________________ Commit: 4d18ea99817d5253de39b77674f976543f8007e0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4d18ea99817d5253de39b77674f976543f8007e0 Author: George Melikov (Thu 15 Oct 2026 00:33:11 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Reuse successful QEMU jobs from forks Find completed push runs for the exact PR head SHA and reuse successful per-OS QEMU jobs from the source fork. Preserve upstream check names and link to the original logs, while running missing results normally. Require successful build, test and summary steps, and limit results to completed runs from the last seven days. Reuse is available for all forks without additional repository configuration. CI file comparison is deferred so the introducing PR can exercise reuse. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: George Melikov Closes #19394 M .github/workflows/README.md M .github/workflows/scripts/qemu-9-summary-page.sh A .github/workflows/scripts/reuse-qemu.py M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: dc6db8c920231118a139ad8836306188c24baedd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dc6db8c920231118a139ad8836306188c24baedd Author: Will Rouesnel (Sun 11 Oct 2026 12:35:44 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) metaslab: don't gang every block on a degraded single-disk vdev metaslab_group_allocatable() skips a top-level vdev that is a single disk below VDEV_STATE_HEALTHY for the first copy of a block, so that a healthy vdev is used instead. Since be5c6d965 the allocator no longer retries with try_hard before ganging, so when every vdev in the class is skipped this way, e.g. on a pool with one disk that ZED degraded for checksum errors, every block larger than spa_min_alloc becomes a gang block. The gang header and members are allocated with try_hard, so they land on the same degraded vdev: the guard keeps nothing off it, but the blocks take more space, more I/O to read, and some boot loaders can't read them. This lasts until zpool clear. Retry with try_hard when a normal-class allocation fails after skipping an unhealthy vdev. Normal is the class the special and dedup classes fall back to, so failing there only leads to ganging. In the special and dedup classes the block still falls back to the next class as before. This makes gang_blocks_degraded_vdev pass. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19351 M module/zfs/metaslab.c _____________________________________________________________________________________________________________ Commit: c08d550dfd2777ab5ca4059127e9ceffafaf0a7d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c08d550dfd2777ab5ca4059127e9ceffafaf0a7d Author: Alexander Moch (Tue 13 Oct 2026 22:41:34 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Add an alpine3-24-kmemleak variant Accept suffixed Alpine names in qemu-2-start.sh. For a name containing "kmemleak", boot the linux-stable kernel with kmemleak=on and run ZTS with -m, so each test is followed by a kmemleak scan. Run it by hand with specific_os=alpine3-24-kmemleak. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19359 M .github/workflows/scripts/qemu-2-start.sh M .github/workflows/scripts/qemu-3-deps-vm.sh M .github/workflows/scripts/qemu-6-tests.sh _____________________________________________________________________________________________________________ Commit: ed3ce910267715843370e712db9f5b7ebed6ceac URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ed3ce910267715843370e712db9f5b7ebed6ceac Author: Chunwei Chen (Tue 13 Oct 2026 21:31:09 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Fix out-of-bound access when resizing in receive_spill receive_spill will call dbuf_spill_set_blksz, which in turn calls dbuf_new_size when resizing spill block. However, receive_spill holds a raw buf, which can be compressed and less than db_size. This causes an out-of-bound access when dbuf_new_size tries to copy the data using db_size as length. To fix this, we just disable the copy when coming from receive_spill, since we will assign a new arc_buf later anyway. Reviewed-by: Brian Behlendorf Signed-off-by: Chunwei Chen Closes #18861 M include/sys/dbuf.h M module/zfs/dbuf.c M module/zfs/dmu_recv.c M module/zfs/dnode.c M module/zfs/dsl_bookmark.c M module/zfs/sa.c _____________________________________________________________________________________________________________ Commit: 9480629ef4ed5046f44ae73e84c1e34c938177e0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9480629ef4ed5046f44ae73e84c1e34c938177e0 Author: Alexander Moch (Tue 13 Oct 2026 18:51:20 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: start only one dhcpcd on the Alpine runner The Alpine VMs started dhcpcd twice: once as the dhcpcd service, and once from the networking service, which brings up eth0 through ifupdown-ng and runs dhcpcd itself. The two race at boot. When the second one contacts the first while it is still starting up, neither configures eth0, and the test VMs cannot be reached. The race is rare on a normal boot but much more common with kmemleak enabled. Leave eth0 to the networking service. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19363 M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: c1815fec76175d75d069374da8b99ed4b43ccb50 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c1815fec76175d75d069374da8b99ed4b43ccb50 Author: Alexander Moch (Mon 12 Oct 2026 23:42:02 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Add Alpine Linux to the default runners Alpine is the only musl-based system in the test matrix, so it catches portability problems that glibc builds do not. It can be selected by name, but it is not in the default list, so no PR is tested on it. Add alpine3-24 to the default OS list. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19349 M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: 4ca03551c0aad7303d0dc9c05bff5f4540abc381 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4ca03551c0aad7303d0dc9c05bff5f4540abc381 Author: Alexander Moch (Mon 12 Oct 2026 17:59:13 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Update Alpine Linux to 3.24.2 and its Limine boot Alpine 3.24.2 no longer publishes the generic BIOS and UEFI cloud images. The replacement is a single hybrid image that boots through Limine, with the kernels on a ~113 MB FAT partition mounted on /boot. Download the new image. Limine has no update-extlinux equivalent and no hook that adds entries for newly installed kernels, so point its static limine.conf entry at the -stable kernel, which the ZTS needs for CONFIG_SCSI_DEBUG. Drop the "kms" mkinitfs feature before installing linux-stable. It pulls in GPU drivers and firmware, making the initramfs ~90 MB, which fills the partition and fails mkinitfs. The VM is headless. The image's limine updater configs use the old key names, which the newer limine package pulled in by the upgrade does not understand. Its BIOS trigger then fails after replacing limine-bios.sys, so the VM no longer boots ("limine-bios.sys size incorrect"), and the failing EFI trigger makes apk, and so the script, exit non-zero. Write the configs with both spellings before the upgrade. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19347 M .github/workflows/scripts/qemu-2-start.sh M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: 31931f67656a87eadfbb66c392182a45ef371b58 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=31931f67656a87eadfbb66c392182a45ef371b58 Author: Kamil Monicz (Sun 23 Aug 2026 14:37:23 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) zio: balance allocation depth on refused DDT extensions A DDT child that would mix gang and non-gang DVAs is refused at READY. This occurs before top-vdev children can release its metaslab-group queue-depth holds. The refusal path decremented those holds even though only a throttled asynchronous allocation created them. Synchronous and unthrottled writes could therefore underflow the queue depth. Gate the per-DVA release on ZIO_FLAG_ALLOC_THROTTLED. Keep it at this refusal site: these holds use the child's size and tag, unlike gang header allocations that can reach generic READY error handling with different accounting keys. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18826 M module/zfs/zio.c _____________________________________________________________________________________________________________ Commit: 694cb04f0a817e2d48de037d0f02183672b8ac2d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=694cb04f0a817e2d48de037d0f02183672b8ac2d Author: Kamil Monicz (Sun 23 Aug 2026 14:37:17 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) zio: fix chained DDT extension rollback A later write requesting more copies can adopt an in-flight FDT extension as its child, forming a chain of leads. The chain shared one rollback snapshot. A completed child copied the live phys after newer children could already have extended it. Failure could retain an uncommitted DVA or discard a committed one. The first completion could also clear a snapshot still needed by a later lead. Treat the saved phys as a rolling rollback point. Advance it only with the completing DDT child's private BP. Clear it only after the newest lead is gone. Failure then restores exactly the DVAs committed by older children, independent of newer READY completions. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18826 M include/sys/ddt.h M module/zfs/ddt.c M module/zfs/zio.c _____________________________________________________________________________________________________________ Commit: 0eb7821c28542cf3dad713c51e0b81b46c2eb590 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0eb7821c28542cf3dad713c51e0b81b46c2eb590 Author: Kamil Monicz (Sun 23 Aug 2026 14:37:07 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) vdev_raidz: contain maps that exceed their DVA allocation RAIDZ selects a block's stripe width from the block pointer's physical birth. Fast-dedup extension in affected releases could append a DVA after an expansion while retaining an older birth. This makes the birth-selected map larger than the DVA's owned allocation. A repair of that copy can then write into the next allocation. For dedup BPs read at a historical width, find the dispatched DVA by top vdev and offset. Compare its owned ASIZE with the map footprint. Reject an oversized or unmatched direct map with EIO before building columns, so neither reads nor repair writes can cross the allocation. Debug builds assert the routing invariant; release builds still fail closed if it is violated. The check is limited to dedup BPs because FDT extension is the released producer of this state. Equal-ASIZE mixed epochs may still fail checksum verification, but they cannot overrun the allocation. An affected copy is reported as a RAIDZ read error while other DVA copies remain usable. Cover it with a pool created by the affected code: a raidz1 expanded from three to four disks, whose dedup entry gained a copy at the new width under its pre-expansion birth, followed directly by another file's block. Scrubbing it twice must leave no checksum errors on the disks and every file intact; without this change, the first scrub's repair overwrites the following block and the second scrub finds it. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Kamil Monicz Closes #18826 M module/zfs/vdev_raidz.c M tests/runfiles/common.run M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/raidz/blockfiles/raidz_dedup_overrun-0.dat.bz2 A tests/zfs-tests/tests/functional/raidz/blockfiles/raidz_dedup_overrun-1.dat.bz2 A tests/zfs-tests/tests/functional/raidz/blockfiles/raidz_dedup_overrun-2.dat.bz2 A tests/zfs-tests/tests/functional/raidz/blockfiles/raidz_dedup_overrun-3.dat.bz2 A tests/zfs-tests/tests/functional/raidz/raidz_dedup_overrun.ksh _____________________________________________________________________________________________________________ Commit: 48ff012ed39bbabe8b8fbf6175312873e431c547 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=48ff012ed39bbabe8b8fbf6175312873e431c547 Author: Karl Schulze (Thu 8 Oct 2026 23:47:24 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: Sleep instead of spinning when zfs_zget() races eviction When igrab() fails because the VFS is evicting the inode, zfs_zget() drops its locks, calls cond_resched() and retries. cond_resched() only yields when a reschedule is already pending, so every lookup of an inode that is waiting in a long dispose_list() spins at full speed, taking and dropping the znode hold locks and allocating a znode_hold_t on each pass. With enough of them the thread doing the eviction is starved of both CPU and those locks, and the eviction stalls. On a 24-thread NAS serving ~180 rsync clients this turned into a livelock with zero pool I/O that needed a power cycle. Sleep for one tick before retrying instead, as xfs_iget() does when it races the same VFS teardown. The retry loop is otherwise unchanged and no locks are held while sleeping. Co-Authored-By: Claude Opus 5.5 Reviewed-by: Brian Behlendorf Signed-off-by: Karl Schulze Closes #19266 Closes #19275 M module/os/linux/zfs/zfs_znode_os.c _____________________________________________________________________________________________________________ Commit: d7f631418ae80ca5f306219231204c655cdae8d9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d7f631418ae80ca5f306219231204c655cdae8d9 Author: Karl Schulze (Thu 8 Oct 2026 23:47:24 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: Feed the superblock shrinker in batches from zfs_prune() zfs_prune() hands the whole ARC prune request to a single super_cache_scan() call. When arc_evict() asks for hundreds of thousands or millions of objects, prune_icache_sb() isolates up to that many unused inodes, marks every one of them I_FREEING, and only then evicts them one at a time from dispose_list(). For as long as it takes to work through that list, a lookup of any of those inodes fails igrab() in zfs_zget() and has to retry. The kernel's own reclaim never builds such a list: do_shrink_slab() calls scan_objects() in chunks of shrinker->batch objects (1024 for superblocks). Do the same in zfs_prune(), so that at most one batch of inodes is I_FREEING at a time. The total number of objects scanned per prune request is unchanged. Co-Authored-By: Claude Opus 5.5 Reviewed-by: Brian Behlendorf Signed-off-by: Karl Schulze Closes #19266 Closes #19275 M module/os/linux/zfs/zfs_vfsops.c _____________________________________________________________________________________________________________ Commit: 0859641c54945eec440b3842cb9ec81e359af662 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0859641c54945eec440b3842cb9ec81e359af662 Author: Will Rouesnel (Fri 9 Oct 2026 21:49:22 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: verify "failing test, then fix" PRs A bug fix is easiest to review and keep fixed when the PR first adds a test that shows the bug, then fixes it. Add a workflow that checks this pattern: for each commit that only changes tests/ and is followed by a commit changing code, build that commit in a QEMU VM and check its new or changed tests fail (or crash or hang the kernel), then build the PR head and check the same tests pass without kernel errors. The workflow reuses the qemu-* scripts to set up, build and boot one test VM per build, runs each test on its own with zfs-tests.sh -t, and restarts the VM after a crash. PRs without a test commit finish after the detect job. The detector gives each job 15 minutes plus 30 per test (at most 240), and the per-test watchdog in failfirst-tests.sh drops from 40 to 25 minutes: zfs-tests.sh -t stops a test after 600 seconds, and the rest covers the group's setup and cleanup. A job with one test times out after 45 minutes. Reviewed-by: Brian Behlendorf Signed-off-by: Will Rouesnel Closes #19270 M .github/workflows/README.md A .github/workflows/scripts/failfirst-detect.py A .github/workflows/scripts/failfirst-tests.sh A .github/workflows/zfs-precheck.yml _____________________________________________________________________________________________________________ Commit: 2844ecade64a7d22a73f2a8097336c28e475ef20 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2844ecade64a7d22a73f2a8097336c28e475ef20 Author: George Melikov (Wed 7 Oct 2026 16:36:23 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: wait for SSH after restarting sshd on FreeBSD FreeBSD 16-current CI failed while transferring src.txz immediately after restarting sshd: scp received Connection refused and the build VM initialization aborted before any tests ran. Poll SSH readiness for up to thirty attempts before transferring the archive. Use the existing one-second connection timeout. A server that remains unavailable still fails at the transfer. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: George Melikov Closes #19265 M .github/workflows/scripts/qemu-2-start.sh _____________________________________________________________________________________________________________ Commit: fa0971074954cd1dd149b4ee27333486e9cc3e34 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fa0971074954cd1dd149b4ee27333486e9cc3e34 Author: Will Rouesnel (Sat 3 Oct 2026 00:28:44 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: apt-get update before installing smatch dependencies (#19237) The smatch job installs packages without refreshing the runner's package lists. Since 2026-09-30 the lists in the runner image point at a libdbi-perl security update that the mirrors no longer carry, so the install fails with "404 Not Found" and every smatch run fails before smatch is built. Run apt-get update first, as #18609 did for the purge step of the other workflows. Signed-off-by: Will Rouesnel Reviewed-by: George Melikov Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf M .github/workflows/smatch.yml _____________________________________________________________________________________________________________ Commit: a845332dd7cb532cd179e0e0146c48d4e4034697 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a845332dd7cb532cd179e0e0146c48d4e4034697 Author: George Melikov (Thu 1 Oct 2026 23:15:41 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: don't fail send/recv on job control stop Suspending a zfs send or receive that writes to or reads from a pipe with ^Z kills it: "cannot send: signal received" for send, and "internal error: Bad file descriptor" plus an abort for receive. On Linux the stream is written in the ioctl thread itself. A pending SIGTSTP makes a blocking pipe_write()/pipe_read() return -ERESTARTSYS or a short count, and the send/recv path treats that as a fatal error. issig() already knows how to stop the thread on SIGSTOP/SIGTSTP (commit 414f7249d), but it is only reached after the I/O error has been recorded. Retry the interrupted kernel_write()/kernel_read() in zfs_file_write() and zfs_file_read() when issig() reports that the pending signal was only a stop signal: the thread stops there, and the I/O continues from where it stopped once it is resumed. Any other signal still aborts the operation as before. Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #14305 Closes #19221 M module/os/linux/zfs/zfs_file_os.c _____________________________________________________________________________________________________________ Commit: 23d704118d9f4959b24f8db062d95855ebe1e502 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=23d704118d9f4959b24f8db062d95855ebe1e502 Author: crass (Tue 29 Sep 2026 23:46:13 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Enable configure caching by default Enable configure caching by default in the CI. This doesn't significantly speed up the build but it does ensure this functionality is always tested. Reviewed-by: Brian Behlendorf Signed-off-by: Glenn Washburn Closes #19173 M .github/workflows/scripts/qemu-4-build-vm.sh _____________________________________________________________________________________________________________ Commit: a66400fea98e098d8555c64ce585ab8d3cbdaf1b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a66400fea98e098d8555c64ce585ab8d3cbdaf1b Author: Brian Behlendorf (Thu 24 Sep 2026 03:26:46 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: Remove centos-streamX from default builders In practice, we've seen limited benefit from always running the centos-stream9 and centos-stream10 builders as part of the CI. Remove them from the default set of builders to reduce the CI load per PR. They may still be optionally requested. Reviewed-by: Alexander Moch Reviewed-by: George Melikov Reviewed-by: Tony Hutter Signed-off-by: Brian Behlendorf Closes #19182 M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: 1a4fc0456d492a25840af5527af90e00931a4751 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1a4fc0456d492a25840af5527af90e00931a4751 Author: Rob Norris (Mon 21 Sep 2026 03:22:52 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) linux: remove _KERNEL gates Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Signed-off-by: Rob Norris Closes #19153 M module/os/linux/zfs/qat.c M module/os/linux/zfs/qat_compress.c M module/os/linux/zfs/qat_crypt.c M module/os/linux/zfs/trace.c M module/os/linux/zfs/zfs_ioctl_os.c M module/os/linux/zfs/zfs_racct.c M module/os/linux/zfs/zfs_sysfs.c M module/os/linux/zfs/zfs_uio.c M module/os/linux/zfs/zfs_vfsops.c M module/os/linux/zfs/zfs_vnops_os.c _____________________________________________________________________________________________________________ Commit: 7b1398f496195e6b6e3feca6b30d66eb96812cea URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7b1398f496195e6b6e3feca6b30d66eb96812cea Author: Rob Norris (Mon 21 Sep 2026 02:08:27 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) linux: remove platform gates from platform headers Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Signed-off-by: Rob Norris Closes #19153 M include/os/linux/spl/sys/cmn_err.h M include/os/linux/spl/sys/debug.h M include/os/linux/spl/sys/ia32/asm_linkage.h M include/os/linux/spl/sys/trace.h M include/os/linux/spl/sys/trace_taskq.h M include/os/linux/zfs/sys/policy.h M include/os/linux/zfs/sys/trace_acl.h M include/os/linux/zfs/sys/trace_arc.h M include/os/linux/zfs/sys/trace_dbgmsg.h M include/os/linux/zfs/sys/trace_dbuf.h M include/os/linux/zfs/sys/trace_dmu.h M include/os/linux/zfs/sys/trace_dnode.h M include/os/linux/zfs/sys/trace_multilist.h M include/os/linux/zfs/sys/trace_rrwlock.h M include/os/linux/zfs/sys/trace_txg.h M include/os/linux/zfs/sys/trace_vdev.h M include/os/linux/zfs/sys/trace_zil.h M include/os/linux/zfs/sys/trace_zio.h M include/os/linux/zfs/sys/trace_zrlock.h M include/os/linux/zfs/sys/zfs_znode_impl.h _____________________________________________________________________________________________________________ Commit: d54e63fbeed8a4986078912d6338bddfcd1c2747 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d54e63fbeed8a4986078912d6338bddfcd1c2747 Author: Alexander Moch (Mon 21 Sep 2026 18:31:39 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: mask amx-tile in the QEMU build VMs objtool sizes its alternate signal stack with SIGSTKSZ, which musl fixes at 8192. A runner whose CPU exposes AMX needs 11952, so sigaltstack() is refused, objtool exits before doing any work, make deletes the object, and configure reports checking whether CONFIG_MODULES is defined... no on a kernel built with CONFIG_MODULES=y. Two separate samples of forty Alpine jobs each landed four of them on such a host; all four failed, every other job passed. amx-tile is the only AMX feature carrying xsave state, so masking it alone brings the frame back under SIGSTKSZ. host-model would also avoid this but takes AVX-512 with it, which the suite exercises. Masking on every runner keeps the diff to one line and is a no-op on the nine in ten without AMX; ZFS has no AMX code. This can go once a fixed objtool reaches the distribution images. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19150 M .github/workflows/scripts/qemu-2-start.sh _____________________________________________________________________________________________________________ Commit: b6ca37bfb0eb465c9f483643eb8959cc0c220733 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b6ca37bfb0eb465c9f483643eb8959cc0c220733 Author: Alexander Moch (Sat 19 Sep 2026 02:07:39 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: install diffutils on the Alpine runner ZTS calls cmp with skip offsets, and zfs_send_sparse does it against a file whose hole doubles every round. GNU cmp seeks to the offset; busybox cmp reads its way there, 512 bytes at a time. Timed per command on the runner, the send stays flat while the compare doubles: hole zfs send | zfs receive cmp 256MiB 0.07s 25.2s 512MiB 0.08s 51.7s 1GiB 0.07s 102.1s so the test walks into its ten minute cap, and the group's cleanup fails behind it and takes the next groups' setup with it. The GNU cmp comes from diffutils, which is not in this list -- without it the busybox applet answers to cmp instead. diffutils arrives on 3.24 only because something else happens to pull it in, so the runner works by accident of the dependency graph rather than by asking for what it needs. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19139 M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: c5510acc73aa66408f85fe05cd340719bd980b48 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c5510acc73aa66408f85fe05cd340719bd980b48 Author: Alexander Moch (Sat 19 Sep 2026 01:54:51 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) CI: stop cloud-init stalling every Alpine boot The Alpine runner takes over five minutes to answer after the build step reboots it, and all of it is one service: * cloud-init local ...Cloud-init v. 26.1 running 'init-local' DataSourceLXD.py[WARNING]: /dev/lxd/sock does not exist. <301 seconds> [ ok ] Everything after it takes two seconds. It is datasource detection timing out on an LXD socket a libvirt guest will never have. Three cloud-init services are already removed here, but the one that stalls is cloud-init-local, which lives in the boot runlevel rather than default and so was never touched. Remove it too. Cloud-init is still needed on the first boot, where the ssh key arrives through it; this runs after that. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #19132 M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: 1bc8a1b905b0377751becfc514153a29ec6cd248 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1bc8a1b905b0377751becfc514153a29ec6cd248 Author: Alexander Motin (Wed 16 Sep 2026 17:34:45 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:41 GMT) Linux: copy whole multi-page bvecs at once bio_add_page() merges adjacent pages into one bvec only when they are contiguous both physically and in the memory map, so on kernels without HIGHMEM the linear map covers an entire bvec and it can be copied with a single mapping and memcpy() instead of one per page. Drop the blanket PAGE_SIZE clamp in zfs_uiomove_bvec_impl(), and iterate the blk-mq path with rq_for_each_bvec() rather than rq_for_each_segment(), which splits every bvec at a page boundary. For a 1MB zvol read the number of memcpy() calls per block drops by an order of magnitude, depending on how well the caller's pages merged. CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP maps even lowmem pages one at a time, so PageHighMem() on its own does not tell us whether a mapping spans the whole bvec. Add zfs_kmap_partial() for that question and use it in abd_iter_map() too, where the same assumption was already being made. Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Reviewed-by: Ameer Hamza Signed-off-by: Alexander Motin Closes #19114 A config/kernel-rq-for-each-bvec.m4 M config/kernel.m4 M include/os/linux/kernel/linux/kmap_compat.h M module/os/linux/zfs/abd_os.c M module/os/linux/zfs/zfs_uio.c _____________________________________________________________________________________________________________ Commit: 078b3a387e0c91a72e91ee0f01c239d7791e1bcc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=078b3a387e0c91a72e91ee0f01c239d7791e1bcc Author: Rob Norris (Sun 28 Jul 2024 05:51:24 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:40 GMT) linux/uio: don't require wrapped data to be const This makes it harder to work with zfs_uio_t internally ourselves, for no apparently good reason. If a caller has a const iovec/bvec that they want to wrap in a uio, its up to them to either cast away the const or copy the data as appropriate. As it is, there does not appear to be any places within OpenZFS that require such action. Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Signed-off-by: Rob Norris Closes #18884 M include/os/linux/spl/sys/uio.h M module/os/linux/zfs/zfs_uio.c _____________________________________________________________________________________________________________ Commit: 2bea4c0fc57c3814b66f718c82bd60ca8739bb2d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2bea4c0fc57c3814b66f718c82bd60ca8739bb2d Author: Jitendra Patidar (Mon 14 Sep 2026 17:05:36 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:40 GMT) Fix metaslab count assertion in metaslab_group_alloc() for small vdevs When creating a pool on a small vdev (< 1GB) with a low zfs_vdev_min_ms_count value (e.g., 2), vdev_metaslab_set_size() could compute a metaslab shift that results in fewer metaslabs than zfs_vdev_min_ms_count, triggering an assertion failure in metaslab_group_alloc(): ASSERT3U(mg->mg_vd->vdev_ms_count, >=, 2) failed (1 >= 2) The root cause is that highbit64(asize / zfs_vdev_min_ms_count) returns last set bit, which can yield a metaslab size larger than asize / zfs_vdev_min_ms_count. For example, with a 500MB vdev and zfs_vdev_min_ms_count=2: - asize / 2 = 250MB - highbit64(250MB) = 28, giving 256MB metaslabs - 500MB / 256MB = 1 metaslab (violates minimum of 2) Fix by subtracting 1 from highbit64() result to ensure the metaslab size is at most asize / zfs_vdev_min_ms_count, guaranteeing at least zfs_vdev_min_ms_count metaslabs are created. Test fixes: trim/autotrim_config.ksh: Increase post-trim thresholds from 30% to 40% (45% for draid). With the metaslab fix, smaller vdevs now create more metaslabs as intended, which increases spacemap metadata overhead. Adjust the post-trim size threshold to accommodate this expected overhead. replacement/replace_resilver_sit_out.ksh: Increase test vdev size from 150MB to 256MB. With the metaslab fix, 150MB vdevs create 18 metaslabs (vs 9 before), changing read distribution patterns and preventing the sit_out outlier detection from triggering reliably. Larger vdevs provide more consistent read patterns for the latency-based sit_out mechanism. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Jitendra Patidar Closes #19031 M module/zfs/vdev.c M tests/zfs-tests/tests/functional/replacement/replace_resilver_sit_out.ksh M tests/zfs-tests/tests/functional/trim/autotrim_config.ksh _____________________________________________________________________________________________________________ Commit: c4ee6d00a3536553017bc878588951cd6fae43bc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c4ee6d00a3536553017bc878588951cd6fae43bc Author: Matthias Görgens (Fri 11 Sep 2026 19:06:17 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:40 GMT) spl: Honour forced Linux slab cache selection spl_kmem_cache_slab_limit controls automatic cache selection. An explicit KMC_SLAB request should override that cutoff, but the Linux slab branch applies it again. With a zero cutoff, this rejects the forced znode cache. Pool creation later dereferences the NULL cache in spl_kmem_cache_alloc(). Automatic selection has already applied the cutoff before this branch. Remove the redundant check so KMC_SLAB retains its documented force semantics, and clarify the automatic cutoff's scope in spl(4). Reviewed-by: Brian Behlendorf Signed-off-by: Matthias Goergens Closes #19095 M man/man4/spl.4 M module/os/linux/spl/spl-kmem-cache.c _____________________________________________________________________________________________________________ Commit: 8cf916e1160cb8cc9972c3f9f02f531b6b807ca9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8cf916e1160cb8cc9972c3f9f02f531b6b807ca9 Author: Christos Longros <98426896+chrislongros@users.noreply.github.com> (Wed 9 Sep 2026 19:16:33 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:40 GMT) CI: update the FreeBSD STABLE CI runner to 14.5-STABLE Update the FreeBSD STABLE CI from 14.4-STABLE to 14.5-STABLE. Update the README as well. Reviewed-by: Brian Behlendorf Signed-off-by: Christos Longros Closes #19058 M .github/workflows/README.md M .github/workflows/scripts/qemu-2-start.sh M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: 89ae9e1007e8968a239df9f036de599a10a2046f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=89ae9e1007e8968a239df9f036de599a10a2046f Author: George Melikov (Fri 4 Sep 2026 01:25:37 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:40 GMT) Do not complete a device removal that hit IO errors spa_vdev_remove_thread() checks vca_read_error_bytes and vca_write_error_bytes at the end of each metaslab it copies and sets svr_thread_exit, so that the removal is cancelled instead of completed. Both counters are incremented from the copy zio callbacks in spa_vdev_copy_segment_read_done() and spa_vdev_copy_segment_write_done(), so the errors of the segments copied last can arrive after that check has already run. The loop then ends with svr_thread_exit still B_FALSE and the thread calls vdev_remove_complete(), dropping the vdev even though part of its data was never written to the new location. Write errors are the way to hit this. A write error is only known once the write completes, while a read error is recorded before the write it feeds is even issued, so read errors are almost always seen in time. With enough data to copy, the errors of one metaslab are noticed while the next one is being copied, which is why this mostly goes unnoticed; it is the errors of the metaslab copied last that are missed. Check the counters once more after txg_wait_synced(), where every copy has already reported -- the ASSERT0(vca_outstanding_bytes) next to it relies on that -- and before the decision to complete the removal is made. No wait is added: that txg_wait_synced() call is already on this path. The write error half of ZTS removal_with_errors is what fails on this. In a VM it failed 9 of 20 iterations before this change and 0 of 20 after. Reducing the test's data to a single metaslab of the removed vdev makes it fail 8 of 10 iterations, since then the only error check is the one that races the writes it is meant to observe. Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #19041 M module/zfs/vdev_removal.c _____________________________________________________________________________________________________________ Commit: 9ad9be7811a94344a8b1140dff348f2d640ac86c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9ad9be7811a94344a8b1140dff348f2d640ac86c Author: tiehexue (Wed 26 Aug 2026 06:48:31 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:40 GMT) Increasing ZTS timeout as some PRs exceed the limit Follow up work to better balance the work between the available CI VMs is being evaluated to speed things up, but for the moment increase the limit to prevent these timeout failures. Reviewed-by: Brian Behlendorf Signed-off-by: tiehexue Closes #18997 M .github/workflows/zfs-qemu.yml _____________________________________________________________________________________________________________ Commit: 53770cfbefba098883081bb8d17765b8cef090fe URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=53770cfbefba098883081bb8d17765b8cef090fe Author: George Melikov (Fri 4 Sep 2026 00:31:42 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:40 GMT) Wait for the initialize and trim threads to exit An initializing thread marks the vdev VDEV_INITIALIZE_COMPLETE, drops vdev_initialize_lock, syncs out the new state with txg_wait_synced() and only then clears vdev_initialize_thread. spa_vdev_activity_in_ progress_impl() looks at the state alone: boolean_t in_progress = (activity == ZPOOL_WAIT_INITIALIZE) ? (vd->vdev_initialize_state == VDEV_INITIALIZE_ACTIVE) : (vd->vdev_trim_state == VDEV_TRIM_ACTIVE); so "zpool wait -t initialize" and "zpool initialize -w" return while the thread is still in that txg wait. A command issued right after them then hits the vdev_initialize_thread != NULL checks in spa_vdev_initialize_impl() and fails with EBUSY, both for uninit and for starting another initialization: cannot initialize '/var/tmp/zpool_disk2.dat': currently initializing ZTS zpool_initialize_multiple_pools fails on this: it runs "zpool initialize -u -a" right after "zpool initialize -w -a". The window is one txg sync wide, so a loaded machine hits it and an idle one usually does not. Wait for the thread as well as for the state, and notify the waiters once the thread has cleared itself, so that the wait covers the whole operation the way its callers already assume. vdev_trim_thread() ends the same way and shares the predicate, so it gets the same treatment. Verified in a VM by adding a delay(2 * hz) where the txg sync happens, to imitate the loaded machine: uninit right after the wait fails on every one of five runs before this change, and on none after it. Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #19042 M module/zfs/spa.c M module/zfs/vdev_initialize.c M module/zfs/vdev_trim.c _____________________________________________________________________________________________________________ Commit: 1ddb990fbe679634bfa74237d87b653a63fd5e0f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1ddb990fbe679634bfa74237d87b653a63fd5e0f Author: Michael Heller <75820586+mkhllr@users.noreply.github.com> (Fri 21 Aug 2026 22:27:02 BST) Committer: Tony Hutter (Wed 25 Nov 2026 18:47:40 GMT) dsl_crypt: validate every key change-key will rewrap spa_keystore_change_key_sync_impl() recurses through a dataset and its children and VERIFY0()s spa_keystore_dsl_key_hold_dd() on each one, while spa_keystore_change_key_check() only checks that the wrapping key of the target's encryption root is loaded. A dataset whose DSL Crypto Key can no longer be unwrapped with that wrapping key therefore turns a 'zfs change-key' into a panic in syncing context, which leaves txg_sync blocked and the pool unusable until the machine is rebooted: PANIC at dsl_crypt.c:1475:spa_keystore_change_key_sync_impl() Walk the same dsl dirs in the check function and hold every DSL Crypto Key the sync function will rewrap, so an unusable key is reported to the caller as EACCES instead. Reviewed-by: Brian Behlendorf Signed-off-by: Michael Heller <75820586+mkhllr@users.noreply.github.com> Closes #17425 Closes #18969 M module/zfs/dsl_crypt.c _____________________________________________________________________________________________________________ Commit: 1c7d92d51f264dd5ed2274cf86d868c32559a854 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1c7d92d51f264dd5ed2274cf86d868c32559a854 Author: Konstantin Belousov (Mon 23 Nov 2026 16:44:06 GMT) Committer: Konstantin Belousov (Wed 25 Nov 2026 09:53:34 GMT) ntsync(4): do not leak the priv when devfs_set_cdevpriv() fails (cherry picked from commit d3bfdc5f048773d530e1873f9d4fe7d0481c7324) M sys/dev/ntsync/ntsync.c _____________________________________________________________________________________________________________ Commit: 74756b1905237f3de6ca8059bc47fc56d579a77c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=74756b1905237f3de6ca8059bc47fc56d579a77c Author: Konstantin Belousov (Mon 23 Nov 2026 16:44:06 GMT) Committer: Konstantin Belousov (Wed 25 Nov 2026 09:53:34 GMT) ntsync(4): fix double free and leak of the per-open priv (cherry picked from commit 92adb5d4cd22e93e1f6539994e30eca9fdcdb250) M sys/dev/ntsync/ntsync.c _____________________________________________________________________________________________________________ Commit: 3df96ab873c15ac3f0114f7255f9d536737c0830 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3df96ab873c15ac3f0114f7255f9d536737c0830 Author: Alexander Moch (Thu 3 Sep 2026 17:37:47 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) dnode: fix heap-use-after-free in dnode_rele_and_unlock() The ZFS_DEBUG-only assert in dnode_rele_and_unlock() dereferenced dnh, the dnode's handle, after mutex_exit(&dn->dn_mtx), below the comment stating "dnode could get destroyed at this point, so don't use it anymore". For an objset's special dnodes that is a real use-after-free. They have no dnode block (dn_dbuf == NULL), so nothing pins their handle; it is embedded in the objset_t. Only dn_nodnholds orders a release against teardown, and this function is what signals it: on the last hold it broadcasts and drops dn_mtx, freeing dnode_special_close() to destroy that handle and, via dmu_objset_evict_done(), the objset it lives in. The assert then reads it. Read the zrlock ownership before dropping dn_mtx instead, where dn_mtx still blocks dnode_special_close() and, for an ordinary dnode, the reference from dbuf_add_ref(db, dnh) is not yet released. ZFS_DEBUG-only, no change to non-debug builds. Reviewed-by: Brian Behlendorf Reviewed-by: Richard Yao Signed-off-by: Alexander Moch Closes #19016 M module/zfs/dnode.c _____________________________________________________________________________________________________________ Commit: c0c929c47601938810535bd61cbc2f6801212e1c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c0c929c47601938810535bd61cbc2f6801212e1c Author: cppudge (Thu 3 Sep 2026 17:34:48 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) Linux: drop cached pages in zfs_rezget() After zfs rollback (or zfs recv -F) of a mounted dataset, zfs_resume_fs() calls zfs_rezget() for every surviving znode. On Linux it reloads the SA attributes but never touches the inode's page cache. A file whose object number, generation and size are unchanged but whose data blocks differ keeps serving pre-rollback data from pages that were resident (the file had been mmap()ed) and later refreshed by update_pages() from a write(). Both mappedread() and mmap() return the stale pages; reading through .zfs/snapshot is correct, so the on-disk data is fine. The FreeBSD port handles this by calling vn_pages_remove_valid() at the start of zfs_rezget(). Do the equivalent on Linux with truncate_inode_pages() before reloading the znode, so pages are dropped on the error paths as well. Dirty pages are discarded on purpose: their content belongs to the state being rolled back, and writeback is blocked on z_teardown_lock during suspend/resume anyway. Live mappings are unmapped and fault the correct data back in through zfs_getpage(). Reviewed-by: Brian Behlendorf Signed-off-by: Petr Slavyagin Closes #10931 Closes #19013 M module/os/linux/zfs/zfs_znode_os.c _____________________________________________________________________________________________________________ Commit: 359f8a439d8608dabdbb834ae5a58a177bc3571e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=359f8a439d8608dabdbb834ae5a58a177bc3571e Author: Alexander Motin (Thu 3 Sep 2026 17:23:44 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) linux: fix write cache detection on 6.11+ kernels Linux 6.11 moved the write cache flag into queue_limits, removing both QUEUE_FLAG_WC and QUEUE_FLAG_HW_WC. zfs_bdev_has_write_cache() only tested those two flags, so it fell through to the pre-4.10 fallback and assumed every vdev had a volatile write cache. vdev_nowritecache was never set at open, and ZFS kept submitting flush BIOs to devices that report no cache, only for the kernel to discard them in blk_insert_flush(). Test queue_limits.features & BLK_FEAT_WRITE_CACHE instead. Read the field directly rather than using bdev_write_cache(), which also honours the operator's BLK_FLAG_WRITE_CACHE_DISABLED override: we only sample this at vdev open, so if the operator later re-enabled the cache we would never flush again. This preserves the old QUEUE_FLAG_HW_WC semantics. Reviewed-by: Tony Hutter Reviewed-by: Rob Norris Signed-off-by: Alexander Motin Closes #19001 M include/os/linux/kernel/linux/blkdev_compat.h _____________________________________________________________________________________________________________ Commit: 460fbb301a66b2a0fca1269d5b4673669e707326 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=460fbb301a66b2a0fca1269d5b4673669e707326 Author: Alexander Motin (Tue 25 Aug 2026 14:53:45 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) Undo checkpoint accounting on vdev_free() vdev_load() increments spa_checkpoint_info.sci_dspace, and if we don't undo it on unload, we'll see a leak on following load in case of rewind import. Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Motin Closes #18967 M module/zfs/vdev.c _____________________________________________________________________________________________________________ Commit: c696fbced576e91d6290cf040490ade116cce344 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c696fbced576e91d6290cf040490ade116cce344 Author: tiehexue (Wed 2 Sep 2026 20:05:40 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) CI: force GRUB onto serial console for headless VM The QEMU CI VMs have no display device. When the deps step powers the VM off and the build step restarts it, grub2-mkconfig emits 'terminal_output gfxterm', which leaves GRUB stuck before the kernel starts on the headless VM, so SSH never comes up (seen on CentOS Stream 10). Force GRUB_TERMINAL_INPUT/OUTPUT to the serial console, which is always present in these VMs. Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Signed-off-by: tiehexue Closes #19002 M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: 7c1de6bbbdf5a88322113325de0f3239be32f5c7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7c1de6bbbdf5a88322113325de0f3239be32f5c7 Author: Rob Norris (Thu 27 Aug 2026 17:41:01 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) vdev_disk_open: fix ENOENT retry & cleanup error handling In 88261a83ae I reorganized the blockdev open error handling to accommodate the permission check. What I didn't notice was that I'd made the ENOENT case break after the timeout, rather than looping and retrying. This commit fixes it up the right way, and this time adds a lot more commentary to make it easier to see what's happening for each case. Sponsored-by: TrueNAS Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Reviewed-by: Ameer Hamza Signed-off-by: Rob Norris Closes #18993 M module/os/linux/zfs/vdev_disk.c _____________________________________________________________________________________________________________ Commit: f9f88d0870712a3593ad5759072376de7fee2384 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f9f88d0870712a3593ad5759072376de7fee2384 Author: Alexander Moch (Tue 25 Aug 2026 17:59:52 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) CI: Add tzdata, libcap-utils, and ksh93's stable branch to Alpine Missing tzdata silently breaks history_007_pos's TZ-dependent timestamp check (stays in UTC instead of shifting). Missing libcap-utils breaks zoned_uid_common.kshlib's capsh-based tests ("unshare: failed to execute"). And building ksh93 from its unpinned "dev" branch, rather than the stable "1.0" branch, causes musl crashes in ksh93's own environment-building code, hit by the zpool_iostat/zpool_status "-c" custom-script tests. Combined into one commit since all three touch the same function in qemu-3-deps-vm.sh. Fixes the following tests on Alpine 3.24: - history/history_007_pos - zoned_uid/zoned_uid_023_pos - zoned_uid/zoned_uid_025_pos - zoned_uid/zoned_uid_026_pos - zoned_uid/zoned_uid_030_pos - device_access/device_access_add (was SKIP, not FAIL) - cli_user/zpool_iostat/zpool_iostat_-c_disable - cli_user/zpool_iostat/zpool_iostat_-c_homedir - cli_user/zpool_iostat/zpool_iostat_-c_searchpath - cli_user/zpool_status/zpool_status_-c_disable - cli_user/zpool_status/zpool_status_-c_homedir - cli_user/zpool_status/zpool_status_-c_searchpath Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #18988 M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: 60b68a49635bffc959f580a58d72326c67761c71 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=60b68a49635bffc959f580a58d72326c67761c71 Author: Martin (Tue 25 Aug 2026 17:22:14 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) dmu_objset_open_impl: unregister prop callbacks on error If dsl_prop_register() fails partway, the error path frees the objset without removing the callbacks already registered, leaving records that point at freed memory. Call dsl_prop_unregister_all() first. Reviewed-by: Tony Hutter Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Martin Minkus Closes #18903 M module/zfs/dmu_objset.c _____________________________________________________________________________________________________________ Commit: 4a6274fa02b8ac6c83b21992142e2f46f9a6f27e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4a6274fa02b8ac6c83b21992142e2f46f9a6f27e Author: Alexander Moch (Mon 24 Aug 2026 19:12:21 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) CI: boot linux-stable instead of linux-virt on the Alpine runner The Alpine runner's linux-virt kernel has CONFIG_SCSI_DEBUG disabled. Several ZTS tests use the scsi_debug kernel module to simulate disks that support expand and fault-injection scenarios real static disks can't easily provide. Without it, load_scsi_debug() in blkdev.shlib calls log_unsupported and they SKIP instead of running. linux-stable has CONFIG_SCSI_DEBUG=m. Swap linux-virt/linux-virt-dev for linux-stable/linux-stable-dev, and switch the extlinux default kernel from "virt" to "stable" in /etc/update-extlinux.conf. Fixes the following tests on Alpine 3.24 (SKIP -> PASS): - cli_root/zpool_expand/zpool_expand_001_pos - cli_root/zpool_expand/zpool_expand_003_neg - cli_root/zpool_expand/zpool_expand_005_pos - cli_root/zpool_expand/zpool_expand_006_pos - cli_root/zpool_reopen/* (7 tests) - cli_root/zpool_split/zpool_split_wholedisk - cli_root/zpool_import/zpool_import_aux_paths - fault/auto_offline_001_pos - fault/auto_online_001_pos - fault/auto_online_002_pos - fault/auto_replace_001_pos - fault/auto_replace_002_pos - fault/auto_spare_ashift - fault/auto_spare_shared - fault/suspend_draid_fgroups - fault/suspend_on_probe_errors - fault/suspend_resume_single - procfs/pool_state Reviewed-by: Brian Behlendorf Signed-off-by: Alexander Moch Closes #18980 M .github/workflows/scripts/qemu-3-deps-vm.sh _____________________________________________________________________________________________________________ Commit: fcdd25d3062d9549276a5edf5339f28591b4bb04 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fcdd25d3062d9549276a5edf5339f28591b4bb04 Author: Michael Heller (Thu 20 Aug 2026 15:04:56 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) CI: run zloop with multihost testing enabled Pass -M so the zloop workflow exercises multihost on a fraction of its iterations. Drop the zgenhostid call added by eb5c93fa8. It was there so ztest could import a pool it had enabled multihost on, and zloop.sh now supplies a hostid through ZFS_HOSTID for the iterations that need one. Suggested-by: Brian Behlendorf Reviewed-by: Brian Behlendorf Signed-off-by: Michael Heller Closes #18918 Closes #18964 M .github/workflows/zloop.yml _____________________________________________________________________________________________________________ Commit: 7ccbe5e7894930415ab749beab9481e7131caa08 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7ccbe5e7894930415ab749beab9481e7131caa08 Author: Richard Yao (Fri 21 Aug 2026 17:56:25 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) dmu_redact_snap: Do proper cleanup on ENAMETOOLONG If the redaction bookmark name exceeds ZFS_MAX_DATASET_NAME_LEN, we leak the dataset hold, long hold, and decrypt key mapping on the target snapshot, plus the same three references on each origin snapshot in args[]. The leaked long holds leave those datasets busy such that destroy, unmount, and zfs send will return EBUSY and the key mappings never drop. Using goto out like the other error paths avoids this. Reported-by: Grok 4.6 Build Beta Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Richard Yao Closes #18962 M module/zfs/dmu_redact.c _____________________________________________________________________________________________________________ Commit: ea7afac18c3bf484b69a27b63c72ac1a4b3259dd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ea7afac18c3bf484b69a27b63c72ac1a4b3259dd Author: Richard Yao (Fri 21 Aug 2026 17:52:08 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:58 GMT) dmu_recv_begin_check: dsl_dataset_rele() should be called on ds We call dsl_dataset_hold() to initialize ds, and are supposed to call dsl_dataset_rele() on ds when we are done. In two error paths, we call dsl_dataset_rele_flags(). If ds is an encrypted dataset, this can drop the key mapping for the dataset, which will cause run time issues. On unencrypted datasets, this is a no-op. Reported-by: Grok 4.6 Build Beta Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Richard Yao Closes #18961 M module/zfs/dmu_recv.c _____________________________________________________________________________________________________________ Commit: d7b0612b95eb18d9145d2e6dfd27c112bcbdec32 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d7b0612b95eb18d9145d2e6dfd27c112bcbdec32 Author: Eric Schultz (Fri 21 Aug 2026 00:25:59 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) zgenhostid: seed the generated hostid from the system CSPRNG When no hostid is supplied on the command line, zgenhostid derived one from srand48(getpid() ^ time(NULL)) followed by lrand48(). Neither input is reliably unpredictable at the moment this runs, which is typically early in an unattended install: - On a machine with no usable RTC, the clock is not yet set from the network and systemd has advanced it to the fixed epoch compiled into the image, so time(NULL) is the same constant on every machine booting that image. - The PID reached at that point of a scripted install is determined by the boot sequence, so it is the same across installs of the same image on comparable hardware. Two separate installs can therefore derive an identical seed and write byte-identical hostids, which defeats the multihost protection the hostid exists to provide. The seed is also trivially recoverable: lrand48() is a 48-bit LCG, so a hostid can be inverted back to its seed in constant time, and the reachable seed space in this situation is only a few thousand values. Reproduced with two freshly created VMs given identical virtual hardware and an RTC set to a past date, installed from the same image: both produced the same /etc/hostid. Read four bytes from /dev/urandom instead, and fail rather than fall back to a predictable source, since a silent fallback reintroduces the problem it is meant to avoid. As a side effect the generated value now covers the full 32-bit range; lrand48() returns 31 bits, so previously no generated hostid ever had the high bit set. Reviewed-by: Brian Behlendorf Reviewed-by: Richard Yao Reviewed-by: Ryan Moeller Signed-off-by: Eric Schultz Closes #18934 M cmd/zgenhostid.c _____________________________________________________________________________________________________________ Commit: 44d0ea4aca22d96de763315c9214c2278acd34ba URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=44d0ea4aca22d96de763315c9214c2278acd34ba Author: Gality <68463495+Gality369@users.noreply.github.com> (Tue 18 Aug 2026 17:30:23 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Linux: reject mounts without a source The mount source identifies the ZFS dataset. A mount request without a source leaves fc->source unset, but zpl_get_tree() passes it to dmu_objset_hold(). The lookup path later dereferences the NULL pointer. Return EINVAL before looking up the dataset. Add a Linux ZTS helper and mount test that issue mount(2) with a NULL source and verify the error. Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Signed-off-by: ZhengYuan Huang Closes #18911 M module/os/linux/zfs/zpl_super.c M tests/runfiles/linux.run M tests/zfs-tests/cmd/.gitignore M tests/zfs-tests/cmd/Makefile.am A tests/zfs-tests/cmd/mount_null_source.c M tests/zfs-tests/include/commands.cfg M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/mount/mount_null_source.ksh _____________________________________________________________________________________________________________ Commit: 53af405e2d4245787c3ddd65c6132dcfe482a374 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=53af405e2d4245787c3ddd65c6132dcfe482a374 Author: Rob Norris (Sun 26 Jul 2026 11:27:45 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) ZTS: makedir helper command The system mkdir command may do other things besides the mkdir() syscall, which is a problem when we're trying to test the syscall specifically. This helper only does the mkdir() syscall. Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Signed-off-by: Rob Norris Closes #18847:w M tests/zfs-tests/cmd/.gitignore M tests/zfs-tests/cmd/Makefile.am A tests/zfs-tests/cmd/makedir.c M tests/zfs-tests/include/commands.cfg _____________________________________________________________________________________________________________ Commit: 148aecd32450e6316da304bb32e5b794c913474f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=148aecd32450e6316da304bb32e5b794c913474f Author: tiehexue (Wed 8 Jul 2026 20:02:10 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Do not return ESTALE for open-unlinked files When the Linux fh_to_dentry() export operation is called for an open-unlinked file on a ZFS filesystem, an ESTALE error is returned. This behavior differs from other filesystem implementations on Linux (like eg. ext4, XFS), which grant access to inodes that are unlinked but still referenced. Update both the Linux and FreeBSD code to conform with the established Linux behavior. Reviewed-by: Brian Behlendorf Signed-off-by: tiehexue Closes #18699 Closes #18718 M tests/zfs-tests/cmd/.gitignore _____________________________________________________________________________________________________________ Commit: a727a8138971b62db7912c0919aa018b0af0c0c8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a727a8138971b62db7912c0919aa018b0af0c0c8 Author: cpalv (Thu 16 Jul 2026 19:52:24 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Add configure option to disable zfs channel programs Introduce a configure time option to build OpenZFS without channel program support. When disabled, the channel program ioctl is not registered and attempts to invoke a channel program return CMD_UNAVAILABLE. This also removes the embedded channel program used for snapshot deletion and updates the related build files, tests, and manpage install rules so they reflect whether channel program support is enabled. Reviewed-by: Brian Behlendorf Signed-off-by: Eduardo Alvarado Closes #18658 A config/always-zcp.m4 M config/zfs-build.m4 M include/Makefile.am M lib/libzpool/Makefile.am M man/Makefile.am M module/Kbuild.in M module/Makefile.in M module/zfs/dsl_destroy.c M module/zfs/zfs_ioctl.c M tests/runfiles/common.run M tests/test-runner/bin/zts-report.py.in M tests/zfs-tests/cmd/.gitignore M tests/zfs-tests/cmd/Makefile.am A tests/zfs-tests/cmd/zcp_support.c M tests/zfs-tests/include/commands.cfg M tests/zfs-tests/tests/Makefile.am M tests/zfs-tests/tests/functional/channel_program/lua_core/setup.ksh M tests/zfs-tests/tests/functional/channel_program/synctask_core/setup.ksh A tests/zfs-tests/tests/functional/cli_root/zfs_program/zfs_channel_program_support.ksh M tests/zfs-tests/tests/functional/cli_root/zfs_program/zfs_program_json.ksh _____________________________________________________________________________________________________________ Commit: 29f8d7d1fa00c9d747afb8bcda61d36f7d274c65 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=29f8d7d1fa00c9d747afb8bcda61d36f7d274c65 Author: tiehexue (Wed 8 Jul 2026 20:02:10 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Do not return ESTALE for open-unlinked files When the Linux fh_to_dentry() export operation is called for an open-unlinked file on a ZFS filesystem, an ESTALE error is returned. This behavior differs from other filesystem implementations on Linux (like eg. ext4, XFS), which grant access to inodes that are unlinked but still referenced. Update both the Linux and FreeBSD code to conform with the established Linux behavior. Reviewed-by: Brian Behlendorf Signed-off-by: tiehexue Closes #18699 Closes #18718 M module/os/freebsd/zfs/zfs_vfsops.c M module/os/freebsd/zfs/zfs_znode_os.c M module/os/linux/zfs/zfs_vfsops.c M tests/runfiles/common.run M tests/zfs-tests/cmd/.gitignore M tests/zfs-tests/cmd/Makefile.am A tests/zfs-tests/cmd/file/file_unlink_fh.c M tests/zfs-tests/include/commands.cfg M tests/zfs-tests/tests/Makefile.am A tests/zfs-tests/tests/functional/unlink/cleanup.ksh A tests/zfs-tests/tests/functional/unlink/setup.ksh A tests/zfs-tests/tests/functional/unlink/unlinked_fh_accessible.ksh _____________________________________________________________________________________________________________ Commit: ed523372f443338223ca2729b7a167723fbc6c9c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ed523372f443338223ca2729b7a167723fbc6c9c Author: ooonea.eth <35407790+ooonea@users.noreply.github.com> (Mon 26 Oct 2026 00:28:51 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Linux 7.3 compat: META Update the META file to reflect compatibility with the 7.3 kernel. Assisted-by: OpenAI Codex Reviewed-by: Brian Behlendorf Signed-off-by: ooonea <35407790+ooonea@users.noreply.github.com> Closes #19553 M META _____________________________________________________________________________________________________________ Commit: 9c7f0ed515116cb362d44fe5abdc19824d443206 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9c7f0ed515116cb362d44fe5abdc19824d443206 Author: Rob Norris (Tue 8 Sep 2026 01:24:30 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Linux 7.3: make host filesystem available to kernel threads Every kernel task has a `struct fs_struct *fs` that points to the root of the filesystem tree for this task, and is used as the starting point for path resolution. This is what is modified by chroot(2), pivot_root(2), etc. Kernel threads (as spawned by kthreadd) used to get a pointer to the root filesystem by default. In 7.3 this changed, and kernel threads now get a pointer to an internal nullfs; effectively a "no-op" filesystem with no path into the true filesystem. An opt-in mechanism is provided in the form of `scoped_with_init_fs()`, which swaps in a a pointer to the root filesystem for the scoped code, and reverts it at end of scope. Currently we don't have any good notion of whether or not a given thread (including taskq tasks) will require filesystem access, and no good way to signal it anyway. For now, to maintain the status quo, we add `scoped_with_init_fs()` in the two places where arbitrary code may run on a kernel thread: in `thread_generic_wrapper()`, the startup trampoline for `thread_create()`, and in `taskq_thread()`, when calling a task entry. This ensures all SPL-managed threads and tasks retain filesystem access. For older kernels that do not have `scoped_with_init_fs()`, a compat wrapper is provided (a much grander description than it deserves). Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Co-developed-by: TheAlmightyOgreLord Signed-off-by: Rob Norris Closes #19082 M include/os/linux/Makefile.am A include/os/linux/kernel/linux/kthread_compat.h M module/os/linux/spl/spl-taskq.c M module/os/linux/spl/spl-thread.c _____________________________________________________________________________________________________________ Commit: 6c67a5a6fb9ad5a244059cfa132e0964c12f9524 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6c67a5a6fb9ad5a244059cfa132e0964c12f9524 Author: Rob Norris (Sun 16 Aug 2026 00:14:34 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Linux 7.3: inode_operations.create dropped flag arg Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Co-developed-by: TheAlmightyOgreLord Signed-off-by: Rob Norris Closes #19082 (cherry picked from commit 6e2fa4bc87c35086ce36a4022cfa2b4212518eab) Signed-off-by: Andrew Dunn M config/kernel-inode-create.m4 M module/os/linux/zfs/zpl_inode.c _____________________________________________________________________________________________________________ Commit: 87e60fa3c73bbc6ef4555e5b6740b5d61bd7c1be URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=87e60fa3c73bbc6ef4555e5b6740b5d61bd7c1be Author: Rob Norris (Sat 15 Aug 2026 04:27:50 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Linux: use cpu_feature_enabled() instead of static_cpu_has() static_cpu_has() was renamed in 7.3 because since 3.18 cpu_feature_enabled() has always been the "right" way to do the same thing. So we just switch everything over. Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Co-developed-by: TheAlmightyOgreLord Signed-off-by: Rob Norris Closes #19082 (cherry picked from commit 315bc75afc18f548df3b738b69bfaad7cff094ad) Signed-off-by: Andrew Dunn M include/os/linux/kernel/linux/simd_x86.h M module/zcommon/simd_stat.c _____________________________________________________________________________________________________________ Commit: 4669f158c618cd3cda82306a9c29541d89cf7a97 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4669f158c618cd3cda82306a9c29541d89cf7a97 Author: Rob Norris (Sat 15 Aug 2026 03:58:45 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Linux 7.3: bvec_iter.bi_bvec_done is now bi_offset Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Co-developed-by: TheAlmightyOgreLord Signed-off-by: Rob Norris Closes #19082 M config/kernel-bio.m4 M include/os/linux/kernel/linux/blkdev_compat.h _____________________________________________________________________________________________________________ Commit: 93e458c125f5a03a32dfdfd93abe747b71a3cc2b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=93e458c125f5a03a32dfdfd93abe747b71a3cc2b Author: Andriy Tkachuk (Thu 6 Aug 2026 22:13:46 BST) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) arc: fix race between arc_release() and arc_read_done() Consider the following scenario: 1. arc_release() is called on hdr with one buf, but which has IO_IN_PROGRESS (reading more raw data in encypted pool while keeping decrypted data in buf). 2. arc_release() moves hdr to anon state and discards its identity. 3. arc_read_done() is called, adds the 2nd buf to hdr, increasing b_refcnt to 2. Now we have hdr in anon state with two bufs and without identity. Or here's a racing scenario: 1. arc_release() checked that hdr is not in anon state, but before taking hash_lock 2. arc_read_done() takes hash_lock, moves hdr to anon state, in case of an error. 3. arc_release() now takes hash_lock and tries to move hdr to anon state again. Solution: 1) in arc_read_done(), don't put hdr to anon state on an error immediately but allow remove_reference() do that when b_ref becomes 0; 2) in arc_release(), handle IO_IN_PROGRESS case similarly to case with several buffers without putting the hdr to anon state; 3) in remove_reference(), don't put hdr with IO_ERROR flag to the eviction list, free it immediately, similar to uncached state. Note: hdr with IO_ERROR flag can now linger longer around before it gets released at remove_reference(), so we make some additional changes to facilitate that: 1) free b_radb or else b_pabd on error at arc_read_done(); 2) set IO_ERROR only if no valid data remains at hdr worth to cache. This allows next arc_read() calls on the hdr to avoid hit branch (HDR_HAS_RABD), returning bad data, but try to re-read it instead; as well as for arc_write() to not trip on ASSERT(!HDR_IO_ERROR(hdr)). Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Andriy Tkachuk Co-authored-by: Alexander Motin Illumos-issue: https://www.illumos.org/issues/14003 Related-issue: #13479 Closes #18897 (cherry picked from commit 216de07d89ffe0b6faadc6c090b0527a198a7ccb) Signed-off-by: Andriy Tkachuk M module/zfs/arc.c _____________________________________________________________________________________________________________ Commit: 87e5cf5650b892a88e3fb299adb2de40b12c4cb0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=87e5cf5650b892a88e3fb299adb2de40b12c4cb0 Author: Ameer Hamza (Sun 4 Jan 2026 16:10:02 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) L2ARC: Preserve L2HDR in arc_release() for in-flight writes When arc_release() is called on a header with a single buffer and L2_WRITING set, the L2HDR must be preserved for ABD cleanup (similar to the arc_hdr_destroy() case). If we destroy the L2HDR here, later arc_write() will allocate a new ABD and call arc_hdr_free_abd(), which needs b_l2hdr.b_dev to properly defer ABD cleanup, causing VERIFY(HDR_HAS_L2HDR(hdr)) to fail. Allocate a new header for the buffer in the single_buf_l2writing case (single buffer + L2_WRITING), leaving the original header with L2HDR intact. The original header becomes an "orphan" (no buffers, no b_pabd) but retains device association for ABD cleanup when l2arc_write_done() completes. The shared buffer case (HDR_SHARED_DATA) is excluded because L2ARC makes its own transformed copy via l2arc_apply_transforms(), so the original ABD is not used by the L2 write. The header can be safely reused without allocating a new one. For proper evictable space accounting, arc_buf_remove() must be called before remove_reference() in the single_buf_l2writing path. This ensures arc_evictable_space_increment() (during remove_reference) and arc_evictable_space_decrement() (during destruction) see the same state (b_buf=NULL), preventing accounting leaks that cause module unload to hang with non-zero esize. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Ameer Hamza Closes #18093 (cherry picked from commit 825dc41ad4bf262e3d8e6ccb5d549709bf1e53c5) Signed-off-by: Andriy Tkachuk M module/zfs/arc.c _____________________________________________________________________________________________________________ Commit: 5096951f8ed247f02d72feda23665ed75db22d4f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5096951f8ed247f02d72feda23665ed75db22d4f Author: mischivus <1205832+mischivus@users.noreply.github.com> (Mon 16 Mar 2026 06:57:47 GMT) Committer: Tony Hutter (Wed 25 Nov 2026 00:48:57 GMT) Remove forced zfs_umount() from zfs_resume_fs() bail path When zfsvfs_init() fails during zfs_resume_fs(), the bail path called zfs_umount() directly. All three callers (zfs_ioc_rollback, zfs_ioc_recv_impl, and zfs_ioc_userspace_upgrade) hold an s_active reference via getzfsvfs() at entry. This creates two bugs: 1. Deadlock: zfs_umount() -> zfsvfs_teardown() -> txg_wait_synced() blocks in uninterruptible D state. The superblock cannot tear down because s_active is pinned by the calling thread itself. Survives SIGKILL. Blocks clean reboot. Requires hard power cycle. 2. Use-after-free: if txg_wait_synced() returns, zfs_umount() calls zfsvfs_free(). The caller then dereferences the freed zfsvfs via zfs_vfs_rele(). The explicit zfs_umount() is unnecessary. z_unmounted is already set to B_TRUE before the locks are released, so all new operations return EBUSY. When the caller releases its s_active reference via zfs_vfs_rele(), the standard VFS lifecycle (deactivate_super -> generic_shutdown_super -> zpl_kill_sb -> zfs_umount) handles teardown correctly. Reviewed-by: Brian Behlendorf Signed-off-by: mischivus <1205832+mischivus@users.noreply.github.com> Closes #18309 Closes #18310 M module/os/linux/zfs/zfs_vfsops.c _____________________________________________________________________________________________________________ Commit: c705ab58f4c96a982c844a85606fd5496f1f449a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c705ab58f4c96a982c844a85606fd5496f1f449a Author: Rick Macklem (Tue 16 Jun 2026 17:15:25 BST) Committer: Rick Macklem (Tue 24 Nov 2026 22:19:49 GMT) Revert "rpc.tlsservd.c: Pin max threads at 1 for now" This reverts commit 7a289fe3cd5c6de7ddbe394b7700b20b0bafdb3e. Hopefully, commit fc7993cf2d6d has fixed the underlying problem reported by PR#289734, so I am reverting this temporary work-around. I will delay MFC'ng this for a while, to see if the problem occurs again. (cherry picked from commit 62e7ac83ae14fcc1847d607e98284bd4a98e7127) M usr.sbin/rpc.tlsservd/rpc.tlsservd.c _____________________________________________________________________________________________________________ Commit: 9508483558f3f096492661bebd3e4aad7fac01e0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9508483558f3f096492661bebd3e4aad7fac01e0 Author: Jessica Clarke (Fri 20 Nov 2026 14:37:14 GMT) Committer: Jessica Clarke (Tue 24 Nov 2026 20:44:16 GMT) libsysdecode: Avoid non-portable \> word end boundary in mktables Whilst we bootstrap our own sed when building on non-FreeBSD, it uses the system regex(3) implementation, and so inherits its extensions, not our own. Our implementation and glibc's both include this extension to POSIX, but macOS's does not, and so even with our bootstrap sed we cannot use the \> extension when built and run on macOS. Unfortunately, there is no alternative form we can use; whilst macOS implements [[:>:]] as an extension that provides this same feature, and so do we, the regex(3) implementation in glibc does not, and the only alternative glibc offers is \b, which neither us nor macOS implement. We could make the form used conditional on the OS, but that starts to get messy once other Linux libcs enter the picture, which in theory we somewhat support. Rewrite both uses to avoid the need for \>. For gen_table, use a pattern to match the identifier that is precisely the (non-extended) C99 identifier pattern, and therefore by virtue of longer submatches being preferred left-to-right will capture the entire identifier before the .* matches anything, with no need to check for a boundary. However, for gen_table_enum, the input pattern (${grep}) can be more specific, so we should check for a word boundary, which we can do by explicitly matching on a non-identifier character (or the end of the line). With and without this patch applied to releng/15.2 at time of writing, building on both FreeBSD 15.1 and Ubuntu 22.04, make tinderbox produces identical tables.h files across all four possible such configurations; specifically: find $MAKEOBJDIRPREFIX -path '*/libsysdecode/tables.h' -exec md5sum {} + | LC_ALL=C sort is identical for the four OS * patched configurations. Additionally, make tinderbox for the same patched tree on macOS 27.2.1 (noting the unpatched tree doesn't build) also identical produces identical tables.h files to these four configurations. Reviewed by: des Fixes: 8b197806dcdf ("libsysdecode: Teach mktables to handle enums") MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D61783 (cherry picked from commit b5a5feb60d96d7db472bcc3a4562b76ad3b09c2c) M lib/libsysdecode/mktables _____________________________________________________________________________________________________________ Commit: 5ec1d41902cc1f331f590bac8777c62e81e90d3f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5ec1d41902cc1f331f590bac8777c62e81e90d3f Author: Roman Bogorodskiy (Wed 22 Jul 2026 17:08:09 BST) Committer: Roman Bogorodskiy (Tue 24 Nov 2026 17:22:47 GMT) bhyve: add command to list config options For a software built on top of bhyve(8) and/or managing bhyve(8), it is very convenient to know what specific features the given binary supports. Currently, bhyve(8) provides some of this information, and it could be retrieved by parsing `bhyve -h`, `bhyve -s help`, `bhyve -l help`. Sometimes it is not enough, for example, the recently added "oemstrings" feature cannot be fully probed using these commands. Over time, some workarounds were suggested. Specifically: - Mapping features to __FreeBSD_version. I see at least two issues with that: * __FreeBSD_version does not directly map to bhyve(8) features, so this is simply not accurate. * bhyve(8) might be updated separately from the system, which is not so uncommon, especially for development purposes. Then such a probing will be inaccurate. - Manual pages parsing. I see more disadvantages with that: * Manual pages are meant to be read by a human. Extracting information from it by a machine is not the most convenient thing. Especially understanding side notes like: "Note, feature 'foo' is arm64-only!". * Manual pages might be inaccurate, they might miss options. * bhyve(8) could be used in an environment where manual pages are not installed. This commit attempts to close this gap by introducing the "bhyve -o help" command which prints all the supported configuration variables. In my opinion, it is, in combination with the other commands mentioned above, sufficient to retrieve most of the capabilities of the given bhyve(8) binary. The current implementation defines a simple configuration schema for common and machdep code and prints out a list of supported configuration variables for the current architecture. The next step as I see it would be extending set_config*() functions to validate the user provided values against the schema, so users get notified early on incorrect or misspelled configuration variables. It would also be nice to allow users to only validate their configuration, think of 'nginx configtest / -t'. Reviewed by: chuck (previous revision), bnovkov MFC after: 1 month MFC to: stable/15 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58419 (cherry picked from commit e809c7d810ced2307741a7c0c135a8b1bef1851b) M usr.sbin/bhyve/Makefile M usr.sbin/bhyve/aarch64/bhyverun_machdep.c M usr.sbin/bhyve/amd64/bhyverun_machdep.c M usr.sbin/bhyve/bhyve.8 M usr.sbin/bhyve/block_if.c M usr.sbin/bhyve/block_if.h A usr.sbin/bhyve/config_schema.c A usr.sbin/bhyve/config_schema.h M usr.sbin/bhyve/pci_nvme.c M usr.sbin/bhyve/riscv/bhyverun_machdep.c _____________________________________________________________________________________________________________ Commit: d3899081b93f8ba19d21a01ad42e67b4f5f0a559 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d3899081b93f8ba19d21a01ad42e67b4f5f0a559 Author: Piotr Kubaj (Tue 17 Nov 2026 16:28:06 GMT) Committer: Piotr Kubaj (Tue 24 Nov 2026 16:11:19 GMT) Merge commit 5472aa0c1321 from llvm git (by Piotr Kubaj): [PowerPC] Use the 16-byte stack and vector alignment on FreeBSD (#232336) FreeBSD uses the ELFv2 ABI on both byte orders, so it has the same 16-byte stack alignment as Linux. The explicit vector alignment is a backend workaround that does not depend on the OS. There is no reason for the layouts to differ. llvm 21 still keeps the data layout in two places, so the check is changed in both the PowerPC backend and clang. They have to match, or clang errors out with a data layout mismatch. Reviewed by: dim MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61678 (cherry picked from commit d1470ac7f365a1846b8cc565b76592c7a79a22e3) M contrib/llvm-project/clang/lib/Basic/Targets/PPC.h M contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp _____________________________________________________________________________________________________________ Commit: aa462d88f9e595fcfda633a30c0be7afb4793ae7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=aa462d88f9e595fcfda633a30c0be7afb4793ae7 Author: Piotr Kubaj (Sun 18 Oct 2026 11:41:40 BST) Committer: Piotr Kubaj (Tue 24 Nov 2026 16:11:18 GMT) powerpc: save and restore VRSAVE with the vector state VRSAVE was never saved or restored, although user code can write it and the mcontext carries it, so every process saw the value the previous process on that CPU had left there. Two processes pinned to the same CPU and writing different values to VRSAVE each read back the other's; each reads back its own now. Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61544 (cherry picked from commit 26b47fd4b63c4e67a952f9a4f0ceb89bcb6a24ac) M sys/powerpc/powerpc/altivec.c _____________________________________________________________________________________________________________ Commit: 496ed837bc27af467d4fb94a78fa63a61b6162cf URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=496ed837bc27af467d4fb94a78fa63a61b6162cf Author: Piotr Kubaj (Sat 7 Nov 2026 21:12:48 GMT) Committer: Piotr Kubaj (Tue 24 Nov 2026 16:11:18 GMT) powerpc: move get_pcpu() to machine/pcpu.h Every other arch defines get_pcpu() in machine/pcpu.h, powerpc has it in machine/cpufunc.h, which is entirely under _KERNEL. lsof includes sys/systm.h without _KERNEL first on purpose, so on powerpc cpufunc.h turns into an empty header and pcpup later expands to a call of an undeclared get_pcpu(). Since sys/mount.h started pulling in sys/proc.h this breaks the lsof build on powerpc64 and powerpc64le. Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61305 (cherry picked from commit 4b3364a4bceb61c5870f50b75bf56272ca850944) M sys/powerpc/include/cpufunc.h M sys/powerpc/include/pcpu.h _____________________________________________________________________________________________________________ Commit: 73929d1dc3b4116ca12cc3fe08fa3a9b66bf3318 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=73929d1dc3b4116ca12cc3fe08fa3a9b66bf3318 Author: Michael Tuexen (Tue 17 Nov 2026 19:42:36 GMT) Committer: Michael Tuexen (Tue 24 Nov 2026 10:05:02 GMT) tcp: improve consistency Use an inline function tcp_adapt_iss_check() to perform the check consistently instead of replicating the code multiple times. These checks already became inconsistent. A fix for PR 298560 requires more calls to tcp_adapt_iss_check(). Reviewed by: Peter Lei Fixes: fa2ad70a4511 ("tcp: make ghost ACK handling more conformant") Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D61685 (cherry picked from commit e3483dbc91b59b5b2c73a4bc792fbb834c3dc111) M sys/netinet/tcp_input.c M sys/netinet/tcp_stacks/bbr.c M sys/netinet/tcp_stacks/rack.c M sys/netinet/tcp_var.h _____________________________________________________________________________________________________________ Commit: a170546cb8d13a67ee3062114228d3df4744bbee URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a170546cb8d13a67ee3062114228d3df4744bbee Author: Michael Tuexen (Thu 23 Jul 2026 17:03:39 BST) Committer: Michael Tuexen (Tue 24 Nov 2026 10:03:00 GMT) tcp: make ghost ACK handling more conformant The latest version of draft-ietf-tcpm-tcp-ghost-acks changed a condition. This should make no substantial difference, but makei it compliant to the latest version of the specification. Reviewed by: rscheff, Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D58411 (cherry picked from commit fa2ad70a4511e7b379e81de82c9e51b2e0994295) M sys/netinet/tcp_input.c _____________________________________________________________________________________________________________ Commit: 13357c1ee34f9f8655375714c60da8bf4881493a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=13357c1ee34f9f8655375714c60da8bf4881493a Author: Michael Tuexen (Mon 16 Nov 2026 17:25:32 GMT) Committer: Michael Tuexen (Tue 24 Nov 2026 09:57:01 GMT) tcp: improve sender side SWS avoidance When checking for a full sized segment, take all TCP options that will be included into account. This fixes a bug which can trigger the "sent too much" KASSERT related to limited transmit. Reported by: olivier Reviewed by: rscheff, Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D61605 (cherry picked from commit d174085f9f895ed444bd95120da3eff481a58f1a) M sys/netinet/tcp_output.c _____________________________________________________________________________________________________________ Commit: cbd17b66e64e9bdf025200c4993b8aeae6a0ebe9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cbd17b66e64e9bdf025200c4993b8aeae6a0ebe9 Author: Michael Tuexen (Sun 15 Nov 2026 21:13:50 GMT) Committer: Michael Tuexen (Tue 24 Nov 2026 09:56:21 GMT) tcp bbr: improve handling of retransmissions in LAST-ACK When performing a timer based retransmission, clear the BBR_RWND_COLLAPSED flag. If it sticks, t_rxtshift is never incremented resulting in unlimited retransmissions in the LAST-ACK state. Reported by: Illia Vynohradov Reviewed by: Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D61586 (cherry picked from commit 3c6fd437b1824caeddb5f0d4570d43cf0c999c14) M sys/netinet/tcp_stacks/bbr.c _____________________________________________________________________________________________________________ Commit: 3e74519d5136d4eb0fee56148ff30c66607a3eac URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3e74519d5136d4eb0fee56148ff30c66607a3eac Author: Michael Tuexen (Sun 15 Nov 2026 20:21:14 GMT) Committer: Michael Tuexen (Tue 24 Nov 2026 09:55:42 GMT) tcp bbr: improve persits timeout computation t_srtt and t_rttvar use different lengths of fractions, therefore use the appropriate shift value. Reviewed by: Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D61600 (cherry picked from commit 751882926dc0bb1f7a4834c4b5e8d951cee61c7c) M sys/netinet/tcp_stacks/bbr.c _____________________________________________________________________________________________________________ Commit: ccf8e3762c3948446263ae3ef0dd98391ef9f97e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ccf8e3762c3948446263ae3ef0dd98391ef9f97e Author: Michael Tuexen (Sun 15 Nov 2026 19:04:33 GMT) Committer: Michael Tuexen (Tue 24 Nov 2026 09:55:03 GMT) tcp bbr: improve retransmit timout calculation The retransmission timeout should the srtt + 4 * rttvar. The srtt is using 5 bits of fractions and rttvar is using 4 bits of fractions, some specific shifting is required. Reviewed by: Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D61581 (cherry picked from commit 2f98793a13fe3e69cf6b698fa469550b4ba0fea1) M sys/netinet/tcp_stacks/bbr.c _____________________________________________________________________________________________________________ Commit: 158dcb8e415d84caf6ebc30841ed4bfc3148bc32 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=158dcb8e415d84caf6ebc30841ed4bfc3148bc32 Author: Michael Tuexen (Sun 15 Nov 2026 18:56:25 GMT) Committer: Michael Tuexen (Tue 24 Nov 2026 09:54:18 GMT) tcp bbr: improve invalidating rtt Invalidate the rtt based on t_rxtshift instead of resetting t_srtt to 0, because using the latter also affects the retransmission timeout. Reviewed by: Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D61585 (cherry picked from commit 8018d75601dfe804a8d70f4f08bdb0e4e3a8c5c9) M sys/netinet/tcp_stacks/bbr.c _____________________________________________________________________________________________________________ Commit: c8ca5fa512fbbd04c69438cde86e6e2dd1c4597b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c8ca5fa512fbbd04c69438cde86e6e2dd1c4597b Author: Michael Tuexen (Sat 14 Nov 2026 17:36:42 GMT) Committer: Michael Tuexen (Tue 24 Nov 2026 09:49:34 GMT) tcp bbr: cleanup No functional change intended. Sponsored by: Netflix, Inc. (cherry picked from commit 34436bb7cf971dba1c0dcdb1d45f22fff1a4b6c1) M sys/netinet/tcp_stacks/bbr.c _____________________________________________________________________________________________________________ Commit: 19e3de6e1c808680af7ef8db2876d2e3f4cd2d5e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=19e3de6e1c808680af7ef8db2876d2e3f4cd2d5e Author: Roman Bogorodskiy (Mon 16 Nov 2026 14:22:09 GMT) Committer: Roman Bogorodskiy (Mon 23 Nov 2026 17:13:59 GMT) bhyve.8: mention VM nodes in /dev/vmm Currently, VM nodes in /dev/vmm are only described in the EXAMPLES section of bhyvectl.8. Add a FILES section to bhyve.8 to make this information easier to find. Update the bhyvectl.8 example to say "Existing VMs" instead of "Running VMs" as the VMs listed in /dev/vmm are not necessarily running. Update bhyvectl.8 to refer to vmm(4). Reviewed by: ziaee MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61623 (cherry picked from commit 8651589fd72d8b1de9f1b5512d6542c610fca1b3) M usr.sbin/bhyve/bhyve.8 M usr.sbin/bhyvectl/bhyvectl.8 _____________________________________________________________________________________________________________ Commit: 0f821cea807064c1685771fc9806c3c6b2641cef URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0f821cea807064c1685771fc9806c3c6b2641cef Author: Roman Bogorodskiy (Wed 18 Nov 2026 17:42:48 GMT) Committer: Roman Bogorodskiy (Mon 23 Nov 2026 17:13:19 GMT) bhyve.8: mention config files for VM parameters Mention that virtual CPUs, memory and other options can be configured with a configuration file, and refer to the -k option. Reviewed by: ziaee MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61718 (cherry picked from commit ed4bad79ec89248d3e3b0475cd44c25541198306) M usr.sbin/bhyve/bhyve.8 _____________________________________________________________________________________________________________ Commit: 5d6bdb30a792358efeb5a14255d399236627d6ef URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5d6bdb30a792358efeb5a14255d399236627d6ef Author: Ryan Moeller (Fri 12 Jun 2026 19:43:58 BST) Committer: Igor Ostapenko (Mon 23 Nov 2026 14:16:51 GMT) dnode_sync: Relax constraint on indirect freeing One of the roles of the dnode sync thread is freeing. There are two modes of this operation: freeing a portion of an object, and freeing the object itself. Freeing is handled by `free_children()`. This function verifies that if the dnode has children there must be at least one marked as dirty before proceeding to recursively free the tree of block pointers. As described in a comment, this VERIFY is overly strict. In practice, children may not be marked as dirty when the dnode itself is being freed. Relax the VERIFY slightly by avoiding the VERIFY when indirect blocks are to be immediately freed, to more closely match the comment motivating the VERIFY. While here, clarify the logic of the test by using VERIFY_IMPLY instead of chaining multiple tests. Sponsored-by: Cybersecure Pty Ltd Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Ryan Moeller Closes #18822 (cherry picked from commit 242105f01012bf07cc896a4fb5cdb1385ef58220) M sys/contrib/openzfs/module/zfs/dnode_sync.c _____________________________________________________________________________________________________________ Commit: 6109c35c328c07082fa4d63cba5503535c3bd579 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6109c35c328c07082fa4d63cba5503535c3bd579 Author: Enji Cooper (Wed 4 Nov 2026 18:53:01 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 02:07:25 GMT) Don't some prune empty dirs created by BSD.tests.dist Before this change, directories needed when MK_DTRACE_TESTS != no and MK_ZFS_TESTS != no but not MK_TESTS != no, were being created via `BSD.tests.dist` as part of the standard build/install process with the top-level `hierarchy` target. This behavior resulted in `make check-old` flagging a lot of issues after 30c20ca26e105c, even after `make delete-old` was run and the directories were removed. Remove the logic which pruned these empty directories; this "fixes" the issue with `make check-old`, et al and allows a proper technical solution to `OptionalObsoleteFiles.inc` to be implemented by pkgbase in an unimpeded manner without introducing additional complexity. See the review for more details. PR: 299650 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299650 ) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60928 (cherry picked from commit 0df8ed538c620cf021f8dfa2c54892b5ef9620a5) M tools/build/mk/OptionalObsoleteFiles.inc _____________________________________________________________________________________________________________ Commit: a0e5c02ffebef6ee22f5a6e1102f66bb0b60102a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a0e5c02ffebef6ee22f5a6e1102f66bb0b60102a Author: Enji Cooper (Tue 22 Sep 2026 03:46:52 BST) Committer: Enji Cooper (Mon 23 Nov 2026 02:07:25 GMT) Remove CDDL and ctfconvert tests when their controlling knobs are disabled In the event someone specified MK_CDDL == no prior to this change, all tests under `/usr/tests/cddl` would stick around after the change, resulting in errors. Similarly, MK_DTRACE == no removed ctfconvert, which the ctfconvert tests relied on (but remained around after the knob was disabled). Remove the tests under the respective blocks now so they don't linger around on systems where these knobs are disabled, resulting in false positives when running the complete test suite. The ctfconvert tests weren't specifically put under `${MK_DTRACE_TESTS}` == no because ctfconvert was bundled separately from the upstream provided Dtrace test suite. MFC after: 2 weeks MFC with: 30c20ca26 ("Remove Dtrace/ZFS tests if their knobs are disabled") (cherry picked from commit df6131e2b74d9f334c16387e9a46cafd6e27eb78) M tools/build/mk/OptionalObsoleteFiles.inc _____________________________________________________________________________________________________________ Commit: 3926aba7c6cd98aafc8e053b27c59c706a0362c1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3926aba7c6cd98aafc8e053b27c59c706a0362c1 Author: Enji Cooper (Tue 22 Sep 2026 03:27:04 BST) Committer: Enji Cooper (Mon 23 Nov 2026 02:07:25 GMT) Remove Dtrace/ZFS tests if their knobs are disabled Prior to this change, Dtrace and ZFS tests and their respective directories would remain installed even if `${MK_DTRACE_TESTS}` == no or `${MK_ZFS_TESTS}` == no. This change enhances the logic to remove the tests when the respective knobs are disabled so the tests will be removed when `make delete-old` is run. MFC after: 2 weeks (cherry picked from commit 30c20ca26e105cffc5f37a95964cd9b2cad1b6cd) M tools/build/mk/OptionalObsoleteFiles.inc _____________________________________________________________________________________________________________ Commit: 25b8f5350bccd7dffa3eca089b3d2e3c85cdf3ac URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=25b8f5350bccd7dffa3eca089b3d2e3c85cdf3ac Author: Enji Cooper (Sun 9 Aug 2026 06:25:03 BST) Committer: Enji Cooper (Mon 23 Nov 2026 02:05:06 GMT) net/ieee_oui.h: clarify how `OUI_FREEBSD_BASE` is managed Note that the FreeBSD Foundation manages the current value associated with `OUI_FREEBSD_BASE`. Trim trailing whitespace in comments in the change while here. MFC after: 1 week Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/82 (cherry picked from commit 529e9a00ddd3a207f3841c6581c9f1a23532972e) M sys/net/ieee_oui.h _____________________________________________________________________________________________________________ Commit: 55da3d8b525431de28fbf18891248acc78588361 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=55da3d8b525431de28fbf18891248acc78588361 Author: Enji Cooper (Tue 3 Nov 2026 03:45:44 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 02:04:48 GMT) usr.bin/diff/tests/diff_test: add SPDX ID The SPDX ID makes the script's licensing more explicit. MFC after: 1 week Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D60908 (cherry picked from commit a7ec00b71715c36eb60822bf52af5637f3a8d2f3) M usr.bin/diff/tests/diff_test.sh _____________________________________________________________________________________________________________ Commit: 246b08ec16f701ec56cd6359e6df500f05fc7cee URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=246b08ec16f701ec56cd6359e6df500f05fc7cee Author: Enji Cooper (Tue 10 Nov 2026 05:22:22 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 02:01:15 GMT) libsys/ppoll.2: fix .Dd modification to manpage Reported by: gcc 14 Fixes: 89d6ddee2028 ("libsys/poll.2: bump .Dd for the prior change") (cherry picked from commit b4a0f17b35fd862feef3e1284926da48a6aad694) M lib/libsys/poll.2 _____________________________________________________________________________________________________________ Commit: 64a648b8ecd87302b1ab62171e3778d6c21d6164 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=64a648b8ecd87302b1ab62171e3778d6c21d6164 Author: Enji Cooper (Mon 9 Nov 2026 05:37:49 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 02:01:15 GMT) libsys/poll.2: bump .Dd for the prior change MFC after: 1 week MFC with: 72a80a4733b2 (cherry picked from commit 89d6ddee20281270934c73b41d07f04e9bfc86bc) M lib/libsys/poll.2 _____________________________________________________________________________________________________________ Commit: 2a25b514f1c6198698ace227d1db3ec67e124010 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2a25b514f1c6198698ace227d1db3ec67e124010 Author: _ov4 (Fri 6 Nov 2026 06:16:28 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 02:01:15 GMT) poll.2: document that poll is not restarted after signals Signed-off-by: _ov4 Reviewed-by: ngie Pull-Request: https://github.com/freebsd/freebsd-src/pull/2526 (cherry picked from commit 72a80a4733b2e2cf7a3e004e961f0fbba9aaa31f) M lib/libsys/poll.2 _____________________________________________________________________________________________________________ Commit: cf6c2bf648a1c42134cb66dff02b6498c4c1a865 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cf6c2bf648a1c42134cb66dff02b6498c4c1a865 Author: Igor Ostapenko (Sat 11 Oct 2025 14:14:16 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:41 GMT) kyua: Make "test" command actually report about workdir cleanup issues Reviewed by: ngie MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D51136 (cherry picked from commit 21716b6c3ed6e28fe5cc14ee3ffe93f44c458b09) M contrib/kyua/drivers/run_tests.cpp _____________________________________________________________________________________________________________ Commit: 281f1610f178192bb708083f768d5bf5135a2769 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=281f1610f178192bb708083f768d5bf5135a2769 Author: Siva Mahadevan (Sat 5 Sep 2026 15:12:11 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:41 GMT) contrib/kyua: fix -Wshadow error This fixes the build with gcc 14: /usr/src/contrib/kyua/engine/prepare/prepare_all.cpp:56:16: error: declaration of 'handler' shadows a member of 'engine::prepare::prepare_all' [-Werror=shadow] 56 | for (auto& handler : prepare::handlers()) { | ^~~~~~~ In file included from /usr/src/contrib/kyua/engine/prepare/prepare_all.hpp:35, from /usr/src/contrib/kyua/engine/prepare/prepare_all.cpp:29: /usr/src/contrib/kyua/engine/prepare/prepare.hpp:51:15: note: shadowed declaration is here 51 | class handler { | ^ Fixes: edb230c4af499203d7a6894b3711fe6574b26040 Reviewed by: igoro, rlibby, ngie MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59346 (cherry picked from commit a73bb621ca361edc678bbf49f3ca1acca8aa0344) M contrib/kyua/engine/prepare/prepare_all.cpp M contrib/kyua/os/freebsd/main.cpp _____________________________________________________________________________________________________________ Commit: d0322012f0767cbb32ff5f1a098509e634a8e428 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d0322012f0767cbb32ff5f1a098509e634a8e428 Author: Igor Ostapenko (Sun 23 Aug 2026 23:42:48 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:41 GMT) kyua: Add "prepare" command This introduces the requirement preparation handler concept, with the first handler implemented to load the required kernel modules. Running without arguments lists all available handlers: kyua prepare Currently there are only two handlers: all: runs all available handlers kmods: loads the modules declared by required_kmods metadata The dry run option lists the required modules without actual loading: kyua prepare { --dry-run | -n } kmods The "prepare" command traverses only the given tree of tests, i.e., the following invocation lists all required modules for the whole test suite: kyua prepare -k /usr/tests/Kyuafile -n kmods , while this one is limited to the pf tests only: kyua prepare -k /usr/tests/sys/netpfil/pf/Kyuafile -n kmods Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D48087 (cherry picked from commit edb230c4af499203d7a6894b3711fe6574b26040) A contrib/kyua/cli/cmd_prepare.cpp A contrib/kyua/cli/cmd_prepare.hpp M contrib/kyua/cli/main.cpp A contrib/kyua/engine/prepare/prepare.cpp A contrib/kyua/engine/prepare/prepare.hpp A contrib/kyua/engine/prepare/prepare_all.cpp A contrib/kyua/engine/prepare/prepare_all.hpp M contrib/kyua/model/metadata.hpp M contrib/kyua/os/freebsd/main.cpp A contrib/kyua/os/freebsd/prepare_kmods.cpp A contrib/kyua/os/freebsd/prepare_kmods.hpp M usr.bin/kyua/Makefile _____________________________________________________________________________________________________________ Commit: 7687d4ca4600a633fbd103f7ab9a38db0cb3ccc4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7687d4ca4600a633fbd103f7ab9a38db0cb3ccc4 Author: Enji Cooper (Sat 31 Oct 2026 20:13:06 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:41 GMT) atf, lutok, kyua: compile with CXXSTD=gnu++20 All three of the test infrastructure components require at least C++20 in order to build. Make that version the default to better match what is required in recent versions of the projects. MFC after: 1 week (cherry picked from commit 0e58fb271c6e1cbd4b2ae5d33da181b7e7c2f0d5) M lib/atf/common.mk M lib/liblutok/Makefile M usr.bin/kyua/Makefile _____________________________________________________________________________________________________________ Commit: 6c5fc2ba4239d899c07693644912a575363a9757 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6c5fc2ba4239d899c07693644912a575363a9757 Author: Enji Cooper (Fri 20 Nov 2026 00:03:26 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:41 GMT) contrib/kyua: update config.h for 0.15.1 -> 0.15.2 This was accidentally missed in the prior commit. This commit addresses a largely cosmetic issue. MFC after: 6 days MFC with: c16da33701d0 Fixes: c16da33701d0 contrib/kyua: update to 0.15.2 (cherry picked from commit d9daf5ae796518af1793f919156fb6feba05959d) M contrib/kyua/config.h _____________________________________________________________________________________________________________ Commit: 77c26601e6255c515e0d0d1c21b1b0e8d617d16a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=77c26601e6255c515e0d0d1c21b1b0e8d617d16a Author: Enji Cooper (Thu 19 Nov 2026 07:02:06 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:41 GMT) contrib/kyua: update to 0.15.2 This change contains a few bugfixes to the test executor. MFC after: 1 week Merge commit 'dab80d5deaf7d998d587b99f7941890237960638' (cherry picked from commit c16da33701d07751bbe6871ad39582006d5281fc) M contrib/kyua/NEWS M contrib/kyua/README.md M contrib/kyua/config.h M contrib/kyua/utils/Kyuafile D contrib/kyua/utils/auto_array.hpp D contrib/kyua/utils/auto_array.ipp D contrib/kyua/utils/auto_array_fwd.hpp D contrib/kyua/utils/auto_array_test.cpp M contrib/kyua/utils/cmdline/parser.cpp M contrib/kyua/utils/datetime.cpp M contrib/kyua/utils/datetime.hpp M contrib/kyua/utils/datetime_fwd.hpp M contrib/kyua/utils/datetime_test.cpp M contrib/kyua/utils/fs/operations.cpp M contrib/kyua/utils/process/systembuf.cpp M contrib/kyua/utils/signals/timer.cpp M contrib/kyua/utils/signals/timer.hpp M contrib/kyua/utils/signals/timer_test.cpp M contrib/kyua/utils/text/regex.cpp M contrib/kyua/utils/text/templates.cpp _____________________________________________________________________________________________________________ Commit: 22ba656e3a8a376cee93fbb2e7d1da1a935a749e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=22ba656e3a8a376cee93fbb2e7d1da1a935a749e Author: Igor Ostapenko (Sun 18 Oct 2026 18:22:55 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:41 GMT) kyua: Fixes after vendor merge Reviewed by: ngie MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D60446 (cherry picked from commit af238d55d313a4a99fe9a3492755eb152b17bca0) M contrib/kyua/cli/cmd_debug.cpp M contrib/kyua/doc/kyuafile.5 M contrib/kyua/doc/kyuafile.5.in M contrib/kyua/engine/scheduler.cpp M contrib/kyua/model/metadata.cpp M contrib/kyua/os/freebsd/main.cpp _____________________________________________________________________________________________________________ Commit: 34972031134731b95b9c5dc5fe200e1236f3ad1c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=34972031134731b95b9c5dc5fe200e1236f3ad1c Author: Enji Cooper (Tue 10 Nov 2026 05:17:26 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:40 GMT) tests/sys/capsicum: Fix -Wshadow issue with `fd_set` `fd_set` is defined in `sys/select.h`, and prior to this change, was in fcntl.cc as well. This change renames `fd_set` to `fd_set_` to avoid the name collision. MFC after: 1 week Reported by: gcc 14 Fixes: 04c4b2084eb9 ("capsicum-test: make the code WARNS=6 clean") (cherry picked from commit a479301abb2c7b384f574fcc641e502f70654835) M tests/sys/capsicum/fcntl.cc _____________________________________________________________________________________________________________ Commit: da540afdf40eebd457e036934705643d6c33e55f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=da540afdf40eebd457e036934705643d6c33e55f Author: Enji Cooper (Tue 10 Nov 2026 02:05:33 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:40 GMT) capsicum-test: Disable `HAVE_SEND_RECV_MMSG` again 04c4b2084eb9 accidentally added some changes from another WIP commit into that diff. Instead of wholesale reverting the change, just revert the part that's currently broken (`HAVE_SEND_RECV_MMSG`). While some of the related tests pass, one of the testcases (`capmode.cc:AllowedMmsgSendRecv`) doesn't currently pass. Revert the change to make the CI run more green again. MFC after: 1 week Fixes: 04c4b2084eb9 ("capsicum-test: make the code WARNS=6 clean") (cherry picked from commit 71eddb44d7dfa60e43f77c90b51bd091f0693f85) M tests/sys/capsicum/capsicum-freebsd.h _____________________________________________________________________________________________________________ Commit: 0c2d403b0a2d0bcf729ec413d16ee84f01c5c807 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0c2d403b0a2d0bcf729ec413d16ee84f01c5c807 Author: Enji Cooper (Tue 10 Nov 2026 01:52:55 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:40 GMT) capsicum-test: make the code WARNS=6 clean Make the code WARNS=6 clean by doing the following: - Renaming variables (-Wshadow). - Use memcpy instead of assigning the result of CMSG_DATA to a variable (-Wcast-align). - Wrap some macros with do-while(0) to avoid variable collisions (-Wshadow). - Push one of the TRACE statements up by 1 layer to avoid a collision between 2 calls of TRACE via the same overarching macro. This was needed in order for the code to build properly with D61066, since the code was not compiling with WARNS set to 3 at the testcase level. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D61080 (cherry picked from commit 04c4b2084eb93fc2374dbb89f343f3941585a640) M tests/sys/capsicum/capability-fd.cc M tests/sys/capsicum/capmode.cc M tests/sys/capsicum/capsicum-freebsd.h M tests/sys/capsicum/capsicum-test-main.cc M tests/sys/capsicum/capsicum-test.h M tests/sys/capsicum/fexecve.cc M tests/sys/capsicum/procdesc.cc M tests/sys/capsicum/sctp.cc M tests/sys/capsicum/socket.cc _____________________________________________________________________________________________________________ Commit: c07ae9b28fca411d25d01c21ba9312f55b32b437 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c07ae9b28fca411d25d01c21ba9312f55b32b437 Author: Enji Cooper (Tue 10 Nov 2026 01:55:45 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:40 GMT) tests/sys/capsicum: restore test coverage with root user This change builds capsicum_test and installs/runs it as an unprivileged user ("tests" in vanilla FreeBSD) and root. This required adjusting logic in the Makefile in order to build two binaries with the same sources and running them as separate binaries. Moreover, in order to restore coverage and ensure that some tests which require `other_uid` (typically specified via `-u` on the CLI with the test program) don't fail, become the "tests" user when run as root. This technically doesn't honor unprivileged_user property in kyua.conf: the property needs to be passed via a command-line parameter to the test program. MFC after: 1 week Reported by: markj Fixes: 3fb03fb35b20 ("[tests] switch GoogleTest tests ...") Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D61066 (cherry picked from commit 58e5c5cac1e7c8c99a6e7f8846b655afed05b74f) M tests/sys/capsicum/Makefile M tests/sys/capsicum/capsicum-test-main.cc _____________________________________________________________________________________________________________ Commit: c99a199c0f54515b79f8beee26f42f51701d982f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c99a199c0f54515b79f8beee26f42f51701d982f Author: Enji Cooper (Fri 9 Oct 2026 22:33:50 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:40 GMT) GoogleTest: run several tests as plain C++ tests Some of the tests provided by GoogleTest don't play well with the kyua GoogleTest engine available in 0.15.0, in part because they test edgecases that the kyua GoogleTest engine does not expect or handle gracefully. Treat the tests as plain C++ tests to keep parity (result-wise) before switching the testcase type from `plain` (what it is today under the covers) to `googletest`. MFC after: 1 month MFC with: 3fb03fb35b20 ("[tests] switch GoogleTest tests to ...") (cherry picked from commit eecc84de3572d1ee6caac1fa14dd3140c9601c9c) M lib/googletest/tests/gmock/Makefile M lib/googletest/tests/gtest/Makefile M lib/googletest/tests/gtest_main/Makefile _____________________________________________________________________________________________________________ Commit: d43321455c1d227764b54a9c68e04daf7fcaaf77 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d43321455c1d227764b54a9c68e04daf7fcaaf77 Author: Enji Cooper (Wed 7 Oct 2026 19:53:15 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:40 GMT) [tests] switch GoogleTest tests to `googletest` interface The new `googletest` kyua test interface--added in 0.15.0 and fixed in 0.15.1--allows tests to be executed and handled in a more fine-grained manner than the way it was prior to this commit. This change deletes the `capsicum-test` ATF wrapper script, `functional.sh`, and all supporting logic in `googletest.test.mk` as well as this change makes that logic unnecessary. MFC after: 1 month MFC with: b68969979d6b ("contrib/kyua: update to 0.15.1") (cherry picked from commit 3fb03fb35b20d259e0a3a07fc48f2ecc3c5da6e8) M share/mk/googletest.test.mk M tests/sys/capsicum/Makefile D tests/sys/capsicum/functional.sh _____________________________________________________________________________________________________________ Commit: a657b45bed31f1755d1fd7337094550f3b94991b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a657b45bed31f1755d1fd7337094550f3b94991b Author: Enji Cooper (Wed 28 Oct 2026 22:02:27 GMT) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:40 GMT) contrib/kyua: update to 0.15.1 This new release contains multiple bugfixes. Please see the release notes mentioned in the merge commit for more details. MFC after: 2 weeks Merge commit '3e05143b80d1537cdd51a5dcf742da31f400507e' (cherry picked from commit b68969979d6b590247290b4fe26212d201c3ad96) M contrib/kyua/NEWS M contrib/kyua/README.md M contrib/kyua/config.h M contrib/kyua/doc/kyua-about.1 M contrib/kyua/drivers/debug_test.cpp M contrib/kyua/drivers/run_tests.cpp M contrib/kyua/engine/atf_test.cpp M contrib/kyua/engine/googletest.cpp M contrib/kyua/engine/googletest_helpers.cpp M contrib/kyua/engine/googletest_list.cpp M contrib/kyua/engine/googletest_list_test.cpp M contrib/kyua/engine/googletest_result.cpp M contrib/kyua/engine/googletest_result.hpp M contrib/kyua/engine/googletest_result_test.cpp M contrib/kyua/engine/googletest_test.cpp M contrib/kyua/engine/plain_test.cpp M contrib/kyua/engine/scanner_test.cpp M contrib/kyua/engine/scheduler_test.cpp M contrib/kyua/engine/tap_test.cpp M contrib/kyua/utils/config/nodes.cpp M contrib/kyua/utils/config/tree.cpp M contrib/kyua/utils/sqlite/test_utils.hpp _____________________________________________________________________________________________________________ Commit: 5b6a6588388dee241f5ffe84c768887cc9ae4eb6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5b6a6588388dee241f5ffe84c768887cc9ae4eb6 Author: Enji Cooper (Wed 7 Oct 2026 19:04:21 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:39 GMT) contrib/kyua: commit generated files MFC after: 1 month Fixes: eb8f69902 ("contrib/kyua: update to 0.15.0") (cherry picked from commit 26eb328b52c3ec0ff79c8914b1993dfad03a0a7d) A contrib/kyua/doc/kyua-about.1 A contrib/kyua/doc/kyua-config.1 A contrib/kyua/doc/kyua-db-exec.1 A contrib/kyua/doc/kyua-db-migrate.1 A contrib/kyua/doc/kyua-debug.1 A contrib/kyua/doc/kyua-help.1 A contrib/kyua/doc/kyua-list.1 A contrib/kyua/doc/kyua-report-html.1 A contrib/kyua/doc/kyua-report-junit.1 A contrib/kyua/doc/kyua-report.1 A contrib/kyua/doc/kyua-test.1 A contrib/kyua/doc/kyua.1 A contrib/kyua/doc/kyua.conf.5 A contrib/kyua/doc/kyuafile.5 _____________________________________________________________________________________________________________ Commit: fd5c67bde70740a3d9a409205e11e78d82f207fc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fd5c67bde70740a3d9a409205e11e78d82f207fc Author: Enji Cooper (Wed 7 Oct 2026 18:55:21 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:39 GMT) contrib/kyua: commit Makefile changes for version update This was accidentally missed in the version update. MFC after: 1 month Fixes: eb8f69902 ("contrib/kyua: update to 0.15.0") (cherry picked from commit b836604e126d5b3d0d3dee5da6c4168d3ec43fea) M usr.bin/kyua/Makefile _____________________________________________________________________________________________________________ Commit: ff3af1fa23d16817003aef81aaa5157711077afc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ff3af1fa23d16817003aef81aaa5157711077afc Author: Enji Cooper (Wed 7 Oct 2026 18:50:26 BST) Committer: Enji Cooper (Mon 23 Nov 2026 01:17:39 GMT) contrib/kyua: update to 0.15.0 This new release contains multiple feature updates and bugfixes. Please see the release notes mentioned in the merge commit for more details. MFC after: 1 month Merge commit '144afd05f8a2300361ec30c1c2020e4022ddd943' Conflicts: contrib/kyua/cli/cmd_debug.cpp contrib/kyua/doc/kyua-debug.1.in contrib/kyua/doc/kyuafile.5.in contrib/kyua/engine/config.cpp contrib/kyua/engine/execenv/execenv.cpp contrib/kyua/engine/execenv/execenv.hpp contrib/kyua/engine/execenv/execenv_host.hpp contrib/kyua/engine/requirements.cpp contrib/kyua/engine/requirements.hpp contrib/kyua/engine/scheduler.cpp contrib/kyua/model/metadata.cpp contrib/kyua/os/freebsd/execenv_jail.hpp contrib/kyua/os/freebsd/execenv_jail_stub.cpp contrib/kyua/os/freebsd/main.cpp contrib/kyua/os/freebsd/reqs_checker_kmods.cpp contrib/kyua/os/freebsd/utils/jail.hpp contrib/kyua/utils/fs/directory.cpp contrib/kyua/utils/process/executor.cpp (cherry picked from commit eb8f69902f7de8012a31a85db2f88a54584f81af) D contrib/kyua/.cirrus.yml D contrib/kyua/.gitignore D contrib/kyua/.travis.yml M contrib/kyua/Doxyfile.in A contrib/kyua/FREEBSD-Xlist D contrib/kyua/INSTALL.md D contrib/kyua/Makefile.am R085 contrib/kyua/NEWS.md contrib/kyua/NEWS M contrib/kyua/README.md D contrib/kyua/admin/.gitignore D contrib/kyua/admin/Makefile.am.inc D contrib/kyua/admin/build-bintray-dist.sh D contrib/kyua/admin/check-api-docs.awk D contrib/kyua/admin/check-style-common.awk D contrib/kyua/admin/check-style-cpp.awk D contrib/kyua/admin/check-style-make.awk D contrib/kyua/admin/check-style-man.awk D contrib/kyua/admin/check-style-shell.awk D contrib/kyua/admin/check-style.sh D contrib/kyua/admin/clean-all.sh D contrib/kyua/admin/travis-build.sh D contrib/kyua/admin/travis-install-deps.sh D contrib/kyua/bootstrap/.gitignore D contrib/kyua/bootstrap/Kyuafile D contrib/kyua/bootstrap/Makefile.am.inc D contrib/kyua/bootstrap/plain_helpers.cpp D contrib/kyua/bootstrap/testsuite.at D contrib/kyua/cli/Makefile.am.inc M contrib/kyua/cli/cmd_debug.cpp M contrib/kyua/cli/main.cpp A contrib/kyua/config.h D contrib/kyua/configure.ac D contrib/kyua/doc/.gitignore D contrib/kyua/doc/Makefile.am.inc M contrib/kyua/doc/kyua-about.1.in M contrib/kyua/doc/kyua-config.1.in M contrib/kyua/doc/kyua-db-exec.1.in M contrib/kyua/doc/kyua-db-migrate.1.in M contrib/kyua/doc/kyua-debug.1.in M contrib/kyua/doc/kyua-help.1.in M contrib/kyua/doc/kyua-list.1.in M contrib/kyua/doc/kyua-report-html.1.in M contrib/kyua/doc/kyua-report-junit.1.in M contrib/kyua/doc/kyua-report.1.in M contrib/kyua/doc/kyua-test.1.in M contrib/kyua/doc/kyua.1.in M contrib/kyua/doc/kyua.conf.5.in M contrib/kyua/doc/kyuafile.5.in D contrib/kyua/drivers/Makefile.am.inc M contrib/kyua/engine/Kyuafile D contrib/kyua/engine/Makefile.am.inc M contrib/kyua/engine/atf.hpp M contrib/kyua/engine/atf_result.cpp M contrib/kyua/engine/atf_result_test.cpp M contrib/kyua/engine/atf_test.cpp M contrib/kyua/engine/config.cpp M contrib/kyua/engine/execenv/execenv.cpp M contrib/kyua/engine/execenv/execenv.hpp A contrib/kyua/engine/execenv/execenv_fwd.hpp M contrib/kyua/engine/execenv/execenv_host.hpp A contrib/kyua/engine/googletest.cpp A contrib/kyua/engine/googletest.hpp A contrib/kyua/engine/googletest_helpers.cpp A contrib/kyua/engine/googletest_list.cpp R064 contrib/kyua/bootstrap/atf_helpers.cpp contrib/kyua/engine/googletest_list.hpp A contrib/kyua/engine/googletest_list_test.cpp A contrib/kyua/engine/googletest_result.cpp A contrib/kyua/engine/googletest_result.hpp A contrib/kyua/engine/googletest_result_fwd.hpp A contrib/kyua/engine/googletest_result_test.cpp A contrib/kyua/engine/googletest_test.cpp M contrib/kyua/engine/kyuafile.hpp M contrib/kyua/engine/kyuafile_test.cpp M contrib/kyua/engine/plain.hpp M contrib/kyua/engine/requirements.cpp M contrib/kyua/engine/requirements.hpp M contrib/kyua/engine/scheduler.cpp M contrib/kyua/engine/scheduler.hpp M contrib/kyua/engine/scheduler_test.cpp M contrib/kyua/engine/tap.hpp D contrib/kyua/examples/Makefile.am.inc D contrib/kyua/integration/Makefile.am.inc M contrib/kyua/integration/cmd_about_test.sh M contrib/kyua/integration/cmd_report_test.sh M contrib/kyua/integration/cmd_test_test.sh D contrib/kyua/integration/helpers/.gitignore D contrib/kyua/integration/helpers/Makefile.am.inc M contrib/kyua/integration/utils.sh D contrib/kyua/m4/ax_cxx_compile_stdcxx.m4 D contrib/kyua/m4/compiler-features.m4 D contrib/kyua/m4/compiler-flags.m4 D contrib/kyua/m4/developer-mode.m4 D contrib/kyua/m4/doxygen.m4 D contrib/kyua/m4/fs.m4 D contrib/kyua/m4/getopt.m4 D contrib/kyua/m4/memory.m4 D contrib/kyua/m4/signals.m4 D contrib/kyua/m4/uname.m4 D contrib/kyua/misc/Makefile.am.inc D contrib/kyua/model/Makefile.am.inc D contrib/kyua/model/README M contrib/kyua/model/metadata.cpp M contrib/kyua/os/freebsd/execenv_jail.hpp M contrib/kyua/os/freebsd/execenv_jail_stub.cpp M contrib/kyua/os/freebsd/reqs_checker_kmods.cpp M contrib/kyua/os/freebsd/utils/jail.hpp D contrib/kyua/store/Makefile.am.inc M contrib/kyua/store/write_transaction_test.cpp D contrib/kyua/utils/.gitignore D contrib/kyua/utils/Makefile.am.inc D contrib/kyua/utils/cmdline/Makefile.am.inc D contrib/kyua/utils/config/Makefile.am.inc M contrib/kyua/utils/config/nodes.cpp M contrib/kyua/utils/config/nodes.hpp M contrib/kyua/utils/config/nodes_test.cpp M contrib/kyua/utils/defs.hpp.in D contrib/kyua/utils/format/Makefile.am.inc D contrib/kyua/utils/fs/Makefile.am.inc M contrib/kyua/utils/fs/directory.cpp M contrib/kyua/utils/fs/operations.cpp D contrib/kyua/utils/logging/Makefile.am.inc D contrib/kyua/utils/process/.gitignore M contrib/kyua/utils/process/Kyuafile D contrib/kyua/utils/process/Makefile.am.inc M contrib/kyua/utils/process/child.hpp M contrib/kyua/utils/process/child_test.cpp M contrib/kyua/utils/process/executor.cpp D contrib/kyua/utils/process/executor_pid_test.cpp M contrib/kyua/utils/process/executor_test.cpp M contrib/kyua/utils/process/isolation.cpp M contrib/kyua/utils/process/operations.cpp M contrib/kyua/utils/process/operations.hpp M contrib/kyua/utils/process/operations_test.cpp M contrib/kyua/utils/sanity.hpp D contrib/kyua/utils/signals/Makefile.am.inc M contrib/kyua/utils/signals/misc_test.cpp D contrib/kyua/utils/sqlite/Makefile.am.inc M contrib/kyua/utils/sqlite/database.hpp M contrib/kyua/utils/sqlite/test_utils.hpp M contrib/kyua/utils/stacktrace.cpp M contrib/kyua/utils/stacktrace_test.cpp M contrib/kyua/utils/test_utils.ipp D contrib/kyua/utils/text/Makefile.am.inc M contrib/kyua/utils/text/operations.ipp M contrib/kyua/utils/text/regex.cpp M contrib/kyua/utils/text/regex.hpp _____________________________________________________________________________________________________________ Commit: 0ecd86d21057f7a0089359d8f2753be1f2ba1e15 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0ecd86d21057f7a0089359d8f2753be1f2ba1e15 Author: Osvaldo Janeri Filho (Sat 31 Oct 2026 03:04:10 GMT) Committer: Rick Macklem (Mon 23 Nov 2026 00:48:39 GMT) rpc.tlsservd.c: Check the malloc return The NULL return is used by the following memcpy() call. Fail the request instead. Unlikely to happen in practice, since the rpc.tlsservd daemon runs as root and does not allocate a lot or memory. (cherry picked from commit 6d705f2bf17f2c221ffd0d9b0824ba0fb429392e) M usr.sbin/rpc.tlsservd/rpc.tlsservd.c _____________________________________________________________________________________________________________ Commit: 00c640349654063dd729b1af85def3b6159c9bc2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=00c640349654063dd729b1af85def3b6159c9bc2 Author: Vinicius Ferrao (Thu 5 Nov 2026 23:58:56 GMT) Committer: Rick Macklem (Mon 23 Nov 2026 00:45:41 GMT) xdr_mbuf.c: Add a check for the return value for xdrmbuf_getbytes() The xdrmbuf_getlong() function failed to check for the return value from xdrmbuf_getbytes(). This could have resulted in a failure during NFS RPC message processing. (cherry picked from commit cf59649539e653db8285996af2b161be9693a49d) M sys/xdr/xdr_mbuf.c _____________________________________________________________________________________________________________ Commit: bc2e0acc8891a598f36908a070102f3020c25a4e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bc2e0acc8891a598f36908a070102f3020c25a4e Author: Igor Ostapenko (Sun 11 Jan 2026 13:43:33 GMT) Committer: Enji Cooper (Sun 22 Nov 2026 21:37:01 GMT) kyua: Add "debug -x|--execute cmd" option With execenv=jail specified, the "cmd" runs inside the test's jail. Reviewed by: ngie, markj Differential Revision: https://reviews.freebsd.org/D52642 (cherry picked from commit 8a21c17ccfecf0ee54becd46d3e08ccab76ca3d6) M contrib/kyua/cli/cmd_debug.cpp M contrib/kyua/engine/debugger.hpp M contrib/kyua/engine/scheduler.cpp M contrib/kyua/utils/cmdline/options.cpp M contrib/kyua/utils/cmdline/options.hpp M contrib/kyua/utils/cmdline/parser.cpp M contrib/kyua/utils/process/child.cpp M contrib/kyua/utils/process/child.hpp M contrib/kyua/utils/process/child.ipp _____________________________________________________________________________________________________________ Commit: f616c8f246010ce45e5d76e5230f956fd67fce66 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f616c8f246010ce45e5d76e5230f956fd67fce66 Author: Igor Ostapenko (Fri 26 Dec 2025 20:06:56 GMT) Committer: Enji Cooper (Sun 22 Nov 2026 21:36:41 GMT) kyua: Make "debug -p" skip writing stdout/stderr to tmp files Reviewed by: kp, ngie Differential Revision: https://reviews.freebsd.org/D54363 (cherry picked from commit 350f319731897f741b516db99636e7ced071dfa4) M contrib/kyua/cli/cmd_debug.cpp M contrib/kyua/engine/scheduler.cpp M contrib/kyua/engine/scheduler.hpp _____________________________________________________________________________________________________________ Commit: 5191f4e157f742077c105f8f6640fa59e0beb66c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5191f4e157f742077c105f8f6640fa59e0beb66c Author: Igor Ostapenko (Thu 25 Dec 2025 20:41:22 GMT) Committer: Enji Cooper (Sun 22 Nov 2026 21:36:41 GMT) kyua: Fix prompt of "debug -p" command (cherry picked from commit ecb58f931d45d6fe4e8b60a172415cc387657a6b) M contrib/kyua/cli/cmd_debug.cpp _____________________________________________________________________________________________________________ Commit: 5947c4bc605e8affb2d369313d7e668ec3edba35 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5947c4bc605e8affb2d369313d7e668ec3edba35 Author: Enji Cooper (Thu 29 Oct 2026 17:54:21 GMT) Committer: Enji Cooper (Sun 22 Nov 2026 21:29:47 GMT) atf: refer to `common.mk` using `SRCTOP` This helps make the dependent Makefile (and the values contained within) easier to catch when upgrading atf in the future. MFC after: 1 week (cherry picked from commit 36c4912749ab1d12692302386050e25ce8b1d9de) M lib/atf/libatf-c++/tests/detail/Makefile M lib/atf/libatf-c/tests/detail/Makefile M libexec/atf/atf-sh/Makefile _____________________________________________________________________________________________________________ Commit: a8bd77d3204930617b87cfddba414e81ab8b0d88 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a8bd77d3204930617b87cfddba414e81ab8b0d88 Author: Enji Cooper (Tue 22 Sep 2026 04:02:02 BST) Committer: Enji Cooper (Sun 22 Nov 2026 21:23:33 GMT) src.conf(5): regenerate after f6db138f97b7 MFC after: 2 weeks MFC with: f6db138f97b7 ("src.opts.mk: force the Dtrace tests ...") (cherry picked from commit d90a75af95107782d18771c91b0bc8c74e6cc4f3) M share/man/man5/src.conf.5 _____________________________________________________________________________________________________________ Commit: 2bfa4de98cf7da0fd6f90ae1ba344cb363b10df3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2bfa4de98cf7da0fd6f90ae1ba344cb363b10df3 Author: Enji Cooper (Tue 22 Sep 2026 03:34:33 BST) Committer: Enji Cooper (Sun 22 Nov 2026 19:36:52 GMT) src.opts.mk: force the Dtrace tests off if ${MK_DTRACE} == no Prior to this change Dtrace's tests could be enabled even if `${MK_DTRACE}` == no. Allowing this doesn't make sense so remove the tests if `${MK_DTRACE}` is also disabled. MFC after: 2 weeks (cherry picked from commit f6db138f97b78e641b07a7c3695ccf62b0f42f28) M share/mk/src.opts.mk _____________________________________________________________________________________________________________ Commit: 3795cef2747ed885db8fb0dd43911d4dfda6619b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3795cef2747ed885db8fb0dd43911d4dfda6619b Author: Piotr Kubaj (Sun 18 Oct 2026 11:41:39 BST) Committer: Piotr Kubaj (Sun 22 Nov 2026 19:28:39 GMT) powerpc: fix the VSCR save and restore on little endian VSCR was saved and restored through stvewx/lvewx at byte 12 of a 16 byte slot. Which element those instructions move at a given address depends on the byte order, so on little-endian kernels they touched VR bits 0-31 instead of the 96-127 where mfvscr/mtvscr keep VSCR: every context switch and signal reset VSCR to 0, losing NJ and SAT. Replicate the word into all four elements first so that the element choice no longer matters. VSCR[NJ] set with mtvscr read back as 0 after a usleep on a little-endian kernel; it is preserved now. Reviewed by: adrian, jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61525 (cherry picked from commit 27b4bb447eababd60da777065a813d2379050850) M sys/powerpc/powerpc/altivec.c _____________________________________________________________________________________________________________ Commit: 8103f9ccbc227043fc5a3630a0450bacfd2c797b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8103f9ccbc227043fc5a3630a0450bacfd2c797b Author: Piotr Kubaj (Sun 18 Oct 2026 11:41:37 BST) Committer: Piotr Kubaj (Sun 22 Nov 2026 19:28:39 GMT) powerpc64: don't reserve the red zone on the alternate signal stack A 64-bit signal frame is 1552 bytes; rounded up and with the 512 byte red zone added it needs 2096 bytes, more than MINSIGSTKSZ (2048), so a handler on a minimum size alternate stack had its frame start 48 bytes below the stack. The red zone only exists below the interrupted code's stack pointer, so skip it only when the frame goes on that stack. A handler on a MINSIGSTKSZ alternate stack overwrote the 48 bytes below it; the frame stays within the stack now. Reviewed by: jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61519 (cherry picked from commit 34005cb7d5caeee3f3073cbc2adc3b2841ef54d7) M sys/powerpc/powerpc/exec_machdep.c _____________________________________________________________________________________________________________ Commit: 76eb059d05d6689449519d9cc3d85694698161f6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=76eb059d05d6689449519d9cc3d85694698161f6 Author: Piotr Kubaj (Sun 18 Oct 2026 11:41:36 BST) Committer: Piotr Kubaj (Sun 22 Nov 2026 19:28:39 GMT) powerpc: don't drop FPU and VMX ownership in grab_mcontext() grab_mcontext() saved the FP and vector registers with save_fpu() and save_vec(), which drop ownership: PCPU(fputhread) becomes NULL while PCB_FPU stays set and the thread keeps using the unit. A later cpu_update_pcb(), at fork(2) or thr_new(2), then skipped the save, since save_fpu_nodrop() only saves for the thread that owns the unit, and the child got the registers as they were at the getcontext() or signal rather than at the fork. Use the nodrop variants. A child forked after getcontext() saw the parent's f14 as it was at the getcontext(); it sees the current value now. Reviewed by: adrian, jhibbits MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60837 (cherry picked from commit 8a79b6398f06f31947a2dada576c5f489c69d498) M sys/powerpc/powerpc/exec_machdep.c _____________________________________________________________________________________________________________ Commit: 1b3698a38f88ac27cba4b1a65e39a0f53e3c73e7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1b3698a38f88ac27cba4b1a65e39a0f53e3c73e7 Author: Kajetan Puchalski (Tue 8 Sep 2026 12:21:52 BST) Committer: Alan Cox (Sun 22 Nov 2026 18:34:03 GMT) arm64/pmap: Fix invalidate_icache condition in stage2 fault pmap_stage2_fault is supposed to invalidate the icache if it is accessing an executable page. Instead, the condition currently checks whether execution is disallowed at any EL. Make it check whether execution is allowed at any EL to match the intended behaviour. Signed-off-by: Kajetan Puchalski Reviewed by: andrew Sponsored by: Arm Ltd Pull Request: https://github.com/freebsd/freebsd-src/pull/2416 (cherry picked from commit 728d9f322935905c09236e8312b3268b6ff8691b) M sys/arm64/arm64/pmap.c _____________________________________________________________________________________________________________ Commit: 55b89b7b529f1c37a749adadb11aba4f8e9e51ca URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=55b89b7b529f1c37a749adadb11aba4f8e9e51ca Author: Christos Margiolis (Fri 20 Nov 2026 18:47:25 GMT) Committer: Christos Margiolis (Fri 20 Nov 2026 18:48:35 GMT) sound: Unlock the channel when chn_reset() fails in dsp_chn_alloc() If chn_reset() fails, dsp_chn_alloc() returns with the channel lock held, dsp_open() calls dsp_close() as part of its cdevpriv error path, and this causes both a mutex recursion on the channel lock in dsp_close(), as well a lock order reversal. Fixes: 02d4eeabfd73 ("sound: Allocate vchans on-demand") Reported by: llm-postcr MFC after: Immediately Sponsored by: The FreeBSD Foundation Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D61793 (cherry picked from commit 01a8cd5ebe9368fd115fb5060bcb1e60d1bbdf1f) M sys/dev/sound/pcm/dsp.c _____________________________________________________________________________________________________________ Commit: 628422c36c6f88bf36992fc117fbb8f79a50647a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=628422c36c6f88bf36992fc117fbb8f79a50647a Author: Dag-Erling Smørgrav (Sat 14 Nov 2026 16:24:45 GMT) Committer: Dag-Erling Smørgrav (Fri 20 Nov 2026 12:03:56 GMT) geom: Check file flags before handling control request Pass fflag down to g_ctl_req() and: * Refuse all requests unless fflag has the FREAD bit set * Refuse all but getxml unless fflag also has the FWRITE bit set This should allow us to restore read access to /dev/geom.ctl for group operator; they will then be able to run `gpart list` or `gpart backup` but not commands that actually modify the table. For backward compatibility, we set the FWRITE bit if it is not already set and the calling thread has the PRIV_GEOM privilege, which is automatically granted to a jailed or unjailed superuser. This should cover the case of older binaries (which open /dev/geom.ctl read-only) running as root on a newer kernel. Since we intend to merge this to stable/15, the compatibility code is conditional on COMPAT_FREEBSD14. MFC after: 1 week Event: EuroBSDCon 2026 DevSummit Reviewed by: imp, markj Differential Revision: https://reviews.freebsd.org/D59591 (cherry picked from commit 408a1ec93facc8a02f4f7515fb4e036cce85fa39) M sys/geom/geom_ctl.c M sys/sys/priv.h _____________________________________________________________________________________________________________ Commit: 902b9ce02e69fa7b6c69c06cf4b77e82892071f0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=902b9ce02e69fa7b6c69c06cf4b77e82892071f0 Author: Dag-Erling Smørgrav (Sat 14 Nov 2026 16:24:40 GMT) Committer: Dag-Erling Smørgrav (Fri 20 Nov 2026 12:03:56 GMT) libgeom: Open the control device read-write Try to open the control device read-write first, and fall back to read-only if that fails and the error is EACCES. This prepares us for a future in which GEOM requires write access to execute verbs that modify the configuration. MFC after: 1 week Event: EuroBSDCon 2026 DevSummit Reviewed by: imp, markj, emaste Differential Revision: https://reviews.freebsd.org/D59592 (cherry picked from commit 1e9e198b7f064322687746d26b283c3fcbad4579) M lib/libgeom/geom_ctl.c _____________________________________________________________________________________________________________ Commit: 24a13dd704a6b66e5423659558256d1733778702 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=24a13dd704a6b66e5423659558256d1733778702 Author: Dag-Erling Smørgrav (Mon 16 Nov 2026 11:45:15 GMT) Committer: Dag-Erling Smørgrav (Fri 20 Nov 2026 12:03:56 GMT) stdio: Fix error case for positional %wN / %wfN In the case were N was not a valid bit width, we were taking the wrong error path. Fixes: 5e809bf1c93f ("stdio: Fix positional %wN / %wfN conversion") (cherry picked from commit 0bf5d86620d047b4551d7414bf8011a328264b3d) M lib/libc/stdio/printf-pos.c M lib/libc/tests/stdio/snprintf_test.c M lib/libc/tests/stdio/swprintf_test.c _____________________________________________________________________________________________________________ Commit: 1d8c4da381e8dd00b83ddc748366595792d9fc8d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1d8c4da381e8dd00b83ddc748366595792d9fc8d Author: Dag-Erling Smørgrav (Sun 15 Nov 2026 16:37:42 GMT) Committer: Dag-Erling Smørgrav (Fri 20 Nov 2026 12:03:56 GMT) stdio: Fix positional %wN / %wfN conversion MFC after: 1 week Fixes: bce0bef3c6ab ("libc: Implement N2680.") Fixes: 12b1c1e3fb44 ("libc: Add test cases for N2680.") (cherry picked from commit 5e809bf1c93fdc4c52fa46a7eb0e6f881b6c6140) M lib/libc/stdio/printf-pos.c M lib/libc/tests/stdio/snprintf_test.c M lib/libc/tests/stdio/swprintf_test.c _____________________________________________________________________________________________________________ Commit: 65ea18b09789e0349c6153e7512c0f8fbab77f4e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=65ea18b09789e0349c6153e7512c0f8fbab77f4e Author: Dag-Erling Smørgrav (Sun 15 Nov 2026 16:35:28 GMT) Committer: Dag-Erling Smørgrav (Fri 20 Nov 2026 12:03:55 GMT) stdio: Fix positional %B / %b conversion MFC after: 1 week Fixes: d9dc1603d6e4 ("libc: Implement N2630.") Fixes: b9385720f34b ("libc: Add unit tests for N2630 and possible collateral damage.") (cherry picked from commit 0e3fce268adeec8f4c87b99759dae6a592b3d365) M lib/libc/stdio/printf-pos.c M lib/libc/tests/stdio/snprintf_test.c M lib/libc/tests/stdio/swprintf_test.c _____________________________________________________________________________________________________________ Commit: c646af975f41fb0b4b28a8985bc430c6eb3149a6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c646af975f41fb0b4b28a8985bc430c6eb3149a6 Author: Showta Ishizaki (Mon 28 Sep 2026 22:55:42 BST) Committer: Dag-Erling Smørgrav (Fri 20 Nov 2026 12:03:55 GMT) stdio: Fix positional %F conversion When a format uses positional arguments, __find_arguments() walks it first to learn the type of every argument, and lists the floating point conversions as A a E e f G g. F is missing, so a double that is only referred to through %F never gets a type, its slot in the argument table stays unset, and the conversion reads whatever is there: printf("[%1$F]\n", -INFINITY); [0.000000] printf("[%1$F]\n", 1.5); [0.000000] printf("[%F]\n", 1.5); [1.500000] With a width taken from another argument, "%1$*2$F", vsnprintf(3) returned lengths like 2103024 for a ten character result; abseil's str_format test allocates that much and was killed for it on FreeBSD. The same format with %1$f, or with any other conversion of the same argument, works because those give it a type. Add F ahead of f in both __find_arguments() and __find_warguments(), and test %F, plain and positional, in snprintf_test and swprintf_test. MFC after: 1 week Signed-off-by: Showta Ishizaki Pull Request: https://github.com/freebsd/freebsd-src/pull/2420 (cherry picked from commit eb647dd28137c5f44030645a648e5a8c24e16f4f) M lib/libc/stdio/printf-pos.c M lib/libc/tests/stdio/snprintf_test.c M lib/libc/tests/stdio/swprintf_test.c _____________________________________________________________________________________________________________ Commit: fe976f2e36a4db46f79091c0253b860f24a43934 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fe976f2e36a4db46f79091c0253b860f24a43934 Author: Dag-Erling Smørgrav (Sat 14 Nov 2026 14:01:01 GMT) Committer: Dag-Erling Smørgrav (Fri 20 Nov 2026 12:03:55 GMT) clang: Fix warnings in ARM GCS ACLE header Including in C code compiled with -Wstrict-prototypes results in warnings (or errors if -Werror is in effect) due to missing parameter lists for __gcspr() and __gcspopm(). Submitted upstream as PR#242286. MFC after: 1 week Reported by: Pete French Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D61503 (cherry picked from commit 74d72b3491e810068313e49629c3b8fe46f29318) M contrib/llvm-project/clang/lib/Headers/arm_acle.h _____________________________________________________________________________________________________________ Commit: 5541489df676c9723cac2d665bb4e6705cc3ce53 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5541489df676c9723cac2d665bb4e6705cc3ce53 Author: Christos Margiolis (Tue 10 Nov 2026 13:02:13 GMT) Committer: Christos Margiolis (Fri 20 Nov 2026 09:46:39 GMT) snd_dummy: Do not use dummy_chan_io() as mpu401's interrupt handler dummy_chan_io() runs with sc->lock held, but mpu401 calls its handler from a callout with no mutex associated with it, so writing to the MIDI device node caused a panic. Give mpu401 its own handler, and leave MIDI to mpu401's timer instead of the PCM callout. Fixes: e963472ef853 ("snd_dummy: Initial MIDI support") Sponsored by: The FreeBSD Foundation (cherry picked from commit c8d1c94741231d95964b91910880769019478854) M sys/dev/sound/dummy.c _____________________________________________________________________________________________________________ Commit: 6f80968093eccb5f9de1cfffd5a45c2163b605b4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6f80968093eccb5f9de1cfffd5a45c2163b605b4 Author: Christos Margiolis (Tue 17 Nov 2026 08:12:28 GMT) Committer: Christos Margiolis (Fri 20 Nov 2026 09:46:04 GMT) snd_uaudio: Fix the MIDI TX round-robin Nothing advances curr_cable, so umidi_bulk_write_callback() only services cable 0, which is a problem on MIDI devices with more than one jack. Fixes: 039477d3e7e7 ("snd_uaudio: Simplify chan->curr_cable calculation in uaudio_bulk_write_callback()") Sponsored by: The FreeBSD Foundation MFC after: 1 day (cherry picked from commit f58613868b50dfd6c2adc7128ea60d7b276fdbf1) M sys/dev/sound/usb/uaudio.c _____________________________________________________________________________________________________________ Commit: 682a7750f6c07bc367e573fc9fdfa90eb8e5bf9f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=682a7750f6c07bc367e573fc9fdfa90eb8e5bf9f Author: Christos Margiolis (Fri 13 Nov 2026 12:48:09 GMT) Committer: Christos Margiolis (Fri 20 Nov 2026 09:45:52 GMT) snd_uaudio: Do not touch mixer_lock when there is no mixer Using the mixer lock unconditionally panics because the lock is uninitialized on devices with no audio interfaces, for instance MIDI-only keyboards. Fixes: 9a00e0b8ca56 ("snd_uaudio: Do not use snd_mixer->lock as mixer_lock") MFC after: 3 days Sponsored by: The FreeBSD Foundation Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D61506 (cherry picked from commit dabd959b17597ad790327020a667ced9a05d7499) M sys/dev/sound/usb/uaudio.c _____________________________________________________________________________________________________________ Commit: 0e64d19630daf62a2e63c637d40f0ae5ecd60425 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0e64d19630daf62a2e63c637d40f0ae5ecd60425 Author: Christos Margiolis (Mon 16 Nov 2026 11:32:22 GMT) Committer: Christos Margiolis (Fri 20 Nov 2026 09:45:31 GMT) sound: Remove stale midi module dependencies midi(4) stopped being a module in 45bb10e0ed5a ("sound: Stop building midi as a module"), so snd_cmi(4) and snd_emu10k1(4) fail to load because they still depend on it. Fixes: 45bb10e0ed5a ("sound: Stop building midi as a module") Sponsored by: The FreeBSD Foundation MFC after: 1 day (cherry picked from commit 563c2f27e0ffec96a0ddd77b68c7ca6614d704af) M sys/dev/sound/pci/cmi.c M sys/dev/sound/pci/emu10k1.c _____________________________________________________________________________________________________________ Commit: f30c296f200e63fd77ce364d30c67950cf07fbee URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f30c296f200e63fd77ce364d30c67950cf07fbee Author: Brooks Davis (Mon 16 Nov 2026 09:57:24 GMT) Committer: Brooks Davis (Thu 19 Nov 2026 21:12:45 GMT) swapoff: release vnode held since swapon kern_swapon looks up the proposed swap path and aquires a vnode which is held (unlocked) throughout the life of the swap device. In the device case (swapgeom) it was never released in the swapoff path. Remove an incorrect comment about swapgeom_close being called from biodone. It is only called directly via swapoff(2) or at the end of the shutdown path. Reviewed by: kib, markj Reported by: llm-postcr MFC after: 3 days Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D61465 (cherry picked from commit 933f5f616a8a44b7af6cdccecf959ef1e8bab66e) M sys/vm/swap_pager.c _____________________________________________________________________________________________________________ Commit: 87599597b02e7b0d83895dbe3902cce0b60f47ff URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=87599597b02e7b0d83895dbe3902cce0b60f47ff Author: Brooks Davis (Fri 13 Nov 2026 10:06:53 GMT) Committer: Brooks Davis (Thu 19 Nov 2026 21:12:39 GMT) swapoff: don't leak vnode pointer to device After looking up the device path, we compare the vnode to the vnode of each swap device. Prior to this change we leaked a vnode reference to the device we're trying to remove from the swap pool. Effort: CHERI upstreaming Reviewed by: kib, markj Reported by: llm-postcr MFC after: 3 days Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D61464 (cherry picked from commit 9506d8e0b1788068cbd4c2cbc984cb6ee0dcb0ab) M sys/vm/swap_pager.c _____________________________________________________________________________________________________________ Commit: d851c68402058bb79b0a03fc76b2951af87d4fcf URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d851c68402058bb79b0a03fc76b2951af87d4fcf Author: Doongar Singh (Fri 13 Nov 2026 12:35:14 GMT) Committer: Jessica Clarke (Thu 19 Nov 2026 20:45:46 GMT) bhyve/riscv: fix PCIe FDT interrupt-map entry stride In bhyve arm64, each PCIe interrupt-map entry spans 10 cells because the ARM GIC specifies #interrupt-cells = 3. On RISC-V, the APLIC uses #interrupt-cells = 2, so each entry spans only 9 cells. When the PCIe FDT code was originally adapted from arm64, the property allocation size and cell assignments were reduced to 9 cells per entry, but the loop multiplier retained the 10-cell stride. This caused the interrupt-map array to be packed incorrectly with gaps, breaking PCI interrupt routing in guest operating systems and overflowing the allocation by 16 cells. Correct the loop stride to 9 cells so the interrupt map is properly formed. Reviewed by: jrtc27 Fixes: 7ab1a32cd43c ("bhyve/riscv: Initial import") MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61473 (cherry picked from commit fabdac3abcbb06551415ca64b69b0e29946834f9) M usr.sbin/bhyve/riscv/fdt.c _____________________________________________________________________________________________________________ Commit: a24fc8cdfb1414719573379ccb2fde86748f7f5c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a24fc8cdfb1414719573379ccb2fde86748f7f5c Author: Jessica Clarke (Thu 19 Nov 2026 20:39:29 GMT) Committer: Jessica Clarke (Thu 19 Nov 2026 20:45:08 GMT) Revert "bhyve/riscv: fix PCIe FDT interrupt-map entry stride" Thanks to past me's foolish choice not to alter the commit message such that none of its lines start with a #, Git got very confused the cherry-pick and included its own commented-out instructions. Reverting to re-land with a fixed body. This is a direct commit to stable/15. This reverts commit 69f76efd01a72fe0d6cb68442d2c15d3174a268f. M usr.sbin/bhyve/riscv/fdt.c _____________________________________________________________________________________________________________ Commit: 69f76efd01a72fe0d6cb68442d2c15d3174a268f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=69f76efd01a72fe0d6cb68442d2c15d3174a268f Author: Doongar Singh (Fri 13 Nov 2026 12:35:14 GMT) Committer: Jessica Clarke (Thu 19 Nov 2026 20:32:53 GMT) bhyve/riscv: fix PCIe FDT interrupt-map entry stride In bhyve arm64, each PCIe interrupt-map entry spans 10 cells because the ARM GIC specifies #interrupt-cells = 3. On RISC-V, the APLIC uses #interrupt-cells = 2, so each entry spans only 9 cells. When the PCIe FDT code was originally adapted from arm64, the property allocation size and cell assignments were reduced to 9 cells per entry, but the loop multiplier retained the 10-cell stride. This caused the interrupt-map array to be packed incorrectly with gaps, breaking PCI interrupt routing in guest operating systems and overflowing the allocation by 16 cells. Correct the loop stride to 9 cells so the interrupt map is properly formed. Reviewed by: jrtc27 Fixes: 7ab1a32cd43c ("bhyve/riscv: Initial import") MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61473 (cherry picked from commit fabdac3abcbb06551415ca64b69b0e29946834f9) # 50 columns --| 72 columns --| # # Uncomment and complete these metadata fields, as appropriate: # # PR: # Reported by: # Reviewed by: # Tested by: # Approved by: # Obtained from: # Fixes: # MFC after: # Relnotes: # Security: # Event: # Sponsored by: # Pull Request: /pull/###> # Differential Revision: # # "Pull Request" and "Differential Revision" require the *full* GitHub or # Phabricator URL. The commit author should be set appropriately, using # `git commit --author` if someone besides the committer sent in the change. M usr.sbin/bhyve/riscv/fdt.c _____________________________________________________________________________________________________________ Commit: cd2ec1b45f3596bc72da0283592138ba7ecd1286 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cd2ec1b45f3596bc72da0283592138ba7ecd1286 Author: Roman Bogorodskiy (Sun 15 Nov 2026 09:19:44 GMT) Committer: Roman Bogorodskiy (Thu 19 Nov 2026 17:04:07 GMT) top: fix off-by-one in screenbuf There is a heap overflow for screenbuf originating from the top import to the tree. The i_process()/u_process() functions write a terminating NUL one byte past each screenbuf line slot when the line fills the slot, which is a 1-byte heap overflow on the last slot. The display_resize() function allocates screen_width bytes per line. i_process() and u_process() cut lines to screen_width characters and then stpcpy() them into the slot, which writes screen_width + 1 bytes. line_update() can do the same with *old = ch. For inner slots, the NUL lands in byte 0 of the next slot. This can corrupt the saved contents used when updating the next line. For the last slot, it writes one byte past the end of screenbuf. Fix by allocating (screen_width + 1) bytes per line and updating the line offsets to fit the terminating NUL. Reviewed by: kib Reported by: llm-postcr MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61593 (cherry picked from commit 5233aaccdce59abfb80312cdbe94495516fd211f) M usr.bin/top/display.c _____________________________________________________________________________________________________________ Commit: 21354198b9064044d9a279a3d69e9f9fb3e498c4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=21354198b9064044d9a279a3d69e9f9fb3e498c4 Author: John Baldwin (Sat 14 Nov 2026 16:02:38 GMT) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) acpi_pci_link: Handle IRQ values > 255 Some systems use a stub PCI link device for hardwired interrupts instead of static _PRT entries. These link devices can use an IRQ > 255. The current driver was designed to handle PCI link devices on x86 used for legacy INTx IRQs which were < 255. These changes handle larger IRQ values while making a few tradeoffs. - Expand most IRQ fields from 8 bits to 32-bits. The BIOS IRQ (read from the PCIR_INTLINE config register which is an 8-bit register) remains 8 bits. - Add a wrapper API for managing interrupt weights and avoid tracking weights for IRQs > 255 and instead report a constant weight of 0 for IRQs > 255. PR: 300476 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300476 ) Reported by: Aviv Bakal Tested by: cperciva (cherry picked from commit 931a5d8866bcd7163272f6a9a65ed87fe481763b) M sys/dev/acpica/acpi_pci_link.c _____________________________________________________________________________________________________________ Commit: b898d97abd96a31c1e26fb15779d35daf7b6ac97 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b898d97abd96a31c1e26fb15779d35daf7b6ac97 Author: John Baldwin (Sat 14 Nov 2026 16:02:38 GMT) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) acpi_pci_link: Factor out some duplicated code into a single copy Tested by: cperciva (cherry picked from commit 6c1b6f7cf81447315fc0c7a294ed1467c62832bd) M sys/dev/acpica/acpi_pci_link.c _____________________________________________________________________________________________________________ Commit: 0af24d1fe82f1161cab8f10ba7f23cc3bee7dc11 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0af24d1fe82f1161cab8f10ba7f23cc3bee7dc11 Author: John Baldwin (Sat 14 Nov 2026 16:02:38 GMT) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) acpi_pci_link: Remove a helper variable from _PRS parsing Tested by: cperciva (cherry picked from commit df10f7b7500c129c48a477e94039c4e0d2711b54) M sys/dev/acpica/acpi_pci_link.c _____________________________________________________________________________________________________________ Commit: 1b71cb09074be51a87a2eb84acb46ee77fceec45 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1b71cb09074be51a87a2eb84acb46ee77fceec45 Author: John Baldwin (Sat 14 Nov 2026 16:02:38 GMT) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) acpi_pci_link: Ignore tunables with negative values IRQ values are unsigned and negative values do not make sense. The invalid IRQ value (255) is already ignored, so ignoring other invalid values is consistent with that behavior. Reported by: cperciva (cherry picked from commit 81dab94a5452f996a063bdba2103eda4aa32b3d1) M sys/dev/acpica/acpi_pci_link.c _____________________________________________________________________________________________________________ Commit: ab7815dcdb2efda7bbe7686340f71f74b104e606 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ab7815dcdb2efda7bbe7686340f71f74b104e606 Author: John Baldwin (Thu 12 Nov 2026 15:44:57 GMT) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) nvmft: Document all CTL_NVMF status codes Sponsored by: Chelsio Communications (cherry picked from commit 02c0eefc4e0ba2208d97fb4a80cd9bc4ec0dc47f) M sys/cam/ctl/ctl_ioctl.h _____________________________________________________________________________________________________________ Commit: 3049f0b45fc973b1269490474b14605bb79656f4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3049f0b45fc973b1269490474b14605bb79656f4 Author: John Baldwin (Thu 12 Nov 2026 15:44:39 GMT) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) nvme: Typo ranage -> range Sponsored by: Chelsio Communications (cherry picked from commit bfdce403f4a613bacf2c342a417974a606981b12) M sys/dev/nvme/nvme.h _____________________________________________________________________________________________________________ Commit: b061a4ba7cc02b2a96a9d24bf475a4bb6e92ecb8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b061a4ba7cc02b2a96a9d24bf475a4bb6e92ecb8 Author: John Baldwin (Thu 12 Nov 2026 15:44:18 GMT) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) ctld: Use expand_unsigned for parsing unsigned NVMe option values Sponsored by: Chelsio Communications (cherry picked from commit cc33771bf77102291db1e50037a07c1501a24075) M usr.sbin/ctld/nvmf.cc _____________________________________________________________________________________________________________ Commit: 469ac5a9c05f21526f81cb34833bfff53b07a7d5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=469ac5a9c05f21526f81cb34833bfff53b07a7d5 Author: John Baldwin (Thu 12 Nov 2026 15:43:55 GMT) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) ctld: Fix namespace IDs for exported NVMe namespaces part 2 This is the same fix as in commit 9c8be6518e2e5f396055ecdab8098ce19c4b2218 just applied to another method that also accepts namespace IDs. The original commit handled configuration statements assigning a named LUN to a namespace. This change handles anonymous namespaces configured within a controller context. Fixes: 66b5296f1b29 ("ctld: Add support for NVMe over Fabrics") Sponsored by: Chelsio Communications (cherry picked from commit 9a99fa3932ddd794234becc6eab6519d56ae6947) M usr.sbin/ctld/nvmf.cc _____________________________________________________________________________________________________________ Commit: 033c0cd3e89ba87f3d66ceea6436cf2a37148051 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=033c0cd3e89ba87f3d66ceea6436cf2a37148051 Author: John Baldwin (Thu 8 Oct 2026 16:24:45 BST) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) ctld: Fix namespace IDs for exported NVMe namespaces NVMe namespace IDs are 1-based, but CTL LUN IDs are 0-based. The in-kernel NVMe ctl(4) target accounts for this by adding one to the LUN ID to compute a namespace ID. ctld was attempting to handle this by translating namespace IDs from config files to internal LUN IDs, but it did this incorrectly resulting in the namespace configured for as namespace N actually showing up as namespace N + 1. Fixes: 66b5296f1b29 ("ctld: Add support for NVMe over Fabrics") Sponsored by: Chelsio Communications (cherry picked from commit 9c8be6518e2e5f396055ecdab8098ce19c4b2218) M usr.sbin/ctld/nvmf.cc _____________________________________________________________________________________________________________ Commit: 5afba7724de6d1585f802e2be6652030fbb85595 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5afba7724de6d1585f802e2be6652030fbb85595 Author: John Baldwin (Wed 30 Sep 2026 21:50:12 BST) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) cxgbe: Add a sysctl/tunable to control KTLS offload of AES-CBC cipher suites Disable these by default as they are less efficient and rarely used. Sponsored by: Chelsio Communications (cherry picked from commit 9cf774a577abbe28e03a849d1ec25f47827f07e6) M sys/dev/cxgbe/crypto/t6_kern_tls.c M sys/dev/cxgbe/crypto/t7_kern_tls.c M sys/dev/cxgbe/offload.h M sys/dev/cxgbe/t4_main.c _____________________________________________________________________________________________________________ Commit: 0c064ad610236e1dfa8b064cd12d3d7c00766bf8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0c064ad610236e1dfa8b064cd12d3d7c00766bf8 Author: John Baldwin (Wed 30 Sep 2026 20:19:11 BST) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) cxgbe tls: Send final data as immediate when trailing waste is trimmed When a request needs to drop data from the crypto output (via a split mode request), send the last 16 bytes of input as immediate data instead of via DSGL. Requests with small payloads (16 bytes or fewer) are now sent as immediate data only without any DSGL at all. Sponsored by: Chelsio Communications (cherry picked from commit 1bc81d3bb05505d1facc6884ee875ccb56e42977) M sys/dev/cxgbe/adapter.h M sys/dev/cxgbe/crypto/t7_kern_tls.c M sys/dev/cxgbe/t4_main.c M sys/dev/cxgbe/t4_sge.c _____________________________________________________________________________________________________________ Commit: 1def2693d960abb4d02bb6a09e20bc923aabfbd9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1def2693d960abb4d02bb6a09e20bc923aabfbd9 Author: John Baldwin (Wed 30 Sep 2026 20:19:11 BST) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) cxgbe: Greatly simplify ktls_wr_len for T7 Don't try to fine-tune the WR size when estimating the work request length when parsing the packet. Use a much simpler worst-case estimate that only depends on a few fields in the mbuf metadata. Sponsored by: Chelsio Communications (cherry picked from commit 613e7ce43f814c3fb3e076f8509b969b5c12808f) M sys/dev/cxgbe/crypto/t7_kern_tls.c _____________________________________________________________________________________________________________ Commit: 6c1a74d7b72a2a9b2cc6c5c271405a8639597d91 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6c1a74d7b72a2a9b2cc6c5c271405a8639597d91 Author: John Baldwin (Wed 30 Sep 2026 20:19:11 BST) Committer: John Baldwin (Thu 19 Nov 2026 15:42:20 GMT) cxgbe: Don't cache nsegs for KTLS requests KTLS mbufs are initially parsed when they are first enqueued to estimate the number of transmit descriptors needed so that the mbuf is queued until enough descriptors are available. As part of this estimate, the number of DSGL segments required by each KTLS mbuf is calculated. Originally, the count for the first TLS record in a chain was cached in the header mbuf to avoid having to recalculate it when writing out the actual work request for the first TLS record, but this requires duplicating fairly complex logic both when parsing and transmitting requests. Sponsored by: Chelsio Communications (cherry picked from commit 6d587ff04b71cb82a1e98fd84b5e0257dd65fec9) M sys/dev/cxgbe/crypto/t7_kern_tls.c _____________________________________________________________________________________________________________ Commit: f77e35a8e45290515591a6b9bb165d571c42b4c7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f77e35a8e45290515591a6b9bb165d571c42b4c7 Author: John Baldwin (Wed 30 Sep 2026 20:19:11 BST) Committer: John Baldwin (Thu 19 Nov 2026 15:42:19 GMT) cxgbe: Various assertions for lengths in KTLS work requests The construction of KTLS work requests is quite fragile, and these assertions ensure that the constructed work requests match the length fields encoded in some of the WR structures. Sponsored by: Chelsio Communications (cherry picked from commit 17126d54c40a2e3f3e2a81e31a07c299416ddf4a) M sys/dev/cxgbe/crypto/t7_kern_tls.c _____________________________________________________________________________________________________________ Commit: 570e5dff18981c889a10e7a324247876e66ef90f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=570e5dff18981c889a10e7a324247876e66ef90f Author: John Baldwin (Wed 30 Sep 2026 20:19:11 BST) Committer: John Baldwin (Thu 19 Nov 2026 15:42:19 GMT) cxgbe: Don't query mbuf_nsegs for header-only requests Sponsored by: Chelsio Communications (cherry picked from commit 1dd03aa32189136c75c6963a631ee91d2cdb3170) M sys/dev/cxgbe/crypto/t7_kern_tls.c _____________________________________________________________________________________________________________ Commit: adcf15585744215123ffeef5f48fcfabff239d4e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=adcf15585744215123ffeef5f48fcfabff239d4e Author: Olivier Certner (Thu 12 Nov 2026 22:11:59 GMT) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:56 GMT) sched_ule: tdq_move(): INVARIANTS: Remove a superfluous assertion That the lock of the stolen thread is the same as the source runqueue is already checked by sched_rem(). MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit 2210a2f8d4705eee0bf3d89a8e30f0babb40fed1) M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: c84a575a1e9240f12342acbfa5bb28a2503831ec URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c84a575a1e9240f12342acbfa5bb28a2503831ec Author: Olivier Certner (Thu 12 Nov 2026 21:54:37 GMT) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:56 GMT) proc.h: Order thread_lock*() functions more logically Also matches the implementation order in 'kern_mutex.c'. No functional change. MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit 3a1f5a28f00770dec7c793a1c44863a824054ade) M sys/sys/proc.h _____________________________________________________________________________________________________________ Commit: 7882c2fa2527c399085c1af168bd56f753430548 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7882c2fa2527c399085c1af168bd56f753430548 Author: Olivier Certner (Thu 12 Nov 2026 12:24:42 GMT) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:55 GMT) sched_ule: sched_rem(): Use THREAD_LOCKPTR_ASSERT() instead of MPASS() This gives a better message. While here, add some empty lines to make INVARIANTS-only statements stand out for better readability. No functional change. MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit 136e3a3eba5b59abfae066d4caaeccd4546d8973) M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: 660e111ebaa174e4e5239fd3e786bb5fdfceab27 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=660e111ebaa174e4e5239fd3e786bb5fdfceab27 Author: Olivier Certner (Thu 12 Nov 2026 12:21:47 GMT) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:55 GMT) sched_ule: tdq_add(): INVARIANTS: Add check, fix name in assertion strings Change the assertion on the to-add thread's lock so that it also fails if the thread's lock is not that of the 'tdq' (the checks that it is lock-unblocked and locked remain). It is tempting to add another check that the thread's 'ts_cpu' corresponds to the passed runqueue (in other words, that it has been set correctly), but that requires to add a call to thread_lock_block_wait() which should not be present in non-debug code, and that may prevent some races from happening on INVARIANTS, so I gave up on it. Fix the function name in assertion strings, as sched_add() is not the only (direct or indirect) caller of tdq_add(). MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit 00add43b882c36ce657bc9d60d5644bf147f378b) M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: 41f8c364fb92e53810155247158bc870adebbcde URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=41f8c364fb92e53810155247158bc870adebbcde Author: Olivier Certner (Thu 12 Nov 2026 11:21:53 GMT) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:55 GMT) sched_ule: Document fields of 'struct runq_steal_pred_data' While here, re-order them to have inputs before outputs. No functional change. MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit 2ba9debd3ac9d3cdc49936074cef3d97c47e9346) M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: 4f9b1512a3f60f23e503d667c896a7a2a36d657d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4f9b1512a3f60f23e503d667c896a7a2a36d657d Author: Olivier Certner (Thu 22 Oct 2026 12:50:52 BST) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:55 GMT) sys/modules.h: Fix too long line No functional change (intended). Fixes: f4b3640475ce ("inline atomics and allow tied modules to inline locks") Sponsored by: The FreeBSD Foundation (cherry picked from commit cd33fd75e856f1d91412062da2bd9d98e8897039) M sys/sys/module.h _____________________________________________________________________________________________________________ Commit: 50879f296a00fc633666fe29b2ef7b4d2a03f95f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=50879f296a00fc633666fe29b2ef7b4d2a03f95f Author: Olivier Certner (Tue 3 Nov 2026 21:31:11 GMT) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:54 GMT) sched: Fix building kernel independently of world Regular '-I' directives must be passed to ${CPP} so that when pre-processed, 'sched_ns.h' can find the files it includes in the proper places, instead of relying on what is in ${WORLDTMP}, i.e., nothing if '_includes' was not executed, which happens, e.g., when using 'make kernel-toolchain' and then 'make buildkernel' without having executed a 'make buildworld', or possibly some outdated copy not matching an updated source. Reported by: Claude Opus 5.5, imp Fixes: 510331fa3763 ("sched: Automatically namespace schedulers' implementation functions") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61167 (cherry picked from commit e89d0e74e23e95fa79989a9053e788e6378eee07) M sys/conf/files _____________________________________________________________________________________________________________ Commit: 1c9be4e159b03f858ed74768d72f16d410878e59 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1c9be4e159b03f858ed74768d72f16d410878e59 Author: Olivier Certner (Fri 9 Oct 2026 15:29:06 BST) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:54 GMT) sched: Automatically namespace schedulers' implementation functions This renames back scheduler implementation functions to their old names, i.e., the same name as the interface functions, in the source code, while providing the infrastructure to still produce from them C symbols namespaced by the scheduler implementation, in order to avoid symbol collisions with interface dispatching functions and other scheduler implementations when multiple ones are compiled in. In a nutshell, the implementation consists in re-routing interface names to implementation names via the C preprocessor. The main reasons for this change are that different implementation names: 1. Break navigating code with ctags-like tools like in-tree ctags, Global and Universal Ctags. 2. Spoils inlining opportunities in internal scheduler code if not careful. This alternatively could be regained by changing call points to use scheduler-specific names, but that does not prevent people from inadvertently adding more calls to interface functions. Also, having to namespace calls with the implementation name in the implementation itself can be seen as code clutter. 3. Introduces avoidable cognitive burden, for example in the form of having to ask oneself whether internal scheduler functions should be namespaced or not, and then when calling them which their actual names are. However, C symbol collisions create difficulties with debugging and ELF manipulation tools, including when printing backtraces (which scheduler implementation is in use?). For example, as of this writing, 'disassemble' in GDB will choose one of the existing functions and disassemble it without mentioning the existing others; our ddb(4) will set a breakpoint on one of these functions only (which should be improved); etc. So keeping namespaced symbol names was desirable, which is why symbol re-routing via the C preprocessor was chosen. People wanting to extract information from ELF files will have to use full symbol names instead of source code names. This is certainly a drawback, but we expect that people will spend by far more time on the code rather than trying to disassemble some particular implementation function, so the inconvenience will barely occur in practice. Also, DWARF information matching machine code to source code location stays undisturbed and gdb will continue to display matching source code correctly. ctags-like tool are likely to never implement macro substitution when definitions are in other files, or if they do to never enable it by default, as this would considerably slow down source parsing (Universal Ctags reports a 2x slowdown just by enabling expansions for definitions that are in the *same* file). LSPs have not been tested; we however expect this change will cause nothing but minor annoyances when using them. Writing new calls to scheduler functions should work as usual in terms of help/completion (including in implementations, as corresponding implementation and interface functions have same signature). Even automatically producing implementation function signatures when adding a new definition is expected to work. Please report if not the case. The implementation of the machinery to substitute interface names by implementation names has two parts. First, a new generated per-implementation-specific header has to be included in each implementation ("sched__ns.h"). It contains simple C preprocessor substitutions, such as, taking the example of ULE: #define sched_clock sched_ule_clock #define sched_switch sched_ule_switch allowing to use the interface names in place of the implementation names in the implementation itself. It also checks that an implementation actually defined SCHED_IMPLEMENTATION and to the same value that was used to produce it. These headers are generated from the pattern header 'sys/kern/sched_ns.h' through directives in 'sys/conf/files', via the C preprocessor using the already existing X macros and some light post-processing by the new 'sys/tools/sched_impl_ns.awk' script. Second, declares all implementation functions when included from an implementation, so that out-of-order references within the implementation do not cause problems, as it was before multiple schedulers could coexist. Implementations must define SCHED_IMPLEMENTATION to their name used as the namespacing symbol part (e.g., ule or 4bsd), which used to be the name passed as the first argument to DECLARE_SCHEDULER(). This argument is now redundant and has been removed. That same macro with same value has to be defined in the directives from 'sys/conf/files' for each implementation's namespacing header to be produced properly. For added safety, does not provide interface functions' declarations when SCHED_IMPLEMENTATION is defined anymore, so that implementations can never inadvertently call these functions. Reviewed by: mchoo MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60644 (cherry picked from commit 510331fa376309ae0860b91bd501c9c5a73e86a7) M sys/conf/files M sys/kern/sched_4bsd.c A sys/kern/sched_ns.h M sys/kern/sched_shim.c M sys/kern/sched_ule.c M sys/sys/sched.h A sys/tools/sched_impl_ns.awk _____________________________________________________________________________________________________________ Commit: 1744df209f7f6afa353574a2b91da74faefa9831 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1744df209f7f6afa353574a2b91da74faefa9831 Author: Olivier Certner (Tue 13 Oct 2026 14:20:43 BST) Committer: Olivier Certner (Thu 19 Nov 2026 15:31:49 GMT) critical_exit_preempt(): Re-check for preemption locked Once we have the thread lock, we are in a spinlock section and thus will not be preempted, which ensures stability of 'td_owepreempt'. Check it again for the improbable case where we were already preempted before entering that section (after 'td_critnest' reached 0 in critical_exit() but before clearing 'td_owepreempt', because of an IPI_PREEMPT received in the meantime or any interrupt whose handler uses critical sections), in which case there is no need to switch to another thread. It is however still necessary to temporarily raise 'td_critnest' around the thread_lock() call, and that is not an optimization contrary to what the old comment stated. As explained in the new comment, thread_lock() can lead to entering and exiting a spinlock section multiple times, which would cause recursion with critical_exit_preempt() in some circumstances. Reviewed by: kib, markj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60860 (cherry picked from commit 28c31242758323499eaf8af1f03fc4ae4a960205) M sys/kern/kern_switch.c _____________________________________________________________________________________________________________ Commit: 6df532f5821fdcb1a70c4a5bd54fc5f97dbbc4e5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6df532f5821fdcb1a70c4a5bd54fc5f97dbbc4e5 Author: John Baldwin (Mon 9 Nov 2026 18:21:36 GMT) Committer: John Baldwin (Thu 19 Nov 2026 14:44:48 GMT) .github: Update actions version to 7 version 4 raises warnings when run as the runners force it to use Node 24 instead of Node 20. version 5 defaults to Node 24, but version 7 is the current version. Reviewed by: emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/2477 (cherry picked from commit 17a42690bbd70c306dd19981953f30c72563ed2f) M .github/workflows/cross-bootstrap-tools.yml M .github/workflows/style.yml _____________________________________________________________________________________________________________ Commit: 2c965fa333c041b3f407d228bdd02d4935bd5071 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2c965fa333c041b3f407d228bdd02d4935bd5071 Author: John Baldwin (Sat 17 Oct 2026 16:24:23 BST) Committer: John Baldwin (Thu 19 Nov 2026 14:44:41 GMT) github: Only run the checklist checker for PRs against main Currently this check is run on every push to stable branches which all fail since they fail to fetch the non-existent .github/path-rules.txt from the just-updated branches. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D60709 (cherry picked from commit 19a5023e45bd34d6bf5ee15e580f945caece5d2c) M .github/workflows/checklist.yml _____________________________________________________________________________________________________________ Commit: e08b4be61e4cb86a9b32bbec636c64ffacdbbe5a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e08b4be61e4cb86a9b32bbec636c64ffacdbbe5a Author: John Baldwin (Mon 19 Jan 2026 15:56:20 GMT) Committer: John Baldwin (Thu 19 Nov 2026 14:44:12 GMT) .github: Disable checklist workflow on forks Reviewed by: imp Obtained from: CheriBSD Sponsored by: AFRL, DARPA Pull Request: https://github.com/freebsd/freebsd-src/pull/1973 (cherry picked from commit 3a6289e1e53ffe11b91b754d3b8241001b2cbfb8) M .github/workflows/checklist.yml _____________________________________________________________________________________________________________ Commit: 5581f8df7d6accdb5f0840929d5ea5bbe40a486b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5581f8df7d6accdb5f0840929d5ea5bbe40a486b Author: David Bidner (Thu 5 Nov 2026 12:28:15 GMT) Committer: Christos Margiolis (Thu 19 Nov 2026 11:52:35 GMT) snd_hda: wake display audio and restore amplifier settings An Intel display-audio codec was observed to remain in D3 after monitor sleep on DragonFly BSD. Starting a new stream then produced no sound, and waking the codec alone left the output pin amplifier muted and other function configuration unrestored. Read the audio function power state at stream start. If its requested or actual state is not D0, use the existing power-up routine before configuring and starting the stream, then restore the function to a known state: Restore selectors, pins, EAPD, GPIO/GPO and direct codec patches, then replay the cached gain and mute values once the pins are configured. Split widget configuration out of hdaa_audio_commit() into hdaa_audio_widget_commit() so the wake path can reuse it without reinitializing the cached amplifier values. Preserve the existing volume, mute and forced-mute values. Re-enable unsolicited responses, refresh ELD, and run jack presence handling for playback pins. Skip the full presence handler for recording pins only: its recording path can drop the driver lock to update the recording source, which is not safe while starting a stream with the channel lock held. The playback path does not drop the driver lock, so it is safe to run here, and it is what matters for display audio, whose pins belong to playback associations. GET_POWER_STATE reports the actual state in ACT (bits 7:4) and the requested state in SET (bits 3:0). They can differ during a transition. Checking both avoids skipping the D0 request when the function is still actually in D0 but has been requested to power down, or when D0 has been requested but the actual state has not reached D0 yet. The observed post-sleep response on DragonFly was 0x233, with both fields reporting D3. Despite their names, HDAA_AMP_MUTE_DEFAULT (0xffffffff) and HDAA_AMP_VOL_DEFAULT (-1) are sentinels meaning "keep the cached setting" in hdaa_audio_ctl_amp_set(). Passing them leaves ctl->muted, ctl->left and ctl->right unchanged, then writes the cached values to the hardware while respecting ctl->forcemute. It does not select factory defaults or unconditionally unmute the output. Preserve the existing behavior when the power-state query returns HDA_INVALID or both fields already report D0, and leave the D0 fast path and invalid power-state query handling unchanged. The observed wake-only silence and amplifier recovery were seen on DragonFly BSD. This FreeBSD adaptation has not been validated on FreeBSD hardware. PR: 299139 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299139 ) MFC after: 2 weeks Reviewed by: christos Pull-Request: https://github.com/freebsd/freebsd-src/pull/2464 (cherry picked from commit 43bbd71ac785fcc4ee39a8c0ef29d59fcb8c2a3c) M sys/dev/sound/pci/hda/hdaa.c _____________________________________________________________________________________________________________ Commit: 0c1a482b4e4f8ad0e5efe5da75614ca240706057 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0c1a482b4e4f8ad0e5efe5da75614ca240706057 Author: Kristof Provost (Wed 17 Dec 2025 13:59:34 GMT) Committer: Kristof Provost (Thu 19 Nov 2026 10:29:39 GMT) libpfctl: fix tstats address count Reported by: Marcos Mendoza See also: https://redmine.pfsense.org/issues/16588 Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit ad7f49f98b1ae7504f69db897901a055613c8300) M lib/libpfctl/libpfctl.c M tests/sys/netpfil/pf/table.sh _____________________________________________________________________________________________________________ Commit: 2db63f857d4a0a69417575ec5d045cf9f8536e75 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2db63f857d4a0a69417575ec5d045cf9f8536e75 Author: Xin LI (Mon 2 Nov 2026 01:41:07 GMT) Committer: Xin LI (Thu 19 Nov 2026 07:23:35 GMT) MFC: libdwarf: standard DWARF 5 form names, DW_LANG_C17 and C23 7bb441c86678 added the fixed-size string and address index forms 0x25 to 0x2c as DW_FORM_ref_strx1..4 and DW_FORM_ref_addrx1..4; the standard (DWARF 5, table 7.6) names them DW_FORM_strx1..4 and DW_FORM_addrx1..4, with no "ref". Rename them, keep the old spellings as aliases since the header is installed, and update dwarf_dump.c's form names accordingly. Add DW_LANG_C17 (0x2c) and DW_LANG_C23 (0x3e), which clang emits for -std=c17 and -std=c23 units. ctfconv(1) needs all of these; it carried them in a private header until now. Reviewed by: markj, emaste Differential Revision: https://reviews.freebsd.org/D61154 (cherry picked from commit f22d65998fe15b6bed9c8c3a2eede25c706837e1) M contrib/elftoolchain/libdwarf/dwarf.h M contrib/elftoolchain/libdwarf/dwarf_dump.c _____________________________________________________________________________________________________________ Commit: a0e97829173660733f28a510ea35dbc7aa3d766e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a0e97829173660733f28a510ea35dbc7aa3d766e Author: Xin LI (Sun 8 Nov 2026 19:10:01 GMT) Committer: Xin LI (Thu 19 Nov 2026 07:23:13 GMT) MFC: MFV: zlib 1.4 (cherry picked from commit 724bb39e83e369209d8e42a52370684b82e26350) M sys/contrib/zlib/ChangeLog M sys/contrib/zlib/README M sys/contrib/zlib/compress.c M sys/contrib/zlib/crc32.c M sys/contrib/zlib/deflate.c M sys/contrib/zlib/gzguts.h M sys/contrib/zlib/gzlib.c M sys/contrib/zlib/gzread.c M sys/contrib/zlib/gzwrite.c M sys/contrib/zlib/infback.c M sys/contrib/zlib/inflate.c M sys/contrib/zlib/inflate.h M sys/contrib/zlib/inftrees.c M sys/contrib/zlib/inftrees.h M sys/contrib/zlib/test/infcover.c M sys/contrib/zlib/test/minigzip.c M sys/contrib/zlib/trees.c M sys/contrib/zlib/uncompr.c M sys/contrib/zlib/zconf.h M sys/contrib/zlib/zconf.h.in M sys/contrib/zlib/zlib.3 M sys/contrib/zlib/zlib.h M sys/contrib/zlib/zutil.c _____________________________________________________________________________________________________________ Commit: 89e585b8a4592649d5edda9ca23167ed6fd6b502 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=89e585b8a4592649d5edda9ca23167ed6fd6b502 Author: Kenneth D. Merry (Wed 11 Nov 2026 14:26:19 GMT) Committer: Kenneth D. Merry (Wed 18 Nov 2026 17:37:11 GMT) pass(4): Don't drop the periph lock before selrecord() in passpoll() passpoll() checked the done queue while holding the peripheral lock, dropped the lock, and only then called selrecord(). A CCB completing in the window between the unlock and the selrecord() call sent its selwakeuppri() before the polling thread was on the selinfo list, so the wakeup was lost and select(2) or poll(2) slept until another completion arrived or the timeout expired. Call selrecord() before dropping the lock. This lock order is already established: passdone() calls selwakeuppri(), which takes the selinfo lock, while holding the peripheral lock. kqueue is not affected, since the knlist is backed by the peripheral mutex. Reported by: llm-postcr Fixes: a9934668aa13 MFC after: 1 week Sponsored by: Spectra Logic Assisted-by: Claude Fable 5 (cherry picked from commit 88c5709e91ad2cc6df51380673837f0ebd8a2d50) M sys/cam/scsi/scsi_pass.c _____________________________________________________________________________________________________________ Commit: a4abe5fe9a7deced628590bfc66c310713a02f21 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a4abe5fe9a7deced628590bfc66c310713a02f21 Author: Kenneth D. Merry (Tue 10 Nov 2026 23:01:38 GMT) Committer: Kenneth D. Merry (Wed 18 Nov 2026 17:37:08 GMT) pass(4): Wake select/kqueue waiters when an immediate CCB completes In the CAMIOQUEUE ioctl, a queued CCB completes through passdone(), which moves it to the done queue and calls selwakeuppri() and KNOTE_LOCKED() so that a consumer blocked in select(2), poll(2) or kevent(2) wakes up and collects the CCB with CAMIOGET. An immediate CCB (e.g. XPT_DEV_ADVINFO or XPT_DEV_MATCH) is instead executed synchronously in the ioctl and moved to the done queue directly, with no notification, so a consumer sleeping while waiting for its completion never wakes up until some other queued I/O completes. Send the same notification that passdone() sends. The peripheral lock is held at this point and backs the knlist, so KNOTE_LOCKED() is the correct variant. A version of this fix has been in production use at Spectra Logic since 2024. Co-authored-by: Dave Baukus Reviewed by: imp MFC after: 1 week Sponsored by: Spectra Logic Assisted-by: Claude Fable 5 Differential Revision: https://reviews.freebsd.org/D61416 (cherry picked from commit 6442a92a7d9c20c666999cc699610f1f5bec3cfd) M sys/cam/scsi/scsi_pass.c _____________________________________________________________________________________________________________ Commit: 8b7478120a590f1f07c27972dd7e80f876043533 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8b7478120a590f1f07c27972dd7e80f876043533 Author: Wolfram Schneider (Wed 11 Nov 2026 15:46:02 GMT) Committer: Wolfram Schneider (Wed 18 Nov 2026 12:29:55 GMT) man.sh: fix variable typo in debug output MFC after: 3 days (cherry picked from commit f6bd24546c27fc4592290c626f837c92181ae23c) M usr.bin/man/man.sh _____________________________________________________________________________________________________________ Commit: f65ba7a1a23ed09ebb58e177231f0a32f2370529 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f65ba7a1a23ed09ebb58e177231f0a32f2370529 Author: Juraj Lutter (Wed 4 Nov 2026 12:39:03 GMT) Committer: Sergey A. Osokin (Wed 18 Nov 2026 03:12:35 GMT) bsd-family-tree: Add NetBSD 11.1 (cherry picked from commit 97d0c19e6af78dc7613563805653d13f03861737) M share/misc/bsd-family-tree _____________________________________________________________________________________________________________ Commit: 0b966a6e95cf1a288dbb3dbf778e63294700d467 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0b966a6e95cf1a288dbb3dbf778e63294700d467 Author: Wolfram Schneider (Tue 20 Oct 2026 08:39:57 BST) Committer: Sergey A. Osokin (Wed 18 Nov 2026 03:12:21 GMT) bsd-family-tree: polish grammar and style Reviewed by: ziaee (cherry picked from commit d3bad289dfd536d8019e7bcbd7701b1d6dfb11c3) M share/misc/bsd-family-tree _____________________________________________________________________________________________________________ Commit: b829ccc294c263110e3901ec61ab499a78f8e318 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b829ccc294c263110e3901ec61ab499a78f8e318 Author: Sergey A. Osokin (Tue 20 Oct 2026 02:16:44 BST) Committer: Sergey A. Osokin (Wed 18 Nov 2026 03:12:06 GMT) bsd-family-tree: add OpenBSD 8.0 (cherry picked from commit 97b9e96a7f762102148c45f30fee1ec9e8f7bb50) M share/misc/bsd-family-tree _____________________________________________________________________________________________________________ Commit: b128c494f43a6320ae799473197a0d274f4f11d3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b128c494f43a6320ae799473197a0d274f4f11d3 Author: Wolfram Schneider (Tue 29 Sep 2026 20:32:56 BST) Committer: Sergey A. Osokin (Wed 18 Nov 2026 03:11:45 GMT) bsd-family-tree: add macOS 27 (cherry picked from commit 629c7cf72dd82d6f11dbc67a405417b4a643c000) M share/misc/bsd-family-tree _____________________________________________________________________________________________________________ Commit: b496e15118bc90693cff7525d566c6b2610a7d87 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b496e15118bc90693cff7525d566c6b2610a7d87 Author: Osvaldo Janeri Filho (Tue 10 Nov 2026 19:15:02 GMT) Committer: Kevin Bowling (Tue 17 Nov 2026 20:01:24 GMT) axgbe: return positive errno values from the sysctl handlers Return positive errno values from the FreeBSD sysctl handlers so that userland reports the proper error instead of "Unknown error: -22". Convert the negative phy_config_aneg() result at the sysctl boundary, matching axgbe_if_media_change(), and retain the PHY code's internal error convention. Differential Revision: https://reviews.freebsd.org/D61400 (cherry picked from commit c89613ded9237811d35a42788e9728fe0404e26b) M sys/dev/axgbe/xgbe-sysctl.c _____________________________________________________________________________________________________________ Commit: 8774185684b4229e20534a0edf60a6b013bd9635 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8774185684b4229e20534a0edf60a6b013bd9635 Author: Osvaldo Janeri Filho (Tue 10 Nov 2026 19:09:29 GMT) Committer: Kevin Bowling (Tue 17 Nov 2026 20:01:04 GMT) axgbe: bound the sysctl parser writes in get_val() Reject tokens and option counts that exceed the fixed parser buffers, and fix the terminating NUL offset. Have the sysctl handlers propagate parser errors before applying settings. Handle SYSL_U32 options and reject failed numeric conversions instead of using an uninitialized value. Fix the duplex case falling through to an error, and initialize the link-setting strings for unexpected speeds. Differential Revision: https://reviews.freebsd.org/D61339 (cherry picked from commit 5523a8ba6f618fa5c853450dd551d8a5f06715ca) M sys/dev/axgbe/xgbe-sysctl.c _____________________________________________________________________________________________________________ Commit: 12c79b31e803e436fc38ba95b823730470df1176 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=12c79b31e803e436fc38ba95b823730470df1176 Author: Bojan Novković (Fri 18 Sep 2026 15:13:17 BST) Committer: Bojan Novković (Tue 17 Nov 2026 19:47:49 GMT) libc/db: Correct a typo in the the hash tampering test Fixes the gcc build. Fixes: 7f5f07b139a5 (cherry picked from commit b774fbdb0077571dd34ca55ecb87199895ff47d3) M lib/libc/tests/db/db_hash_tamper_test.c _____________________________________________________________________________________________________________ Commit: 1c44c3822d3ea8f6e270e305887e50eebe6d88f3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1c44c3822d3ea8f6e270e305887e50eebe6d88f3 Author: Jose Luis Duran (Fri 13 Nov 2026 13:47:43 GMT) Committer: Jose Luis Duran (Tue 17 Nov 2026 17:47:59 GMT) blocklist: blacklist: Chase recent upstream changes MFC after: 3 days (cherry picked from commit e00339214db27eccf3d1574516960ba4b8869369) M contrib/blocklist/bin/blacklistd.8 _____________________________________________________________________________________________________________ Commit: edb5996b5080f76114ed486ce9a0295c90786fa6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=edb5996b5080f76114ed486ce9a0295c90786fa6 Author: Jose Luis Duran (Fri 13 Nov 2026 13:39:12 GMT) Committer: Jose Luis Duran (Tue 17 Nov 2026 17:47:30 GMT) MFV: Import blocklist 2026-11-12 (590e95e) Merge commit 'b0788c28c7bc6631129bc366bad491cf5698b2dc' Changes: https://github.com/zoulasc/blocklist/compare/10a907f...590e95e MFC after: 3 days (cherry picked from commit ea9a38e03249e25e1be8bd8f3c64028f9ac1102f) M contrib/blocklist/bin/blocklistd.8 M contrib/blocklist/diff/named.diff M contrib/blocklist/etc/blocklistd.conf _____________________________________________________________________________________________________________ Commit: c48a331e54794310fe05dddcb0719cdba1f5b1c3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c48a331e54794310fe05dddcb0719cdba1f5b1c3 Author: Mark Johnston (Mon 16 Nov 2026 00:14:21 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 17:02:15 GMT) linux: Handle OOB accesses in bsd_to_linux_errno() Such accesses can be triggered via ptrace(PT_SET_SC_RET). Reported by: Dennys Kaluzny Pereira Sponsored by: The FreeBSD Foundation (cherry picked from commit 8f024e97cabf7497dc047538db9c6be9067752a1) M sys/compat/linux/linux_errno.c _____________________________________________________________________________________________________________ Commit: c1b0ea1f72d7c7ad21c969191d1bb85aac08d18f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c1b0ea1f72d7c7ad21c969191d1bb85aac08d18f Author: Mark Johnston (Sun 15 Nov 2026 16:35:36 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 17:02:15 GMT) ptrace: Call ptrace_check_allowed() from the compat32 layer Otherwise the checks there aren't applied to freebsd32 ptrace calls. Fixes: 7006cb7bd22d ("pdptrace(2): allow debugging in capability mode") Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61597 (cherry picked from commit 44ae34814f689bf640c03b7f26f4f540a5f92d54) M sys/compat/freebsd32/freebsd32_misc.c M sys/kern/sys_process.c M sys/sys/ptrace.h _____________________________________________________________________________________________________________ Commit: cfd6ff1fe5ca4fe238a764b3a9594fe316b313d1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cfd6ff1fe5ca4fe238a764b3a9594fe316b313d1 Author: Konstantin Belousov (Sat 14 Nov 2026 00:30:36 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 17:02:15 GMT) fget_remote(9): recheck remote process fdp after holding the file kern_pddupfd() grants access to the process named by a process descriptor with p_candebug(), then calls fget_remote() to duplicate a descriptor from that process's current filedesc. The check remains stable against an execve() by that one process, but the implementation does not keep the held filedesc semantically bound to that process. If the authorized process P shares its descriptor table with another process Q, P can detach from the table with rfork(RFCFDG) after fget_remote() has held the old table but before it acquires the table lock. After P detaches, Q is the sole process-reference owner of the old table; fget_remote() retains only a separate lifetime hold. When Q executes a setuid program, the normal fdunshare() call observes fd_refcnt == 1 and does not copy the table. Privileged descriptors are therefore installed in the held old table. The waiting pddupfd() call accepts that table because its process reference count is nonzero and can return a descriptor opened by Q even though the security check was performed against P. Recheck the file descriptor table of the remote process after the hold, and refuse to dup if the table changed. Reported by: Reo Shiseki working with TrendAI Zero Day Initiative Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D61520 (cherry picked from commit 6f5458cc9a75e220a5af9d864c007bbf71a4bb0f) M sys/kern/kern_descrip.c _____________________________________________________________________________________________________________ Commit: eb4482d1cc556a11e40411bd078eee879ab88696 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=eb4482d1cc556a11e40411bd078eee879ab88696 Author: Mark Johnston (Sun 15 Nov 2026 16:03:13 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) tmpfs tests: Add regression tests for setgid handling Approved by: so Security: FreeBSD-SA-26:94.tmpfs Sponsored by: The FreeBSD Foundation M tests/sys/fs/tmpfs/Makefile A tests/sys/fs/tmpfs/setgid_test.c _____________________________________________________________________________________________________________ Commit: c56077b5ce6a6f2f5380e79c456bd134cf91384a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c56077b5ce6a6f2f5380e79c456bd134cf91384a Author: Kevin Day (Sat 14 Nov 2026 01:40:14 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) tmpfs: Clear setgid on creation by nonmembers New tmpfs nodes inherit their parent directory group. Clear S_ISGID when the creator is not a member of that group and lacks PRIV_VFS_SETGID, matching UFS and tmpfs chmod behavior. Approved by: so Security: FreeBSD-SA-26:94.tmpfs Security: CVE-2026-127749 Reviewed by: kib M sys/fs/tmpfs/tmpfs_subr.c _____________________________________________________________________________________________________________ Commit: ae0f27b235b8f13f3cd397dabd4d50a284051b06 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ae0f27b235b8f13f3cd397dabd4d50a284051b06 Author: Mark Johnston (Sat 14 Nov 2026 18:52:06 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) tcp: Handle read-only mbufs in tcp_pulloutofband() tcp_pulloutofband() is used to implement the urgent flag: it pulls a byte out of the data stream, to be returned to the recevier when MSG_OOB is specified. That function extracts the byte assuming that the mbuf is safe to modify, which may not be the case, e.g., when transmitting file data with sendfile(). This flaw can be exploited by a local user to obtain root privileges. Generalize this subroutine so that it handles read-only mbufs as well. Add some regression tests. Approved by: so Security: FreeBSD-SA-26:93.tcp Security: CVE-2026-127748 Reported by: OpenAI Security Research Team Reviewed by: tuexen Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61411 M sys/netinet/tcp_input.c M sys/netinet/tcp_var.h M tests/sys/netinet/Makefile A tests/sys/netinet/tcp_oob.c _____________________________________________________________________________________________________________ Commit: 564d6246095603ccf4b07042b564199b8f840c8b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=564d6246095603ccf4b07042b564199b8f840c8b Author: Kevin Day (Fri 13 Nov 2026 19:49:13 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) vfs: Check access for O_CREAT directory opens O_CREAT with O_DIRECTORY takes LOOKUP without creating a vnode. Clear O_CREAT there so vn_open_vnode checks read or search access. Add an unprivileged regression test for denied and permitted opens. Approved by: so Security: FreeBSD-SA-26:92.vfs Security: CVE-2026-127746 Reviewed by: kib Fixes: 9e18c9eb27cd M sys/kern/vfs_vnops.c M tests/sys/file/fcntlflags_test.c _____________________________________________________________________________________________________________ Commit: 223cce4e03e4a44a60b8bb4c6d551b51249aad5c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=223cce4e03e4a44a60b8bb4c6d551b51249aad5c Author: Dag-Erling Smørgrav (Fri 13 Nov 2026 20:28:38 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) tests: Add test for fdescfs truncation bug Add a test case that verifies that it is not possible to truncate a file opened read-only through fdescfs in default mode, and another that verifies that it is possible when fdescfs was mounted in nodup mode. Approved by: so Security: FreeBSD-SA-26:91.fdescfs Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D61236 M tests/sys/fs/fdescfs/fdescfs_test.c _____________________________________________________________________________________________________________ Commit: 9d7c65d1c79f636037f74030ed01d65c11f8b225 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9d7c65d1c79f636037f74030ed01d65c11f8b225 Author: Konstantin Belousov (Thu 12 Nov 2026 19:29:20 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) fdescfs: check the target file for FWRITE access when truncating Truncation is done by calling fdesc_setattr(), and fdesc_setattr() looks up fd N again, so a concurrent dup2() can swap the file between the access check and the truncate. Correct the rights checked for the setattr(). Unlock the fdescfs vnode around fdrop() of the underlying file. Approved by: so Security: FreeBSD-SA-26:91.fdescfs Sponsored by: The FreeBSD Foundation M sys/fs/fdescfs/fdesc_vnops.c _____________________________________________________________________________________________________________ Commit: a95917bab31131e65c71b32be80363a94a9cb509 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a95917bab31131e65c71b32be80363a94a9cb509 Author: Konstantin Belousov (Fri 6 Nov 2026 00:00:19 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) fdescfs: add VOP_ACCESS() implementation kern_truncate() checks VWRITE only through VOP_ACCESS() on the fdescfs vnode, which always succeeded until now. So a file opened read-only could be truncated, even if the caller has no write permission for it. Note that reopen on mounts without nodup already performs the permission checks in dupfdopen(). For nodup mounts, the VOP_ACCESS() implementation of the real filesystem is used. Approved by: so Security: FreeBSD-SA-26:91.fdescfs Security: CVE-2026-127745 Reported by: Kevin Day Sponsored by: The FreeBSD Foundation M sys/fs/fdescfs/fdesc_vnops.c _____________________________________________________________________________________________________________ Commit: 025ff8ca639b2b9f3d8dea319d93a7915c122313 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=025ff8ca639b2b9f3d8dea319d93a7915c122313 Author: Mark Johnston (Fri 13 Nov 2026 15:14:28 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) vm_map: Fix handling of largepage mappings vm_map_pmap_enter() is not aware of largepage objects and enters their constituent 4KB pages into the pmap. This permits mapping a constituent page after the corresponding largepage object is freed, which can be abused to escalate privileges. Simply don't pass largepage mappings to it. Modify vm_fault_copy_entry() to handle largepage mappings for the case where mprotect() needs to eagerly upgrade protections on a wired largepage mapping. Approved by: so Security: FreeBSD-SA-26:90.vm Security: CVE-2026-127744 Reviewed by: alc, kib Reported by: OpenAI Security Research Team Reported by: Albert at Vexera AI Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61363 M sys/vm/vm_fault.c M sys/vm/vm_map.c M tests/sys/posixshm/posixshm_test.c _____________________________________________________________________________________________________________ Commit: 768ca3a3d301ed38c2043cd0a49bfd14f6a3c801 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=768ca3a3d301ed38c2043cd0a49bfd14f6a3c801 Author: Maxim Konovalov (Thu 12 Nov 2026 00:43:06 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) bsnmp: let an SNMPv3 discovery message elicit only a Report An SNMPv3 message with no variable bindings is treated as RFC 3414 engineID (or time-window) discovery: snmp_input_start() appends a single usmStats counter to the request, and snmp_pdu_auth_access() skips the VACM check because the AUTODISCOVER flag is set. The request's verb was then still dispatched by type. A genuine discovery is a GET and simply reads that counter back -- the intended Report -- but a zero-binding GETNEXT or GETBULK instead walks forward from the appended OID, and with VACM skipped it returns the next registered object(s): an unauthenticated read of the agent's USM and VACM configuration (objects at or after 1.3.6.1.6.3.15). Force the verb of a discovery message to GET, so the appended counter is read as-is and no walk (or SET) can run under the skipped-VACM state. Genuine discovery, which already uses GET, is unaffected. This complements the earlier change that rejects an AUTODISCOVER message carrying its own bindings; that guard is never reached on this path, because the offending binding is appended by the agent after the zero-binding test. Approved by: so Security: FreeBSD-SA-26:89.bsnmp Reviewed by: harti Fixes: 135f7de5ddb6 M contrib/bsnmp/snmpd/main.c _____________________________________________________________________________________________________________ Commit: 870ce74ad739ef535c9a4870b5e5a30f7e0710b6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=870ce74ad739ef535c9a4870b5e5a30f7e0710b6 Author: Maxim Konovalov (Thu 12 Nov 2026 00:43:05 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) bsnmp: mask reserved SNMPv3 msgFlags bits on input snmp_pdu_decode_header() reads the msgFlags octet straight into pdu->flags and never sanitises it. Only bits 0..2 are defined on the wire (authFlag, privFlag, reportableFlag). Bit 7 (0x80) is bsnmp's internal SNMP_MSG_AUTODISCOVER marker: it shares the same field and is tested later as "this is discovery, skip USM and VACM". Because the byte is taken verbatim from an unauthenticated peer, a client that sets bit 7 of msgFlags has (pdu->flags & SNMP_MSG_AUTODISCOVER) read true straight after header decode, forging the discovery state. A noAuthNoPriv user -- which has no digest to verify -- can thus mark an ordinary request as discovery and have it bypass the VACM access check, operating outside its configured views. Keep only the three defined wire bits when decoding msgFlags, so the internal marker can never be set from the network. Approved by: so Security: FreeBSD-SA-26:89.bsnmp Reviewed by: harti Fixes: 135f7de5ddb6 M contrib/bsnmp/lib/snmp.c _____________________________________________________________________________________________________________ Commit: 34a446690f256919559607fe763f7cb038dd9926 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=34a446690f256919559607fe763f7cb038dd9926 Author: Maxim Konovalov (Fri 13 Nov 2026 03:07:48 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) bsnmp: reject an oversized vacmViewTreeFamilyMask The SET handler for vacmViewTreeFamilyMask compared the value length against the 16-byte view->mask, but the check had no statement of its own: it guarded the following malloc() instead of rejecting the request. A value longer than 16 bytes was therefore copied into view->mask with memcpy(), overflowing struct vacm_view. Add the missing return so an over-long value is refused with wrongValue. Approved by: so Security: FreeBSD-SA-26:89.bsnmp Security: CVE-2026-127743 Reviewed by: harti Fixes: 135f7de5ddb6 M contrib/bsnmp/snmp_vacm/vacm_snmp.c _____________________________________________________________________________________________________________ Commit: 18a5823dc5655caab3ac3a660d5079dd388c2132 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=18a5823dc5655caab3ac3a660d5079dd388c2132 Author: Maxim Konovalov (Fri 13 Nov 2026 03:00:02 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) bsnmp: do not act on an SNMPv3 discovery message that carries bindings An SNMPv3 message with an empty engine id and empty user name is handled as snmpEngineID discovery: snmp_pdu_auth_user() sets SNMP_MSG_AUTODISCOVER and returns without a USM user, and snmp_pdu_auth_access() then grants the message access. A genuine discovery request carries no variable bindings and only elicits a Report, but a discovery PDU that did carry bindings was executed anyway -- so a GET or SET ran with no authentication and without the VACM access check. This affects two cases. With an empty user name the message is wholly unauthenticated, so anyone able to reach the agent could issue a SET. It also affects a configured noAuthNoPriv user: such a user has no digest to verify, so it too can set the AUTODISCOVER flag (an authenticated request before time synchronisation) and have a bindings-carrying PDU bypass VACM and operate outside its views. Refuse any AUTODISCOVER message that arrives with variable bindings instead of acting on it. Empty-binding discovery, the authenticated time-window exchange, and ordinary authenticated SNMPv3 are unaffected. While here, free the PDU on the SNMPD_INPUT_FAILED path of snmpd_input(). Every other path releases it, but the failed path consumed the datagram and returned without freeing the decoded bindings -- so a rejected PDU leaked any heap they held, such as the buffer for an OCTET STRING in a SET. Rejecting a bindings-carrying discovery message now reaches that path, so an unauthenticated client could otherwise grow the agent's memory without bound. For that free to be safe, snmp_input_start() must leave the PDU in a defined state on every return. It zeroed the PDU only after the initial snmp_pdu_snoop() check, so a malformed datagram that failed the snoop returned SNMPD_INPUT_FAILED with the caller's PDU uninitialised; freeing it would then walk a garbage binding count. Zero the PDU up front, before the snoop, so all of these paths leave an empty PDU that frees cleanly. Approved by: so Security: FreeBSD-SA-26:89.bsnmp Security: CVE-2026-127742 Reviewed by: harti Fixes: 135f7de5ddb6 M contrib/bsnmp/snmpd/main.c _____________________________________________________________________________________________________________ Commit: f3afd16367c5b301a6dfa8f942adaa9bcc50b84f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f3afd16367c5b301a6dfa8f942adaa9bcc50b84f Author: Mark Johnston (Thu 12 Nov 2026 19:25:58 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) sound: Improve interlocking in chn_resizebuf() chn_resizebuf() fails if the channel's software buffer is mapped, but does not take into account the fact that channel I/O drops the channel lock when copying from or to user memory. During the window where the lock is dropped, a resize may free the old buffer, causing userspace to access freed kernel memory. This can be exploited to escalate privileges. Fix this by disallowing resizing when I/O is in progress. Approved by: so Security: FreeBSD-SA-26:88.sound Security: CVE-2026-127741 Reviewed by: christos, kib Reported by: OpenAI Security Research Team Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61446 M sys/dev/sound/pcm/buffer.c M sys/dev/sound/pcm/channel.c _____________________________________________________________________________________________________________ Commit: 6ace2eb40b443a0f69e9f008713c5fd78770c2cd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6ace2eb40b443a0f69e9f008713c5fd78770c2cd Author: Mark Johnston (Thu 12 Nov 2026 19:23:32 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) so_splice: Serialize teardowns of splices A socket splice can be configured with a timeout; once the timeout expires, the splice is automatically undone. The implementation of an unsplice operation detaches each socket from the splice structure, and then drains the timeout task. The timeout task takes the splice structure as an argument, and passes the source socket to so_unsplice(). It is possible for two threads to race with the task thread: one removes the source socket from the splice associated with currently running task, and the other thread splices that socket again, creating a new splice structure. The timeout thread may then unsplice the source socket even though it doesn't own that socket's current splice. The resulting use-after-free can be exploited by a local user to escalate privileges. Fix the problem by serializing teardowns of splices: make so_unsplice() callers specify the cause of the teardown, and ensure that threads can't race to destroy a splice after an error occurs. Approved by: so Security: FreeBSD-SA-26:87.socket Security: CVE-2026-127740 Reviewed by: gallatin Reported by: OpenAI Security Research Team Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61443 M sys/kern/uipc_socket.c _____________________________________________________________________________________________________________ Commit: 9a38d35b14bc96b54c85cf6c5bbc6b51fe95df8e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9a38d35b14bc96b54c85cf6c5bbc6b51fe95df8e Author: Mark Johnston (Thu 12 Nov 2026 19:18:29 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) freebsd32: Avoid modifying a shared control message freebsd32_copy_msg_out() copies out received control messages. The cmsg ABI differs between the 32-bit and native ABIs in that the 32-bit ABI requires only 4-byte alignment for message bodies, see CMSG_ALIGN. When the control message is read from the socket buffer with MSG_PEEK, short messages which fit into an mbuf are copied into private storage, but larger messages are returned by acquiring a counted reference on the underlying mbuf cluster still attached to the socket buffer. When the underlying storage is shared, the non-atomic, temporary modification of the control message header in freebsd32_copy_msg_out() can be abused to corrupt the message queue; this can be leveraged to escalate privileges. Approved by: so Security: FreeBSD-SA-26:86.freebsd32 Security: CVE-2026-101321 Reported by: OpenAI Security Research Team Reviewed by: brooks, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61355 M sys/compat/freebsd32/freebsd32_misc.c _____________________________________________________________________________________________________________ Commit: ac7d692a44553d703005e4ab6fb66cb34fcc13c2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ac7d692a44553d703005e4ab6fb66cb34fcc13c2 Author: Mark Johnston (Mon 16 Nov 2026 13:46:51 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:23 GMT) kqueue: Fix a race between kqueue_fork_copy_list() and kqueue_expand() While kqueue_fork_copy_list() is iterating over the knote lists, the backing array may change while the kqueue lock is dropped. Since each list is a singly-linked list, kqueue_fork_copy_list() must start iterating from the list head in order to remove the marker, but that list head pointer is invalid after kqueue_expand() runs. Add a bit of indirection to re-compute the correct list head each time the kqueue lock is dropped. Avoid changing the layout of struct knote since I want to backport this to releng branches. Approved by: so Security: FreeBSD-SA-26:85.kqueue Security: CVE-2026-127750 Reported by: Dennys Kaluzny Pereira Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D61608 M sys/kern/kern_event.c _____________________________________________________________________________________________________________ Commit: 6b4c4b8f063a19ba6e8c41b49b1a5b295e56881e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6b4c4b8f063a19ba6e8c41b49b1a5b295e56881e Author: Mark Johnston (Thu 12 Nov 2026 19:16:53 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) kqueue: Fix a race when detaching a timer knote We currently maintain a per-process list of stopped timer knotes, used when the owning process receives SIGSTOP. Upon receiving SIGCONT, queued timers are re-armed. When detaching a timer knote, we drain the callout and remove it from the queue, then check to see if the callout was re-armed by SIGCONT; if so, then we loop. However, the callout timer may fire before this check, and softclock_call_cc() clears the pending bit without the associated callout lock held, in which case filt_timerdetach() fails to observe that the callout is still running and doesn't drain. The callout handler then races with a free of the knote, and the resulting memory corruption can be exploited to obtain root privileges. Fix the problem by using an explicit flag that prevents re-arming a timer whose knote is in the process of being detached. Approved by: so Security: FreeBSD-SA-26:85.kqueue Security: CVE-2026-101320 Reported by: OpenAI Security Research Team Fixes: 2fd1ffefaa4d ("Stop arming kqueue timers on knote owner suspend or terminate") Sponsored by: The FreeBSD Foundation Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D61359 M sys/kern/kern_event.c _____________________________________________________________________________________________________________ Commit: d754bb7691a73e543f1208ff5a9b53b96c6d01ea URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d754bb7691a73e543f1208ff5a9b53b96c6d01ea Author: Hayzam Sherif (Thu 5 Nov 2026 11:53:03 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) amd64/vmm: Reject TSC_AUX writes with reserved bits set On Intel CPUs, bits 63:32 of IA32_TSC_AUX are reserved. Guest writes to the MSR are trapped and the value is stored in the vCPU's MSR array. vmx_msr_guest_enter_tsc_aux() later writes the value to the physical MSR, so reserved bits must be rejected before the value reaches the host MSR. Inject #GP into the guest instead, as the hardware would. Approved by: so Security: FreeBSD-SA-26:84.vmm Security: CVE-2026-101319 Fixes: f5f5f1e7d6de ("Support guest rdtscp and rdpid instructions on Intel VT-x") Sponsored by: Alchemilla Ventures Private Limited M sys/amd64/vmm/intel/vmx_msr.c _____________________________________________________________________________________________________________ Commit: 645a017e1c93cd62690cb0e9062f46653f0602c9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=645a017e1c93cd62690cb0e9062f46653f0602c9 Author: Mark Johnston (Mon 9 Nov 2026 22:27:45 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) unix: Fix a race between shutdown and listen In uipc_shutdown(), the SOLISTENING() check is stale as soon as the socket lock is dropped. Acquire the unpcb lock earlier and use that to interlock with other work that touches the socket buffers which are invalid for a listening socket. Fix unp_dispose() to handle errors when acquiring the I/O lock; contrary to the assertions, such races are possible. Approved by: so Security: FreeBSD-SA-26:83.unix Security: CVE-2026-127751 Reported by: OpenAI Security Research Team Sponsored by: The FreeBSD Foundation M sys/kern/uipc_usrreq.c _____________________________________________________________________________________________________________ Commit: fba0e79a68a63f278e3a91ccafb2eaced03a84fe URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fba0e79a68a63f278e3a91ccafb2eaced03a84fe Author: R. Christian McDonald (Thu 12 Nov 2026 18:10:09 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) esp: Fix synchronization of stream cipher counter updates After commit 0361f165f219, the counter embedded in the IV for AES-CTR, AES-GCM and ChaCha20 transforms is incremented under a shared lock, which creates the potential for nonce reuse. This can be abused by an on-path attacker to alter the ciphertext of intercepted packets, and potentially reveal the plaintext of packets whose counter values collide. Approved by: so Security: FreeBSD-SA-26:82.ipsec Security: CVE-2026-101318 Sponsored by: Rubicon Communications, LLC ("Netgate") Fixes: 0361f165f219 ("ipsec: replace SECASVAR mtx by rmlock") M sys/netipsec/xform_esp.c M tests/sys/netipsec/tunnel/Makefile A tests/sys/netipsec/tunnel/esp_iv.sh _____________________________________________________________________________________________________________ Commit: 9b7c7bcebd4d8b85212fed84daeae54a0522c00c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9b7c7bcebd4d8b85212fed84daeae54a0522c00c Author: Konstantin Belousov (Thu 12 Nov 2026 20:00:18 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) lookup_cap_dotdot test: check symlink escape below a union mount root Let mount_tmpfs() add the union option, and leave creating the mount point to the callers, so that the covered directory can be populated before the mount. Approved by: so Security: FreeBSD-SA-26:81.vfs Sponsored by: The FreeBSD Foundation M tests/sys/vfs/lookup_cap_dotdot.c _____________________________________________________________________________________________________________ Commit: 70f21758b8e931f20d9473aa998eb44d40fb62d3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=70f21758b8e931f20d9473aa998eb44d40fb62d3 Author: Pawel Jakub Dawidek (Fri 23 Oct 2026 05:01:41 BST) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) lookup_cap_dotdot test: check dotdot VV_ROOT escape Approved by: so Security: FreeBSD-SA-26:81.vfs M tests/sys/vfs/lookup_cap_dotdot.c _____________________________________________________________________________________________________________ Commit: 5ebd5742aac0d1a99f1befb78447d9ab6f6bf74f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5ebd5742aac0d1a99f1befb78447d9ab6f6bf74f Author: Konstantin Belousov (Thu 12 Nov 2026 20:00:17 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) rbeneath lookup: move the boundary on union mount fallthrough A name not found in the root of a union (MNT_UNION) mount is looked up in the covered directory. If the union root is the starting directory of a strict relative lookup and the name is a relative symlink in the covered directory, namei() resolves the symlink target from ni_dvp, the covered vnode, without crossing back into the union root. A ".." in the target is then checked against ni_rbeneath_dpp, the union root, which does not match, and the lookup leaves the starting directory. Before 2f60984053 the fallthrough added the covered vnode to the visited vnodes, and the parent of the covered directory, never visited, was refused. When the fallthrough happens at ni_rbeneath_dpp, move ni_rbeneath_dpp to the covered vnode. ".." from the union root steps over mnt_vnodecovered in the vfs_lookup() dotdot loop and meets the moved boundary there, so both directories stay protected. The mount holds a reference on the covered vnode, and the doomed check fails the lookup if it is reclaimed anyway. Approved by: so Security: FreeBSD-SA-26:81.vfs Fixes: 2f60984053e5 ("namei dotdot tracker: take mnt_renamelock shared to prevent parallel renames") Sponsored by: The FreeBSD Foundation M sys/kern/vfs_lookup.c _____________________________________________________________________________________________________________ Commit: 956d9507e9c09f297be04cdbb18fb66e8aa52cba URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=956d9507e9c09f297be04cdbb18fb66e8aa52cba Author: Konstantin Belousov (Fri 23 Oct 2026 04:48:47 BST) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) rbeneath lookup: do not allow to step up with dotdot lookup over VV_ROOT In vfs_lookup(), the ".." loop steps from a mount root to its mnt_vnodecovered vnode before the name is looked up. nameicap_check_dotdot() runs only after VOP_LOOKUP() and compares the directory being left, ni_dvp, with ni_rbeneath_dpp, the start. After the mount crossing ni_dvp is the covered vnode, not the start, so the comparison never matches and ".." is allowed. [*] Before 2f60984053 the loop called nameicap_check_dotdot(ndp, dp) right after the mnt_vnodecovered step, and the covered vnode, which was not among the vnodes the lookup had visited, was refused. The change replaced the visited-vnode tracking with the comparison against ni_rbeneath_dpp, and removed that call. A process restricted to a directory descriptor by Capsicum (capability mode, or a descriptor limited with cap_rights_limit()), or a program that relies on O_RESOLVE_BENEATH / AT_RESOLVE_BENEATH to keep a lookup beneath a directory, is not contained when that directory is a mount root (for example a tmpfs, nullfs or devfs mount handed to a sandbox). Through ".." it can name anything reachable from the directory that holds the mount point, within the descriptor's rights and the usual permission checks. Sandboxes that are handed a mount root (a per-sandbox tmpfs is a common pattern) lose their file-system boundary. Similarly, if the ni_rbeneath_dpp is reclaimed and then re-instantiated, e.g. for nocache nullfs or just by vnlru, the startdir might be bypassed because the comparison would not hold. Check for doomed state to close the possibility. Approved by: so Security: FreeBSD-SA-26:81.vfs Security: CVE-2026-101312 Reported by: pjd [*] Fixes: 2f60984053e5 ("namei dotdot tracker: take mnt_renamelock shared to prevent parallel renames") Sponsored by: The FreeBSD Foundation M sys/kern/vfs_lookup.c _____________________________________________________________________________________________________________ Commit: 3111810e08af18fd546cc0065c773e6ddb254270 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3111810e08af18fd546cc0065c773e6ddb254270 Author: Konstantin Belousov (Fri 23 Oct 2026 04:59:15 BST) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) lookup: hold ni_rbeneath_dpp The vnode is held to ensure the validity of the pointer. Approved by: so Security: FreeBSD-SA-26:81.vfs Reported by: pjd Sponsored by: The FreeBSD Foundation M sys/kern/vfs_lookup.c _____________________________________________________________________________________________________________ Commit: 63158cfbf67ad01fe2950b71a88d5c94d9c4ac00 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=63158cfbf67ad01fe2950b71a88d5c94d9c4ac00 Author: Konstantin Belousov (Thu 12 Nov 2026 18:28:52 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) nfsserver: initialize ni_rbeneath_dpp in nfsvno_namei() Approved by: so Security: FreeBSD-SA-26:81.vfs Reported by: markj Sponsored by: The FreeBSD Foundation M sys/fs/nfsserver/nfs_nfsdport.c _____________________________________________________________________________________________________________ Commit: 70a1a5a088ab3620706a5b88c681814d61593f5b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=70a1a5a088ab3620706a5b88c681814d61593f5b Author: Mark Johnston (Wed 28 Oct 2026 19:31:13 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) inotify: Make the oneshot watch lookup stricter inotify_log_one() needs to handle one-shot watches, which are removed from the inotify descriptor after the first event. To handle races with a close of the inotify descriptor, which frees all watches, it re-looks up the watch in the descriptor's watch tree, which is keyed by the watch descriptor number. inotify_log_one() assumed that presence of the watch descriptor in the tree meant that the watch on which it is operating is also present in the tree. However, watch descriptors are 32 bits wide and malicious userspace can trigger descriptor reuse such that this assumption is false, and inotify_log_one() ends up freeing the wrong watch, resulting in an exploitable use-after-free. Approved by: so Security: FreeBSD-SA-26:80.vfs Security: CVE-2026-101316 Fixes: f1f230439fa4 ("vfs: Initial revision of inotify") Reported by: OpenAI Security Research Team Sponsored by: The FreeBSD Foundation M sys/kern/vfs_inotify.c _____________________________________________________________________________________________________________ Commit: d1ffacacaad37a128dd6ad324a0b1348b2436392 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d1ffacacaad37a128dd6ad324a0b1348b2436392 Author: Rick Macklem (Thu 12 Nov 2026 17:19:03 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) nfsd: Make nfsrv_getstate() validate the stateid type Otherwise nfsrv_delegupdate() can be tricked by a client into freeing a state when it shouldn't, resulting in a use-after-free. Approved by: so Security: FreeBSD-SA-26:79.nfs Security: CVE-2026-101317 Reported by: H. P. Cook M sys/fs/nfsserver/nfs_nfsdstate.c _____________________________________________________________________________________________________________ Commit: 9bbbb1a74dc2b47c0d6660c5c9f130e31643cfda URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9bbbb1a74dc2b47c0d6660c5c9f130e31643cfda Author: Mark Johnston (Tue 27 Oct 2026 14:31:32 GMT) Committer: Mark Johnston (Tue 17 Nov 2026 16:57:22 GMT) gssd: Fix unix credential squashing when accepting a context gssd_accept_sec_context_lucid_v1_1_svc() handles context acceptance when MIT Kerberos is in use. Its last operation is to map the Kerberos principal to a local credential subsequently used by the NFS server for the authenticated session. If it fails to resolve the principal to a local user, it is supposed to squash the client's credentials. However, it failed to set the UID field, which will end up set to zero, corresponding to the root user on the server. As a result, an authenticated principal that doesn't map to a local user ends up being treated as UID 0. Fix this. Use names for the nobody user and group. Approved by: so Security: FreeBSD-SA-26:78.gssd Security: CVE-2026-101315 Reported by: Erik Power Reported by: SecBuddyF, Tencent KeenLab Reviewed by: rmacklem, cy Fixes: e3ac01e18eb3 ("kgssapi: Fix the kgssapi so that it can use MIT Kerberos") Sponsored by: The FreeBSD Foundation M usr.sbin/gssd/gssd.c _____________________________________________________________________________________________________________ Commit: fb12aee5f42c8f598cfe18588fad9a7fd1240b56 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fb12aee5f42c8f598cfe18588fad9a7fd1240b56 Author: Osvaldo Janeri Filho (Wed 4 Nov 2026 16:11:02 GMT) Committer: Bojan Novković (Tue 17 Nov 2026 16:34:48 GMT) bhyve: check paddr_guest2host return in _vq_record _vq_record() stored the result of paddr_guest2host() without checking for NULL. A guest descriptor with an invalid address causes a NULL dereference in every virtio driver. Return early on failure; the caller sees zero descriptors and discards the chain. The indirect path already performs this check (line 357). Reviewed by: bnovkov Differential Revision: https://reviews.freebsd.org/D60870 MFC after: 1 week (cherry picked from commit d67c363e85e7c720b1e0ac16e30cb64317c0dc2f) M usr.sbin/bhyve/virtio.c _____________________________________________________________________________________________________________ Commit: fa7e965c2b4fa6c821bf5eeccd578acd5acb16a7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fa7e965c2b4fa6c821bf5eeccd578acd5acb16a7 Author: Federico Angelilli (Mon 21 Sep 2026 19:23:10 BST) Committer: Bojan Novković (Tue 17 Nov 2026 16:34:34 GMT) pciconf: Add -C option to filter by class name Differential Revision: https://reviews.freebsd.org/D59602 MFC after: 3 weeks PR: 289923 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289923 ) Reviewed by: bnovkov (cherry picked from commit 46d383af0dbdb3871354f344b9c1ba99da691121) M usr.sbin/pciconf/pciconf.8 M usr.sbin/pciconf/pciconf.c _____________________________________________________________________________________________________________ Commit: 3098169888500c15545c862f0c6f5105b351e1e0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3098169888500c15545c862f0c6f5105b351e1e0 Author: Bojan Novković (Tue 7 Jul 2026 13:28:50 BST) Committer: Bojan Novković (Tue 17 Nov 2026 16:33:54 GMT) db/hash: Harden hash(3) database code The hash(3) database code does not validate the on-disk database header, leaving it open to several OOB read and write vulnerabilities. This change adds basic header validation and array bounds checking to parts of the hash(3) code that can be manipulated by messing with the database header. Reviewed by: kevans Sponsored by: Klara, Inc. MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D58822 (cherry picked from commit 7f5f07b139a5fd456087804ee96802b54c151703) M lib/libc/db/hash/hash.c M lib/libc/db/hash/hash_buf.c M lib/libc/db/hash/hash_page.c M lib/libc/tests/db/Makefile A lib/libc/tests/db/db_hash_tamper_test.c _____________________________________________________________________________________________________________ Commit: ab81ea52f422e82194123b9a9e055b59d26e6bfe URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ab81ea52f422e82194123b9a9e055b59d26e6bfe Author: Alan Cox (Mon 2 Nov 2026 01:18:01 GMT) Committer: Alan Cox (Tue 17 Nov 2026 03:47:46 GMT) arm64 pmap: combine L3C accessed bits in pmap_mincore() The accessed bit may be set in only some of an L3C superpage's L3 PTEs. However, when pmap_mincore() found an L3C mapping, it reported the accessed state of the specified L3 PTE only, so mincore(2) could fail to report MINCORE_REFERENCED for an L3C superpage that had been accessed. When the accessed bit is not set in the specified entry, use pmap_load_l3c() to combine the accessed bits from all of the L3C superpage's L3 PTEs. (cherry picked from commit 3ba68f5c5dcc9a4bcd513c28efce29afdfcb76ff) M sys/arm64/arm64/pmap.c _____________________________________________________________________________________________________________ Commit: 6ef72b6bdb350b7421fe482cf5db912ad6632810 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6ef72b6bdb350b7421fe482cf5db912ad6632810 Author: Konstantin Belousov (Tue 10 Nov 2026 03:07:01 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:05 GMT) libthr mutex_self_lock(): handle signals and clock steps (cherry picked from commit 1b4779eef93c6e3c9af1887b941d7700ef143951) M lib/libthr/thread/thr_mutex.c _____________________________________________________________________________________________________________ Commit: 0cafd308e219ac7badd8b43c83c29fd73374c0f5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0cafd308e219ac7badd8b43c83c29fd73374c0f5 Author: Konstantin Belousov (Fri 6 Nov 2026 01:38:17 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:04 GMT) libthr: add tests for pthread_rwlock_clock{rd,wr}lock(3) (cherry picked from commit 083b44ddc07c6e07bcf889aa1f38c240d9dc0fc6) M lib/libthr/tests/Makefile A lib/libthr/tests/pthread_rwlock_clocklock_test.c _____________________________________________________________________________________________________________ Commit: e1710df2574107914aa64071b13832d14cbf26a0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e1710df2574107914aa64071b13832d14cbf26a0 Author: Konstantin Belousov (Fri 6 Nov 2026 01:37:09 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:04 GMT) libthr: add tests for pthread_mutex_clocklock(3) (cherry picked from commit 7689242d6bdf7f8633885795e6528f9d8f2f2428) M lib/libthr/tests/Makefile A lib/libthr/tests/pthread_mutex_clocklock_test.c _____________________________________________________________________________________________________________ Commit: 9eafbeea1c3e6a44c8d13b176e26c5e8d024efd0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9eafbeea1c3e6a44c8d13b176e26c5e8d024efd0 Author: Konstantin Belousov (Mon 9 Nov 2026 19:17:20 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:04 GMT) libthr: libpthread/t_mutex.c tests should expect EDEADLK (cherry picked from commit be90f23d4a6c70cd829366612c53755b47c2986d) M contrib/netbsd-tests/lib/libpthread/t_mutex.c _____________________________________________________________________________________________________________ Commit: be04aa4b85f8d6ff289fe3cce682cc6f1ce9a9fe URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=be04aa4b85f8d6ff289fe3cce682cc6f1ce9a9fe Author: Konstantin Belousov (Thu 5 Nov 2026 23:31:57 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:03 GMT) pthread_cond_timedwait.3: split STANDARDS and HISTORY (cherry picked from commit b3a205cd689d5c6c20aad37a1407031363c16020) M share/man/man3/pthread_cond_timedwait.3 _____________________________________________________________________________________________________________ Commit: 829955f12df43b758dc8e6e1d25799d98357cc2b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=829955f12df43b758dc8e6e1d25799d98357cc2b Author: Konstantin Belousov (Thu 5 Nov 2026 22:40:23 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:03 GMT) pthread_rwlock_clock{rd,wr}lock(3): document (cherry picked from commit 522407f54078e986bca5a74c8335881c6a1afe81) M share/man/man3/Makefile M share/man/man3/pthread_rwlock_timedrdlock.3 M share/man/man3/pthread_rwlock_timedwrlock.3 _____________________________________________________________________________________________________________ Commit: d0d8362be2ed97a2536e39ae614e959a54722a26 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d0d8362be2ed97a2536e39ae614e959a54722a26 Author: Konstantin Belousov (Thu 5 Nov 2026 18:32:08 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:03 GMT) pthread_mutex_clocklock.3: document (cherry picked from commit 1c08e2b915bf44dacd5b14ee8d8214ef40946c65) M share/man/man3/Makefile M share/man/man3/pthread_mutex_timedlock.3 _____________________________________________________________________________________________________________ Commit: a96b3d0ec701d0acf4e13d612c13c7ec1e166d96 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a96b3d0ec701d0acf4e13d612c13c7ec1e166d96 Author: Konstantin Belousov (Thu 5 Nov 2026 18:23:28 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:03 GMT) pthread_*_timed*lock.3: switch to .Fo/Fc (cherry picked from commit a9b82d6ba374b022926fcb77a96f8f40df862a3a) M share/man/man3/pthread_mutex_timedlock.3 M share/man/man3/pthread_rwlock_timedrdlock.3 M share/man/man3/pthread_rwlock_timedwrlock.3 _____________________________________________________________________________________________________________ Commit: a2a7a3ac59971749a370adb0c2510bda686afd12 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a2a7a3ac59971749a370adb0c2510bda686afd12 Author: Konstantin Belousov (Thu 5 Nov 2026 21:46:16 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:02 GMT) pthread_cond_timedwait.3: list pthread_cond_clockwait as .Nm (cherry picked from commit 29495576ed399b2fce2c12f62356a29dbaaa86f4) M share/man/man3/pthread_cond_timedwait.3 _____________________________________________________________________________________________________________ Commit: be6740dcad3ca21068b9a185fa94e50e8f331350 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=be6740dcad3ca21068b9a185fa94e50e8f331350 Author: Konstantin Belousov (Thu 5 Nov 2026 17:24:12 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:02 GMT) libthr: add pthread_rwlock_clock{rd,wr}lock(3) (cherry picked from commit 5577567bd0d0c695c25ddb4ea32b8c8231d8b0fe) M include/pthread.h M lib/libthr/pthread.map M lib/libthr/thread/thr_rwlock.c M lib/libthr/thread/thr_umtx.c M lib/libthr/thread/thr_umtx.h _____________________________________________________________________________________________________________ Commit: 4655558c6c2d24ccf656685f4b507c24a97a0736 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4655558c6c2d24ccf656685f4b507c24a97a0736 Author: Konstantin Belousov (Thu 5 Nov 2026 17:23:49 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:02 GMT) libthr: add pthread_mutex_clocklock(3) (cherry picked from commit b7c2db4c772ba3c61f4760eca011332c9c12da1c) M include/pthread.h M lib/libthr/pthread.map M lib/libthr/thread/thr_mutex.c M lib/libthr/thread/thr_umtx.c M lib/libthr/thread/thr_umtx.h _____________________________________________________________________________________________________________ Commit: b4c8ab2b7a84b6705a4f2adaccdbad5f45f1abc3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b4c8ab2b7a84b6705a4f2adaccdbad5f45f1abc3 Author: Konstantin Belousov (Thu 5 Nov 2026 22:01:18 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:01 GMT) pthread_mutex_timedlock(3): return EDEADLK on detected recursion attempt (cherry picked from commit bf2939ea60872d7791987d1727798e90eb904279) M lib/libthr/thread/thr_mutex.c M share/man/man3/pthread_mutex_timedlock.3 _____________________________________________________________________________________________________________ Commit: a9d7bc9a324277ad5f8bfc75c94da572c4702d27 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a9d7bc9a324277ad5f8bfc75c94da572c4702d27 Author: Konstantin Belousov (Fri 6 Nov 2026 00:46:06 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:00 GMT) libthr cond_wait_user(): do not loop forever on clock error (cherry picked from commit e81badcfc010268d4935f4b4d28ebdbc0faebe0f) M lib/libthr/thread/thr_cond.c _____________________________________________________________________________________________________________ Commit: dd6d349ab7fc7285d8879c88e94f0e3607d1b006 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dd6d349ab7fc7285d8879c88e94f0e3607d1b006 Author: Konstantin Belousov (Thu 5 Nov 2026 21:38:37 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:00 GMT) pthread_cond_clockwait(3): explicitly reject unacceptable clockids (cherry picked from commit 8331d5a2fe967016343fb4322f1ed73e55ff9655) M lib/libthr/thread/thr_cond.c _____________________________________________________________________________________________________________ Commit: ba5b331aef2bfc61131de86d21cf040b394ec3ee URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ba5b331aef2bfc61131de86d21cf040b394ec3ee Author: Konstantin Belousov (Thu 5 Nov 2026 20:39:40 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:25:00 GMT) lib/libthr: add helper to check valid clockid to use with _umtx_op(2) (cherry picked from commit 62e53516f73247d2ed80d8dc452f02d9a92575a0) M lib/libthr/thread/thr_private.h _____________________________________________________________________________________________________________ Commit: fb606db836e5ed2d8435fc10c9adcd6ffb197a3d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fb606db836e5ed2d8435fc10c9adcd6ffb197a3d Author: Konstantin Belousov (Fri 6 Nov 2026 00:09:12 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:59 GMT) umtxq_sleep(): do not wait forever for zero absolute timeouts (cherry picked from commit 8c13acc68517f785df4b6c4b016dfd1c6f38c8cf) M sys/kern/kern_umtx.c _____________________________________________________________________________________________________________ Commit: 246fadcb2d974dfe5850932763ab492f3395edc3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=246fadcb2d974dfe5850932763ab492f3395edc3 Author: Konstantin Belousov (Thu 5 Nov 2026 21:28:13 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:59 GMT) _umtx_op.2: correct the description of the valid _clockid for _umtx_time (cherry picked from commit 701ac0b230503db65b53c7ee8a211b146fcc82c9) M lib/libsys/_umtx_op.2 _____________________________________________________________________________________________________________ Commit: 2efa9b03392eb3c5ee41647981d30ed4cfaf0daa URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2efa9b03392eb3c5ee41647981d30ed4cfaf0daa Author: Konstantin Belousov (Thu 5 Nov 2026 20:21:14 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:59 GMT) kern_umtx.c: validate clockid used for _umtx_op(2) timeouts (cherry picked from commit 524f1bf7f9fd8d5d0eee48346d6c1adb0413f95c) M sys/kern/kern_umtx.c M sys/sys/umtxvar.h _____________________________________________________________________________________________________________ Commit: 037821c42bee82008f98dd87348ee0993486c2d9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=037821c42bee82008f98dd87348ee0993486c2d9 Author: ShengYi Hung (Wed 21 Oct 2026 07:14:25 BST) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:58 GMT) libthr: Deduplicate some rwlock code (cherry picked from commit 8e3a6d7f5aaf64c98fcd8896858492dc6b5b7fdb) M lib/libthr/thread/thr_rwlock.c _____________________________________________________________________________________________________________ Commit: c8205c2ea8af659a73af92160e29ebee42b0bd69 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c8205c2ea8af659a73af92160e29ebee42b0bd69 Author: Konstantin Belousov (Mon 9 Nov 2026 16:37:11 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:58 GMT) libthr: explain why pshared lock bumps locklevel (cherry picked from commit eff19ace066f133ed85a0e0c6cae5777d4b7db99) M lib/libthr/thread/thr_pshared.c _____________________________________________________________________________________________________________ Commit: 734d3806b5efcf82eadc4db4124d73d84d428550 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=734d3806b5efcf82eadc4db4124d73d84d428550 Author: Konstantin Belousov (Mon 9 Nov 2026 17:10:45 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:58 GMT) libthr: fix __thr_pshared_offpage() to not use cancellable close() (cherry picked from commit e55d4398708623522ce773e0cd118180e2ee17fe) M lib/libthr/thread/thr_pshared.c _____________________________________________________________________________________________________________ Commit: 78d3259889a737079274c9fe94c5993741ec3b8e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=78d3259889a737079274c9fe94c5993741ec3b8e Author: Konstantin Belousov (Tue 10 Nov 2026 01:03:47 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:57 GMT) vn_open_cred(9): fix ni_startdir leak (cherry picked from commit 7ac5569c5d9e601201c811786e6d0026f8aa3c1b) M sys/kern/vfs_vnops.c _____________________________________________________________________________________________________________ Commit: 896a2b369c2a61f385895ef615b969cfd3cb3651 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=896a2b369c2a61f385895ef615b969cfd3cb3651 Author: Konstantin Belousov (Tue 10 Nov 2026 00:49:33 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:57 GMT) namei(9): fix two ni_startdir leaks (cherry picked from commit 5feb271df85fe6bd968052d5bdd02b6d80335610) M sys/kern/vfs_lookup.c _____________________________________________________________________________________________________________ Commit: 577bf5143b4458963c72db80d66baf6de7489638 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=577bf5143b4458963c72db80d66baf6de7489638 Author: Konstantin Belousov (Sun 8 Nov 2026 04:11:21 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:57 GMT) namei(9): allow NDINIT_ATVP() lookups in capability mode (cherry picked from commit 922eaa623076b4b8878022b3cbad1bef1f023de8) M sys/sys/namei.h _____________________________________________________________________________________________________________ Commit: d6978ed95c6f1a900afa0ee4d53af23d193dad11 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d6978ed95c6f1a900afa0ee4d53af23d193dad11 Author: Konstantin Belousov (Sun 8 Nov 2026 19:20:37 GMT) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:56 GMT) namei(9): fix restart for NDINIT_ATVP (cherry picked from commit 2f3d64f63677a6ed4c7bb6629d92161555948038) M sys/kern/vfs_lookup.c M sys/sys/namei.h _____________________________________________________________________________________________________________ Commit: b040666410106d29ef618dc1b210839b19115ead URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b040666410106d29ef618dc1b210839b19115ead Author: Devin Teske (Sun 18 Oct 2026 16:44:12 BST) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:56 GMT) namei: retry absolute symlink expansions from the native root PR: 297426 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297426 ) (cherry picked from commit 23b326728778fd3a6c37b33686dea98d010eb1cf) M sys/kern/vfs_lookup.c _____________________________________________________________________________________________________________ Commit: 515f5d89aa2c6ce5cd93d4f56621f4ea49072417 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=515f5d89aa2c6ce5cd93d4f56621f4ea49072417 Author: Ricardo Branco (Sun 26 Apr 2026 17:44:39 BST) Committer: Konstantin Belousov (Tue 17 Nov 2026 00:24:56 GMT) namei: Preserve ABI root for absolute symlinks before fallback (cherry picked from commit 459ac3044b516af698d7342431bdbcf784fdf7a4) M sys/kern/vfs_lookup.c _____________________________________________________________________________________________________________ Commit: e02aae338b1bc52426dd055b34979eda7a353d47 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e02aae338b1bc52426dd055b34979eda7a353d47 Author: Kenneth D. Merry (Tue 10 Nov 2026 21:12:21 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:14:21 GMT) nvmecontrol: Range-check the format command's field values The format command accepted any 32-bit value for -m, -p, -l and --ses and passed it into the Format NVM command. Before eae727676169 an out-of-range value spilled into the adjacent cdw10 fields, which usually drew an error from the controller; after it, the value is masked to the field width, so a mistyped value is silently accepted with a different meaning. Most seriously, --ses 8 masked to SES=0 and performed a plain format with no erase at all, exiting 0. A value like --ses 10 masked to a cryptographic erase while bypassing the FNA cryptographic erase capability check, which compares the unmasked value. Reject values outside the ranges nvmecontrol.8 documents, which are the values the spec defines: 0-1 for -m and -l, 0-3 for -p, and 0-2 for --ses. The checks run at option validation time, before the device is opened, and the capability check now only ever sees valid values. While here, document --ses in nvmecontrol.8; it was missing from the format subcommand's option list. Reported by: llm-postcr Reviewed by: imp Fixes: eae727676169 MFC after: 1 week Sponsored by: Spectra Logic Assisted-by: Claude Fable 5 Differential Revision: https://reviews.freebsd.org/D61406 (cherry picked from commit 3d6f886151f9ee6f3bf16ea3367a4b540df3f911) M sbin/nvmecontrol/format.c M sbin/nvmecontrol/nvmecontrol.8 _____________________________________________________________________________________________________________ Commit: 6cb4db4dfa073628865454eb89275cf5d2d26eff URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6cb4db4dfa073628865454eb89275cf5d2d26eff Author: Kenneth D. Merry (Mon 9 Nov 2026 19:35:00 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:13:46 GMT) nvmecontrol: Mask the fields in the Format NVM command The format command composed cdw10 by hand without masking any of the fields and with no support for the LBAFU field. Since commit 2c41f7d8a034 the LBA format index defaulted from FLBAS can exceed 15 on an NVMe 2.0 namespace using FIDXU, and such an index would bleed into the MSET and PI fields. An out of range index supplied with -f for a whole-controller format was not caught either. Build the command with nvme_admin_format_cmd(), which masks all of the fields and encodes LBA format indexes above 15 in LBAFU, and reject LBA format indexes greater than 63 for whole-controller formats. Per-namespace formats already validate the index against NLBAF. This is the same problem that llm-postcr reported in camcontrol's copy of this code, fixed in 3892a6453fc6; the unmasked composition originated here (635c517ae9ca). Reported by: llm-postcr Reviewed by: imp Fixes: 2c41f7d8a034 MFC after: 1 week Sponsored by: Spectra Logic Assisted-by: Claude Fable 5 Differential Revision: https://reviews.freebsd.org/D61356 (cherry picked from commit eae727676169de58052fd512ebb0ee565ad6e246) M sbin/nvmecontrol/format.c _____________________________________________________________________________________________________________ Commit: 88b41e5eb42926013d374e4b9736f69cf3eed9f2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=88b41e5eb42926013d374e4b9736f69cf3eed9f2 Author: Kenneth D. Merry (Mon 9 Nov 2026 18:47:01 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:49 GMT) camcontrol: Don't close the CAM device in nvme_get_data() nvme_get_data() closed the supplied CAM device on every error path, but its callers either pass the device that main() opened and closes, or close the device themselves, so an error resulted in a double cam_close_device() and a double free. Move the error path close into print_dev_nvme(), the one caller that opens its own device, and leave the device alone in nvme_get_data(). This predates the recent camcontrol NVMe additions, but they added more callers. Reported by: llm-postcr Fixes: 6ee13c54dad0 MFC after: 1 week Sponsored by: Spectra Logic Co-authored-by: Claude Fable 5 (cherry picked from commit f7c24ef1e9a47b889eaaae8514c61e95d9738cf8) M sbin/camcontrol/camcontrol.c _____________________________________________________________________________________________________________ Commit: 9fa9eea4896d55b88e48cddac110c2ca2a274b10 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9fa9eea4896d55b88e48cddac110c2ca2a274b10 Author: Kenneth D. Merry (Mon 9 Nov 2026 18:47:01 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:47 GMT) camcontrol: Fix extended host identifier retrieval The Get Features command for the host identifier always requested the 64-bit form (cdw11 EXHID=0), but the decoding logic sized the identifier from the controller's CTRATT extended host identifier capability bit, or always treated it as 128 bits when -U was given. On a controller supporting the extended host identifier, the printed value did not match what was requested from the controller. Fetch the controller data before issuing the command, request the extended form when the controller supports it, and decode the form that was requested. Reject -U when the controller only supports 64-bit host identifiers, since an 8 byte value cannot be shown as a UUID. sys/cam/nvme/nvme_all.c, sys/cam/nvme/nvme_all.h: Add an exhid argument to nvme_get_feature_hostid(), matching nvme_set_feature_hostid(), and set the EXHID bit in cdw11 from it. sbin/camcontrol/nvfeature.c: Fetch the controller data and determine the host identifier size before issuing the Get Features command, request only as many bytes as the identifier holds, and decode the identifier in the form it was requested. Reject -U on controllers without extended host identifier support. Reported by: llm-postcr Fixes: 9814633f631b Fixes: 6eae951cd51b MFC after: 1 week Sponsored by: Spectra Logic Co-authored-by: Claude Fable 5 (cherry picked from commit 2dd34affca4d1041b8f6f58bb24c45f29b720430) M sbin/camcontrol/nvfeature.c M sys/cam/nvme/nvme_all.c M sys/cam/nvme/nvme_all.h _____________________________________________________________________________________________________________ Commit: 8d14946edd56ac57e6a2f0e82848dfef7d8d88ca URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8d14946edd56ac57e6a2f0e82848dfef7d8d88ca Author: Kenneth D. Merry (Mon 9 Nov 2026 18:47:00 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:44 GMT) camcontrol: Require a reservation type for reserve, preempt and release res_type was initialized to 0, but the checks that enforce the -T argument for the reserve, preempt and release reservation actions compare it against -1, so they could never fire and camcontrol silently sent a reservation type of 0, which is invalid. Initialize res_type to -1 so the checks work, and default the reservation type to 0 for the release action's clear variant, which does not take -T and ignores the field. Reported by: llm-postcr Fixes: ba75cf05727e MFC after: 1 week Sponsored by: Spectra Logic Co-authored-by: Claude Fable 5 (cherry picked from commit b95e2b2ce907cde89bc3e7be2ffeae03cfed55ab) M sbin/camcontrol/nvres.c _____________________________________________________________________________________________________________ Commit: bc7453beb4f51a312241ec286b09b7122d49f461 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bc7453beb4f51a312241ec286b09b7122d49f461 Author: Kenneth D. Merry (Mon 9 Nov 2026 18:46:59 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:42 GMT) camcontrol: Fix swapped protection information defaults in nvformat When no -p or -l arguments are given, the nvformat subcommand fills in the protection information type and location from the namespace's current settings. The two were swapped: pi was taken from the DPS metadata location bit and pil from the protection information type field. Formatting a namespace with protection information enabled would therefore silently change its PI settings, and before the Format NVM command builder masked its fields, a namespace with PI type 2 enabled would set bit 9 of cdw10, turning the format into a user data erase. Reported by: llm-postcr Fixes: 80f090111ae4 MFC after: 1 week Sponsored by: Spectra Logic Co-authored-by: Claude Fable 5 (cherry picked from commit ef69484b4295e84c74877b439db5caf025906b0c) M sbin/camcontrol/nvformat.c _____________________________________________________________________________________________________________ Commit: 97a9a62d0ffeed4c2d0a22ef649daed2b9b8b154 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=97a9a62d0ffeed4c2d0a22ef649daed2b9b8b154 Author: Kenneth D. Merry (Mon 9 Nov 2026 18:46:59 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:40 GMT) nvme: Restore the host memory buffer size calculation When the nvme_ctrlr_cmd_set_feature() call in nvme_ctrlr_hmb_enable() was rewritten for the widened Set Features API, the HSIZE calculation reverted to dividing by a hard coded 4096 instead of the controller page size, undoing commit 3740a8db13ba. The Host Memory Buffer Size field is in units of the current memory page size (CC.MPS), so the wrong size would be programmed on controllers configured with a page size other than 4KB. Reported by: llm-postcr Fixes: 7a9e4375316b MFC after: 1 week Sponsored by: Spectra Logic Co-authored-by: Claude Fable 5 (cherry picked from commit f262bdcf24f1f946edcd01f5eb5dfa2910da9e7b) M sys/dev/nvme/nvme_ctrlr.c _____________________________________________________________________________________________________________ Commit: 78470b4a806859868aa5a6667464b3abe4ae0069 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=78470b4a806859868aa5a6667464b3abe4ae0069 Author: Kenneth D. Merry (Mon 9 Nov 2026 18:46:58 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:38 GMT) nvme: Fix the data length in the Reservation Report command builder nvme_ns_resv_report_cmd() put its length argument, which callers supply in bytes, directly into cdw10. The NUMD field is a 0's based count of dwords, so the command asked the controller to transfer nearly four times the size of the supplied data buffer. In practice controllers limit the transfer to the length described by the PRP entries, which is why this worked in testing, but the command was incorrect. Convert the byte count to a 0's based dword count in the builder. Reported by: llm-postcr Fixes: 7a9e4375316b MFC after: 1 week Sponsored by: Spectra Logic Co-authored-by: Claude Fable 5 (cherry picked from commit 86b9d629c68f6dc63543b9c0a6da6c96c857f3bc) M sys/dev/nvme/nvme.h _____________________________________________________________________________________________________________ Commit: f03c774fb5c4dcf44590f0df4e7eeb0f0876e56e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f03c774fb5c4dcf44590f0df4e7eeb0f0876e56e Author: Kenneth D. Merry (Mon 9 Nov 2026 18:46:57 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:35 GMT) nvme: Mask the fields in the Format NVM command builder nvme_admin_format_cmd() did not mask any of the fields it composes into cdw10, so an out of range value in one field would corrupt neighboring fields. In particular, an LBA format index greater than 15 would bleed into the metadata settings and protection information fields. It also had no support for LBA format indexes above 15, which NVMe 2.0 encodes via the separate LBAFU field. Mask all of the fields, and encode bits 5:4 of the LBA format index in the LBAFU field (cdw10 bits 13:12). Also reject out of range LBA format indexes in camcontrol's nvformat global (-G) mode, which has no namespace data to validate against. The per-namespace mode already validates the index against NLBAF. sys/dev/nvme/nvme.h: Mask the SES, PIL, PI, MSET and LBAF fields in nvme_admin_format_cmd() and encode the upper two bits of the LBA format index in LBAFU. sbin/camcontrol/nvformat.c: Reject LBA format indexes greater than 63 in -G mode. Reported by: llm-postcr Fixes: 7a9e4375316b Fixes: 80f090111ae4 MFC after: 1 week Sponsored by: Spectra Logic Co-authored-by: Claude Fable 5 (cherry picked from commit 3892a6453fc60e00b0d6cd5c5d7e2606b4b51e7c) M sbin/camcontrol/nvformat.c M sys/dev/nvme/nvme.h _____________________________________________________________________________________________________________ Commit: ffc15b5c86fce773b484d016be493e6f495081c6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ffc15b5c86fce773b484d016be493e6f495081c6 Author: Kenneth D. Merry (Mon 9 Nov 2026 18:46:57 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:33 GMT) nvme: Byte-swap the nsid in the Get/Set Features command builders nvme_admin_get_feature_cmd() and nvme_admin_set_feature_cmd() stored the namespace ID in the command without converting it to little endian, unlike the other command building functions. Any caller passing a non-zero namespace ID would send the wrong namespace ID on big endian machines. Reported by: llm-postcr Fixes: 7a9e4375316b MFC after: 1 week Sponsored by: Spectra Logic Co-authored-by: Claude Fable 5 (cherry picked from commit 3a6dbe77c39d3a88b6092cfcaa820fc727d1e61d) M sys/dev/nvme/nvme.h _____________________________________________________________________________________________________________ Commit: 263ce2f425e8a2cd0be49a7a7fefe407e9c6af35 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=263ce2f425e8a2cd0be49a7a7fefe407e9c6af35 Author: Kenneth D. Merry (Sat 7 Nov 2026 03:33:21 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:31 GMT) camcontrol: Fix -Wcast-align errors in the NVMe reservation report Casting the byte buffer that holds the Reservation Report payload to the status structures trips -Wcast-align on strict-alignment architectures, which broke the CI builds there. Put the buffer in a union with the two status structures instead, so it is properly aligned and no casts are needed. Reported by: FreeBSD CI Fixes: ba75cf05727e ("camcontrol: Support NVMe reservations via the persist subcommand") Co-authored-by: Claude Fable 5 MFC after: 1 week Sponsored by: Spectra Logic (cherry picked from commit 68ba58a064d1004a031fac6f299f968dfc39241f) M sbin/camcontrol/nvres.c _____________________________________________________________________________________________________________ Commit: 92f3272677f383b19e823c56d2a753cff5f16674 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=92f3272677f383b19e823c56d2a753cff5f16674 Author: Kenneth D. Merry (Sat 7 Nov 2026 01:05:56 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:28 GMT) camcontrol: Add a feature subcommand for NVMe Get/Set Features Add a feature subcommand for the NVMe Get Features and Set Features commands: camcontrol feature ndaX -a -f feature [-d data] [-s num] [-U] There is no transport-specific prefix in the name: SCSI has no feature command (the closest equivalents are mode pages), and the ATA SET FEATURES subcommands are already exposed through dedicated camcontrol subcommands (apm, aam, epc and the power commands), so the name is unclaimed. The subcommand returns an error for non-NVMe devices. Currently, only the hostid feature is fully implemented. The hostid value for set is specified with -d as a UUID or an integer in decimal, hex, or octal, and -U outputs the hostid as a UUID on get. The -s argument exposes the feature select / save fields from the NVMe specification. If bit 4 of the Optional NVM Command Support (ONCS) field of the Identify Controller data is set, each feature has a default, saved and current value, plus a capabilities mask: - For get, -s selects which to display: 0 (current), 1 (default), 2 (saved) or 3 (capabilities). - For set, -s is the save flag; a value of 1 sets the saved value as well as the current value, so the feature persists across an NVMe reset. Setting the save flag only works if the feature's capability mask includes saveable. sbin/camcontrol/nvfeature.c: New file, the camcontrol(8) feature subcommand for getting and setting NVMe features. sbin/camcontrol/camcontrol.c: Add the feature subcommand, dispatched only to NVMe devices. sbin/camcontrol/camcontrol.h: Add the nvmefeature() prototype. sbin/camcontrol/Makefile: Add nvfeature.c to the build. sbin/camcontrol/camcontrol.8: Document the feature subcommand. Co-authored-by: Reid Linnemann Co-authored-by: Dave Baukus Co-authored-by: Claude Fable 5 Reviewed by: imp MFC after: 1 week Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D59536 (cherry picked from commit 6eae951cd51b5b8603c119f21c77871a8595ff88) M sbin/camcontrol/Makefile M sbin/camcontrol/camcontrol.8 M sbin/camcontrol/camcontrol.c M sbin/camcontrol/camcontrol.h A sbin/camcontrol/nvfeature.c _____________________________________________________________________________________________________________ Commit: 11680cb895c3cd91a03be74eb49d14a26d21ae75 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=11680cb895c3cd91a03be74eb49d14a26d21ae75 Author: Kenneth D. Merry (Sat 7 Nov 2026 01:05:56 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:26 GMT) camcontrol: Support NVMe namespace formatting via the format subcommand Support formatting NVMe namespaces through the existing format subcommand. The format subcommand now dispatches on the device protocol, in the same way the identify and persist subcommands do, and issues the NVMe FORMAT NVM command for NVMe devices. The SCSI syntax and behavior are unchanged. The NVMe-specific options are -e (secure erase setting), -G (format all namespaces), -f (LBA format), -l (protection information location), -m (metadata setting) and -p (protection information type). The -q and -y options work for both protocols; NVMe formats gain the same confirmation question that SCSI formats have always had. The -r and -w options are SCSI only; -r returns an error for NVMe devices and -w has no effect, since the NVMe format command does not complete until the format is finished. The default timeout for NVMe is 30 seconds for a cryptographic erase and 30 minutes otherwise; the generic -t option overrides it. sbin/camcontrol/nvformat.c: New file, the NVMe format backend for the format subcommand. sbin/camcontrol/camcontrol.c: Dispatch the format subcommand to scsiformat() or nvmeformat() based on the device protocol. sbin/camcontrol/camcontrol.h: Add the nvmeformat() prototype. sbin/camcontrol/Makefile: Add nvformat.c to the build. sbin/camcontrol/camcontrol.8: Document NVMe support in the format subcommand section, and note the differences from SCSI where they occur. Co-authored-by: Claude Fable 5 Reviewed by: imp MFC after: 1 week Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D59535 (cherry picked from commit 80f090111ae46ae8b4e115c9d80d783d0d00d445) M sbin/camcontrol/Makefile M sbin/camcontrol/camcontrol.8 M sbin/camcontrol/camcontrol.c M sbin/camcontrol/camcontrol.h A sbin/camcontrol/nvformat.c _____________________________________________________________________________________________________________ Commit: 89c1a891dbb2fb62a06b0083c0378641194f57f7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=89c1a891dbb2fb62a06b0083c0378641194f57f7 Author: Kenneth D. Merry (Sat 7 Nov 2026 01:05:55 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:24 GMT) camcontrol: Support NVMe reservations via the persist subcommand The NVMe reservation model is closely patterned after SCSI Persistent Reservations, so support NVMe devices through the existing persist subcommand rather than adding a transport-specific subcommand. The persist subcommand now dispatches on the device protocol, in the same way the identify subcommand does. The SCSI syntax is unchanged. For NVMe devices, the -i modes all map to the Reservation Report command (read_full_status requests the extended data structure, which contains 128-bit Host Identifiers), and the -o service actions map to the corresponding NVMe reservation operations: register, register_ignore, reserve, preempt, preempt_abort, release and clear, plus two NVMe-only actions, unregister and replace. The reservation type names for -T are shared between SCSI and NVMe. A new -c option gives explicit control over the NVMe Persist Through Power Loss State; -p is equivalent to -c enable. SCSI-only options return an error for NVMe devices. Tested against a PASCARI X200 series SSD (reservation capabilities: WR_EX, PTPL, IEKEY13): register, reserve, release, replace, unregister, -c enable/disable (Persist Through Power Loss State change verified in the report output), reservation report, and the error paths. register_ignore is rejected by drives that implement NVMe 1.3 IEKEY semantics, as expected. SCSI persist against a da(4) device is unchanged. sbin/camcontrol/nvres.c: New file, the NVMe reservation backend for the persist subcommand. sbin/camcontrol/camcontrol.c: Dispatch the persist subcommand to scsipersist() or nvmepersist() based on the device protocol. sbin/camcontrol/camcontrol.h: Add the nvmepersist() prototype. sbin/camcontrol/Makefile: Add nvres.c to the build. sbin/camcontrol/camcontrol.8: Document NVMe support in the persist subcommand section, and note the differences from SCSI where they occur. Co-authored-by: Reid Linnemann Co-authored-by: Claude Fable 5 Reviewed by: imp MFC after: 1 week Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D59534 (cherry picked from commit ba75cf05727e7f3130e6e6884f4dc7085b7aec3a) M sbin/camcontrol/Makefile M sbin/camcontrol/camcontrol.8 M sbin/camcontrol/camcontrol.c M sbin/camcontrol/camcontrol.h A sbin/camcontrol/nvres.c _____________________________________________________________________________________________________________ Commit: b67a5156bae9b0b857b2c10bd4a2e3f7a71e4054 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b67a5156bae9b0b857b2c10bd4a2e3f7a71e4054 Author: Kenneth D. Merry (Sat 7 Nov 2026 01:05:55 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:21 GMT) camcontrol: Add support for NVMe namespace Identify Add a -N argument to camcontrol identify. This will fetch and display namespace Identify data for NVMe drives, using nvme_print_namespace() from nvmecontrol(8). This gets the namespace Identify data via XPT_DEV_ADVINFO (i.e. data cached in the kernel) like the standard NVMe identify command does, and so works even on NVMe devices that do not support NVMe Namespace Management. sbin/camcontrol/camcontrol.c: Add a -N argument to camcontrol identify. Rename nvme_get_cdata() to nvme_get_data(), and give it the ability to fetch controller or namespace Identify data. While here, improve its error reporting with cam_error_print(), and only look at the CAM status bits of the returned CCB. Change identify(), ataidentify(), and nvmeidentify() to handle the extra arguments. Give nvmeidentify() the ability to fetch and print NVMe namespace data, using nvme_print_namespace() from nvmecontrol(8). sbin/camcontrol/camcontrol.h: Add the nvme_get_data() prototype, for use by future NVMe subcommands living outside camcontrol.c. sbin/camcontrol/camcontrol.8: Document camcontrol identify -N. Make it clear that the NVMe data is from data cached in the kernel. Add a cross reference to nvmecontrol(8). Co-authored-by: Claude Fable 5 Reviewed by: imp MFC after: 1 week Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D59533 (cherry picked from commit 961fa195b3486a0c3a02a8cf7aa95ccbc91c95de) M sbin/camcontrol/camcontrol.8 M sbin/camcontrol/camcontrol.c M sbin/camcontrol/camcontrol.h _____________________________________________________________________________________________________________ Commit: cc104ce569dfaee0facc00ff028373727c8c1ee8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cc104ce569dfaee0facc00ff028373727c8c1ee8 Author: Kenneth D. Merry (Sat 7 Nov 2026 01:05:54 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:19 GMT) cam: Add NVMe reservation, format and features CCB building functions Add NVMe CCB (union ccb / struct ccb_nvmeio) building functions for the four NVMe reservation opcodes, Format NVM, and Get Features / Set Features. These use the nvme_command building blocks added to sys/dev/nvme/nvme.h, and are used by the new camcontrol(8) nvres, nvformat and nvfeature subcommands that will be added separately. sys/cam/nvme/nvme_all.c: Add NVMe CCB building functions for the four NVMe reservation opcodes: nvme_resv_report(), nvme_resv_register(), nvme_resv_acquire() and nvme_resv_release(). Data direction is set internally (CAM_DIR_IN or CAM_DIR_OUT as appropriate), so no flags parameter is needed. Add a new nvme_format() CCB building function. Add nvme_get_feature() and nvme_set_feature() CCB building functions, along with nvme_get_feature_hostid() and nvme_set_feature_hostid() convenience wrappers for the hostid feature. nvme_set_feature_hostid() takes an sv argument so the caller can request that the hostid persist across reset. sys/cam/nvme/nvme_all.h: Add prototypes for the above. Wrap the declarations in __BEGIN_DECLS / __END_DECLS so C++ compilers don't mangle the names of the C symbols. Co-authored-by: Reid Linnemann Co-authored-by: Dave Baukus Co-authored-by: Claude Fable 5 Reviewed by: imp MFC after: 1 week Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D59532 (cherry picked from commit 9814633f631b41b8026a826b7731ec04c3d7d678) M sys/cam/nvme/nvme_all.c M sys/cam/nvme/nvme_all.h _____________________________________________________________________________________________________________ Commit: 49929370ee9eace90f890e0e135e0d51aba6a282 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=49929370ee9eace90f890e0e135e0d51aba6a282 Author: Kenneth D. Merry (Sat 7 Nov 2026 01:05:54 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:12:17 GMT) nvme: Add reservation, format and features command building support Add command (struct nvme_command) building functions for the four NVMe reservation opcodes (Report, Register, Acquire and Release), Format NVM, and Get Features / Set Features, along with the enumerations and data structures that go with them. These are shared between the kernel and userland, and are the underpinnings for new camcontrol(8) subcommands (nvres, nvformat, nvfeature) that will be added separately. The reservation type names are intentionally similar to the SCSI names for the same reservation types. sys/dev/nvme/nvme.h: Add NVMe command building functions for the four NVMe reservation opcodes: nvme_ns_resv_report_cmd(), nvme_ns_resv_register_cmd(), nvme_ns_resv_acquire_cmd() and nvme_ns_resv_release_cmd(). Add enumerated types for the various NVMe reservation subcommand actions (acquire, register, release), reservation types, and Change Persist Through Power Loss State values. Add struct nvme_resv_acq_data and struct nvme_resv_reg_data, the data payloads for reservation Acquire and Register. Add a new NVMe Format NVM command building function, nvme_admin_format_cmd(), and an enumeration for the Secure Erase Setting parameter for format. Add nvme_admin_get_feature_cmd() and nvme_admin_set_feature_cmd() functions to fill a struct nvme_command for Get Features / Set Features. Add macros for bitfields in the ctratt and mic dwords of the NVMe Identify Controller data structure. Add a prototype for nvme_hostid_sbuf(). Stop byte swapping the hostid fields in nvme_resv_status_swapbytes() and nvme_resv_status_ext_swapbytes(), and document the fields as little endian. The hostid is an opaque 8 or 16 byte value; keep it in the byte order the device returns it in instead of interpreting it at this level. Widen the nvme_ctrlr_cmd_get_feature() and nvme_ctrlr_cmd_set_feature() prototypes as described below. While here, fix the entry count clamp in the reservation status swapbytes functions to use sizeof(*s) rather than sizeof(s); using the pointer size made the clamp one entry too permissive. sys/dev/nvme/nvme_util.c: Add nvme_hostid_sbuf(), which formats an 8 or 16 byte hostid (from the Get Features hostid feature, in the little-endian byte order the device returns it in) into an sbuf as an integer value in base 16, most significant byte first. sbin/nvmecontrol/resv.c: Decode the now little-endian hostid fields explicitly when printing, and zero pad the printed 64-bit values. Previously the extended hostid printed in a different byte order on big and little endian machines, and without zero padding between the two halves. sys/dev/nvme/nvme_ctrlr_cmd.c: Refactor nvme_ctrlr_cmd_get_feature() and nvme_ctrlr_cmd_set_feature() to use the new command building functions from nvme.h and accept a namespace ID parameter. Refactor nvme_ctrlr_cmd_set_feature() to also accept the sv (save) parameter to persist a feature value across reset. sys/dev/nvme/nvme_ctrlr.c: Update the temperature threshold, autonomous power state transition and host memory buffer callers for the new nvme_ctrlr_cmd_get_feature() and nvme_ctrlr_cmd_set_feature() arguments. Co-authored-by: Reid Linnemann Co-authored-by: Dave Baukus Co-authored-by: Claude Fable 5 Reviewed by: imp MFC after: 1 week Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D59531 (cherry picked from commit 7a9e4375316b82ca3426820e24ee69101562611a) M sbin/nvmecontrol/resv.c M sys/dev/nvme/nvme.h M sys/dev/nvme/nvme_ctrlr.c M sys/dev/nvme/nvme_ctrlr_cmd.c M sys/dev/nvme/nvme_util.c _____________________________________________________________________________________________________________ Commit: cd8549a4fca144b209b504b7dc4e3c7fd0b67296 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cd8549a4fca144b209b504b7dc4e3c7fd0b67296 Author: Kenneth D. Merry (Sat 7 Nov 2026 01:05:53 GMT) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:08:37 GMT) nvmecontrol: Factor out namespace Identify printing Move print_namespace() from identify.c to identify_ext.c and rename it to nvme_print_namespace(), to match nvme_print_controller(). This allows other consumers (notably camcontrol(8)) to print NVMe namespace Identify data. No functional changes intended. sbin/nvmecontrol/identify.c: Remove print_namespace(), and call nvme_print_namespace() instead. sbin/nvmecontrol/identify_ext.c: Add nvme_print_namespace(), moved here from identify.c. sbin/nvmecontrol/nvmecontrol.h: Remove the print_namespace() prototype. sbin/nvmecontrol/nvmecontrol_ext.h: Add the nvme_print_namespace() prototype. sbin/nvmecontrol/ns.c: Include nvmecontrol_ext.h, and rename print_namespace() calls to nvme_print_namespace(). Co-authored-by: Claude Fable 5 Reviewed by: imp MFC after: 1 week Sponsored by: Spectra Logic Differential Revision: https://reviews.freebsd.org/D59530 (cherry picked from commit 46198fba6dff5a01e9c0119b5b7cc85e24a06ec6) M sbin/nvmecontrol/identify.c M sbin/nvmecontrol/identify_ext.c M sbin/nvmecontrol/ns.c M sbin/nvmecontrol/nvmecontrol.h M sbin/nvmecontrol/nvmecontrol_ext.h _____________________________________________________________________________________________________________ Commit: b5f1ceff6b81c6b560069c097520662b15a7a4fe URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b5f1ceff6b81c6b560069c097520662b15a7a4fe Author: Abdelkader Boudih (Thu 24 Sep 2026 15:19:51 BST) Committer: Kenneth D. Merry (Mon 16 Nov 2026 16:08:34 GMT) nvme: honor FLBAS Format Index Upper when selecting the LBA format Added nvme_ns_data_format_index() in the nvme, nda, and nvmf host paths as well as nvmecontrol and camdd. Reviewed by: imp, adrian Differential Revision: https://reviews.freebsd.org/D59627 (cherry picked from commit 2c41f7d8a034ee64a0aaa69a1aa5cb07748a1a32) M sbin/nvmecontrol/devlist.c M sbin/nvmecontrol/format.c M sbin/nvmecontrol/identify.c M sys/cam/nvme/nvme_da.c M sys/dev/nvme/nvme.h M sys/dev/nvme/nvme_ns.c M sys/dev/nvmf/host/nvmf_ns.c M usr.sbin/camdd/camdd.c _____________________________________________________________________________________________________________ Commit: 0d8a925984d70b8a3e2e1f8cd722afee2f967fe1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0d8a925984d70b8a3e2e1f8cd722afee2f967fe1 Author: Osvaldo Janeri Filho (Thu 12 Nov 2026 14:23:56 GMT) Committer: Dag-Erling Smørgrav (Mon 16 Nov 2026 14:52:03 GMT) su, login: fix heap over-read in environment export filter ok_to_export() (su.c) and export() (login.c) read s[n] before strncmp(s, *pp, n) confirms s is at least n bytes long, where n is the length of the blocked variable name. A PAM environment entry shorter than that name over-reads past its heap allocation. Check strncmp() first; it stops at s's NUL terminator and never reads past the boundary that guarded the s[n] access. MFC after: 1 week Sponsored by: Advanced Micro Devices, Inc. Signed-off-by: Osvaldo Janeri Filho Reviewed by: des, markj Differential Revision: https://reviews.freebsd.org/D61420 (cherry picked from commit e1b5e1f9ddac43ed669a44cfdbba1b394d144c6b) M usr.bin/login/login.c M usr.bin/su/su.c _____________________________________________________________________________________________________________ Commit: 9a44e1769b909328fb064bc16a70e1746f26fac2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9a44e1769b909328fb064bc16a70e1746f26fac2 Author: Dag-Erling Smørgrav (Wed 11 Nov 2026 19:45:24 GMT) Committer: Dag-Erling Smørgrav (Mon 16 Nov 2026 14:52:03 GMT) tftpd: Keep proper track of option length When parsing options, keep track of the length of the unparsed portion and pass that to get_field() instead of the length of the entire header. While here, switch both make_options() and parse_options() to using size_t for sizes and lengths. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D61048 (cherry picked from commit 35cd70490f4b7ec1921db980ae3992192e4cbfbb) M libexec/tftpd/tftp-options.c M libexec/tftpd/tftp-options.h _____________________________________________________________________________________________________________ Commit: 7e3a60f2d4698084f519c9141e0ba2cf53ab3009 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7e3a60f2d4698084f519c9141e0ba2cf53ab3009 Author: Dag-Erling Smørgrav (Wed 11 Nov 2026 19:45:18 GMT) Committer: Dag-Erling Smørgrav (Mon 16 Nov 2026 14:52:03 GMT) tftpd: Keep proper track of header length When parsing a header, keep track of the length of the unparsed portion and pass that to get_field() instead of the length of the entire header. Reported by: n0ps1ed MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60902 (cherry picked from commit 579e428a551a11b43e341297dd0ef9d38c4fcda7) M libexec/tftpd/tftpd.c _____________________________________________________________________________________________________________ Commit: e30c4d435d98413a6d0296295c0b81016afdb8ee URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e30c4d435d98413a6d0296295c0b81016afdb8ee Author: Dag-Erling Smørgrav (Wed 11 Nov 2026 19:45:14 GMT) Committer: Dag-Erling Smørgrav (Mon 16 Nov 2026 14:52:03 GMT) tftpd: Fix off-by-one in get_field() Due to a logic error, get_field() would behave as if the passed-in size was one greater than it actually is. Fix it so it always fails if no terminating NUL is found within the buffer, instead of succeeding if the first byte past the end is a NUL. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D61032 (cherry picked from commit 14541ca2bf3766e659a22c5ea9ed3dc2d5f11fa5) M libexec/tftpd/tftp-utils.c _____________________________________________________________________________________________________________ Commit: 37d71d6f1c6a329753dbf705c36e7da01c9ab004 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=37d71d6f1c6a329753dbf705c36e7da01c9ab004 Author: Alex Richardson (Tue 26 May 2026 20:37:06 BST) Committer: Brooks Davis (Mon 16 Nov 2026 13:19:13 GMT) bsd.sys.mk: suppress some clang warnings for C++ for >= 19 I just tried building with system clang on one of my Linux systems which happens to be version 19, and these warning suppressions are needed for that version too: same errors as in the original commit. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D56874 (cherry picked from commit 004b5935a6e643033526cab623c6005b69ab11aa) M share/mk/bsd.sys.mk _____________________________________________________________________________________________________________ Commit: 755ab538389a59070eb771951fba9dfa3ab443a3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=755ab538389a59070eb771951fba9dfa3ab443a3 Author: Richard Scheffenegger (Fri 6 Nov 2026 20:42:20 GMT) Committer: Richard Scheffenegger (Mon 16 Nov 2026 12:50:44 GMT) irdma: improve TCP header validation iWARP handling code deals with TCP header processing outside of the normal TCP stack. Add validation checks to verify the internal integrity of the TCP headers. Reviewed By: tuexen, O11 Intel Networking group, #transport, bartosz.sobczak_intel.com Sponsored by: NetApp, Inc. MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D58323 (cherry picked from commit e0c6b88706a9fff9e4090803ba2338dd0ce97eba) M sys/dev/irdma/irdma_cm.c M sys/dev/irdma/irdma_utils.c _____________________________________________________________________________________________________________ Commit: f5797fcb0d8d8b2a63a49c3fe27eb9d7c7c417a8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f5797fcb0d8d8b2a63a49c3fe27eb9d7c7c417a8 Author: Richard Scheffenegger (Sun 8 Nov 2026 15:36:13 GMT) Committer: Richard Scheffenegger (Mon 16 Nov 2026 12:40:13 GMT) tcp: address PR295870 Fix accounting in the sequence space for a FIN bit potentially piggy bagged during SACK loss recovery triggered transmissions. Reviewed By: #transport, tuexen Sponsored by: NetApp, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D61312 (cherry picked from commit 0aa6428f463699c5f5e03715ea4ebe2309a23a2d) M sys/netinet/tcp_output.c _____________________________________________________________________________________________________________ Commit: ed8dc5e715fff0a0c9f60416362924315bb49381 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ed8dc5e715fff0a0c9f60416362924315bb49381 Author: Brooks Davis (Fri 13 Nov 2026 10:24:17 GMT) Committer: Brooks Davis (Mon 16 Nov 2026 10:45:16 GMT) modstat: check errno before calling feature_present feature_present will overwrite errno if COMPAT_FREEBSD13 is not present. Reported by: llm-postcr Fixes: ef726c645300 ("modstat: allow compat support to fail in tests") (cherry picked from commit acd270c8c6542b45e404078b28e1a732106aa76c) M tests/sys/kern/module_test.c _____________________________________________________________________________________________________________ Commit: 4a9770b9256c7119da287b15a6e7900298e6d514 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4a9770b9256c7119da287b15a6e7900298e6d514 Author: Brooks Davis (Fri 13 Nov 2026 10:06:52 GMT) Committer: Brooks Davis (Mon 16 Nov 2026 10:45:16 GMT) modstat: allow compat support to fail in tests v1 and v2 versions of stuct module_stat are now gated by COMPAT_ ifdefs so allow the otherwise valid query to fail with EINVAL. Effort: CHERI upstreaming Reviewed by: markj Reported by: llm-postcr Sponsored by: Innovate UK Fixes: 1ebf46ecb627 ("modstat: don't copyout while holding a lock") Differential Revision: https://reviews.freebsd.org/D61460 (cherry picked from commit ef726c645300870b6bdf3573079b1f89f3b45c74) M tests/sys/kern/module_test.c _____________________________________________________________________________________________________________ Commit: 044b90b0f78f1588668a27f6a83470b4e0787ad0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=044b90b0f78f1588668a27f6a83470b4e0787ad0 Author: Brooks Davis (Thu 12 Nov 2026 10:23:24 GMT) Committer: Brooks Davis (Mon 16 Nov 2026 10:45:16 GMT) modstat: don't copyout while holding a lock If a user arranges for a page fault to never be filled (e.g., via a FUSE file system), this can hold the shared lock forever. To make this all work, refactor kern_modstat and freebsd32_modstat to malloc a temporary buffer and fill it before copying it out rather than doing a bunch of copies. Add COMPAT_* ifdefs around compat code. The module_stat_v1 code is really for a.out binaries in practice and thus a bit questionable. Reviewed by: markj Reported by: llm-postcr Sponsored by: Innovate UK Fixes: 7f8c2056db1e ("modstat: avoid copying from freed memory") Differential Revision: https://reviews.freebsd.org/D61432 (cherry picked from commit 1ebf46ecb6278e31d7ae029b0f8af3d64e7bc1f9) M sys/kern/kern_module.c _____________________________________________________________________________________________________________ Commit: 80fed5b6b5bdf712603b90a236796e35ed7e604c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=80fed5b6b5bdf712603b90a236796e35ed7e604c Author: Brooks Davis (Wed 11 Nov 2026 09:40:40 GMT) Committer: Brooks Davis (Mon 16 Nov 2026 10:45:15 GMT) modstat: avoid copying from freed memory If a module is unloaded after the module is looked up in kern_modstat, but before one of the copyout's occurs, then the memory being copied might be freed and reused leading to an information disclosure. The LLM was particularly concerned about a TOCTOU issue in the length of the name, but it seems likely that there are issues with all the copyout's. As such, hold the shared lock throughout. Reviewed by: markj Reported by: llm-postcr MFC after: 3 days Sponsored by: Innovate UK Fixes: 9b3851e9e3b1 ("- Lock down the ``module'' structure...") Differential Revision: https://reviews.freebsd.org/D61398 (cherry picked from commit 7f8c2056db1e39e44c3eda15aa4e53f7fc971cd8) M sys/kern/kern_module.c _____________________________________________________________________________________________________________ Commit: 5c7d799c53ccb2f0a886566750f8226ea0c7f02f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5c7d799c53ccb2f0a886566750f8226ea0c7f02f Author: Brooks Davis (Tue 10 Nov 2026 11:49:20 GMT) Committer: Brooks Davis (Mon 16 Nov 2026 10:45:15 GMT) kern_module.c: add kern_ implementations In the case of modstat(2) use a cast to access the name member of the old struct version so the compiler see the right array size. This addresses a sub-object bounds bug. Effort: CHERI upstreaming Sponsored by: DARPA, AFRL, Innovate UK Pull Request: https://github.com/freebsd/freebsd-src/pull/2284 (cherry picked from commit b96dc2c04fb4f504ad0c752c5d4b074c5bfbf7e0) M sys/kern/kern_module.c M sys/sys/syscallsubr.h _____________________________________________________________________________________________________________ Commit: 0967b36fe7837e4b1727ec1230ef1ee28ea6db8c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0967b36fe7837e4b1727ec1230ef1ee28ea6db8c Author: Brooks Davis (Fri 13 Nov 2026 10:06:52 GMT) Committer: Brooks Davis (Mon 16 Nov 2026 10:45:15 GMT) extattr_list*: avoid panic with absurd buffer lengths Apply a layered defence: - Reject nbytes > IOSIZE_MAX in user_extattr_list_fd and user_extattr_list_path. - In extattr_list_vp require auiop->uio_resid to be non-negative. Effort: CHERI upstreaming Reviewed by: markj Reported by: llm-postcr MFC after: 3 days Sponsored by: Innovate UK Fixes: 6453d4240f6b ("vfs: Export exattr methods to reuse by Linuxulator") Differential Revision: https://reviews.freebsd.org/D61461 (cherry picked from commit 118067f51c111390dbc54760d781cd14a10c499e) M sys/kern/vfs_extattr.c _____________________________________________________________________________________________________________ Commit: afeeac4f9cb08a2ea15dfd94f90486a6ddf29d88 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=afeeac4f9cb08a2ea15dfd94f90486a6ddf29d88 Author: Piotr Kubaj (Tue 8 Sep 2026 12:22:58 BST) Committer: Piotr Kubaj (Mon 16 Nov 2026 09:10:19 GMT) powerpc/pmap: Use dcbz to zero pages in the radix pmap pagezero() was a plain store loop (bzero), which under the kernel build flags (-mno-vsx -msoft-float) compiles to byte stores. dcbz establishes a zeroed cache line directly in the cache without a read-for-ownership fetch from memory, roughly halving the memory transactions of page zeroing. Measured on POWER9 (Raptor Blackbird, DD2.3, bare metal), zeroing a cold 256 MB buffer with 128-byte scalar loops: byte stores (current libkern memset) 8.6 GB/s doubleword (std) stores 26.8 GB/s dcbz 34.6 GB/s dcbz raises an alignment interrupt on caching-inhibited mappings, and the kernel does not emulate it, so mmu_radix_zero_page() falls back to bzero() for any page whose memattr is not the write-back default. The internal pagezero() callers only touch freshly allocated page-table pages, which are always write-back. Note: dcbz helps only zeroing, where there is no source to read. For page copying it is a pessimization (it adds a redundant zeroing pass on top of the mandatory source read), so mmu_radix_copy_page() is left as a plain bcopy(). Differential Revision: https://reviews.freebsd.org/D59507 Reviewed by: jhibbits (cherry picked from commit 1d4a00d455617e150da5a7c3076579a7e612d33d) M sys/powerpc/aim/mmu_radix.c _____________________________________________________________________________________________________________ Commit: e987a47237a61f391aaab99f402da75a2b6b58ec URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e987a47237a61f391aaab99f402da75a2b6b58ec Author: Gordon Tetlow (Mon 9 Nov 2026 05:39:08 GMT) Committer: Gordon Tetlow (Mon 16 Nov 2026 06:22:19 GMT) openssl: export only the engine entry points Upstream links every dynamic engine with a version script, engines/.ld, that exports bind_engine and v_check and makes everything else local. FreeBSD's engines had no version script, so they exported every global symbol, including _init and _fini. loader_attic.so compiles its own copy of crypto/pem/pvkfmt.c and so also exported 21 of its functions; 14 of them (b2i_*, i2b_*) have the same names as public libcrypto functions. Add one Version.map for all engines, the same as upstream's, and use it from engines/Makefile.inc. The engines are loaded only with dlopen(), and libcrypto looks up only bind_engine and v_check, so hiding the other symbols does not affect any consumer. Tested via tinderbox: capi.so, devcrypto.so and loader_attic.so link with --no-undefined-version and export only bind_engine and v_check. devcrypto lists the same ciphers as before, and loader_attic loads and reads a PVK RSA key through "openssl storeutl -engine loader_attic". Reviewed by: ngie Event: FreeBSD Vendor Summit 2026 Differential Revision: https://reviews.freebsd.org/D61273 (cherry picked from commit 769c49de261fbbd1293adab9188e5099516675cf) M secure/lib/libcrypto/engines/Makefile.inc A secure/lib/libcrypto/engines/Version.map _____________________________________________________________________________________________________________ Commit: a618be80fee9cb48f12faf85c269f59fa12d35f2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a618be80fee9cb48f12faf85c269f59fa12d35f2 Author: Gordon Tetlow (Mon 9 Nov 2026 05:35:10 GMT) Committer: Gordon Tetlow (Mon 16 Nov 2026 06:22:19 GMT) openssl: fix engine defines to match upstream Two engine Makefiles define different macros from upstream's engines/build.info: - padlock: engines/e_padlock.c builds the engine only when PADLOCK_ASM is defined. Upstream defines it on x86 and x86_64, but our Makefile never did, so padlock.so has been a stub whose bind_engine() returns 0 and the e_padlock-x86*.S code it links was never called. Define PADLOCK_ASM on amd64 and i386, where that asm is built. - loader_attic: upstream defines OPENSSL_NO_PROVIDER_CODE; the Makefile had OPENSSL_NO_PROVIDER_CORE. No source tests either name, so the build does not change; this only follows upstream. Found by comparing per-file compile flags against an upstream 3.5.9 build. Checked by preprocessing e_padlock.c for amd64 and i386: COMPILE_PADLOCKENG is now defined. Reviewed by: ngie Event: FreeBSD Vendor Summit 2026 Differential Revision: https://reviews.freebsd.org/D61271 (cherry picked from commit 56741ec70e548d9360982e3d7c48c0c6946bc16e) M secure/lib/libcrypto/engines/loader_attic/Makefile M secure/lib/libcrypto/engines/padlock/Makefile _____________________________________________________________________________________________________________ Commit: 481e348fe751494a3449c3b96a31cd75492fceac URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=481e348fe751494a3449c3b96a31cd75492fceac Author: Gordon Tetlow (Sun 8 Nov 2026 19:17:00 GMT) Committer: Gordon Tetlow (Mon 16 Nov 2026 06:22:19 GMT) openssl: stop generating asm that nothing builds Makefile.asm generated eight perlasm outputs that neither libcrypto nor the kernel builds. Additionally, upstream does not build them for these architectures with FreeBSD's configuration: - aarch64: ecp_sm2p256-armv8, sm3-armv8, sm4-armv8, vpsm4-armv8 and vpsm4_ex-armv8. SM2, SM3 and SM4 are disabled (disable-sm2/sm3/sm4). - i386: cast-586 (upstream's x86 configuration uses the C CAST code) and rc5-586 (RC5 is disabled by default). - powerpc: aes-gcm-ppc. Upstream builds it only for 64-bit little-endian; libcrypto and ossl(4) use it only on powerpc64 and powerpc64le, whose copies stay. Remove them from Makefile.asm and delete the generated files, so the next vendor import does not regenerate them. If one of these algorithms is ever enabled, add its script back to Makefile.asm and run "make buildasm". Checked: no file outside crypto/openssl refers to any of them, and libcrypto's source lists did not include them. Built and checked via tinderbox build. Reviewed by: ngie Discussed with: jhb Event: FreeBSD Vendor Summit 2026 Differential Revision: https://reviews.freebsd.org/D61274 (cherry picked from commit ea623d9235e610de16f53990189163f12006f7c6) M secure/lib/libcrypto/Makefile.asm D sys/crypto/openssl/aarch64/ecp_sm2p256-armv8.S D sys/crypto/openssl/aarch64/sm3-armv8.S D sys/crypto/openssl/aarch64/sm4-armv8.S D sys/crypto/openssl/aarch64/vpsm4-armv8.S D sys/crypto/openssl/aarch64/vpsm4_ex-armv8.S D sys/crypto/openssl/i386/cast-586.S D sys/crypto/openssl/i386/rc5-586.S D sys/crypto/openssl/powerpc/aes-gcm-ppc.S _____________________________________________________________________________________________________________ Commit: f0798d0843924389f4da582697c31c3af6aaa802 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f0798d0843924389f4da582697c31c3af6aaa802 Author: Gordon Tetlow (Fri 6 Nov 2026 18:42:45 GMT) Committer: Gordon Tetlow (Mon 16 Nov 2026 06:22:19 GMT) openssl: build legacy provider as upstream does - Build with libcrypto's compile flags: modules/Makefile.inc now includes libcrypto's Makefile.inc, which brings in Makefile.common (NDEBUG, the asm dispatch defines, OPENSSL_PIC, the directory defines). Before this change, assertions were enabled in legacy.so. - Use upstream's per-architecture source list: the provider's own CPU capability code (cpuid asm and armcap.c/ppccap.c, or mem_clr.c without asm), and the MD5, RC4 and DES asm where upstream uses it. The provider no longer uses libcrypto's exported RC4, SHA1 and CRYPTO_*128 functions. - Drop the objects that upstream's linker leaves out of legacy.so (fcrypt_b.c, md5_one.c, md5_sha1.c, provider_err.c and ciphercommon_{ccm,gcm}*.c / ciphercommon_hw.c). Without them, params_idx.c is not needed either. - Add a version script, a copy of upstream's providers/legacy.ld, so that only OSSL_provider_init is exported. Around 209 symbols were exported before. Reviewed by: ngie Event: FreeBSD Vendor Summit 2026 Differential Revision: https://reviews.freebsd.org/D60398 (cherry picked from commit 46453f0abb85c1c93dce7139950c6343a6cf04df) M secure/lib/libcrypto/modules/Makefile.inc M secure/lib/libcrypto/modules/legacy/Makefile A secure/lib/libcrypto/modules/legacy/Version.map _____________________________________________________________________________________________________________ Commit: a509f956ad1191dbdd70ed5949b0bf03fa5e9765 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a509f956ad1191dbdd70ed5949b0bf03fa5e9765 Author: Gordon Tetlow (Fri 6 Nov 2026 18:54:13 GMT) Committer: Gordon Tetlow (Mon 16 Nov 2026 05:32:26 GMT) openssl: restore removed libcrypto symbols as compat symbols c01c0a27cb82 (D60397) stopped exporting 52 names from libcrypto.so.35 that upstream does not export. Binaries and libraries linked against the earlier libcrypto.so.35 can still import them; the libssl.so.35 from 15.0 and 15.1 imports 15 of them, so it fails to load with the new libcrypto. Provide all 52 again as non-default (compat) versions, in the version nodes they had before: OPENSSL_cpuid_setup@OPENSSL_3_0_9, the others @OPENSSL_3_5_0. Existing consumers resolve them; new links cannot bind to them. The default exports do not change and still match upstream. The wrappers live in a new FreeBSD-only file, compat.c. Remove it at the next SHLIB_MAJOR bump. Reviewed by: ngie Fixes: c01c0a27cb82 ("openssl: make libcrypto export the same symbols as upstream") Event: FreeBSD Vendor Summit 2026 Differential Revision: https://reviews.freebsd.org/D61229 (cherry picked from commit f3b6bb1404906494e4ee24ae36a288942055177d) M secure/lib/libcrypto/Makefile A secure/lib/libcrypto/compat.c _____________________________________________________________________________________________________________ Commit: bb57d279ca0c62eb4e2192a05778ca7295ead56e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bb57d279ca0c62eb4e2192a05778ca7295ead56e Author: Gordon Tetlow (Thu 8 Oct 2026 22:10:10 BST) Committer: Gordon Tetlow (Mon 16 Nov 2026 05:32:10 GMT) openssl: make libcrypto export the same symbols as upstream Make the libcrypto Version.map export the same symbol names as upstream 3.5.8 (and 3.5.9, no new symbols were added). Remove 52 names that upstream does not export: - the internal threading and record layer functions (ossl_crypto_*, ssl3_cbc_*, tls1_cbc_*), which only libssl used; - the internal WPACKET_quic_* functions; - OPENSSL_cpuid_setup; - ASN.1 item functions that are not in util/libcrypto.num. Add 7 public names that were missing (ASYNC_get_mem_functions, ASYNC_set_mem_functions, CMS_EnvelopedData_it, EVP_CipherPipeline*) to OPENSSL_3_5_0, where the other symbols from upstream 3.1 to 3.5 are. EC_GFp_nistp224_method, EC_GFp_nistp256_method and EC_GFp_nistp521_method stay unexported (see 6f6446b33064). Compatibility: libssl.so.35 from earlier builds imports the removed internal symbols, so it does not load with this libcrypto.so.35. libcrypto and libssl must be updated together. This change needs the previous libssl change, which gives libssl its own copies. Nothing in the base system imports a removed symbol. Reviewed by: ngie, markj Differential Revision: https://reviews.freebsd.org/D60397 (cherry picked from commit c01c0a27cb82ca40ed507889c8f78fb2dcf76568) M secure/lib/libcrypto/Version.map _____________________________________________________________________________________________________________ Commit: e550130c07ce9cc6777f7581580ffe53846a2286 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e550130c07ce9cc6777f7581580ffe53846a2286 Author: Maxim Konovalov (Fri 16 Oct 2026 23:15:00 BST) Committer: Maxim Konovalov (Mon 16 Nov 2026 03:28:18 GMT) tcp/rack: reject wma_divisor values <= 0 The net.inet.tcp.rack.measure.wma_divisor sysctl is the divisor of the goodput weighted moving average used when the dynamic goodput multiplier is enabled. Setting it to 0 panics the kernel. Make the variable and the sysctl unsigned, reject 0 and values above INT32_MAX. MFC after: 1 month Found with: Claude Code Opus 5.5 Reviewed by: tuexen, glebius, markj (early version) Differential Revision: https://reviews.freebsd.org/D60759 (cherry picked from commit 7668705cb9837d4c3a6db9b3434b3a522220c8ea) M sys/netinet/tcp_stacks/rack.c _____________________________________________________________________________________________________________ Commit: a778669c1d339b1f94c752003fc688d9a34e404a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a778669c1d339b1f94c752003fc688d9a34e404a Author: Piotr Kubaj (Mon 9 Nov 2026 18:58:07 GMT) Committer: Piotr Kubaj (Sun 15 Nov 2026 19:37:44 GMT) Merge commit 72a20b8e2987 from llvm git (by Gabriel Baraldi): [SLPVectorizer] Check std::optional coming out of getPointersDiff (#175784) Fixes https://github.com/llvm/llvm-project/issues/175768 There are other unchecked uses std::optional in this pass but I couldn't figure out a test that triggers them This fixes a clang crash in the SLP vectorizer, hit when building audio/csound on powerpc64le. The hardened libc++ traps on the disengaged optional, so clang dies with exit code 133. The second hunk is adapted to llvm 21, where analyzeConstantStrideCandidate() is still isStridedLoad(). Reviewed by: dim MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61354 (cherry picked from commit e56090afb68b6c036d6b54c7b66d762d98bd96d0) M contrib/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp _____________________________________________________________________________________________________________ Commit: 0c9ae19f02b179b3649e6aa5208a3e1a8a2097df URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0c9ae19f02b179b3649e6aa5208a3e1a8a2097df Author: Dag-Erling Smørgrav (Mon 9 Nov 2026 22:13:42 GMT) Committer: Dag-Erling Smørgrav (Sat 14 Nov 2026 15:49:21 GMT) libcasper: Use pdfork() for the zygote Use pdfork(2) rather than fork(2) to fork the zygote, and close the descriptor when the main loop terminates. MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Qualys, Inc. Reviewed by: oshogbo Differential Revision: https://reviews.freebsd.org/D60176 (cherry picked from commit 425e4c102f8aedfc7c439bb01d648aabac798888) libcasper: Use casper_pdfork() Fixes: 425e4c102f8a ("libcasper: Use pdfork() for the zygote") (cherry picked from commit d0fd70983b6b93d4a6a4671457619eb34786b38d) M lib/libcasper/libcasper/libcasper_service.c M lib/libcasper/libcasper/zygote.c _____________________________________________________________________________________________________________ Commit: fbb0b7e4d7af51a113f4a377a676b659c553fb4b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fbb0b7e4d7af51a113f4a377a676b659c553fb4b Author: Dag-Erling Smørgrav (Fri 6 Nov 2026 11:16:42 GMT) Committer: Dag-Erling Smørgrav (Sat 14 Nov 2026 15:49:21 GMT) libfetch: Use monotonic clock for timeouts MFC after: 1 week Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D61225 (cherry picked from commit feab010f44143bda407438ede72f4b8e0c1bd15d) M lib/libfetch/common.c _____________________________________________________________________________________________________________ Commit: ea44ef6f5f33c4ca0e399c2f5b741232e7832702 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ea44ef6f5f33c4ca0e399c2f5b741232e7832702 Author: Dag-Erling Smørgrav (Thu 5 Nov 2026 21:11:30 GMT) Committer: Dag-Erling Smørgrav (Sat 14 Nov 2026 15:49:21 GMT) nfsserver: Do not increment seqid on BADSEQID When returning NFSERR_BADSEQID, the server should not have incremented the sequence ID, yet the call to nfsrv_checkseqid() a few lines above does precisely that. Instead, check for a legitimate retransmission of the original successful request, and reject otherwise, before the ticket is used and sequence ID incremented. MFC after: 1 week Fixes: ff45b9fc1a8c ("Bjorn reported a problem...") Sponsored by: Klara, Inc. Reviewed by: rmacklem Differential Revision: https://reviews.freebsd.org/D61156 (cherry picked from commit 878084c774c6d68fcdb65e00ba8f74726dda0999) M sys/fs/nfsserver/nfs_nfsdstate.c _____________________________________________________________________________________________________________ Commit: b8b1631a3890460fa3e8d572f451a12be6b59da8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b8b1631a3890460fa3e8d572f451a12be6b59da8 Author: Dag-Erling Smørgrav (Wed 4 Nov 2026 15:32:24 GMT) Committer: Dag-Erling Smørgrav (Sat 14 Nov 2026 15:49:21 GMT) logger: Close syslog channel on exit MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Qualys, Inc. Reviewed by: oshogbo Differential Revision: https://reviews.freebsd.org/D60170 (cherry picked from commit aa00f4c4f69f7cd7c3ccb7e4371a44bd338cc812) M usr.bin/logger/logger.c _____________________________________________________________________________________________________________ Commit: a904bf4a0e7a847f885f308fbe096416dff6ab70 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a904bf4a0e7a847f885f308fbe096416dff6ab70 Author: Dag-Erling Smørgrav (Fri 13 Nov 2026 00:46:50 GMT) Committer: Dag-Erling Smørgrav (Sat 14 Nov 2026 15:46:27 GMT) tests: Add test for vn_io_fault1 bug This bug was fixed in b487aca48535, but I did not have a regression test ready for it at the time. The test allocates a large buffer, faults part of it in and leaves the rest unmapped, then tries to read a 3 GiB file into it. If the bug is present, the read succeeds, but the return value exceeds the requested amount by exactly one page less than the amount that was prefaulted. PR: 298159 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298159 ) MFC after: 1 week Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D61475 (cherry picked from commit ba02bbbe86aeca0c95c8e7d12c1be357ebb3ddeb) tests: Improve vn_io_fault1 test * Declare that the test needs 4 GB of memory so it can be automatically skipped on systems with low memory. * Switch back to mmap() as in my initial prototype. Using malloc() is simpler, but on systems with malloc debugging enabled, malloc() will prefault the entire buffer, resulting in a false positive. Using mmap() also guarantees that the buffer is page-aligned, which renders the test determinstic: we now only need to prefault exactly 2 GB, and the difference between ret and len will be exactly the amount that we prefaulted. * To prefault the buffer, instead of a simple loop that writes zeroes to it, which a compiler might recognize as dead stores and eliminate, read the first INT_MAX bytes from the file into it. PR: 298159 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298159 ) Fixes: ba02bbbe86ae ("tests: Add test for vn_io_fault1 bug") Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D61508 (cherry picked from commit c5cff3df96c35aa3613c083f151e853b532d88cb) M tests/sys/kern/Makefile A tests/sys/kern/vn_io_fault1.c _____________________________________________________________________________________________________________ Commit: 7940130c2e87f6ac26b594428150b6a53397c488 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7940130c2e87f6ac26b594428150b6a53397c488 Author: Faraz Vahedi (Thu 5 Nov 2026 20:09:01 GMT) Committer: Faraz Vahedi (Sat 14 Nov 2026 09:40:38 GMT) libc: Export timespec_getres(3) and add tests timespec_getres() has been declared in and built into libc, but never listed in a symbol map. It is therefore local to libc.so, and dynamically linked callers fail to link. Reviewed by: ziaee, fuz, des Approved by: fuz (mentor) Fixes: 9b5d724cad10 ("libc: Add timespec_getres(3) as per C23.") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60799 (cherry picked from commit 3ac9299ee90cc7a6330c560d8c49d5151185f80e) M lib/libc/gen/Symbol.map M lib/libc/gen/timespec_getres.3 M lib/libc/tests/gen/Makefile A lib/libc/tests/gen/timespec_getres_test.c _____________________________________________________________________________________________________________ Commit: 96da6719c04e82f7103a8540a0b99c2780ccd6e7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=96da6719c04e82f7103a8540a0b99c2780ccd6e7 Author: Faraz Vahedi (Sun 5 Jul 2026 16:03:31 BST) Committer: Faraz Vahedi (Sat 14 Nov 2026 09:37:48 GMT) libc: Fix stack buffer overflow in cgetnext() `cgetnext()` copies a capability record's name field into a fixed 1024 byte on-stack buffer (`nbuf[BSIZE]`) one character at a time, but never checks that the write pointer stays within the buffer. Therefore, a record name that is longer than `BSIZE` (either on a single line, or accumulated across several `\`-continued lines as the pointer is not reset amidst continuation) writes past the end of `nbuf` and smashes the stack. The name field is read directly from the capability file, so any consumer of `cgetnext()`/`cgetfirst()` that processes an untrusted `termcap(5)`- or `printcap(5)`-style database (e.g. `cap_mkdb(1)`, `lpr(1)`, or any third-party caller) can be exposed and hence made to corrupt the stack. Reviewed by: fuz, dteske Approved by: fuz (mentor), dteske (mentor) MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/2309 (cherry picked from commit 13bcc9a882603da216c7c38c086fcb501bd9d0ec) M lib/libc/gen/getcap.3 M lib/libc/gen/getcap.c _____________________________________________________________________________________________________________ Commit: afc7fc2abe807780e6f9cba96ab73105ebd2a07f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=afc7fc2abe807780e6f9cba96ab73105ebd2a07f Author: Wale Zhang (Thu 5 Nov 2026 04:31:09 GMT) Committer: Ryan Moeller (Sat 14 Nov 2026 04:46:09 GMT) Fix direct reads of blocks pending free Direct reads only check the on-disk block pointer for holes, so they can read stale data after a block has been freed but before the free has synced. Share buffered read hole detection with direct reads to honor pending frees as well. Keep cached data ahead of hole detection and preserve the transaction ordering of block clone and direct write overrides. Retain the block pointer recheck after dnode_block_freed() for concurrent syncing. Reviewed-by: Brian Behlendorf Signed-off-by: Wale Zhang Closes #19633 Approved by: kevans (mentor) (cherry picked from commit 924b8c89c04e324649855b05986f686b58ca4cb9) M sys/contrib/openzfs/include/sys/dbuf.h M sys/contrib/openzfs/module/zfs/dbuf.c M sys/contrib/openzfs/module/zfs/dmu_direct.c _____________________________________________________________________________________________________________ Commit: 78ca640f79c585ea737c03a0c427bfe53582fd30 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=78ca640f79c585ea737c03a0c427bfe53582fd30 Author: Cyrille C. <18537428+CrochetFeve0251@users.noreply.github.com> (Wed 7 Oct 2026 00:11:09 BST) Committer: Ryan Moeller (Sat 14 Nov 2026 04:45:48 GMT) dbuf: restore BP_IS_HOLE() recheck after dnode_block_freed() Commit 79cf54582 ("Fix reads for blocks freed after being cloned") reworked the level-0 check in dbuf_read_hole() and dropped the BP_IS_HOLE() recheck that followed dnode_block_freed(), together with the comment explaining it. That recheck was not about overrides: it closes a race with dnode_sync(). dnode_sync_free_ranges() drops dn_mtx, clears the bps through dnode_sync_free_range_impl() -> free_blocks(), then retakes dn_mtx and removes the range from dn_free_ranges. For blkptrs held in the dnode (dn_nlevels == 1), free_blocks() writes the bp without the parent's db_rwlock, so holding that lock in dbuf_read() does not serialize against it. A reader that saw a non-hole bp, then waited on dn_mtx in dnode_block_freed() until the range was removed, gets "not freed" while the bp it is about to copy is already a hole (with HOLE_BIRTH, lsize and birth preserved). dbuf_read_impl() then hands that hole to arc_read(): no child I/O is issued, checksum verification fails with EINVAL, and without ZIO_FLAG_CANFAIL the pool is suspended. Restore the recheck for the non-override path. The override path (block clone / Direct I/O) checks the overriding bp, which free_blocks() does not touch, so it is left as is. Reproduced on 2.3.9 with a test-only delay widening the window between the first BP_IS_HOLE() and dnode_block_freed(): reads of punched single-block files return EINVAL with the same ereport as in #19185. With this change, the same test returns no error. This change, its analysis and its description were prepared with the help of an AI assistant (Claude), then reviewed and tested by the submitter. Reviewed-by: Brian Behlendorf Signed-off-by: Cyrille C. Co-authored-by: Claude Opus 5.5 Fixes: a6f557c2cb58 ("Fix reads for blocks freed after being cloned") Closes #19185 Closes #19234 Approved by: kevans (mentor) (cherry picked from commit f1f96f5e7b01c791add67b27e8014e3986d10513) M sys/contrib/openzfs/module/zfs/dbuf.c _____________________________________________________________________________________________________________ Commit: fdd6b206a303a0bdef94a6468b345c10ac53351d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fdd6b206a303a0bdef94a6468b345c10ac53351d Author: Patrick Domack (Wed 9 Sep 2026 19:08:26 BST) Committer: Ryan Moeller (Sat 14 Nov 2026 04:43:50 GMT) Fix double free when cloning a block with a pending free dmu_read_l0_bps() captures the source block pointers for a clone without consulting dnode_block_freed(). A block whose free is recorded but not yet synced still has a valid on-disk pointer, so the clone registers a BRT reference to a block about to be returned to the allocator, and it is freed twice. On a debug build this trips the metaslab double-free verifier; on a release build the space map is silently corrupted. Check for a pending free and return EAGAIN, as dbuf_read_hole() already does for buffered reads. zfs_clone_range() waits a TXG and retries, by which point the block reads as a hole. Two cases need more than the plain check. A hole has nothing to free, so guard with !BP_IS_HOLE(bp), otherwise a hole inside a pending free range fails a FICLONE that master cloned. When the head dirty record already overrode the BP, only frees after the override count against it, so use dnode_block_freed_after(); dbuf_free_range() leaves the override in place across a later punch, and cloning the clone would otherwise capture it. Reproduced with fstests generic/733, which panicked within a minute on a debug build, and with a FICLONE of a sparse file in a pending free range. Both clean after. bclonesaved is correct and scrub is clean. Suggested-by: mkhllr Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Signed-off-by: Patrick Domack Closes #18842 Closes #18853 Approved by: kevans (mentor) (cherry picked from commit 39764eb06bd079b31cf830c8582870753aebcafb) M sys/contrib/openzfs/module/zfs/dmu.c _____________________________________________________________________________________________________________ Commit: d67e6f27eea13e40c1a77bc32755dd3801999e3b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d67e6f27eea13e40c1a77bc32755dd3801999e3b Author: Olivier Cochard (Wed 4 Nov 2026 18:33:13 GMT) Committer: Mark Johnston (Fri 13 Nov 2026 22:21:37 GMT) tests/ip_mroute: Use a router address as the IPv4 RP pimd 3.0.0 and later refuse an RP in 127.0.0.0/8. Reported by: markj Approved by: markj Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/92 (cherry picked from commit b61024d6efe6c5d9da1f31ad24884bd70e3300e2) M tests/sys/netinet/ip_mroute.py _____________________________________________________________________________________________________________ Commit: 8e97f5c2811974587569ba5a8653454fe273ef2e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8e97f5c2811974587569ba5a8653454fe273ef2e Author: Mark Johnston (Wed 4 Nov 2026 22:38:17 GMT) Committer: Mark Johnston (Fri 13 Nov 2026 22:21:37 GMT) ioctl: Add a macro for extracting the ioctl number from a command Sprinkle it in various drivers which hard-coded the command layout. No functional change intended. Reviewed by: dumbbell, emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61045 (cherry picked from commit 12b3c29a985d1753693d732372dafe915a890259) M sys/compat/linuxkpi/common/include/linux/ioctl.h M sys/dev/sound/pcm/dsp.c M sys/dev/sound/pcm/mixer.c M sys/dev/syscons/scvesactl.c M sys/dev/syscons/scvidctl.c M sys/netgraph/ng_eiface.c M sys/sys/ioccom.h _____________________________________________________________________________________________________________ Commit: 7fca9094d86cb0763dfd0eecbbeb366d5759da1e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7fca9094d86cb0763dfd0eecbbeb366d5759da1e Author: Ed Maste (Mon 11 May 2026 21:27:40 BST) Committer: Ed Maste (Fri 13 Nov 2026 21:16:03 GMT) if_media: Add 100BASE-T1 and 1000BASE-T1 media types 100BASE-T1 (IEEE 802.3bw) and 1000BASE-T1 (IEEE 802.3bp) are Single-Pair Ethernet (SPE) standards intended for use in automotive and industrial applications. Reviewed by: kbowling Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60864 (cherry picked from commit f69099fc0fc55262741621451a52de50f164271a) M sys/net/if_media.h _____________________________________________________________________________________________________________ Commit: e6ad9d647a890d71231949de3cd0c43acaf8ec83 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e6ad9d647a890d71231949de3cd0c43acaf8ec83 Author: Cy Schubert (Mon 9 Nov 2026 23:13:21 GMT) Committer: Cy Schubert (Fri 13 Nov 2026 19:32:36 GMT) ipfilter: Remove erroneous ntohs() The original commit was wrong. ipf_nat_builddivertmp() builds the UDP template with the length in host byte order M_DUP() copies that value unchanged. The old code was therefore correct. It added fin_plen in host order and then did a single htons(). The original patch was discussed with Co-Pilot, which pointed out the original bug. claude-opus-5-5 discovered the ntohs() error that co-pilot suggested. Interestingly this code had been running here for a couple of months. Reported by: llm-postcr Fixes: 72cc9e3766f4 (cherry picked from commit 86861520613f99c85b5fbdf92b5c955a13ed6624) M sys/netpfil/ipfilter/netinet/ip_nat.c _____________________________________________________________________________________________________________ Commit: dd721990e8c03b3ff9be0523e5af452d6890b72f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dd721990e8c03b3ff9be0523e5af452d6890b72f Author: Cy Schubert (Wed 26 Aug 2026 06:27:28 BST) Committer: Cy Schubert (Fri 13 Nov 2026 19:32:36 GMT) ipfilter: Only recalculate the UDP header when we have one When ipf_nat_out processes NAT_DIVERTOUT (ipnat rdr statements) it also fixes the checksum in the UDP header. Test for a UDP header before adjusting its length. While we are here, the length in the UDP header must be converted from network byte order to host byte order. Add the missing ntohs(). PR: 296944 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296944 ) (cherry picked from commit 72cc9e3766f4222fa7fc462bc669dcf668e8b334) M sys/netpfil/ipfilter/netinet/ip_nat.c _____________________________________________________________________________________________________________ Commit: e104c74ef25d8f760f90b45c41bdc9c65d22b75c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e104c74ef25d8f760f90b45c41bdc9c65d22b75c Author: Cy Schubert (Tue 10 Nov 2026 05:13:11 GMT) Committer: Cy Schubert (Fri 13 Nov 2026 19:32:36 GMT) krb5: Import MIT 1.22.3 Major changes in 1.22.3 (2026-11-09) ==================================== This is a bug fix release, with a focus on security issues discovered with the aid of large language models. See https://web.mit.edu/kerberos/advisories/MITKRB5-SA-2026-001.txt for information on the risks of continuing to use unpatched releases. * Fix a logic error when checking PAC server checksums [CVE-2026-111423]. * Check for unkeyed checksums when validating CAMMAC verifiers [CVE-2026-71199]. * Fix a loophole in the KDC's client authdata filtering which could allow clients to include fake PAC and CAMMAC authdata values when requesting service tickets. These fake values would be rejected by application servers, were it not for the two bugs noted above. * Check for the lockdown_keys attribute when processing password change protocol requests in kadmind [CVE-2026-107884]. * In libgssrpc, when processing RPC messages using the RPCSEC_GSS flavor, use the verified service type included in the RPC request to determine how to unwrap arguments and wrap return values, instead of the unverified service type included during authentication [CVE-2026-118380]. * In libgssrpc, disable the AUTH_GSSAPI server auth flavor unless the "GSSRPC_ALLOW_AUTH_GSSAPI" environment variable is set. AUTH_GSSAPI is only needed for very old (pre-1.4) clients [CVE-2026-112322] [CVE-2026-112323]. * Fix numerous null pointer deferences, read overruns, unbounded memory allocations, and memory leaks that could be used as denial of service attacks against the KDC, kadmind, application servers, or client programs [CVE-2026-40355] [CVE-2026-40356] [CVE-2026-71200] [CVE-2026-107364] [CVE-2026-107708] [CVE-2026-107778] [CVE-2026-112314] [CVE-2026-112315] [CVE-2026-112316] [CVE-2026-112317] [CVE-2026-112318] [CVE-2026-112319] [CVE-2026-112320] [CVE-2026-112321] [CVE-2026-112323] [CVE-2026-119079]. * Fix a client crash when a KKDCP proxy daemon closes the TLS session without supplying any response data. * Shut down kpropd gracefully when a termination signal is received, when operating in incremental propagation mode. * Detect when an incremental propagation update is applied to a nonexistent principal; when this happens, force a full resync instead of crashing. * Fix a KDC crash when the LDAP KDB module loses its connection to the LDAP server. * Avoid a crash on macOS when the native API ccache type is used before and after forking a process. * When an application accepts a GSS context without asking for delegated credentials, discard any credentials sent by the initiator without parsing them first. Security: https://web.mit.edu/kerberos/advisories/MITKRB5-SA-2026-001.txt Merge commit '5f11ec7e8ab9647977a56fca934c40951e051779' into krb5-1.22.3 (cherry picked from commit 7e4c0a34ea3aff51405d2a3ac2908db1a98d6c5f) M crypto/krb5/.github/workflows/build.yml M crypto/krb5/NOTICE M crypto/krb5/README M crypto/krb5/src/ccapi/lib/win/Makefile.in M crypto/krb5/src/ccapi/server/win/Makefile.in M crypto/krb5/src/config/pre.in M crypto/krb5/src/config/win-pre.in M crypto/krb5/src/configure M crypto/krb5/src/include/gssrpc/xdr.h M crypto/krb5/src/include/k5-int.h M crypto/krb5/src/kadmin/ktutil/ktutil_funcs.c M crypto/krb5/src/kadmin/server/misc.c M crypto/krb5/src/kadmin/server/schpw.c M crypto/krb5/src/kadmin/server/server_stubs.c M crypto/krb5/src/kdc/cammac.c M crypto/krb5/src/kdc/dispatch.c M crypto/krb5/src/kdc/kdc_authdata.c M crypto/krb5/src/kdc/kdc_util.c M crypto/krb5/src/kprop/kpropd.c M crypto/krb5/src/lib/gssapi/krb5/accept_sec_context.c M crypto/krb5/src/lib/gssapi/krb5/iakerb.c M crypto/krb5/src/lib/gssapi/krb5/import_name.c M crypto/krb5/src/lib/gssapi/krb5/ser_sctx.c M crypto/krb5/src/lib/gssapi/mechglue/g_acquire_cred.c M crypto/krb5/src/lib/gssapi/mechglue/g_dsp_name_ext.c M crypto/krb5/src/lib/gssapi/mechglue/g_dup_name.c M crypto/krb5/src/lib/gssapi/mechglue/g_glue.c M crypto/krb5/src/lib/gssapi/mechglue/g_imp_name.c M crypto/krb5/src/lib/gssapi/spnego/gssapiP_negoex.h M crypto/krb5/src/lib/gssapi/spnego/negoex_ctx.c M crypto/krb5/src/lib/gssapi/spnego/spnego_mech.c M crypto/krb5/src/lib/kadm5/kadm_rpc_xdr.c M crypto/krb5/src/lib/kadm5/srv/adb_xdr.c M crypto/krb5/src/lib/kdb/kdb_convert.c M crypto/krb5/src/lib/kdb/keytab.c M crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c M crypto/krb5/src/lib/krb5/ccache/cc_api_macos.c M crypto/krb5/src/lib/krb5/ccache/cc_keyring.c M crypto/krb5/src/lib/krb5/ccache/cc_mslsa.c M crypto/krb5/src/lib/krb5/ccache/ccbase.c M crypto/krb5/src/lib/krb5/keytab/kt_file.c M crypto/krb5/src/lib/krb5/krb/Makefile.in M crypto/krb5/src/lib/krb5/krb/authdata.c M crypto/krb5/src/lib/krb5/krb/cammac_util.c M crypto/krb5/src/lib/krb5/krb/deps M crypto/krb5/src/lib/krb5/krb/get_in_tkt.c M crypto/krb5/src/lib/krb5/krb/pac.c M crypto/krb5/src/lib/krb5/krb/preauth_otp.c M crypto/krb5/src/lib/krb5/krb/rd_cred.c M crypto/krb5/src/lib/krb5/krb/ser_actx.c M crypto/krb5/src/lib/krb5/krb/ser_adata.c M crypto/krb5/src/lib/krb5/krb/ser_addr.c M crypto/krb5/src/lib/krb5/krb/ser_auth.c M crypto/krb5/src/lib/krb5/krb/ser_cksum.c M crypto/krb5/src/lib/krb5/krb/ser_ctx.c M crypto/krb5/src/lib/krb5/krb/ser_key.c M crypto/krb5/src/lib/krb5/krb/ser_princ.c M crypto/krb5/src/lib/krb5/krb/serialize.c A crypto/krb5/src/lib/krb5/krb/t_init_creds_step.c M crypto/krb5/src/lib/krb5/krb/t_pac.c M crypto/krb5/src/lib/krb5/libkrb5.exports M crypto/krb5/src/lib/krb5/os/dnsglue.c M crypto/krb5/src/lib/krb5/os/expand_path.c M crypto/krb5/src/lib/krb5/os/init_os_ctx.c M crypto/krb5/src/lib/krb5/os/locate_kdc.c M crypto/krb5/src/lib/krb5/os/sendto_kdc.c M crypto/krb5/src/lib/rpc/auth_gssapi_misc.c M crypto/krb5/src/lib/rpc/authgss_prot.c M crypto/krb5/src/lib/rpc/clnt_tcp.c M crypto/krb5/src/lib/rpc/deps M crypto/krb5/src/lib/rpc/svc_auth.c M crypto/krb5/src/lib/rpc/svc_auth_gss.c M crypto/krb5/src/lib/rpc/svc_auth_gssapi.c M crypto/krb5/src/lib/rpc/svc_auth_unix.c M crypto/krb5/src/lib/rpc/unit-test/client.c M crypto/krb5/src/lib/rpc/unit-test/t_rpc.py M crypto/krb5/src/lib/rpc/xdr.c M crypto/krb5/src/man/k5identity.man M crypto/krb5/src/man/k5login.man M crypto/krb5/src/man/k5srvutil.man M crypto/krb5/src/man/kadm5.acl.man M crypto/krb5/src/man/kadmin.man M crypto/krb5/src/man/kadmind.man M crypto/krb5/src/man/kdb5_ldap_util.man M crypto/krb5/src/man/kdb5_util.man M crypto/krb5/src/man/kdc.conf.man M crypto/krb5/src/man/kdestroy.man M crypto/krb5/src/man/kerberos.man M crypto/krb5/src/man/kinit.man M crypto/krb5/src/man/klist.man M crypto/krb5/src/man/kpasswd.man M crypto/krb5/src/man/kprop.man M crypto/krb5/src/man/kpropd.man M crypto/krb5/src/man/kproplog.man M crypto/krb5/src/man/krb5-config.man M crypto/krb5/src/man/krb5.conf.man M crypto/krb5/src/man/krb5kdc.man M crypto/krb5/src/man/ksu.man M crypto/krb5/src/man/kswitch.man M crypto/krb5/src/man/ktutil.man M crypto/krb5/src/man/kvno.man M crypto/krb5/src/man/sclient.man M crypto/krb5/src/man/sserver.man M crypto/krb5/src/patchlevel.h M crypto/krb5/src/plugins/audit/simple/Makefile.in M crypto/krb5/src/plugins/authdata/greet_client/greet.c M crypto/krb5/src/plugins/kdb/db2/kdb_xdr.c M crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_conv.c M crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_search.c M crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_seq.c M crypto/krb5/src/plugins/kdb/db2/libdb2/btree/btree.h M crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c M crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c M crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash_page.c M crypto/krb5/src/plugins/kdb/db2/libdb2/mpool/mpool.c M crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c M crypto/krb5/src/plugins/kdb/lmdb/marshal.c M crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto.h M crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c M crypto/krb5/src/plugins/preauth/pkinit/pkinit_identity.c M crypto/krb5/src/plugins/preauth/pkinit/pkinit_matching.c M crypto/krb5/src/plugins/tls/k5tls/openssl.c M crypto/krb5/src/po/mit-krb5.pot M crypto/krb5/src/util/profile/prof_init.c M crypto/krb5/src/util/support/json.c M crypto/krb5/src/windows/README M crypto/krb5/src/windows/installer/wix/config.wxi M crypto/krb5/src/windows/installer/wix/files.wxi M crypto/krb5/src/windows/installer/wix/site-local.wxi M crypto/krb5/src/windows/kerberos.ver M crypto/krb5/src/windows/kfwlogon/kfwcommon.c M crypto/krb5/src/windows/kfwlogon/kfwlogon.c M crypto/krb5/src/windows/kfwlogon/kfwlogon.h M crypto/krb5/src/windows/leashdll/krb5routines.c M crypto/krb5/src/windows/leashdll/lsh_pwd.c M crypto/krb5/src/windows/leashdll/lshfunc.c M krb5/Makefile.inc M krb5/include/autoconf.h M krb5/util/build-tools/krb5-config.sh _____________________________________________________________________________________________________________ Commit: d03e991d067da14a4fb290ccc10a2a46324d9a8b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d03e991d067da14a4fb290ccc10a2a46324d9a8b Author: Roman Bogorodskiy (Thu 29 Oct 2026 18:24:15 GMT) Committer: Roman Bogorodskiy (Fri 13 Nov 2026 17:54:34 GMT) vtnet: honor the advertised MTU limit on attach When VIRTIO_NET_F_MTU is negotiated, virtio_net_config.mtu specifies the maximum MTU the driver may use. vtnet_ioctl_mtu() enforces this limit for subsequent MTU changes, but ether_ifattach() unconditionally initializes the interface MTU to ETHERMTU (1500). So a device advertising a maximum below 1500 starts with an MTU above its limit. So make sure to set the initial MTU no larger than vtnet_max_mtu. That is, for vtnet_max_mtu less than 1500 interface MTU will be set to this value, otherwise the current behaviour is preserved, MTU will be set to 1500. Reviewed by: kfv, tuexen Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60980 (cherry picked from commit 0974ef03b43f279f16289ad4d5be3a03923983ea) M sys/dev/virtio/network/if_vtnet.c _____________________________________________________________________________________________________________ Commit: ade540f274d52366b46da2898b2c264b4e89883a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ade540f274d52366b46da2898b2c264b4e89883a Author: Christos Margiolis (Mon 2 Nov 2026 17:15:33 GMT) Committer: Christos Margiolis (Fri 13 Nov 2026 08:02:14 GMT) amd64/vmm: Don't advertise AMD PerfMonV2 or performance counters vmm does not handle CPUID leaf 0x80000022, so a FreeBSD guest on a Family 19h or later host panics on "kldload hwpmc", which trusts the PerfMonV2 bit and writes AMD_PMC_GLOBAL_CTL. Tested by: Osvaldo Janeri Filho MFC after: 1 week Sponsored by: The FreeBSD Foundation Reviewed by: markj, kib Differential Revision: https://reviews.freebsd.org/D61141 (cherry picked from commit 8fb539b081dbfe3e93e607a5d4d36184c53c8aaf) M sys/amd64/vmm/x86.c M sys/amd64/vmm/x86.h _____________________________________________________________________________________________________________ Commit: 03466b1de5f8358db6d60eb9a72b3d121be47e64 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=03466b1de5f8358db6d60eb9a72b3d121be47e64 Author: Christos Margiolis (Tue 3 Nov 2026 16:51:08 GMT) Committer: Christos Margiolis (Fri 13 Nov 2026 08:02:14 GMT) netlink: Pre-register the missing devctl event systems devctl_notify() can be called with a mutex held. If the event system is not listed in devctl_systems[], sysevent_get_group() calls sysevent_new_group(), which calls strdup() with M_WAITOK, and we may end up sleeping while holding a non-sleepable mutex. Add the missing systems. While here, remove the nonexistent KERNEL system. PR: 299272 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299272 ) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61161 (cherry picked from commit 66d078c17294ca2ea225e4926a8cd9697dda57ed) M sys/netlink/netlink_sysevent.c _____________________________________________________________________________________________________________ Commit: ea8db658f156f7fcdea97f7734587e8a8aefaba6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ea8db658f156f7fcdea97f7734587e8a8aefaba6 Author: Andrew Gallatin (Thu 5 Nov 2026 16:35:41 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 03:06:39 GMT) iflib: Use a single tx dma map The need for a separate map for TSO and non-TSO seems to have arisen from a misunderstanding about the DMA requirements for Intel drivers like ice/ixl/iavf. Specifically, this Intel hardware has a quirk where no more than N (=8) segs can be DMA'ed per packet on the wire. This limit was enforced using a DMA map with a low segment limit for non-TSO and a driver specific check for TSO. This led to a *lot* of complexity in iflib (~80 extra lines of code that this change removes) when the limit can simply be enforced via the existing EFBIG mechanisms. This change adds a new flag, IFLIB_SPARSE_TX, that drivers for hardware with this quirk must set. When set, it causes non-TSO sends that exceed isc_tx_nsegment to be treated as if bus_dmamap_load_mbuf_sg() had returned EFBIG. Due to the API/KABI change, I've bumped the FreeBSD version as well. Note kgalazka suggested the flag, rather than a more awkward mechanism that I had in my initial patch. For stable/15, bump __FreeBSD_version to 1502501 and document the requirement to install iflib with the updated Intel drivers. Older driver modules lack IFLIB_SPARSE_TX; rebuilding unchanged out-of-tree sources does not supply the required non-TSO segment-limit policy. Reviewed by: kbowling Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D60175 (cherry picked from commit 4b732459f030a568a93dbe31230c5a17caa035e5) M UPDATING M sys/dev/iavf/if_iavf_iflib.c M sys/dev/ice/if_ice_iflib.c M sys/dev/ixl/if_ixl.c M sys/net/iflib.c M sys/net/iflib.h M sys/sys/param.h _____________________________________________________________________________________________________________ Commit: a9a9fd1b908c094dffca45e9fae3436fdc81b294 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a9a9fd1b908c094dffca45e9fae3436fdc81b294 Author: Andrew Gallatin (Tue 10 Nov 2026 15:42:11 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:25:38 GMT) iflib: rate limit deferred tx ring drain When simple_tx gives up & return ENOBUFS because the tx ring is full, we were doing a GROUPTASK_ENQUEUE(&txq->ift_task) each time. On a tx ring that has overflowed and is being hammered on by a fast UDP sender, this can result in a massive increase in context switches (I've seen over 30M ctxw/sec due to this, and the ctxsw codepath taking roughly 50% CPU). This change removes the GROUPTASK_ENQUEUE() and replaces it with a call to a callout which drains the tx ring. The callout time is determined based on the link speed, estimating how long it would take for a large fraction of of a ring containing full-MTU packets to drain. This removes the 30M ctxsw / sec in my test case and reduces it to roughly a doubling of ctxsws. Reviewed by: kbowling Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D61313 (cherry picked from commit fe63435bdfae0ec55092efbfa807e324bfb82d75) M sys/net/iflib.c _____________________________________________________________________________________________________________ Commit: ef355723097d1fe9cf3ad19b460d330ff3076eba URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ef355723097d1fe9cf3ad19b460d330ff3076eba Author: Andrew Gallatin (Tue 10 Nov 2026 15:37:00 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:25:38 GMT) iflib: simplify TXQ_AVAIL Simply the TXQ_AVAIL() macro to avoid using get_inuse(txq->ift_size, txq->ift_cidx, txq->ift_pidx, txq->ift_gen) and instead define it in terms of txq->ift_in_use. Note that in_use is equivalent, because it is updated at the same time as cidx/pidx and gen, and under the same serialization. The advantage is that its cheaper due to using one read and no branches, and safer, since unlocked reads get an atomic snapshot of availability, but an unlocked read of multiple counters can produce inconsistent results. Reviewed by: kbowling, kgalazka Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D61279 (cherry picked from commit 44df82b11c535ae50b1e5888a361a2bd15d4182b) M sys/net/iflib.c _____________________________________________________________________________________________________________ Commit: a2a0ded3cdc1f11aafcbb0efcf9eabf982da0c08 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a2a0ded3cdc1f11aafcbb0efcf9eabf982da0c08 Author: Olivier Cochard (Wed 11 Nov 2026 09:33:56 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:20:07 GMT) tpm: crb: Support the ACPI start method Some AMD firmware TPMs report StartMethod 2 and had no driver. They never acknowledge CTRL_REQ, so skip the idle and ready requests. Do not harvest entropy from these TPMs on AMD: on a Ryzen 7 7735HS each periodic TPM2_GetRandom froze every CPU, for up to 1.2 s (AMD PA-410). Reviewed by: kbowling Approved by: kbowling Differential Revision: https://ron-dev.freebsd.org/FreeBSD/src/pulls/103 (cherry picked from commit 6af18560a124b84549713a5f2b667a1df0990929) M sys/dev/tpm/tpm20.c M sys/dev/tpm/tpm20.h M sys/dev/tpm/tpm_crb.c _____________________________________________________________________________________________________________ Commit: 9a31307f3d5ce28e62cb57019afabc7ffa37071f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9a31307f3d5ce28e62cb57019afabc7ffa37071f Author: Olivier Cochard (Tue 10 Nov 2026 07:25:06 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:19:44 GMT) tpm_crb: Use locality registers only with plain CRB The locality release wait times out on every command on a Framework 13 (Pluton start method), logging every 10 seconds. Reported by: emaste, tuexen Reviewed by: kbowling Approved by: kbowling Fixes: bfe4be85a935 ("tpm_crb: wait for idle and locality release after each command") (cherry picked from commit 1dade7024457ee10df1ccae22e3c454e80f82b76) M sys/dev/tpm/tpm_crb.c _____________________________________________________________________________________________________________ Commit: 052e37a485a68104291fd6d6ba2be1ae4a8cc470 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=052e37a485a68104291fd6d6ba2be1ae4a8cc470 Author: Olivier Cochard (Wed 4 Nov 2026 21:05:22 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:19:19 GMT) tpm_crb: wait for idle and locality release after each command transmit only requested GO_IDLE and the locality release, so a back-to-back command could see stale state and fail with EIO. A post-send idle timeout no longer discards a completed response. Reviewed by: kbowling Approved by: kbowling Differential Revision: https://ron-dev.freebsd.org/FreeBSD/src/pulls/93 (cherry picked from commit bfe4be85a9354b92135e105028f2e1b3e0307ada) M sys/dev/tpm/tpm_crb.c _____________________________________________________________________________________________________________ Commit: 133335cc97b847cc577c678a556e0bb8e46bcabe URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=133335cc97b847cc577c678a556e0bb8e46bcabe Author: Kevin Bowling (Wed 4 Nov 2026 19:43:54 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:16:56 GMT) tpm: crb: Dump register state on command failures Include the command code in notification failures and the command code and execution timeout in completion failures. Capture CRB control registers on completion timeouts and Pluton mailbox readiness or acknowledgement timeouts, before cancellation or cleanup changes them. Include locality registers when present and mailbox registers for the Pluton start method. The dump contains transport state without command payloads or response data. Tested by: olivier, tuexen Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D61128 (cherry picked from commit 915eb355d8fe8555f7a74c6db95bc3c02610a939) M sys/dev/tpm/tpm_crb.c _____________________________________________________________________________________________________________ Commit: d6f6160b8ced163d024c4abeb78aaac11a0b1428 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d6f6160b8ced163d024c4abeb78aaac11a0b1428 Author: Kevin Bowling (Wed 4 Nov 2026 19:43:28 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:16:39 GMT) tpm: crb: Correct the Pluton mailbox handshake Pluton's REPLY register indicates readiness for a new notification, not completion of the notification just sent. Wait for REPLY=1 before ringing the mailbox, then wait for START=0 when a synchronous state change needs acknowledgement. Use a separate command notification callback that waits for mailbox readiness but leaves command completion to the existing CRB_CTRL_START polling. Bound readiness waits by TPM_TIMEOUT_C, including asynchronous idle notifications, while retaining the command's execution timeout. This resolves reported command timeouts on a Framework AMD laptop. Tested by: olivier, tuexen Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D61128 (cherry picked from commit 4995fd4bf2c61e30363e588c5b90d7fc9145bf5e) M sys/dev/tpm/tpm_crb.c _____________________________________________________________________________________________________________ Commit: 2e4649f9503a82a6ed5021643a932f6a22298519 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2e4649f9503a82a6ed5021643a932f6a22298519 Author: Kevin Bowling (Thu 12 Nov 2026 01:44:18 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:14:33 GMT) ixgbe: Restore EEE exclusion for X550EM_X KR X550EM_X KR devices do not support EEE and have no setup_eee operation. The shared-code update restored the capability removed by d61b6a41dd30, and the E610 EEE support subsequently added an unchecked call during attach. Together these changes allow a NULL function pointer call when attaching a KR device. Remove the incorrect EEE capability and use the NULL-safe ixgbe_setup_eee() wrapper when enabling EEE at attach. Removing the unsupported capability also stops exposing eee_state and the eee.tx_lpi_count and eee.rx_lpi_count sysctls on X550EM_X_KR devices. Fixes: f72de14ea132 ("ixgbe: update if_ix and ixgbe api with ix-3.3.38 changes") Fixes: 13ee84c591f8 ("ix(4): Add EEE support for E610 adapters") Sponsored by: BBOX.io (cherry picked from commit 4678f9d8dc1324da6c021dc9d376a4671e72ad97) M sys/dev/ixgbe/if_ix.c _____________________________________________________________________________________________________________ Commit: 641276e3f3edba42e53a466e5fb6b32707417e36 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=641276e3f3edba42e53a466e5fb6b32707417e36 Author: Kevin Bowling (Wed 4 Nov 2026 16:55:44 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:13:39 GMT) ixgbe: Guard E610 Link Default Override access Reading Link Default Override uses the E610 Admin Command Interface, whose mutex is initialized only on E610. Calling it on other adapters can hang attach, as observed on X520. Skip the read on non-E610 devices, leaving the cached policy invalid so that the existing link-state guard also skips force-link commands. Reviewed by: kgalazka Fixes: 7868958f5c79 ("ix(4): Support Total Port Shutdown on E610") Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D61144 (cherry picked from commit 2c6b01416f80462b393bbe70a38cea017325dea8) M sys/dev/ixgbe/if_ix.c _____________________________________________________________________________________________________________ Commit: 32fdc2b1dfb691efba5cb6924d575ba4b3d710a9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=32fdc2b1dfb691efba5cb6924d575ba4b3d710a9 Author: Krzysztof Galazka (Mon 2 Nov 2026 11:17:08 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:13:11 GMT) ix(4): Support Total Port Shutdown on E610 Firmware controls the physical link state on E610 adapters, similarly to X700 and E800 adapters. As a result, running "ifconfig down" does not disable the physical link unless Total Port Shutdown is enabled. Read the Link Default Override TLV from NVM to detect when Total Port Shutdown was enabled for given port in system setup. In that case, force the link down when the interface is stopped and restore it during link configuration. Leave link state management unchanged when the TLV is unavailable or the feature is not enabled. Co-authored-by: Miłosz Linkiewicz Co-authored-by: Tomasz Lichwala Signed-off-by: Krzysztof Galazka Tested by: Mateusz Moga Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D60643 (cherry picked from commit 7868958f5c79eb986d067e02ca8239aa7491dfac) M sys/dev/ixgbe/if_ix.c M sys/dev/ixgbe/ixgbe.h M sys/dev/ixgbe/ixgbe_e610.c M sys/dev/ixgbe/ixgbe_e610.h M sys/dev/ixgbe/ixgbe_type_e610.h _____________________________________________________________________________________________________________ Commit: c48152f510be42ab66520c2575e3ff886964c6cf URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c48152f510be42ab66520c2575e3ff886964c6cf Author: Krzysztof Galazka (Fri 9 Jan 2026 22:36:10 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:12:08 GMT) ixl(4): Enable building driver on ARM64 For consistency with other drivers enable building ixl on ARM64 target. Please be advised that it is only compile tested. Intel will continue to test Ethernet drivers only on x86-64 platforms, and is not going to provide support for issues, which cannot be reproduced in such environment. Signed-off-by: Krzysztof Galazka Suggested by: Dave Cottlehuber Reviewed by: manu Approved by: kbowling (mentor) Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D54289 (cherry picked from commit a3d472219c5aa3c211371aebd2effbfade61cb5c) M sys/arm64/conf/NOTES M sys/conf/files.arm64 M sys/conf/options.arm64 M sys/modules/Makefile _____________________________________________________________________________________________________________ Commit: 2825404f87498148ed686e7fab87e6ed215fe60b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2825404f87498148ed686e7fab87e6ed215fe60b Author: Kevin Bowling (Mon 2 Nov 2026 00:40:25 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:09:37 GMT) iavf: Honor negotiated VLAN offload capabilities The driver advertised VLAN offload unconditionally, even when the PF did not grant it, as observed with an E835 VF under Hyper-V. This tells the stack to rely on hardware tag insertion and sends the PF unsupported VLAN filter requests. Advertise hardware VLAN tagging and filtering only when GET_VF_RESOURCES grants the legacy VLAN capability. Do not allocate filter shadow entries or send ADD_VLAN/DEL_VLAN requests without that capability. Retain VLAN MTU and checksum/TSO support for software-tagged packets. Keep advertised capabilities stable across resets, since existing VLAN interfaces may already rely on them. If resource rediscovery removes previously advertised VLAN offload, leave the VF stopped and require reattachment rather than resume with a stale offload contract. A newly granted capability is not exposed until reattach. Sponsored by: BBOX.io (cherry picked from commit 933c4f6e06c276548783247242b75814027159eb) M sys/dev/iavf/iavf_vc_common.c M sys/dev/iavf/if_iavf_iflib.c _____________________________________________________________________________________________________________ Commit: 56b263445bae08754302c0de30a7486322515948 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=56b263445bae08754302c0de30a7486322515948 Author: Kevin Bowling (Mon 2 Nov 2026 00:39:54 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:09:20 GMT) iavf: Reconcile VLAN filters with acknowledged requests Track desired and acknowledged VLAN membership separately. Retain pending deletions and uncertain state after failed requests instead of losing the work when a message is submitted. Make repeated registration idempotent. Adapt DPDK's synchronous, single-VID virtchnl request shape and the bounded desired-state reconciliation used by igbv and ixv. Serialize VLAN requests under the existing virtchnl mutex, with filter-list changes under the iflib context lock. Preserve an unresolved transaction so a late reply cannot be mistaken for a newer operation, including after the desired state changes. Reconcile live membership changes without restarting healthy queues. Limit each pass to 32 requests and a one-second reply deadline, continuing live batches from the admin task. Down or recovering VFs apply desired state at initialization; initialization batches continue through the existing retry callout without rediscovering the mailbox or losing acknowledged progress. Completed PF rejections retain pending work without resetting unrelated traffic. An unresolved request invokes mailbox recovery when running and prevents queue enable during initialization. Delete nonzero VLAN filters before additions so released capacity is reused in the same reconciliation pass. Add VID 0 first and delete it last, retaining untagged admission if a nonzero deletion is rejected. After a confirmed VF reset, replay desired membership. After AdminQ-only rediscovery, retain deletion tombstones and reconcile uncertain state because the PF may still hold the old filters. Sponsored by: BBOX.io (cherry picked from commit c13dfbcf43b4c7a5ba0204ad0a0c3bf34eb54be3) M sys/dev/iavf/iavf_iflib.h M sys/dev/iavf/iavf_lib.c M sys/dev/iavf/iavf_lib.h M sys/dev/iavf/iavf_vc_common.c M sys/dev/iavf/iavf_vc_common.h M sys/dev/iavf/if_iavf_iflib.c _____________________________________________________________________________________________________________ Commit: 0723e7c45219dd4ed1b4c1f87f37270ca65c570c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0723e7c45219dd4ed1b4c1f87f37270ca65c570c Author: Kevin Bowling (Mon 2 Nov 2026 00:39:27 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:09:03 GMT) iavf: Handle queue disable during reset recovery Some PFs reject a redundant DISABLE_QUEUES request after queues have already stopped. The historical driver retried the request but continued. The mailbox recovery change instead treated this NACK as a transport failure, tore down the Admin Queue without a VF reset, and could not recover the interface during API rediscovery. Track a PF's pre-reset warning separately from an observed reset and from exclusive ownership of polled AdminQ replies. RESET_IMPENDING leaves asynchronous AdminQ processing available so a concurrent stop can consume its DISABLE_QUEUES reply. VC_POLLING protects VERSION and GET_VF_RESOURCES rediscovery without blocking that reply. Record completed resets so subsequent stop/init operations do not issue a redundant queue-disable request. If queue disable is not confirmed, wait for an observed reset or request a VF reset and wait for completion. Give queue shutdown a separate 60-second monotonic deadline to accommodate slow PF reset recovery. Propagate reset submission failures and restore the previous RSTAT value when no request was submitted. Clear the attach-time recovery marker before the first runtime stop/init cycle, and suppress RSS status reporting during reset recovery. This implements the native recovery portion of D58904, with PCI containment and permanent failure handling deferred. If native shutdown cannot be confirmed, report the failure and leave recovery pending. Shutdown remains best effort because IFDI_STOP cannot return an error to prevent iflib from releasing queue resources. Matched hardware testing against the parent on E810 with two four-queue VFs covers 18 TCP smoke runs, 40 down/up cycles, three PF resets, and three CORE resets per kernel. The change eliminates all 12 observed "PF mailbox rediscovery failed: 60" messages and reduces the longest UDP delivery gap per CORE reset from 3.43-3.57 seconds to 2.62-2.67 seconds. Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58904 (cherry picked from commit 845f9747380a0db4d8a174794a5e199e80de81c0) M sys/dev/iavf/iavf_lib.c M sys/dev/iavf/iavf_lib.h M sys/dev/iavf/iavf_vc_common.c M sys/dev/iavf/if_iavf_iflib.c _____________________________________________________________________________________________________________ Commit: a044f8fff56bdbf2ebe90f4ca2bd4f2e9f2b239d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a044f8fff56bdbf2ebe90f4ca2bd4f2e9f2b239d Author: Kevin Bowling (Sun 1 Nov 2026 21:09:57 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:08:44 GMT) ice: Use the absolute VF number when adding a VSI The Add VSI AdminQ command requires an absolute hardware VF number, while vsi->vf_num is relative to its PF. Add the PF's vf_base_id, as the VF Tx queue context already does. On an E810 PF with vf_base_id 128, relative VFs 0 and 1 were associated with hardware VFs 0 and 1 instead of 128 and 129. Their receive queues became blocked and both native iavf and DPDK receivers dropped traffic. A PF whose VF base is zero hides the error. Validated the VSI-to-function mapping and receive traffic on that PF, including VF reset recovery and local PF/VF forwarding with VSI loopback enabled. Fixes: bc761988b724 ("ice: Add host SR-IOV support") Sponsored by: BBOX.io (cherry picked from commit cbaf3f1bc55524126182f63d09ed79ba8cf61cf2) M sys/dev/ice/ice_lib.c _____________________________________________________________________________________________________________ Commit: c1846b845abe13c1ccff000cac2709a6275602ea URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c1846b845abe13c1ccff000cac2709a6275602ea Author: Kevin Bowling (Sun 1 Nov 2026 21:09:57 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:08:27 GMT) ice: Allow VSI loopback in VEB mode The embedded switch installs local forwarding rules with loopback enabled, but their source VSI must also permit loopback. Without that permission, traffic between host-attached VFs can trigger Tx data MDD events instead of reaching the destination VSI. Set ICE_AQ_VSI_SW_FLAG_ALLOW_LB when initializing a VSI in VEB mode, matching the forwarding rules to the VSI permission. Keep MAC anti-spoof checking enabled. Validated on E810 with native iavf and DPDK VFs, together with the absolute VF number correction. Local forwarding and queue/reset recovery passed; spoofed source MACs were still rejected and isolated. Fixes: bc761988b724 ("ice: Add host SR-IOV support") Sponsored by: BBOX.io (cherry picked from commit 9bd865a67c22aa19c99aaee58fd98c03c5ac0bab) M sys/dev/ice/ice_lib.c _____________________________________________________________________________________________________________ Commit: b0d1fa210d1c39ccc065be43c83192ff035492d7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b0d1fa210d1c39ccc065be43c83192ff035492d7 Author: Kevin Bowling (Sun 1 Nov 2026 00:13:34 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:08:08 GMT) ice: Restart disabled VF Tx queues from saved configuration DPDK iavf's per-queue stop/start operations send DISABLE_QUEUES followed by ENABLE_QUEUES without another CONFIG_VSI_QUEUES. Disabling an ice Tx queue removes its hardware scheduler leaf, so acknowledging ENABLE alone cannot restart it. Clearing the configured bitmap also prevents the VF from requesting this sequence. Track saved configuration separately from active Tx queues. Retain ring parameters and queue handles on disable, and recreate only the selected inactive queues on enable. Share the existing Tx context builder between initial VSI configuration and per-queue restart. Keep the initial Tx-at-CONFIG behavior and the existing dense-prefix CONFIG validation. Track cleanup progress per queue and publish valid configuration only after both Tx and Rx configuration succeed. If an enable fails, undo its partial setup before permitting a retry. Retain hardware ownership when cleanup fails and reject another enable of that queue rather than silently acknowledging it. A failed post-add rollback without a software scheduler node requires VF reset, not a successful no-op disable. After a verified VF reset and DMA drain, remove any remaining software scheduler leaves and invalidate the queue contexts. Treat the initial queue disable as best effort so a failed rollback cannot permanently prevent reset recovery. Retain unresolved state if the reset or drain fails. Fixes: bc761988b724 ("ice: Add host SR-IOV support") Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59851 (cherry picked from commit 57d8db405e68fa32b98aec803693f0f5880b9b92) M sys/dev/ice/ice_iov.c M sys/dev/ice/ice_iov.h M sys/dev/ice/ice_lib.c M sys/dev/ice/ice_lib.h _____________________________________________________________________________________________________________ Commit: 98256c39a96674a3fba5ad5b5666ee062bddd955 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=98256c39a96674a3fba5ad5b5666ee062bddd955 Author: Kevin Bowling (Sat 31 Oct 2026 23:55:31 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:07:50 GMT) ice: Roll back Tx queues after scheduler setup failures Add Tx LAN Queues commits the PQM queue and PSM leaf before returning success. ice_ena_vsi_txq() can subsequently fail to create the software scheduler node or replay its saved bandwidth configuration. Returning at that point leaves an allocated queue that the caller does not record. Later queue setup can fail until a function or PF reset removes it. Issue Disable Tx LAN Queues directly from the completed Add response before returning a post-add error. Keep the rollback buffer on the stack so the allocation failure being recovered cannot also prevent cleanup. Remove any software node and invalidate its queue context only after firmware accepts the disable. Preserve the queue context and any software node when rollback fails so active hardware state is not hidden. This follows the Add and Disable command lifecycle documented in the Intel E810 Datasheet, document 613875-003, section 10.5.5.8. Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58907 (cherry picked from commit a50d83ef83d716d5e5e7f727c366561dd1b79d00) M sys/dev/ice/ice_common.c _____________________________________________________________________________________________________________ Commit: cb2385edf6eace31a8cecf8dc455c3701436a170 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cb2385edf6eace31a8cecf8dc455c3701436a170 Author: Kevin Bowling (Sat 31 Oct 2026 23:27:44 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 01:07:30 GMT) iavf: Report the programmed VF RSS configuration Implement the iflib RSS key and hash query methods for register-based and PF-managed RSS. Cache the programmed key and HENA selections so hn can synchronize its synthetic RSS configuration with the VF without reading hardware or issuing mailbox requests from the query path. For PF-managed RSS, publish the snapshot only after successful replies to both CONFIG_RSS_KEY and SET_RSS_HENA. Failed sends, rejected requests, and missing replies leave it unavailable. Protect the snapshot with vc_mtx and invalidate it at init, stop, mailbox loss, and reset notification. Gate queries with the existing running, reset, and mailbox state. Report the first 40 key bytes used by standard IPv4/IPv6 tuples, or the shorter key length supplied by the PF. Preserve register byte order and report the merged HENA on the direct-programming path. Translate the six representable IPv4/IPv6 TCP/UDP selections without treating fragment PCTYPEs as IPv6 extension-header selections. The single-queue register path reports RSS_FUNC_NONE. Leave RSS policy and queue distribution unchanged. Queries return ENXIO until the current configuration is confirmed, without waiting for a PF reply themselves. Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59808 (cherry picked from commit a0f2994b312e5a78ffce7dd7bc4521455edbc2cd) M sys/dev/iavf/iavf_iflib.h M sys/dev/iavf/iavf_lib.c M sys/dev/iavf/iavf_vc_common.c M sys/dev/iavf/if_iavf_iflib.c _____________________________________________________________________________________________________________ Commit: e71bd1775af01f884489d18acaf38b44f7f5f97e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e71bd1775af01f884489d18acaf38b44f7f5f97e Author: Kevin Bowling (Fri 18 Sep 2026 11:23:19 BST) Committer: Kevin Bowling (Fri 13 Nov 2026 00:39:26 GMT) mlx5en: Report the configured RSS tuple selections Derive SIOCGIFRSSHASH's TCP and UDP selections from the same boot-time hash configuration used by mlx5e_build_tir_ctx(). The query previously advertised all six IPv4/IPv6 hash types even when the transport-specific TIRs selected only the IP addresses. In particular, the default RSS configuration disables UDP four-tuple hashing. Continue reporting IPv4 and IPv6 two-tuple hashing unconditionally, matching the driver's IP-only TIRs. Do not report IPv6 extension-header variants which the query did not previously claim. Leave key selection, TIR programming, and the receive datapath unchanged. This lets consumers such as hn(4) match the VF's hash inputs instead of enabling incompatible UDP four-tuple hashes on their own receive path. Fixes: a00718e1dfcd ("Implement SIOCGIFRSSKEY and SIOCGIFRSSHASH and mlx5en(4).") Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59807 (cherry picked from commit 0f111a802f6beb88f3edad9fa48d3721f8b3ec7b) M sys/dev/mlx5/mlx5_en/mlx5_en_main.c _____________________________________________________________________________________________________________ Commit: 9c154d2028810af786d29c81a7cec6c60deac18c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9c154d2028810af786d29c81a7cec6c60deac18c Author: Kevin Bowling (Fri 28 Aug 2026 01:32:33 BST) Committer: Kevin Bowling (Fri 13 Nov 2026 00:39:05 GMT) tpm20: Preserve all harvested random bytes The TPM requests 16 random bytes every ten seconds, but a random harvest event retains at most eight bytes. random_harvest_queue() reduces a larger input to one 32-bit Jenkins hash, so each successful TPM request contributed only four bytes to the entropy accumulator. Split the response into harvest event sized chunks. This preserves all 16 random bytes without increasing the TPM command rate or changing its high quality source classification. Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59246 (cherry picked from commit 914892d374e924cae2a0a1d7a669f246a845ad35) M sys/dev/tpm/tpm20.c _____________________________________________________________________________________________________________ Commit: 21444267dc3fa31b11c6e4e09e1533a9f9527623 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=21444267dc3fa31b11c6e4e09e1533a9f9527623 Author: Kevin Bowling (Thu 27 Aug 2026 15:27:45 BST) Committer: Kevin Bowling (Fri 13 Nov 2026 00:38:55 GMT) tpm: Harvest entropy from TPM 1.2 devices The TPM 2.0 driver periodically contributes TPM-generated random bytes to the kernel entropy pool, but the TPM 1.2 driver does not. Issue TPM_GetRandom every ten seconds and submit successful responses as RANDOM_PURE_TPM. Keep each exchange under the TPM transaction lock. Defer harvesting while the character device is open or a command is pending so the task cannot consume a user response. Drain the task for suspend and detach, rearming it after resume or a failed suspend. Document the expanded scope of RANDOM_ENABLE_TPM and update the kernel configuration comments that described it as TPM 2.0-only. Validated on a STMicroelectronics TPM 1.2 TIS device. DTrace observed periodic entropy submissions; a raw GetRandom response remained intact while the device was held open across a harvest interval; and module unload/reload deregistered and restored the entropy source cleanly. Tested by: zarychtam_plan-b.pwste.edu.pl Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59239 (cherry picked from commit 4bcd10f7c04988056c7b28c4cbe65804d7f26d93) M share/man/man4/tpm.4 M sys/arm/conf/GENERIC M sys/arm64/conf/std.arm64 M sys/dev/tpm/tpm.c M sys/dev/tpm/tpmvar.h M sys/riscv/conf/GENERIC _____________________________________________________________________________________________________________ Commit: dd4a8c13cd03b8681e8c71526a8619d21a7ab6ed URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dd4a8c13cd03b8681e8c71526a8619d21a7ab6ed Author: Kevin Bowling (Fri 18 Sep 2026 07:35:27 BST) Committer: Kevin Bowling (Fri 13 Nov 2026 00:36:33 GMT) tpm: crb: Improve ACPI control and buffer addresses The TPM2 ControlAddress identifies the control area, not necessarily a PTP locality block. Hyper-V exposes a start-method-7 control area at the beginning of its ACPI memory resource, with command and response buffers in separate reserved memory pages. Assuming control registers are at resource + 0x40 instead writes CANCEL as LOC_CTRL and fails attach. Map the control area using ControlAddress and map buffers using their reported physical addresses. Reuse the resource mapping for contained ranges and track ownership of independent mappings for cleanup. Request locality only when the resource contains the preceding 64-byte PTP header. Keep the existing Pluton notification callbacks and locality behavior for that layout. Control, locality, and buffer accesses use their respective mappings directly, without the tpm_bus accessor class. Bound transfers by the mapped buffer sizes and TPM_BUFSIZE. Clamp an overstated buffer that starts within the ACPI resource to its remaining extent, while requiring room for a complete response header. Keep strict control-area bounds and the shared-buffer size consistency check. Write locality and state requests directly and wait for the corresponding CTRL_REQ bit to clear. The old ready wait instead tested the fatal-status bit in CTRL_STS. Enter ready state before reading buffer configuration, and check fatal status again before reading a response, while locality is still held. Retain common error cleanup and diagnose attach-time idle transition failures without replacing an earlier error. These layouts and register semantics are defined by TCG ACPI 1.5 Table 7 and PC Client PTP 1.03 sections 5.5.3.1, 5.5.3.4, and 5.5.3.5. Validation: a Windows Server 2025 Hyper-V FreeBSD guest attached and passed manufacturer queries, 700 GetRandom/PCR_Read pairs, concurrent clients, five detach/reattach cycles, and device suspend/resume with entropy harvesting active. Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59786 (cherry picked from commit f0ac0f73aea71fdcd70408c046cfca88d8a34076) M sys/dev/tpm/tpm_crb.c _____________________________________________________________________________________________________________ Commit: 5c6c2f9de27a4e6d537519fb297616c09a5cfb77 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5c6c2f9de27a4e6d537519fb297616c09a5cfb77 Author: Kevin Bowling (Fri 18 Sep 2026 13:16:54 BST) Committer: Kevin Bowling (Fri 13 Nov 2026 00:36:14 GMT) tpm: Tie exclusive-open cleanup to the file lifetime Use a cdevpriv destructor to abort an unfinished TPM 1.2 transaction and release exclusive-open ownership. Register it before setting TPM_OPEN so a failed registration leaves the device available. The last reference to the successful open triggers cleanup, including after dup() or fork(). Suggested by: kevans Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59812 (cherry picked from commit 084f245a8514e89a506e43efd1a7ed44ffdbb5eb) M sys/dev/tpm/tpm.c _____________________________________________________________________________________________________________ Commit: 5f97cc24062044f64a5b8f4c69d18398b9281ea3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5f97cc24062044f64a5b8f4c69d18398b9281ea3 Author: Kevin Bowling (Mon 14 Sep 2026 01:34:35 BST) Committer: Kevin Bowling (Fri 13 Nov 2026 00:35:53 GMT) tpm: Validate firmware interrupt routes and fall back cleanly A host IRQ resource is not necessarily an LPC SIRQ selector. Let the frontend configure the route: ACPI uses the allocated _CRS interrupt and _SRS when present, preserving the firmware selector, while ISA supplies a separate, range-checked SIRQ. Match trigger and polarity to the host route and TPM capabilities, including opaque INTRNG resource mappings. Pass the firmware descriptor unchanged to _SRS; apply the x86 ISA polarity override only when computing the TPM mode. ISA chips without rising-edge support now poll instead of substituting a level mode for the host route. For both FIFO drivers, require a complete GetRandom transport response and a fresh DATA_AVAIL interrupt before selecting interrupt waits. Perform the test with polling before publishing the device, and repeat it after resume. During cold boot, defer the test and publication to an interrupt configuration hook so the IRQ grace wait can sleep and the handler can run. Drain the hook before teardown; failed deferred initialization remains unpublished and can be detached safely. Missing or failed routes release the handler and IRQ resource; TPM 1.2 handler-setup failure now also falls back to polling. Use monotonic deadlines for TPM 1.2 locality, status and burst polling. Keep lifecycle locality waits uninterruptible, propagate command signal errors, and terminate transfers when the burst wait expires instead of retrying a zero burst indefinitely. Check VALID with the requested status bits and retain bounded polling response retries. Interrupt waits retain their original single-timeout budget and error return. Arm only DATA_AVAIL before GO. Mask delivery on the first interrupt and before relinquishing locality, preventing idle and repeated-source storms. Bound interrupt sleeps so lost delivery can recover the current command through polling. Defer unexpected-source cleanup to a task that can acquire locality, and drain it before destroying driver locks. Preserve an unread TPM 1.2 response when quiescing an already owned locality. If the ithread cannot mask the TPM, yield for a tick with the host source masked so a level storm cannot starve the command owner or cleanup worker. Register INTR_SLEEPABLE | INTR_EXCL for both drivers, and reject firmware shared routes before installing a handler. Such routes now poll: FreeBSD does not allow sleepable shared handlers. Drain maskable events during firmware programming without letting them validate or reject the IRQ test. Retain the initial hardware-quiesce guarantee, including after _SRS: initialization fails when delivery cannot be disabled, and a later unrecoverable quiesce failure suspends command access. Known TPM 1.2 NOINTS quirks and the TPM 2.0 polling hint remain effective. Frontends without an explicit route method use polling. Tested by: jrm (tpm 1.2 tis) Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59657 (cherry picked from commit 6362e5068c23ac862d64764107979371e3ca4799) M sys/conf/files M sys/dev/tpm/tpm.c M sys/dev/tpm/tpm20.h M sys/dev/tpm/tpm_acpi.c A sys/dev/tpm/tpm_acpi_subr.c M sys/dev/tpm/tpm_if.m A sys/dev/tpm/tpm_irq.h M sys/dev/tpm/tpm_isa.c M sys/dev/tpm/tpm_tis_acpi.c M sys/dev/tpm/tpm_tis_core.c M sys/dev/tpm/tpmvar.h M sys/modules/tpm/Makefile _____________________________________________________________________________________________________________ Commit: 37b1e9ae1ce9b9ef0723e9d0b9e02fe6a3eb06b9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=37b1e9ae1ce9b9ef0723e9d0b9e02fe6a3eb06b9 Author: Kevin Bowling (Sun 13 Sep 2026 18:27:56 BST) Committer: Kevin Bowling (Fri 13 Nov 2026 00:35:35 GMT) tpm: Validate TIS 1.2 IRQs and quiesce delivery before teardown The TIS 1.2 driver uses the IRQ resource value directly as the four-bit LPC SIRQ selector in TPM_INT_VECTOR, without validating it before narrowing. Add the missing range check on the full resource value and use polling for routes outside 1 through 15. This restriction reflects the driver's current routing support: parent interrupt numbers need not equal LPC SIRQ channels. Attach also installs a handler when the chip's quirks select polling. Release the IRQ resource when initialization selects polling. Retain an interrupt cookie only after successful setup and require it for interrupt waits. Share verified interrupt masking across initialization, resume, and detach. Quiesce after draining cdev methods and before removing a handler, including polling devices whose failed resume left firmware delivery on. Preserve an owned locality until the existing abort path discards any pending response. Report quiesce failures while completing detach cleanup. Diagnose a failed initialization-time disable in the attach context, even when the cleanup retry succeeds. Lifecycle locality acquisition uses the bounded timeout without PCATCH so signals cannot interrupt masking; command-path acquisition remains interruptible. Cancel timed-out or interrupted locality requests, including requests made by the ISA probe, so a late grant cannot leave locality reserved. A device whose global enable does not read back cleared now fails attach instead of publishing a cdev, and fails resume instead of accepting new commands. Initialization's existing requirement to acquire locality is unchanged. The separate legacy Atmel transport is unaffected. Tested by: jrm Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D59653 (cherry picked from commit 8d710f5383fe569635c385ca1ba62f1e4694ce8f) M sys/dev/tpm/tpm.c _____________________________________________________________________________________________________________ Commit: f340cfe861857f946246d9c7fb8abca1a5ddaf78 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f340cfe861857f946246d9c7fb8abca1a5ddaf78 Author: Kevin Bowling (Fri 30 Oct 2026 18:10:06 GMT) Committer: Kevin Bowling (Fri 13 Nov 2026 00:35:15 GMT) e1000: Honor the common RSS hash-field policy Use rss_gethashconfig() to select MRQC hash fields in both the em and igb multiqueue paths, including kernels built without options RSS. igb previously enabled UDP four-tuple hashing unconditionally, while the stack defaults to hashing only the addresses unless net.inet.rss.udp_4tuple is enabled. Honor that setting and include the configured IPv6 extension-header address hash. Limit the 82574 mapping to its supported fields. Its TCP/IPv6 selector is bit 18, named IPV6_TCP_EX in the shared definitions; bit 21 and the UDP selectors are reserved. Its default field selection is unchanged. Sponsored by: BBOX.io (cherry picked from commit 86bdf7a4aec5223b016791ffc6bffb8a51865670) M sys/dev/e1000/if_em.c _____________________________________________________________________________________________________________ Commit: a46d6ae4c0b6f6e8eb74b13da6f607d2ead74be7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a46d6ae4c0b6f6e8eb74b13da6f607d2ead74be7 Author: Nick Price (Sun 8 Nov 2026 01:32:08 GMT) Committer: Mark Johnston (Thu 12 Nov 2026 19:15:13 GMT) linux: do not truncate the listxattr() size listxattr() sized its buffer with min(), which truncates the 64-bit size to 32 bits, so a size of 2^32 + k allocated k bytes while the copy-out guard used the full size. The walk then read record lengths past the buffer and copied kernel heap out to the caller, and could panic the kernel. Any user can reach it through a user.* attribute on a file it owns. Use MIN(), and fail with EIO if a record runs past the data returned. Reviewed by: adrian, markj Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D61006 Signed-off-by: Nick Price (cherry picked from commit fbe4835e6b1eec36103a5ce97efbab11b3b5fc72) M sys/compat/linux/linux_xattr.c _____________________________________________________________________________________________________________ Commit: 42e7802e24fefd1cef6913ab162cda2c7bdc477f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=42e7802e24fefd1cef6913ab162cda2c7bdc477f Author: Olivier Cochard (Fri 16 Oct 2026 17:43:30 BST) Committer: Mark Johnston (Thu 12 Nov 2026 19:15:13 GMT) ktls: Check the record type message holds its byte sosend_generic() read the TLS record type past a TLS_SET_RECORD_TYPE control message holding only a cmsghdr, and sent that stale byte. Approved by: markj Fixes: b2e60773c6b0 ("Add kernel-side support for in-kernel TLS.") Sponsored by: Netflix (cherry picked from commit bd4975e5fb051c2b2e8d5218940b7e8ef87b5bdf) M sys/kern/uipc_socket.c M tests/sys/kern/ktls_test.c _____________________________________________________________________________________________________________ Commit: d40890ffbd8bcacfc4e24c37daad931db8f31804 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d40890ffbd8bcacfc4e24c37daad931db8f31804 Author: Michael Tuexen (Sat 7 Nov 2026 13:33:45 GMT) Committer: Michael Tuexen (Thu 12 Nov 2026 18:06:42 GMT) TCP RACK: fix RSM computation for TCP fast open When spitting an RSM containing the SYN and data, honor the sequence number used by the SYN flag when computing the offset in the socket buffer. PR: 297006 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297006 ) Reviewed by: rrs, Peter Lei Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D61149 (cherry picked from commit ff066579fd7719a6361e7ce8cc9ade47517d242d) M sys/netinet/tcp_stacks/rack.c _____________________________________________________________________________________________________________ Commit: 2292e7a4cfaa4f1ea242cfafd20820100425d504 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2292e7a4cfaa4f1ea242cfafd20820100425d504 Author: Mitchell Horne (Mon 9 Nov 2026 18:01:46 GMT) Committer: Mitchell Horne (Thu 12 Nov 2026 16:21:46 GMT) riscv: add QEMU marchid Globally allocated per: https://github.com/riscv/riscv-isa-manual/blob/main/marchid.md MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit bba06f0681bb8197f1cd11160fa489c1631f399c) M sys/riscv/include/cpu.h M sys/riscv/riscv/identcpu.c _____________________________________________________________________________________________________________ Commit: 4b9057dbb7c1c87e74921403c2f6e1dea0efd103 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4b9057dbb7c1c87e74921403c2f6e1dea0efd103 Author: Rick Richard (Sat 3 Oct 2026 17:00:00 BST) Committer: Mitchell Horne (Thu 12 Nov 2026 16:21:46 GMT) uart: Set the bus space tag before parsing hw.uart.console uart_cpu_getdev() lets hw.uart.console override the FDT, but uart_getenv() maps an "mm:" address with uart_bus_space_mem, which is only assigned after the FDT probe. On riscv and arm it is still NULL at that point, so bus_space_map() faults before there is a console. On riscv this happens on any EFI boot where the firmware provides an SPCR table, since the loader turns it into hw.uart.console. Initialize uart_bus_space_mem to fdtbus_bs_tag, as uart_cpu_arm64.c does with &memmap_bus (See also 0624eddcffefe). PR: 299089 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299089 ) Reviewed by: mhorne MFC after: 1 week Signed-off-by: Rick Richard (cherry picked from commit 9db8ae83e62e9a1391674a14b0b7d76de2e3c3f7) M sys/dev/uart/uart_cpu_fdt.c _____________________________________________________________________________________________________________ Commit: 0a8d25e0ae34649da73ce7add81eed89922dee09 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0a8d25e0ae34649da73ce7add81eed89922dee09 Author: Nick Price (Fri 11 Sep 2026 04:35:07 BST) Committer: Ed Maste (Thu 12 Nov 2026 16:06:23 GMT) aq(4): arm PHY thermal shutdown from the admin poll move thermal shutdown arming to the admin poll this gives a more reasonable delay prior to the first attempt, and also allows us to retry and make the option runtime-tuneable via a new disable_thermal_arm sysctl Approved by: adrian (mentor) Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D59593 Signed-off-by: Nick Price (cherry picked from commit 75a1939f6360d4a329891e2075d18eef069db9bb) M share/man/man4/aq.4 M sys/dev/aq/aq2_fw.c M sys/dev/aq/aq_device.h M sys/dev/aq/aq_fw.h M sys/dev/aq/aq_fw2x.c M sys/dev/aq/aq_irq.c M sys/dev/aq/aq_main.c _____________________________________________________________________________________________________________ Commit: ad0569f107768c6eaa1ecd1f407b2a42093de917 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ad0569f107768c6eaa1ecd1f407b2a42093de917 Author: Hayzam Sherif (Mon 2 Nov 2026 16:21:36 GMT) Committer: Dave Cottlehuber (Thu 12 Nov 2026 14:44:33 GMT) vmm: Skip TMR rebuilds for edge-to-edge IOAPIC writes IOAPIC redirection-table writes rendezvous all active vCPUs to rebuild their vlapic trigger-mode registers when fields other than mask or polarity change. Retargeting an edge-triggered pin incurs this cost even though it does not contribute to the TMR. vioapic_update_tmr() rebuilds the TMR from level-triggered entries only. Skip the rendezvous when the modified entry is edge-triggered both before and after the write. Check the old and new trigger modes so that edge-to-level and level-to-edge transitions still rebuild the TMR. Retain the existing all-vCPU rebuild path, mask/polarity exclusions and remote-IRR handling. Approved by: markj, cperciva Differential Revision: https://reviews.freebsd.org/D60721 MFC to: releng/15.2 Reported by: Wanpeng Qian Reviewed by: Wanpeng Qian , markj (cherry picked from commit 0340fb03288166091a8cdf694f5fed20e4c4f9ac) M sys/amd64/vmm/io/vioapic.c _____________________________________________________________________________________________________________ Commit: 88d7efb9e4fa03c8d364f9aeb88b10075e1bf69c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=88d7efb9e4fa03c8d364f9aeb88b10075e1bf69c Author: Hayzam Sherif (Mon 2 Nov 2026 16:21:18 GMT) Committer: Dave Cottlehuber (Thu 12 Nov 2026 14:44:33 GMT) vmm: Add a bulk TMR reset hook for Intel APICv vioapic_update_tmr() resets all 256 vectors before rebuilding the level-triggered vector set. With Intel virtual interrupt delivery, each per-vector reset loads the VMCS, reads and writes an EOI-exit bitmap, and clears the VMCS. Add an optional bulk-reset hook so VMX can clear the four EOI-exit bitmaps with one VMCS load/clear pair. Clear the software TMR banks directly when using the hook, and retain the per-vector fallback for backends without it. Approved by: markj, cperciva Differential Revision: https://reviews.freebsd.org/D60692 MFC to: releng/15.2 Reviewed by: markj (cherry picked from commit ee9205f068c7675cf4d23e51cc98238d95ba1950) M sys/amd64/vmm/intel/vmx.c M sys/amd64/vmm/io/vlapic.c M sys/amd64/vmm/io/vlapic_priv.h _____________________________________________________________________________________________________________ Commit: 1a57c6bc8d81d6eca4f43babde45207e6fda27b9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1a57c6bc8d81d6eca4f43babde45207e6fda27b9 Author: Dag-Erling Smørgrav (Tue 29 Sep 2026 13:12:59 BST) Committer: Dag-Erling Smørgrav (Thu 12 Nov 2026 14:26:58 GMT) xdr: Fix xdr_string Forcing maxsize to RPC_MAXDATASIZE breaks code that deliberately uses XDR with longer strings than permitted by SunRPC. MFC after: 1 week Fixes: 6448ec89e739 (" * limit size of buffers to RPC_MAXDATASIZE") Fixes: e17d7ab869bb ("xdr_string: don't leak strings with xdr_free") Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. Reviewed by: kevans, brooks Differential Revision: https://reviews.freebsd.org/D59994 (cherry picked from commit d2018cedb414ef17e77b7fc2fa19fd81328da46b) xdr: Limit xdr_wrapstring The previous commit (re)introduced the possibility that a malicious or corrupt message can cause the receiver to allocate a very large amount of memory before realizing that the message is much shorter than claimed. Revert the change to xdr_wrapstring() to avoid this. Fixes: d2018cedb414 ("xdr: Fix xdr_string") Reported by: bjk@ Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60898 (cherry picked from commit 838ff5548b4f83707f34cfd28769e35393da3f05) M lib/libc/xdr/xdr.c M sys/xdr/xdr.c _____________________________________________________________________________________________________________ Commit: 204ab270fdcb563160f2f1cedf1822a9ec98a4de URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=204ab270fdcb563160f2f1cedf1822a9ec98a4de Author: Brooks Davis (Fri 23 Jan 2026 10:35:55 GMT) Committer: Dag-Erling Smørgrav (Thu 12 Nov 2026 14:26:58 GMT) xdr_string: don't leak strings with xdr_free Historically (and in a small amount of older software such as OpenAFS), developers would attempt to free XDR strings with xdr_free((xdrproc_t)xdr_string, &string) This resulted in xdr_free calling xdr_string with only two intentional arguments and whatever was left in the third argument register. If the register held a sufficently small number, xdr_string would return FALSE and not free the string (no one checks the return values). Software should instead free strings with: xdr_free((xdrproc_t)xdr_wrapstring, &string) Because buggy software exists in the wild, act as though xdr_wrapstring was used in the XDR_FREE case and plug these leaks. Reviewed by: kib MFC after: 3 days Effort: CHERI upstreaming Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D54825 (cherry picked from commit e17d7ab869bbfe3fa5a7da4b74d9f4fa51a0d69f) M lib/libc/xdr/xdr.c M sys/xdr/xdr.c _____________________________________________________________________________________________________________ Commit: f4be8585afe720b8f72c154ac134b618d9410ddc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f4be8585afe720b8f72c154ac134b618d9410ddc Author: Christos Margiolis (Tue 3 Nov 2026 10:28:58 GMT) Committer: Christos Margiolis (Thu 12 Nov 2026 08:56:07 GMT) snd_envy24ht: Fix out-of-bounds DMA buffer indexing 378e0c5c8967 reduced the number of playback channels from 5 to 1. This introduced a regression, because the global DMA buffer indexing was not adapted accordingly, which now results in kernel panics because of out-of-bounds reads into the buffer. Additionally, because of wrong indexing, recording channels ended up being serviced by the playback part of envy24ht_intr(). Register 1 recording channel instead of 2 + sc->adcn, as the recording DMA buffer only has room for 1 stereo stream. With 1 channel per direction, give each channel the first index of its direction (ENVY24HT_CHAN_PLAY_DAC1 and ENVY24HT_CHAN_REC_ADC1). While here, fix the buffer wrap in envy24ht_r16sl(). It has to be ch->size / ch->unit, but was copied verbatim from the 32-bit equivalent, whose samples are twice as large, so 16-bit recording wrapped halfway through the DMA buffer and never read the second half. Fixes: 378e0c5c8967 PR: 299952 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299952 ) MFC after: 1 week Sponsored by: The FreeBSD Foundation Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D61155 (cherry picked from commit dbf51f8ed0a5bda749dd20aedca67ddcdfe70980) M sys/dev/sound/pci/envy24ht.c _____________________________________________________________________________________________________________ Commit: 1681aa4cd5e536c8b340bbaa12369ffa06136f15 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1681aa4cd5e536c8b340bbaa12369ffa06136f15 Author: Osvaldo Janeri Filho (Thu 29 Oct 2026 18:05:14 GMT) Committer: Maxim Konovalov (Thu 12 Nov 2026 01:28:10 GMT) bsnmp: zero-fill the destination on a short ASN.1 IpAddress asn_get_ipaddress_raw() meant to pad the 4-byte buffer after a short copy, but the loop bound was the already-reached len and never ran, leaving addr[len..3] uninitialised. Pad to 4. This is harmless for the in-tree consumers (bsnmpd(1) and libbsnmpclient) which zero the PDU before decoding it. Reviewed by: harti, maxim Approved by: harti MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60923 (cherry picked from commit b5e57452b62e7c185706ed8b2a86e9f8ac483357) M contrib/bsnmp/lib/asn1.c _____________________________________________________________________________________________________________ Commit: 55ede03fc24aa8de58814563e82e72cf8b34d9cc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=55ede03fc24aa8de58814563e82e72cf8b34d9cc Author: Osvaldo Janeri Filho (Tue 20 Oct 2026 20:11:32 BST) Committer: Ed Maste (Wed 11 Nov 2026 21:39:41 GMT) ssh: use defaultkey sentinel for ML-DSA-44 default host key servconf_add_hostkey() compares its file argument to defaultkey by pointer to skip an unreadable default key; the ML-DSA-44 entry passed the "[default]" literal, so the skip (and the "No host key files found" fallback) never applied to it. MFC after: 1 week Reviewed by: emaste Fixes: bb5c77e9d281 ("OpenSSH: Update to 10.4p1") Differential Revision: https://reviews.freebsd.org/D60922 (cherry picked from commit 2d6f961164e4ab7e823972336dc9cfaae6a88ed8) M crypto/openssh/servconf.c _____________________________________________________________________________________________________________ Commit: 8ffa19f39a729416ef626d0afad99dc708c048ed URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8ffa19f39a729416ef626d0afad99dc708c048ed Author: Ed Maste (Tue 10 Nov 2026 14:23:50 GMT) Committer: Ed Maste (Wed 11 Nov 2026 19:03:25 GMT) OpenSSH: Update to 10.6p2 Full release notes are available at https://www.openssh.org/txt/release-10.6p2 . Selected items from the upstream release notes: Future deprecation notice ------------------------- * scp(1): begin deprecating the -R flag, which is used to perform a remote-to-remote copy by executing scp on a remote host. This option is a fragile optimisation that is difficult to use because it requires credentials on the remote host. It also creates security risks if the shell quoting rules on the remote system where the copy is performed differ from the client's expectations. From OpenSSH 10.6, this option will continue to work but will cause a deprecation warning to be emitted to standard error. In a future release, the option will be ignored and will leave in place the default remote-to-remote copy behaviour (copy via the host running scp). Reviewed by: jlduran Sponsored by: The FreeBSD Foundation (cherry picked from commit 6fcdc18bdfb17c43eb05eb6289732e6adceb481a) M crypto/openssh/.depend M crypto/openssh/.github/workflows/selfhosted.yml M crypto/openssh/.github/workflows/vm.yml M crypto/openssh/auth-passwd.c M crypto/openssh/channels.c M crypto/openssh/contrib/redhat/openssh.spec M crypto/openssh/contrib/suse/openssh.spec M crypto/openssh/misc.c M crypto/openssh/myproposal.h M crypto/openssh/openbsd-compat/port-uw.c M crypto/openssh/openbsd-compat/readpassphrase.c M crypto/openssh/openbsd-compat/xcrypt.c M crypto/openssh/sandbox-seccomp-filter.c M crypto/openssh/servconf.c M crypto/openssh/sshd_config M crypto/openssh/sshd_config.5 M crypto/openssh/utf8.c M crypto/openssh/version.h _____________________________________________________________________________________________________________ Commit: bb3fe4a04aff26d6c240ef7b37eafcf3e65d27c7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bb3fe4a04aff26d6c240ef7b37eafcf3e65d27c7 Author: Jose Luis Duran (Wed 11 Nov 2026 14:41:47 GMT) Committer: Ed Maste (Wed 11 Nov 2026 19:03:25 GMT) rc: Generate ML-DSA44/Ed25519 host keys by default Commit bd9d7cdd1420 ("OpenSSH: Update to 10.5p1") introduced support for ML-DSA44/Ed25519 host keys. Generate these keys by default when the sshd service is first started. Reported by: Herbert J. Skuhra Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D61433 (cherry picked from commit 74ae9accdc2f9be13c8dab27c94ed42f6a7c8360) M libexec/rc/rc.d/sshd _____________________________________________________________________________________________________________ Commit: 1135d4e15933487f4b9927c317bf22dd1baefdfd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1135d4e15933487f4b9927c317bf22dd1baefdfd Author: Ed Maste (Tue 10 Nov 2026 14:08:18 GMT) Committer: Ed Maste (Wed 11 Nov 2026 19:03:25 GMT) OpenSSH: Update to 10.6p1 This release contains security fixes and small bugfixes. Full release notes are available at https://www.openssh.com/txt/release-10.6 . Selected items from the upstream release notes: Security ======== * ssh-agent(1): fix an interaction between agent locking and the session-bind@openssh.com extension that is used to identify forwarded agents. These binding requests were refused when the agent was locked, with the result that operations that were intended to be limited to local use only could be performed remotely, including the ability to add PKCS#11 tokens and make use of keys that had destination restrictions applied. Reported by sn0x-sharma * ssh(1): avoid potential realloc use-after-free in the client if a remote forwarding is added via the local session multiplexing socket while a remote forwarding open request is pending with the server. Report and fix from Brian Mingus of Cognatory * sshd(8): make the authorized_keys "restrict" keyword apply correctly to tunnel forwarding too (which is administratively disabled by default). Reported by Erichen, Institute of Computing Technology, Chinese Academy of Sciences New features ------------ * ssh-keygen(1): add ability to set or clear the touch-required and verify-required flags on FIDO private keys when resetting a private key's passphrase. * ssh(1): tweak ordering of certificates tried during pubkey authentication to prefer FIDO keys that do not require user presence (touch) first, and FIDO keys that require user verification via PIN or biometrics last. This effectively tries low-friction authenticators before higher friction ones. * ssh(1): add a "ssh -Z user@host" mode that prints the keys that will be tried for public key authentication in the order that they will be used. * sshd(8) use setproctitle(3) to identify sshd-session when its acting as a post-authentication monitor. Sponsored by: The FreeBSD Foundation (cherry picked from commit 6dd16be872c631a4c011983107acd213a6fe619d) M crypto/openssh/.depend M crypto/openssh/.github/ci-status.md M crypto/openssh/.github/configs M crypto/openssh/.github/pin_actions.sh M crypto/openssh/.github/setup_ci.sh M crypto/openssh/.github/workflows/c-cpp.yml M crypto/openssh/.github/workflows/selfhosted.yml M crypto/openssh/.github/workflows/upstream.yml M crypto/openssh/.github/workflows/vm.yml M crypto/openssh/ChangeLog M crypto/openssh/INSTALL M crypto/openssh/Makefile.in M crypto/openssh/README.platform M crypto/openssh/atomicio.c M crypto/openssh/auth-options.c M crypto/openssh/auth.h M crypto/openssh/auth2-hostbased.c M crypto/openssh/auth2-pubkey.c M crypto/openssh/auth2.c M crypto/openssh/channels.c M crypto/openssh/channels.h M crypto/openssh/clientloop.c M crypto/openssh/clientloop.h M crypto/openssh/config.h M crypto/openssh/configure.ac M crypto/openssh/contrib/README M crypto/openssh/contrib/redhat/openssh.spec M crypto/openssh/contrib/suse/openssh.spec M crypto/openssh/crypto_api.h M crypto/openssh/defines.h M crypto/openssh/ed25519-openssl.c M crypto/openssh/ed25519.c M crypto/openssh/ed25519.sh M crypto/openssh/gss-serv.c M crypto/openssh/kex.c M crypto/openssh/kex.h M crypto/openssh/kexgen.c M crypto/openssh/kexgexc.c M crypto/openssh/misc-agent.c M crypto/openssh/misc.c M crypto/openssh/misc.h M crypto/openssh/monitor.c M crypto/openssh/monitor_wrap.c M crypto/openssh/mux.c M crypto/openssh/myproposal.h M crypto/openssh/openbsd-compat/Makefile.in M crypto/openssh/openbsd-compat/bsd-openpty.c M crypto/openssh/openbsd-compat/openbsd-compat.h A crypto/openssh/openbsd-compat/port-linux-selinux.c M crypto/openssh/openbsd-compat/port-linux.c M crypto/openssh/openbsd-compat/readpassphrase.c M crypto/openssh/packet.c M crypto/openssh/packet.h M crypto/openssh/pathnames.h M crypto/openssh/readconf.c M crypto/openssh/readconf.h M crypto/openssh/regress/cert-userkey.sh M crypto/openssh/regress/keygen-comment.sh M crypto/openssh/regress/keytype.sh M crypto/openssh/regress/misc/sk-dummy/sk-dummy.c M crypto/openssh/regress/multiplex.sh M crypto/openssh/regress/percent.sh M crypto/openssh/regress/unittests/authopt/tests.c M crypto/openssh/regress/unittests/crypto/test_ed25519.c M crypto/openssh/regress/unittests/sshkey/mktestdata.sh M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_1 M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_1-cert.fp M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_1-cert.pub M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_1.fp M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_1.fp.bb M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_1.pub M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_1_pw M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_2 M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_2.fp M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_2.fp.bb M crypto/openssh/regress/unittests/sshkey/testdata/mldsa44_ed25519_2.pub M crypto/openssh/regress/unittests/sshsig/testdata/mldsa44-ed25519 M crypto/openssh/regress/unittests/sshsig/testdata/mldsa44-ed25519.pub M crypto/openssh/regress/unittests/sshsig/testdata/mldsa44-ed25519.sig M crypto/openssh/sandbox-seccomp-filter.c M crypto/openssh/scp.1 M crypto/openssh/scp.c M crypto/openssh/servconf.c M crypto/openssh/servconf.h M crypto/openssh/session.c M crypto/openssh/sftp-client.c M crypto/openssh/sftp-client.h M crypto/openssh/sftp-server.8 M crypto/openssh/sftp-usergroup.c M crypto/openssh/sftp.1 M crypto/openssh/sftp.c M crypto/openssh/sk-usbhid.c M crypto/openssh/ssh-add.1 M crypto/openssh/ssh-add.c M crypto/openssh/ssh-agent.1 M crypto/openssh/ssh-agent.c M crypto/openssh/ssh-ed25519-sk.c M crypto/openssh/ssh-ed25519.c M crypto/openssh/ssh-gss.h M crypto/openssh/ssh-keygen.1 M crypto/openssh/ssh-keygen.c M crypto/openssh/ssh-keyscan.c M crypto/openssh/ssh-mldsa-eddsa.c M crypto/openssh/ssh-sk-helper.c M crypto/openssh/ssh.1 M crypto/openssh/ssh.c M crypto/openssh/ssh_config.5 M crypto/openssh/ssh_namespace.h M crypto/openssh/sshconnect.c M crypto/openssh/sshconnect2.c M crypto/openssh/sshd-auth.c M crypto/openssh/sshd-session.c M crypto/openssh/sshd.8 M crypto/openssh/sshd.c M crypto/openssh/sshd_config.5 M crypto/openssh/ssherr.c M crypto/openssh/ssherr.h M crypto/openssh/sshkey.c M crypto/openssh/sshkey.h M crypto/openssh/sshpty.c M crypto/openssh/sshpty.h M crypto/openssh/utf8.c M crypto/openssh/version.h M secure/usr.sbin/sshd/Makefile _____________________________________________________________________________________________________________ Commit: 9dcb032aaeb057408acf0a4fbfaee34d08138259 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9dcb032aaeb057408acf0a4fbfaee34d08138259 Author: Ed Maste (Mon 9 Nov 2026 14:54:42 GMT) Committer: Ed Maste (Wed 11 Nov 2026 19:03:25 GMT) OpenSSH: Update to 10.5p1 This release contains security fixes and small bugfixes. Full release notes are available at https://www.openssh.com/txt/release-10.5. Selected items from the release notes: Security ======== * ssh-agent(1): fix an interaction between agent locking and the session-bind@openssh.com extension that is used to identify forwarded agents. These binding requests were refused when the agent was locked, with the result that operations that were intended to be limited to local use only could be performed remotely, including the ability to add PKCS#11 tokens and make use of keys that had destination restrictions applied. Reported by sn0x-sharma * ssh(1): avoid potential realloc use-after-free in the client if a remote forwarding is added via the local session multiplexing socket while a remote forwarding open request is pending with the server. Report and fix from Brian Mingus of Cognatory * sshd(8): make the authorized_keys "restrict" keyword apply correctly to tunnel forwarding too (which is administratively disabled by default). Reported by Erichen, Institute of Computing Technology, Chinese Academy of Sciences New features ------------ * ssh-keygen(1): add ability to set or clear the touch-required and verify-required flags on FIDO private keys when resetting a private key's passphrase. * ssh(1): tweak ordering of certificates tried during pubkey authentication to prefer FIDO keys that do not require user presence (touch) first, and FIDO keys that require user verification via PIN or biometrics last. This effectively tries low-friction authenticators before higher friction ones. * ssh(1): add a "ssh -Z user@host" mode that prints the keys that will be tried for public key authentication in the order that they will be used. * sshd(8) use setproctitle(3) to identify sshd-session when its acting as a post-authentication monitor. Sponsored by: The FreeBSD Foundation (cherry picked from commit bd9d7cdd142073d2a83d2748df8781ee552f2336) M crypto/openssh/.depend M crypto/openssh/.github/ci-status.md M crypto/openssh/.github/setup_ci.sh M crypto/openssh/.github/workflows/c-cpp.yml M crypto/openssh/.github/workflows/selfhosted.yml M crypto/openssh/.github/workflows/vm.yml M crypto/openssh/ChangeLog M crypto/openssh/Makefile.in M crypto/openssh/README.md D crypto/openssh/README.tun M crypto/openssh/auth.c M crypto/openssh/auth2-gss.c M crypto/openssh/auth2-hostbased.c M crypto/openssh/auth2-pubkey.c M crypto/openssh/authfile.c M crypto/openssh/config.h M crypto/openssh/configure.ac M crypto/openssh/contrib/redhat/openssh.spec M crypto/openssh/contrib/suse/openssh.spec M crypto/openssh/crypto_api.h M crypto/openssh/fixalgorithms M crypto/openssh/kex-names.c M crypto/openssh/kex.c M crypto/openssh/kex.h M crypto/openssh/kexecdh.c M crypto/openssh/kexgen.c A crypto/openssh/kexmlkem768ecdh.c M crypto/openssh/monitor.c M crypto/openssh/monitor_wrap.c M crypto/openssh/myproposal.h M crypto/openssh/openbsd-compat/fake-rfc2553.c M crypto/openssh/openbsd-compat/openssl-compat.h M crypto/openssh/packet.c M crypto/openssh/packet.h M crypto/openssh/readconf.c M crypto/openssh/regress/Makefile M crypto/openssh/regress/agent.sh M crypto/openssh/regress/cfgparse.sh M crypto/openssh/regress/channel-timeout.sh A crypto/openssh/regress/ecdsa256_openssh.prv A crypto/openssh/regress/ecdsa256_openssh.pub A crypto/openssh/regress/ecdsa384_openssh.prv A crypto/openssh/regress/ecdsa384_openssh.pub A crypto/openssh/regress/ecdsa521_openssh.prv A crypto/openssh/regress/ecdsa521_openssh.pub M crypto/openssh/regress/keyscan.sh M crypto/openssh/regress/misc/sk-dummy/sk-dummy.c A crypto/openssh/regress/pubkey-priority.sh M crypto/openssh/regress/rekey.sh M crypto/openssh/regress/sshfp-connect.sh M crypto/openssh/regress/unittests/bitmap/tests.c M crypto/openssh/regress/unittests/conversion/tests.c M crypto/openssh/regress/unittests/hostkeys/test_iterate.c M crypto/openssh/regress/unittests/kex/Makefile M crypto/openssh/regress/unittests/kex/test_kex.c M crypto/openssh/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c M crypto/openssh/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c M crypto/openssh/regress/unittests/sshkey/common.c M crypto/openssh/regress/unittests/sshkey/test_file.c M crypto/openssh/regress/unittests/sshkey/test_fuzz.c M crypto/openssh/regress/unittests/sshkey/test_sshkey.c M crypto/openssh/regress/unittests/sshsig/tests.c M crypto/openssh/regress/unittests/test_helper/test_helper.c M crypto/openssh/servconf.c M crypto/openssh/servconf.h M crypto/openssh/serverloop.c M crypto/openssh/sk-usbhid.c M crypto/openssh/ssh-add.1 M crypto/openssh/ssh-add.c M crypto/openssh/ssh-agent.c M crypto/openssh/ssh-ecdsa-sk.c M crypto/openssh/ssh-ecdsa.c M crypto/openssh/ssh-ed25519.c M crypto/openssh/ssh-keygen.1 M crypto/openssh/ssh-keygen.c M crypto/openssh/ssh-keyscan.c M crypto/openssh/ssh-keysign.8 M crypto/openssh/ssh-mldsa-eddsa.c M crypto/openssh/ssh-pkcs11.c M crypto/openssh/ssh-sk.c M crypto/openssh/ssh.1 M crypto/openssh/ssh.c M crypto/openssh/ssh_api.c M crypto/openssh/ssh_config.5 M crypto/openssh/sshbuf-getput-crypto.c M crypto/openssh/sshbuf.h M crypto/openssh/sshconnect.h M crypto/openssh/sshconnect2.c M crypto/openssh/sshd-auth.c M crypto/openssh/sshd-session.c M crypto/openssh/sshd.8 M crypto/openssh/sshd_config M crypto/openssh/sshd_config.5 M crypto/openssh/sshkey.c M crypto/openssh/sshkey.h M crypto/openssh/version.h M secure/lib/libssh/Makefile _____________________________________________________________________________________________________________ Commit: 4d419a4118eecbe178de6b22759dae54895befea URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4d419a4118eecbe178de6b22759dae54895befea Author: Hayzam Sherif (Mon 9 Nov 2026 03:06:11 GMT) Committer: Kyle Evans (Wed 11 Nov 2026 18:59:06 GMT) linux: Bound native getdents and getdents64 batches linux_getdents() and linux_getdents64() round their native read size up to DEV_BSIZE before converting entries. For an unaligned caller buffer, the native batch can contain more entries than fit in the Linux buffer. Conversion then returns EINVAL even after copying complete entries, and the native read has already advanced the directory position. For counts of at least DEV_BSIZE, use min(args->count, MAXBSIZE) instead. A 768-byte request, such as rustix's initial directory read, now uses a 768-byte native buffer rather than 1024. The converted Linux dirent and dirent64 records are no larger than their native counterparts, so the whole translated batch fits. Returning a short batch is allowed, and consuming the whole native batch avoids needing to rewind the directory position. Keep the existing sizing for counts below DEV_BSIZE. This fixes the oversized-batch case in both getdents interfaces, including legacy getdents for 32-bit and 64-bit callers. The remaining small-buffer, copyout-failure and old single-entry readdir problems are outside the scope of this change. Fixes: 110f2567cb51 ("linux_file.c: Fix handling of NFS [...]") Sponsored by: Alchemilla Ventures Private Limited Reviewed by: kevans, markj (cherry picked from commit ec6629628cbed2816f27aed8a6d5f9eb3521c1c1) M sys/compat/linux/linux_file.c _____________________________________________________________________________________________________________ Commit: e89fac01eee2d1efc8bae8fba55f14f2dea3bff9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e89fac01eee2d1efc8bae8fba55f14f2dea3bff9 Author: Josh Megnauth (Mon 5 Oct 2026 20:40:15 BST) Committer: Enji Cooper (Wed 11 Nov 2026 17:28:23 GMT) cd9660: Fix dereferencing invalid RR outlen ptr `ISO_RRIP_ANALYZE` is constructed in four places. Two of the initializers set the `outlen` field while the other two, `cd9660_rrip_analyze` and `cd9660_rrip_offset`, leave it uninitialized. The uninitialized paths can dereference an invalid pointer on error paths which causes a kernel panic. To fix, I zero out `ISO_RRIP_ANALYZE` in all four places where it's initialized and check that `outlen` is non-null on the error path in `cd9660_rrip_loop`. While testing the above, I encountered another kernel panic due to mounting continuing after the error branch. Evidently, the ISO continued mounting through the normal ISO 9660 path then triggered a panic down the line due to a very broken file system from the ISO. To fix that, I propagate the error from the RR path then fail in the mount path. A previous iteration of this commit included the ISO from the PR. The current iteration creates an ISO with makefs then corrupts it with a small helper written in C that is a condensed version of the CD 9660 code. It checks the input ISO for a a Rock Ridge extension reference then corrupts the length byte. This triggers the early failure in cd9660_rrip_offset. PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296853 Signed-off-by: Josh Megnauth Reviewed-by: ngie Pull-Request: https://github.com/freebsd/freebsd-src/pull/2462 (cherry picked from commit 1a4c2eedad5bd62c4ec3cdda276bf4579ecab6c6) M etc/mtree/BSD.tests.dist M sys/fs/cd9660/cd9660_rrip.c M sys/fs/cd9660/cd9660_vfsops.c M sys/fs/cd9660/iso_rrip.h M tests/sys/fs/Makefile A tests/sys/fs/cd9660/Makefile A tests/sys/fs/cd9660/cd9660_test.sh A tests/sys/fs/cd9660/rrip_corrupt.c _____________________________________________________________________________________________________________ Commit: f3555a0e240ae2b26fdf0db2e3f68ec6846bbb58 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f3555a0e240ae2b26fdf0db2e3f68ec6846bbb58 Author: Colin Percival (Tue 10 Nov 2026 02:34:43 GMT) Committer: Colin Percival (Wed 11 Nov 2026 16:02:37 GMT) bsdinstall: Set TMPDIR in pkgbase install The FreeBSD-base repository (aka "pkgbase") is now created using 'pkg repo -l' in order to make 'pkg rwhich' work. Unfortunately this makes the data.pkg file considerably larger, and FreeBSD 15.2-BETA1 fails to install using a remote repository since the installer has a small /tmp (20 MB). Run pkg commands with 'env TMPDIR=/tmp' since the /tmp in the system being installed is considerably larger than the tmpfs which the installer runs with. Create /tmp first so we can ensure it has 1777 permissions. Reviewed by: bapt MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D61380 (cherry picked from commit a7163bd76986282fdcb059b91301d3214da49642) M usr.sbin/bsdinstall/scripts/pkgbase.in _____________________________________________________________________________________________________________ Commit: b157e1ca547d6cd354f06680a5f204f206df6ffa URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b157e1ca547d6cd354f06680a5f204f206df6ffa Author: Konstantin Belousov (Sun 8 Nov 2026 12:15:22 GMT) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:57 GMT) libc/gen/err.3: reword to refer to exterror.9 (cherry picked from commit 5d622079272308ba7e9dd815ed9380ee53c14c03) M lib/libc/gen/err.3 _____________________________________________________________________________________________________________ Commit: 40d0ff39eb563b81dadecaa864fbfb4b51b12085 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=40d0ff39eb563b81dadecaa864fbfb4b51b12085 Author: Konstantin Belousov (Thu 22 Oct 2026 00:18:36 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:57 GMT) cap_enter.2: document new behavior, in particular EBUSY (cherry picked from commit 82bbfe16ae1eaa9eca970cb50abe8ac9162fe9cb) M lib/libsys/cap_enter.2 _____________________________________________________________________________________________________________ Commit: 6a3815352cb4a131d6dd9a9331a455f371d9c23f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6a3815352cb4a131d6dd9a9331a455f371d9c23f Author: Konstantin Belousov (Wed 21 Oct 2026 22:57:59 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:57 GMT) cap_enter(2): stricter checks (cherry picked from commit b357c94448997b1702c5d3be9cc3a9531ba92ffc) M sys/kern/sys_capability.c _____________________________________________________________________________________________________________ Commit: fcfe407d2aaa697696d0a19d19e6403f084bd2af URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fcfe407d2aaa697696d0a19d19e6403f084bd2af Author: Konstantin Belousov (Sat 24 Oct 2026 14:22:58 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:56 GMT) chroot.2: document EPERM for shared pwd (cherry picked from commit aff8d265fa1c4b6d5c7a5220e328bcb7b62585f2) M lib/libsys/chroot.2 _____________________________________________________________________________________________________________ Commit: 952fd61504cceedf962457dbf87de6248e7e1ba4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=952fd61504cceedf962457dbf87de6248e7e1ba4 Author: Konstantin Belousov (Sat 24 Oct 2026 13:59:08 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:56 GMT) kern: do not allow unprivileged chroot when pwd is shared (cherry picked from commit e95e010fd0de721ae0e87bb24e20ec53aec8629e) M sys/kern/vfs_syscalls.c _____________________________________________________________________________________________________________ Commit: 45f988b6abfdf1b7b62f429f5fc1eb89296c1327 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=45f988b6abfdf1b7b62f429f5fc1eb89296c1327 Author: Konstantin Belousov (Wed 21 Oct 2026 23:54:59 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:56 GMT) pwddesc: add sharecount (cherry picked from commit 5276fba9fd55bf2e79c54df18a70b46d11cc15a1) M sys/kern/kern_descrip.c M sys/sys/filedesc.h _____________________________________________________________________________________________________________ Commit: a79aca4b320bf31e6b72eff900760326201e5cae URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a79aca4b320bf31e6b72eff900760326201e5cae Author: Konstantin Belousov (Sat 26 Sep 2026 17:31:21 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:56 GMT) kern/vfs_syscalls.c: extract privilege check from kern_chroot() (cherry picked from commit f809179ba9811decc518cb5694a289d169a5d6ae) M sys/kern/vfs_syscalls.c _____________________________________________________________________________________________________________ Commit: c6ff0ba9f51461f05d743b5d7bd35968f3b7cf64 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c6ff0ba9f51461f05d743b5d7bd35968f3b7cf64 Author: Konstantin Belousov (Thu 22 Oct 2026 22:28:43 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:55 GMT) libthr: test pthread_query_np(3) and pthread_query_all_np(3) (cherry picked from commit 9bd30915963157d975969649f8b3143408ecdf3c) M lib/libthr/tests/Makefile A lib/libthr/tests/pthread_query_test.c _____________________________________________________________________________________________________________ Commit: f10f1e24fc9d7cd62221388dc0dc28aa97e95f39 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f10f1e24fc9d7cd62221388dc0dc28aa97e95f39 Author: Konstantin Belousov (Mon 19 Oct 2026 21:43:55 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:55 GMT) man3: document pthread_query_np(3) and pthread_query_all_np(3) (cherry picked from commit 7e904a6ef80321ad6ebd192126e05f8b714dce46) M share/man/man3/Makefile A share/man/man3/pthread_query_np.3 _____________________________________________________________________________________________________________ Commit: 1da7bc7495794172a054e43f9986fa453fca5b91 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1da7bc7495794172a054e43f9986fa453fca5b91 Author: Konstantin Belousov (Sun 18 Oct 2026 10:46:56 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:55 GMT) libthr: pthread_query_np(3) and pthread_query_all_np(3) (cherry picked from commit 588bd8bb6c1331dad1bbe1cf222db970f6476c44) M include/pthread_np.h M lib/libthr/pthread.map M lib/libthr/thread/Makefile.inc A lib/libthr/thread/thr_query.c _____________________________________________________________________________________________________________ Commit: a64b48d688a6389f4e1a237e2cfa235861afbbd1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a64b48d688a6389f4e1a237e2cfa235861afbbd1 Author: Konstantin Belousov (Mon 19 Oct 2026 22:59:52 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:55 GMT) libthr: fix the race between pthread_getname_np() and thread exit (cherry picked from commit 49e0c6270c73f1570efc67028004db9da56da2d1) M lib/libthr/thread/thr_exit.c M lib/libthr/thread/thr_list.c _____________________________________________________________________________________________________________ Commit: dfe1bc3672cdbb938662fea6449097cd6e43a443 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dfe1bc3672cdbb938662fea6449097cd6e43a443 Author: Konstantin Belousov (Mon 19 Oct 2026 23:18:24 BST) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:54 GMT) libc: provide the declaration for __libsys_errno in libc_private.h (cherry picked from commit 7f309ac03989032903cce945a743a6046e496b10) M lib/libc/include/libc_private.h M lib/libthr/sys/thr_error.c M lib/libthr/thread/thr_rtld.c _____________________________________________________________________________________________________________ Commit: c1dfe1821292daea73d468bca565fe08d874cfc0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c1dfe1821292daea73d468bca565fe08d874cfc0 Author: Konstantin Belousov (Tue 27 Oct 2026 13:05:59 GMT) Committer: Konstantin Belousov (Tue 10 Nov 2026 19:53:54 GMT) libthr/thr_mutex.c: make mutex asserts more useful (cherry picked from commit 4ab9e73994e673e518d1b0631f8ce7d1faec6d80) M lib/libthr/thread/thr_mutex.c _____________________________________________________________________________________________________________ Commit: 6df22096ddb27edb169cfb6758d1dab130f9f683 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6df22096ddb27edb169cfb6758d1dab130f9f683 Author: Xin LI (Tue 3 Nov 2026 03:02:03 GMT) Committer: Xin LI (Tue 10 Nov 2026 04:32:52 GMT) mqueuefs: set *a_eofflag in VOP_READDIR mqfs_readdir() never reported end of directory. Since 77b273d8f5f4 VOP_READDIR_APV() asserts that a readdir which returns no entries also sets *a_eofflag, so with INVARIANTS the final zero-length getdirentries(2) that ls(1) issues on a mounted mqueuefs panics: panic: VOP_READDIR: eofflag not set Report end of directory when the child list was walked to its end; leave the flag clear when the walk stopped because the buffer was full. (cherry picked from commit fbac0abdc5ab1fe867ac85635662ef06b2ee9d10) M sys/kern/uipc_mqueue.c _____________________________________________________________________________________________________________ Commit: cfd1aabac12fc239d1c9b8433b29c68a25a7e5b6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cfd1aabac12fc239d1c9b8433b29c68a25a7e5b6 Author: Xin LI (Tue 3 Nov 2026 03:00:58 GMT) Committer: Xin LI (Tue 10 Nov 2026 04:31:31 GMT) i2ctinyusb: do not list i2ctinyusb.c twice in SRCS The module Makefile named its only source file in both the SRCS= line and the SRCS+= line that follows. bsd.kmod.mk tolerates the duplicate in a normal build, but when the kernel is built with -flto=thin the linker sees the same bitcode object twice and refuses to link the module ("Expected at most one ThinLTO module per bitcode file"). Fixes: 54e231b373ef (cherry picked from commit b5cd411af6418986fa0da9c12d02b9f26c344a4a) M sys/modules/usb/i2ctinyusb/Makefile _____________________________________________________________________________________________________________ Commit: ebecf68489454f475fb30680bc9d179f1c614e7f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ebecf68489454f475fb30680bc9d179f1c614e7f Author: Andre Silva (Fri 6 Nov 2026 15:20:08 GMT) Committer: Mitchell Horne (Mon 9 Nov 2026 16:06:46 GMT) hwpmc: release a PMC whose ID could not be copied out If copyout of the newly allocated PMC ID fails, the caller cannot use or release the PMC. Release it in the kernel. Reviewed by: mhorne MFC after: 3 days Sponsored by: Advanced Micro Devices, Inc. Differential Revision: https://reviews.freebsd.org/D60562 (cherry picked from commit e5a48c8e0dd026ba953cf401c4dec02f76078aa2) M sys/dev/hwpmc/hwpmc_mod.c _____________________________________________________________________________________________________________ Commit: 494bc0464d90fb538cc0621710eb288855029e59 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=494bc0464d90fb538cc0621710eb288855029e59 Author: Andre Silva (Thu 5 Nov 2026 13:54:31 GMT) Committer: Mitchell Horne (Mon 9 Nov 2026 16:06:46 GMT) pmc(8): zero-initialize the event descriptor in stat mode cmd_pmc_stat allocated the event descriptor with malloc and then set only some of its fields, so the rest held whatever was on the heap. Use calloc() instead. Reviewed by: mhorne MFC after: 3 days Sponsored by: AMD Signed-off-by: Andre Silva Differential Revision: https://reviews.freebsd.org/D59364 (cherry picked from commit a97914284c2e7a7dc330f4d93218e8d7f1e758b2) M usr.sbin/pmc/cmd_pmc_stat.c _____________________________________________________________________________________________________________ Commit: 3c6c65bbb2587a34603d967ddde5d1489e848979 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3c6c65bbb2587a34603d967ddde5d1489e848979 Author: Maxim Konovalov (Sun 1 Nov 2026 14:59:08 GMT) Committer: Maxim Konovalov (Mon 9 Nov 2026 04:23:30 GMT) tests/sys/file: add tests for the lowest fd after fork fdcopy() skips plain kqueues and close-on-fork descriptors when it copies the table into the child. Check that dup(2) in the child still returns the lowest unused descriptor, both when the skipped descriptor is the lowest free slot and when it sits above an existing hole. Test cases: kqueue_no_hole a plain kqueue is the lowest descriptor; the child's dup() reuses its slot kqueue_two two adjacent plain kqueues; the child's dup() returns the lower one kqueue_above_hole a plain kqueue sits above a closed descriptor; the child's dup() returns the hole kqueue_cponfork a KQUEUE_CPONFORK kqueue is copied; the child's dup() returns the next slot clofork_no_hole an O_CLOFORK descriptor is the lowest one; the child's dup() reuses its slot clofork_above_hole an O_CLOFORK descriptor sits above a closed descriptor; the child's dup() returns the hole Without 99a58803f9a3, kqueue_no_hole, kqueue_two and clofork_above_hole fail. PR: 300234 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300234 ) Reviewed by: kib MFC after: 1 week MFC with: 99a58803f9a3 Co-authored-by: Claude Code Opus 5.5 Differential Revision: https://reviews.freebsd.org/D61124 (cherry picked from commit f9f4abe8c9f8b5a783538d2b99254d9845572e70) M tests/sys/file/Makefile A tests/sys/file/fork_lowfd_test.c _____________________________________________________________________________________________________________ Commit: 1a10bff4ce4772bb1611c286df8728cace5dfb65 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1a10bff4ce4772bb1611c286df8728cace5dfb65 Author: Kyle Evans (Thu 5 Nov 2026 21:53:30 GMT) Committer: Kyle Evans (Mon 9 Nov 2026 03:12:24 GMT) virtio_random: defer first enqueue until after DRIVER_OK According to the virtio spec: > The driver MUST NOT send any buffer available notifications to the > device before setting DRIVER_OK. DRIVER_OK isn't set until after attach completes, so defer the first enqueue. We haven't found any problems as a result of this to the best of my knowledge: q35 and other devices that we *have* been used with will apparently check when we go DRIVER_OK. Tested with q35 virtio-random, which still works. Reported by: llm-postcr Reviewed by: kfv, markj Fixes: f1c5a2e3a62505 ("virtio_random: Pipeline fetching the data") Sponsored by: Stormshield Sponsored by: Klara, Inc. (cherry picked from commit 12f90bbd3029fedea93e9bb0b1f02c3afafe237b) M sys/dev/virtio/random/virtio_random.c _____________________________________________________________________________________________________________ Commit: ffa1d4d70a747abccc476321beaea7d1c0bd1cda URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ffa1d4d70a747abccc476321beaea7d1c0bd1cda Author: Kyle Evans (Wed 4 Nov 2026 21:31:31 GMT) Committer: Kyle Evans (Mon 9 Nov 2026 03:12:17 GMT) virtio_pci_modern: enable virtqueues before completing attach Most of our drivers setup interrupt(s) and virtqueues are enabled at that time, but nothing will currently enable them for devices that we're only going to poll. This most notably affects virtio-random, and the problem can be observed with qemu's q35 emulation and a random device attached. The q35 implementation ignores the ring unless it's enabled, so vtrnd_harvest() will consistently EAGAIN rather than contribute anything of value, but with this patch it becomes functional. This can be reproduced with a qemu invocation like so: qemu-system-x86_64 -machine q35,accel=tcg -cpu max -smp 2 -m 2G \ -drive file=FreeBSD-16.0-CURRENT-amd64-ufs.qcow2,if=virtio \ -device pcie-root-port,id=rp1,bus=pcie.0,chassis=1 \ -object rng-random,id=rng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=rng0,bus=rp1 \ -display curses Reviewed by: bnovkov, kfv Sponsored by: Stormshield Sponsored by: Klara, Inc. (cherry picked from commit c67e695b8f7eff84f7daa9e30eba7eb5ec552436) M sys/dev/virtio/pci/virtio_pci_modern.c _____________________________________________________________________________________________________________ Commit: ddfd685e267b1b662326d2b490beb20cb72b2857 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ddfd685e267b1b662326d2b490beb20cb72b2857 Author: Kyle Evans (Wed 4 Nov 2026 21:31:31 GMT) Committer: Kyle Evans (Mon 9 Nov 2026 03:12:12 GMT) virtio_random: stop on detach, don't poll If the device is hung, then polling will block the detach and hang us. Stop it and drain the queue instead. This fixes a hang on detach in some circumstances without the upcoming virtio_pci_modern fix. Reviewed by: bnovkov, kfv Sponsored by: Stormshield Sponsored by: Klara, Inc. (cherry picked from commit cce522853aae3da45b131c2522dd2510edf083e7) M sys/dev/virtio/random/virtio_random.c _____________________________________________________________________________________________________________ Commit: 45819a7c26d376730404caafba9f13b1a70185b5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=45819a7c26d376730404caafba9f13b1a70185b5 Author: Kyle Evans (Wed 4 Nov 2026 21:31:31 GMT) Committer: Kyle Evans (Mon 9 Nov 2026 03:12:06 GMT) virtio_random: avoid using vtrnd_detach in the failure path On the off chance that we discover more than one virtio-random device, the second one will deregister the global instance or trip an invariant when it fails to attach and calls vtrnd_detach(). We don't have that many resources to free, so just inline those. This is purely a hygiene thing, we haven't seen an instance of this in the wild (to my knowledge). Reviewed by: bnovkov, kfv Sponsored by: Stormshield Sponsored by: Klara, Inc. (cherry picked from commit 26ba71f73e8914ecd9e5b1e7bb864fee41158d04) M sys/dev/virtio/random/virtio_random.c _____________________________________________________________________________________________________________ Commit: 91bcaea97cc6da847bb4edf5b9822b461c5a43fe URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=91bcaea97cc6da847bb4edf5b9822b461c5a43fe Author: Konstantin Belousov (Fri 6 Nov 2026 13:05:50 GMT) Committer: Konstantin Belousov (Mon 9 Nov 2026 01:13:21 GMT) amd64: make hw.splitlock_force adjustable at runtime (cherry picked from commit 57bc1e1c2f4c01953336bdf03743e30f4ba12cdc) M sys/amd64/amd64/machdep.c _____________________________________________________________________________________________________________ Commit: 78121aaf4de66c6904a043427ea1af7d7d64b7d5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=78121aaf4de66c6904a043427ea1af7d7d64b7d5 Author: Christos Margiolis (Tue 27 Oct 2026 10:49:46 GMT) Committer: Christos Margiolis (Sun 8 Nov 2026 09:24:13 GMT) kern: Remove unreachable compat_freebsd8 FEATURE COMPAT_FREEBSD8 does not exist as a kernel option, so this is dead code. No functional change intended. Fixes: e256f71389fb ("kernel: add missed FEATUREs compat_freebsd 8-14") MFC after: 1 week Sponsored by: The FreeBSD Foundation Reviewed by: kib Pull-Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/80 (cherry picked from commit 9da2c05a748fd17757638e1a9e78215cdb8b80d0) M sys/kern/kern_mib.c _____________________________________________________________________________________________________________ Commit: 77fa63fa43fc8df1cfb86476b9caff24d10de6bc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=77fa63fa43fc8df1cfb86476b9caff24d10de6bc Author: Alan Cox (Sun 1 Nov 2026 18:25:05 GMT) Committer: Alan Cox (Sun 8 Nov 2026 04:09:31 GMT) arm64 pmap: demote L3C pages in pmap_clear_modify() When pmap_clear_modify() demotes a dirty L2 block mapping, it write protects the L3 entry that maps "m", so that a subsequent write access may repromote. However, since fd6cb031f577, the L3 entries created by pmap_demote_l2_locked() may have ATTR_CONTIGUOUS set, and pmap_clear_modify() was write protecting one L3 entry within an L3C page while leaving the page's other L3 entries writeable with ATTR_CONTIGUOUS still set. A TLB entry that a processor creates from any of those other L3 entries may translate "m"'s virtual address and permit writes to "m" without a fault. To fix this issue, as in pmap_remove_write(), demote the L3C page before write protecting the L3 entry. (cherry picked from commit 6d7960628f825f1eec0959d6000a79ca8a4ae927) M sys/arm64/arm64/pmap.c _____________________________________________________________________________________________________________ Commit: 94df98ceb3689d0cbf064edb5cddb000cf35235a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=94df98ceb3689d0cbf064edb5cddb000cf35235a Author: Ahmad Khalifa (Wed 4 Nov 2026 15:37:54 GMT) Committer: Ahmad Khalifa (Sat 7 Nov 2026 14:04:36 GMT) sdiob: copy vendor/device IDs from card common CIS Copy both the vendor and device IDs from the card common CIS if they are absent in a function. These are optional according to the spec. [1] [1] Part E1 SDIO Simplified Specification §16.6 MFC after: 3 days Reviewed by: kibab, imp, adrian Differential Revision: https://reviews.freebsd.org/D60988 (cherry picked from commit c91dfb47e0bcdf682f7f152624e03747787c6ea3) M sys/dev/sdio/sdiob.c _____________________________________________________________________________________________________________ Commit: 5b5f93f12e3683b3ba7d2d600384bb5c4ed6e91a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5b5f93f12e3683b3ba7d2d600384bb5c4ed6e91a Author: Stefan Eßer (Sat 10 Oct 2026 21:51:30 BST) Committer: Colin Percival (Fri 6 Nov 2026 21:35:55 GMT) contrib/bc: remove vs sub-directory Some of the files in the vs sub-directory are checked out with CRLF line breaks via .getattributes. This causes issues when checking out the source tree with other tools that operate on Git repositories like "got". Remove the vs sub-directory from the contrib tree, since it is not required on FreeBSD. (cherry picked from commit 94d4ba04a96f495d635bf246e4d5021eb1faab22) A contrib/bc/.gitignore D contrib/bc/vs/bc.sln D contrib/bc/vs/bc.vcxproj D contrib/bc/vs/bc.vcxproj.filters D contrib/bc/vs/bcl.sln D contrib/bc/vs/bcl.vcxproj D contrib/bc/vs/bcl.vcxproj.filters D contrib/bc/vs/tests/tests_bc.bat D contrib/bc/vs/tests/tests_dc.bat _____________________________________________________________________________________________________________ Commit: b3eec38fc2f10ccc32fba1436f0b049657a17657 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b3eec38fc2f10ccc32fba1436f0b049657a17657 Author: Anna Fireshevsky (Wed 28 Oct 2026 22:58:24 GMT) Committer: Michael Osipov (Fri 6 Nov 2026 20:26:26 GMT) sdhci_pci: Add Intel Sunrise Point-LP SDXC controller Co-authored-by: Michael Osipov PR: 300175 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300175 ) Reviewed by: imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D60973 (cherry picked from commit 584f44221f45c5c26ec2a2888a3815c6f34bfad0) M sys/dev/sdhci/sdhci_pci.c _____________________________________________________________________________________________________________ Commit: 67b17be57a1c5661da77aacc5054b58d0c5ad9fb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=67b17be57a1c5661da77aacc5054b58d0c5ad9fb Author: Osvaldo Janeri Filho (Thu 29 Oct 2026 20:25:01 GMT) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) nfsserver: use the destination export for the COPY/CLONE write check The write-permission check on the destination file in nfsrvd_copy_file_range() and nfsrvd_clone() tested NFSVNO_EXSTRICTACCESS() on the source export instead of the destination export. Rick notes: The change is harmless and mostly meaningless. NFSVNO_EXSTRICTACCESS() is a placeholder for some site that might not want to let the file "owner" get access despite mode bits. The "owner override" is a hack that has existed forever in NFS, since applications often create files with O_WRONLY, but mode 444. This works for POSIX, but would make NFS writes fail, since they check mode on every write, instead of just at POSIX open(). The hack is to always allow the file owner to have write access. Without the hack, lots of applications would break over NFS, so I doubt anyone would enable NFSVNO_EXSTRICTACCESS(). { No one has ever even wanted an export flag for it. } Reviewed by: rmacklem, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60952 (cherry picked from commit d5c2465af8434d3eb7551d12220b4a24e7dca8af) M sys/fs/nfsserver/nfs_nfsdserv.c _____________________________________________________________________________________________________________ Commit: 7cb57bf82fb1b1dbed96e04ac996251c45c14fd7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7cb57bf82fb1b1dbed96e04ac996251c45c14fd7 Author: Wanpeng Qian (Thu 29 Oct 2026 17:27:04 GMT) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) vm_kern: wrap around in kmem_back() when the last domain is empty kmem_back() picks the domain from the address and, when that domain has no memory, steps forward until it finds one that does: domain = (addr >> KVA_QUANTUM_SHIFT) % vm_ndomains; while (VM_DOMAIN_EMPTY(domain)) domain++; Nothing stops the walk at vm_ndomains. When the empty domain is the last one, the loop runs through the unused tail of vm_dom[] (all empty) and on into whatever follows vm_dom[MAXMEMDOM] in memory, until a word there happens to look like a non-zero page count; kmem_back_domain() then allocates from that garbage domain. Ordinary allocations never get here, because the per-domain arenas and the domainset iterators skip empty domains. Only the direct callers of kmem_back() do: kinst (one trampoline per thread, allocated when the module loads) and memguard. Signed-off-by: Wanpeng Qian Reviewed by: kib, markj Sponsored by: keelos.dev MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60935 (cherry picked from commit 710a12b355fd985eec0f2a85626480c636f5468b) M sys/vm/vm_kern.c _____________________________________________________________________________________________________________ Commit: 149cebf08dd535e438d87f247bed25d0534713c6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=149cebf08dd535e438d87f247bed25d0534713c6 Author: Mark Johnston (Thu 22 Oct 2026 17:41:04 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) malloc: Fix realloc() for large allocations min() truncates its parameters. MFC after: 1 week Sponsored by: The FreeBSD Foundation (cherry picked from commit ca16e7a4920415bf9d09cf76bd2c3cda7447c098) M sys/kern/kern_malloc.c _____________________________________________________________________________________________________________ Commit: 2958f9c6b669be3620ff6c71a5d4c8d973abb14c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2958f9c6b669be3620ff6c71a5d4c8d973abb14c Author: Mark Johnston (Tue 27 Oct 2026 16:47:36 GMT) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) vm_glue: Use the right type for size arguments to {user,kern}acc() MFC after: 1 week Sponsored by: The FreeBSD Foundation (cherry picked from commit c525db0c44b7db430b67fdd276f0a22c2f8e9f61) M sys/vm/vm_extern.h M sys/vm/vm_glue.c _____________________________________________________________________________________________________________ Commit: 06da67ded27480ba0bc058e45ba1208f5be94b67 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=06da67ded27480ba0bc058e45ba1208f5be94b67 Author: Hans Rosenfeld (Tue 20 Oct 2026 16:11:52 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) amd64/vmm: Port vlapic interface changes from illumos (duplicate) This is a port of the bits related to vlapic-enablement of the following bhyve improvement from illumos: 14598 bhyve vlapic should handle APICBASE changes https://www.illumos.org/issues/14598 A LAPIC can be enabled/disabled in two ways: - by the global-enable bit in the APICBASE MSR - by the software-enable bit in the APIC's SVR register This change allows distinguishing between both forms of enablement where that matters. The more involved changes to allow guests to modify the APICBASE MSR are not included at this time. Reviewed by: corvink, markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D56347 (cherry picked from commit a11b901f5a46de33d53899200744252424a37efe) M sys/amd64/vmm/io/vlapic.c M sys/amd64/vmm/io/vlapic.h _____________________________________________________________________________________________________________ Commit: 2f300b59165150ad30000bdf9f05170391f5a1bf URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2f300b59165150ad30000bdf9f05170391f5a1bf Author: Mark Johnston (Tue 20 Oct 2026 16:41:21 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) bhyve: Treat BAR registration failures as non-fatal Some guest operating systems (at least 9front) will leave device I/O space decoding enabled while probing BAR sizes. In this case, a sufficiently large 32-bit BAR can overlap with the HPET MMIO region fixed at 0xfed00000. This results in an assertion failure in modify_bar_registration(), even though the collision is transient, i.e., the guest will promptly map the BAR elsewhere. Tolerate such overlaps. Keep track of a BAR's registration state and make sure that modify_bar_registration() doesn't try to unregister an I/O space if registration failed. This fixes a problem where a 32MB framebuffer ends up overlapping with the HPET MMIO region, causing some guests to crash with an assertion failure when probing BARs during boot. PR: 290098 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290098 ) Reviewed by: bnovkov MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60748 (cherry picked from commit 6f051f0e56feba19731adfa6f6bd2a098b5091de) M usr.sbin/bhyve/pci_emul.c M usr.sbin/bhyve/pci_emul.h _____________________________________________________________________________________________________________ Commit: 1e314d8c1ff9e4312d23fcb654058f312effe7ab URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1e314d8c1ff9e4312d23fcb654058f312effe7ab Author: Mark Johnston (Mon 26 Oct 2026 22:24:06 GMT) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) virtio_p9fs: Mark response buffers as initialized for KMSAN MFC after: 1 week Sponsored by: The FreeBSD Foundation (cherry picked from commit eca7cba74c95c8cd64c0ea4299984484784aa836) M sys/dev/virtio/p9fs/virtio_p9fs.c _____________________________________________________________________________________________________________ Commit: 88e562a9977fd5ce64a1f53e753ca70ddbd8117b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=88e562a9977fd5ce64a1f53e753ca70ddbd8117b Author: Mark Johnston (Tue 20 Oct 2026 16:30:38 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) hv_kvp: Fix some bugs and nits - Use pending_mutex to synchronize several state flags. In particular, ensure that two threads can't race to open the device file at the same time.[1] - Fix an off-by-one in hv_kvp_dev_daemon_read() that would result in a one-byte OOB read if the caller supplied a large enough read buffer.[2] - Change the device permissions to 0600: hv_kvp_dev_daemon_read() returns an error until the owning process registers itself with a write, so there's no sense in providing read-only access. - Use bool instead of boolean_t. - Don't return negative error numbers to userspace. - Call seldrain() when closing the device. Reported by: pixelpop [1][2] MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60387 (cherry picked from commit ebf1041fc854c531a27efd9f979e28d57306777d) M sys/dev/hyperv/utilities/hv_kvp.c _____________________________________________________________________________________________________________ Commit: 077a58317f1a3b54077306b6f76252a53a9af439 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=077a58317f1a3b54077306b6f76252a53a9af439 Author: Mark Johnston (Mon 19 Oct 2026 14:54:33 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) bhyve: Fix virtio-input event array resizing Use the new array size when calling realloc(). Note that this queue stores events read from a host evdev device, i.e., it is not guest-controlled. While here, use the cdefs.h __unused macro and use them correctly, i.e., don't mark "arg" as unused when it isn't. Reported by: Brian Delgado from Intel using Anthropic Opus 4.8 Fixes: 054accac71e0 ("Add a virtio-input device emulation.") MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60679 (cherry picked from commit f1986e5b88630b1404a202251499bca0f97f5f06) M usr.sbin/bhyve/pci_virtio_input.c _____________________________________________________________________________________________________________ Commit: c5b902b6c194d384c57fb9b997fa14fcf351916c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c5b902b6c194d384c57fb9b997fa14fcf351916c Author: Mark Johnston (Wed 28 Oct 2026 20:26:44 GMT) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) tests/dhclient: Skip tests if scapy is not installed Fixes: a143197801c6 ("dhclient: Add some regression tests") (cherry picked from commit 8fa55fdcae4ecbd2ec13ef91cc9d172095e21189) M sbin/dhclient/tests/functional.py _____________________________________________________________________________________________________________ Commit: 9e815856a0b1ee867f7d4c7588712b56c2876285 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9e815856a0b1ee867f7d4c7588712b56c2876285 Author: Siva Mahadevan (Tue 27 Oct 2026 17:19:27 GMT) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) tests/dhclient: import scapy inside vnet This fixes a [CI failure][0]. [0] https://ci.freebsd.org/job/FreeBSD-main-amd64-test/29813/testReport/sbin.dhclient.functional/py/__test_cases_list__/ PR: 299641 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299641 ) Reviewed by: markj, ngie MFC after: 3 days Sponsored by: The FreeBSD Foundation Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/83 (cherry picked from commit bd87fc2a1c1a20a080c38b12a55b377967a7c4a7) M sbin/dhclient/tests/functional.py _____________________________________________________________________________________________________________ Commit: 0a8afdf8158d782284718abf3fe177bea0af498b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0a8afdf8158d782284718abf3fe177bea0af498b Author: Mark Johnston (Wed 14 Oct 2026 22:12:51 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) dhclient: Add some regression tests Add tests for some recently fixed bugs in dhclient. All of these tests set up two VNET jails connected by an epair. dhclient runs in one jail, and the test code runs on the other end. It uses scapy to inject "interesting" packets in response to DHCPDISCOVER messages from dhclient, then checks the configured interface and lease file. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60485 (cherry picked from commit a143197801c680b958ab662c88cf086668a1958b) M sbin/dhclient/tests/Makefile A sbin/dhclient/tests/functional.py _____________________________________________________________________________________________________________ Commit: 8f7257c50434362e4216934fcf57d77616c39bd2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8f7257c50434362e4216934fcf57d77616c39bd2 Author: Mark Johnston (Wed 14 Oct 2026 22:12:42 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) dhclient: Avoid out-of-bounds reads in check_classless_option() The loop did not verify that the option buffer is large enough before reading an address. Reported by: Andrew Griffiths MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60484 (cherry picked from commit 368a1bfcd49315e8dd3e56ca6744ce5d74ef737b) M sbin/dhclient/dhclient.c _____________________________________________________________________________________________________________ Commit: 927ed6112270ba5e1a07b770dd9d2a6096f9ae39 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=927ed6112270ba5e1a07b770dd9d2a6096f9ae39 Author: Osvaldo Janeri Filho (Tue 20 Oct 2026 16:40:28 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) inetd: use snprintf() in inetd_setproctitle() inetd_setproctitle() formats se_service (the service name taken verbatim from inetd.conf) and the peer address into an 80-byte buffer with sprintf(). A long service name can overflow it. Bound both calls with snprintf(). MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60879 (cherry picked from commit 9ab2bf0f4296e8bfafe4dc70f2f200265e6933bd) M usr.sbin/inetd/inetd.c _____________________________________________________________________________________________________________ Commit: 8e12821ac016f3c8412e7c97dd26b9574162dc58 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8e12821ac016f3c8412e7c97dd26b9574162dc58 Author: Osvaldo Janeri Filho (Tue 20 Oct 2026 23:04:17 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) pam_exec: fix the stderr close test and avoid a double close The cleanup tested cherr[0] when closing cherr[1]. The parent also closed chin[0]/chout[1]/cherr[1] after pdfork() without clearing them, so the out: cleanup path closed them again. Clear each fd after closing and test the right one. Reviewed by: des, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60924 (cherry picked from commit 06abe08de45d251410949eac1bbb025367275260) M lib/libpam/modules/pam_exec/pam_exec.c _____________________________________________________________________________________________________________ Commit: 8afd77acc6b514937873f5217a9e10b9c1a0a422 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8afd77acc6b514937873f5217a9e10b9c1a0a422 Author: Osvaldo Janeri Filho (Mon 19 Oct 2026 19:53:05 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) bhyve: fix integer overflow in qXfer packet parser doff + dlen overflows unsigned int when both values are close to UINT_MAX, causing the wrong branch to execute and passing an unbounded length to append_binary_data(). Rewrite the comparison to avoid the addition. Reviewed by: markj Fixes: f81cdf24ba54 ("bhyve: Add support for XML register definitions") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60847 (cherry picked from commit 5ce0ab7355264d38fcde4684f0a64347ec0f5234) M usr.sbin/bhyve/gdb.c _____________________________________________________________________________________________________________ Commit: d4f4bd11adf266b926400b4725682d39187a489d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d4f4bd11adf266b926400b4725682d39187a489d Author: Mark Johnston (Mon 19 Oct 2026 14:44:41 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:19 GMT) inotify: Open target the directory when adding a watch When an application uses inotify to watch a directory, vn_inotify_add_watch() reads the directory entries and does a name lookup so as to induce the filesystem to create namecache entries. Some filesystems expect the directory to be opened before VOP_READDIR can be called, so do that. PR: 299239 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299239 ) Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60782 (cherry picked from commit de80428118101624aaeaae02d59665d1027ff10e) M sys/kern/vfs_inotify.c _____________________________________________________________________________________________________________ Commit: 20f5874493df83e0e7b75e00ae71aca72fb3e5b8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=20f5874493df83e0e7b75e00ae71aca72fb3e5b8 Author: Mark Johnston (Fri 16 Oct 2026 15:11:03 BST) Committer: Mark Johnston (Fri 6 Nov 2026 15:52:18 GMT) kmsan: Add a required forward type declaration MFC after: 1 week (cherry picked from commit ad37abf653f77c59ce6c296eda9976c74c905d2e) M sys/sys/msan.h _____________________________________________________________________________________________________________ Commit: 42f926513b74cbac09d4d63a9daf8cb489078671 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=42f926513b74cbac09d4d63a9daf8cb489078671 Author: Steve Kargl (Sat 31 Oct 2026 10:18:06 GMT) Committer: Robert Clausecker (Fri 6 Nov 2026 10:49:54 GMT) msun: fix behaviour of nextafter*() and nexttoward*() for MAX value For an edge case at an extreme, e.g., nextafter(-DBL_MAX,-INFINITY) do not return x+x. Instead, evaluate x+x and assign it to a volatile to raise an exception, and then fall through to return the correct result in current rounding mode. PR: 299389 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299389 ) MFC after: 6 days (for inclusion into releng/15.2) (cherry picked from commit 1fb5d8265bc4bbbf1f5bc79cc1d2a7f280b446b2) M lib/msun/src/s_nextafter.c M lib/msun/src/s_nextafterf.c M lib/msun/src/s_nextafterl.c M lib/msun/src/s_nexttoward.c M lib/msun/src/s_nexttowardf.c _____________________________________________________________________________________________________________ Commit: 1dd8d2d8173eff0fc969b4f858739c302ad27768 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1dd8d2d8173eff0fc969b4f858739c302ad27768 Author: Sumit Saxena (Sat 24 Oct 2026 08:22:55 BST) Committer: Sumit Saxena (Fri 6 Nov 2026 07:33:03 GMT) if_bnxt: skip HW kTLS on old firmware and add a tunable to disable it Older Thor2 firmware serves key context allocation requests very slowly, about a second each. The driver allocates key contexts in batches of 128, so setting up 500k sessions takes roughly 3900 requests and driver load appears to hang. Enable hardware kTLS only when the firmware's HWRM interface version is 1.10.3.99 or newer. Keep the full four-part version in hwrm_spec_code_ext for the comparison. Also add a disable_hw_ktls loader tunable that turns hardware kTLS off for a device without unloading kTLS support, which helps isolate kTLS problems in the field. Reviewed by: gallatin Sponsored by: Broadcom Inc MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D60977 (cherry picked from commit cfbf11308b586d559f7d4ce39edefe1a0c3b3742) M sys/dev/bnxt/bnxt_en/bnxt.h M sys/dev/bnxt/bnxt_en/bnxt_hwrm.c M sys/dev/bnxt/bnxt_en/bnxt_ktls.c M sys/dev/bnxt/bnxt_en/bnxt_ktls.h M sys/dev/bnxt/bnxt_en/bnxt_sysctl.c M sys/dev/bnxt/bnxt_en/if_bnxt.c _____________________________________________________________________________________________________________ Commit: 74356e5c260c9abec5a520114eec1adf1b9b0670 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=74356e5c260c9abec5a520114eec1adf1b9b0670 Author: Sumit Saxena (Thu 22 Oct 2026 11:48:42 BST) Committer: Sumit Saxena (Fri 6 Nov 2026 07:32:44 GMT) if_bnxt: size MRAV from the AV split entry for backing store V2 On RoCE-capable Thor2, attach fails with HWRM_FUNC_BACKING_STORE_CFG_V2 returning INVALID_PARAMS, as MRAV is sized the pre-V2 way and the firmware's AV split value is sent as is. Size MRAV from the AV split entry, and move the legacy entry-count packing into bnxt_hwrm_func_backing_store_cfg(). Fixes: d5ce906da7c5 ("bnxt_en: Add backing store V2 support") Reviewed by: gallatin Sponsored by: Broadcom Inc MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D60976 (cherry picked from commit aca2e5fae3d9c3350b47ee3e7d00937a73dba9a9) M sys/dev/bnxt/bnxt_en/bnxt.h M sys/dev/bnxt/bnxt_en/bnxt_hwrm.c M sys/dev/bnxt/bnxt_en/if_bnxt.c _____________________________________________________________________________________________________________ Commit: 27d5ac65db13ac8813bde701deb0d21169ffb90c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=27d5ac65db13ac8813bde701deb0d21169ffb90c Author: Philip Paeps (Mon 2 Nov 2026 15:11:05 GMT) Committer: Philip Paeps (Fri 6 Nov 2026 00:27:48 GMT) contrib/expat: import expat 2.10.0 Changes: https://github.com/libexpat/libexpat/blob/R_2_10_0/expat/Changes Security: CVE-2026-115506 Security: CVE-2026-117610 Security: CVE-2026-118370 (cherry picked from commit 765f30b9f3af67a1db9619ff18862dc74ac72674) (cherry picked from commit a377d25bd25c0739d50c4dfe34ec2066821018d3) M contrib/expat/Changes M contrib/expat/README.md M contrib/expat/configure.ac M contrib/expat/doc/reference.html M contrib/expat/doc/xmlwf.1 M contrib/expat/doc/xmlwf.xml M contrib/expat/lib/Makefile.am M contrib/expat/lib/Makefile.in M contrib/expat/lib/ascii.h A contrib/expat/lib/entities.h M contrib/expat/lib/expat.h M contrib/expat/lib/expat_external.h M contrib/expat/lib/internal.h M contrib/expat/lib/xcs.c M contrib/expat/lib/xcs.h M contrib/expat/lib/xmlparse.c M contrib/expat/lib/xmltok.h M contrib/expat/lib/xmltok_impl.c M contrib/expat/tests/Makefile.am M contrib/expat/tests/Makefile.in M contrib/expat/tests/acc_tests.c M contrib/expat/tests/alloc_tests.c M contrib/expat/tests/basic_tests.c M contrib/expat/tests/common.c M contrib/expat/tests/common.h M contrib/expat/tests/dummy.h A contrib/expat/tests/entities_tests.c A contrib/expat/tests/entities_tests.h M contrib/expat/tests/handlers.h M contrib/expat/tests/misc_tests.c M contrib/expat/tests/runtests.c M contrib/expat/tests/xcs_tests.c M contrib/expat/xmlwf/Makefile.am M contrib/expat/xmlwf/Makefile.in M lib/libexpat/expat_config.h M lib/libexpat/libbsdxml.3 _____________________________________________________________________________________________________________ Commit: b036c1ec7dab852c0d79033a66311708e5692d14 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b036c1ec7dab852c0d79033a66311708e5692d14 Author: Colin Percival (Fri 6 Nov 2026 00:00:00 GMT) Committer: Colin Percival (Fri 6 Nov 2026 00:00:00 GMT) Post-15.2-branch updates Rename stable/15 to -STABLE Bump __FreeBSD_version to 1502500 Approved by: re (implicit) M sys/conf/newvers.sh M sys/sys/param.h _____________________________________________________________________________________________________________ Commit: 530ece453901441fa1fbe4160a76505c9f917513 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=530ece453901441fa1fbe4160a76505c9f917513 Author: Zhenlei Huang (Wed 4 Nov 2026 19:28:31 GMT) Committer: Zhenlei Huang (Thu 5 Nov 2026 23:21:11 GMT) sched: Add sysctl flag CTLFLAG_TUN to loader tunable kern.sched.name So that `sysctl -T` can report it correctly. Reviewed by: olce, kib MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61178 (cherry picked from commit 5e54a402f896106ed6b402e25387ad7402b8944c) M sys/kern/sched_shim.c _____________________________________________________________________________________________________________ Commit: 44eaf36072b72e6bd31da1f6559eeb60592697c5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=44eaf36072b72e6bd31da1f6559eeb60592697c5 Author: ShengYi Hung (Tue 3 Nov 2026 05:54:14 GMT) Committer: ShengYi Hung (Thu 5 Nov 2026 23:02:07 GMT) libc/locale: Check EILSEQ return _citrus_iconv_std_iconv_convert can return EILSEQ without setting invlen. As a result, we should check EILSEQ in the return value or it will incorrectly return -2 Reviewed by: kevans Fixes: e2030ca246a7 ("libc: fix c*rtomb/mbrtoc*") MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D61151 (cherry picked from commit b138d017c70421e9d074096fcc3ac676f7e1c846) M lib/libc/locale/mbrtocXX_iconv.h _____________________________________________________________________________________________________________ Commit: 3c40506ecab4412f3f4fad7bb4b7a481ce2799d0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3c40506ecab4412f3f4fad7bb4b7a481ce2799d0 Author: Alan Somers (Tue 13 Oct 2026 18:40:22 BST) Committer: Alan Somers (Thu 5 Nov 2026 21:25:58 GMT) ggate: fix test intermittency * ggatel: fix piped output. Flush stdout before daemonizing, so the output can be read when it's in a command pipeline. * ggated: bind the port _before_ daemonizing, so an invoking script can be sure that the port is bound as soon as the command returns. * tests: allow ggatec or ggatel to automatically allocate a device number instead of choosing one in a racy way. With all of these changes I can no run the tests 1000 times without fail. And in parallel, too. Sponsored by: ConnectWise PR: 298942 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298942 ) Reported by: siva Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D60707 (cherry picked from commit 802f5e4d6926f0be9294d71c6cadcbe872dbddf2) M sbin/ggate/ggated/ggated.c M sbin/ggate/ggatel/ggatel.c M tests/sys/geom/class/gate/Makefile M tests/sys/geom/class/gate/ggate_test.sh _____________________________________________________________________________________________________________ Commit: 9d5a02e961caccd8bac789a3e495f35b46f987f3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9d5a02e961caccd8bac789a3e495f35b46f987f3 Author: Dag-Erling Smørgrav (Mon 2 Nov 2026 12:29:25 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 17:45:27 GMT) tarfs: Fix length calculation for file read When the offset is within a block rather than at its beginning, the length should be clamped to the remaining length of the block, not its total length. Reported by: n0ps1ed MFC after: 1 week Reviewed by: markj, emaste Differential Revision: https://reviews.freebsd.org/D60904 (cherry picked from commit 18bce6e65cdf059618ff12ace82a9f7334e1b610) M sys/fs/tarfs/tarfs_subr.c _____________________________________________________________________________________________________________ Commit: bee1ce4727edee006b4ebbfa8c51c88c41d78de3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bee1ce4727edee006b4ebbfa8c51c88c41d78de3 Author: Dag-Erling Smørgrav (Mon 2 Nov 2026 12:29:17 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 17:45:27 GMT) tarfs: Limit file name length When indexing the tarball on mount, fail if a file or directory name exceeds MAXNAMLEN. Reported by: n0ps1ed Reported by: Franz Bettag MFC after: 1 week Reviewed by: markj, emaste Differential Revision: https://reviews.freebsd.org/D60903 (cherry picked from commit a38033234692e9dab6f3f4404adc693fccabc14a) M sys/fs/tarfs/tarfs_subr.c _____________________________________________________________________________________________________________ Commit: 09466327036385d378da09d4878fa3a6ad63361e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=09466327036385d378da09d4878fa3a6ad63361e Author: Dag-Erling Smørgrav (Sun 1 Nov 2026 20:09:50 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 17:45:26 GMT) vfs: Avoid integer overflow when faulting In vn_io_fault1(), the read / write length can easily exceed INT_MAX. Passing it directly to uiomove(), which expects an int, results in a negative uio_resid, which to the caller looks like we read more than was requested. PR: 298159 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298159 ) MFC after: 1 week Reviewed by: olce, kib Differential Revision: https://reviews.freebsd.org/D59412 (cherry picked from commit b487aca48535e5f04e4913447fcbe33f1bf56c68) M sys/kern/vfs_vnops.c _____________________________________________________________________________________________________________ Commit: e3eaff9307f8d35930007d3526e992e3a1cd1438 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e3eaff9307f8d35930007d3526e992e3a1cd1438 Author: Dag-Erling Smørgrav (Mon 2 Nov 2026 12:30:42 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:44:30 GMT) hastd: Remove pidfile on exit Make hastd remove its pidfile before exit after catching a signal or a stop control message, not just on failure to start. MFC after: 1 week Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D60192 (cherry picked from commit 3f2f6bb8f7b562276bffd04a9ae4c05a351b4435) M sbin/hastd/hastd.c _____________________________________________________________________________________________________________ Commit: 55b061a9fdc217c10eabefa0c8344a7d795b9f69 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=55b061a9fdc217c10eabefa0c8344a7d795b9f69 Author: Dag-Erling Smørgrav (Sat 5 Sep 2026 16:44:09 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:44:29 GMT) hastd: Add a stop control message Add a stop control message which causes hastd to clean up and terminate. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D59344 (cherry picked from commit 7dfadd78ba3c4608c3631fb5008de77ea1e29e88) M sbin/hastctl/hastctl.c M sbin/hastd/control.c M sbin/hastd/hast.h M sbin/hastd/hastd.c _____________________________________________________________________________________________________________ Commit: ae65253312b0bd9fbdc70b16609cccb52732abe7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ae65253312b0bd9fbdc70b16609cccb52732abe7 Author: Sobczyk, Pawel (Mon 2 Nov 2026 07:31:05 GMT) Committer: Krzysztof Galazka (Thu 5 Nov 2026 15:12:31 GMT) ice(4): Do not leave device non-functional if Tx scheduler config fails The ice_cfg_tx_topo function attempts to apply Tx scheduler topology configuration based on NVM parameters, selecting either a 5 or 9 layer topology. As part of this flow, the driver acquires the "Global Configuration Lock", which is a hardware resource associated with programming the DDP package to the device. This "lock" is implemented by firmware as a way to guarantee that only one PF can program the DDP for a device. Unlike a traditional lock, once a PF has acquired this lock, no other PF will be able to acquire it again (including that PF) until a CORER of the device. However, if configuration of the Tx topology fails, (i.e. ice_get_set_tx_topo returns an error code), the driver exits ice_cfg_tx_topo() immediately, and fails to trigger CORER. While the global configuration lock is held, the firmware rejects most AdminQ commands, as it is waiting for the DDP package download (or Tx scheduler topology programming) to occur. Refactor ice_cfg_tx_topo() to always trigger a CORER after acquiring the global lock, regardless of success or failure of the topology configuration. We need to re-initialize the HW structure when we trigger the CORER. Previously, this was the responsibility of the core driver to cleanup after the CORER. Instead, make it the responsibility of this function. This avoids needless re-initialization for the cases where no reset occurred. Authored-by: Jacob Keller Co-Authored-by: Pawel Sobczyk Signed-off-by: Sobczyk, Pawel Reviewed by: kbowling Tested by: Mateusz Moga Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D60168 (cherry picked from commit 013f1779f63413173535ab770abb70715e92bee6) M sys/dev/ice/ice_ddp_common.c M sys/dev/ice/if_ice_iflib.c _____________________________________________________________________________________________________________ Commit: b831d9a1f3302c4c407011e0cbd329bf2485ff2b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b831d9a1f3302c4c407011e0cbd329bf2485ff2b Author: Dag-Erling Smørgrav (Tue 20 Oct 2026 14:28:42 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:53 GMT) hastd: Use void pointers for opaque data Use void, not char, for pointers to opaque data in our send and receive functions. Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D60729 (cherry picked from commit a5e6bee5a0bff9e9c12037e0b2c76c4f2ab5e046) hastd: Fix build failure Fixes: a5e6bee5a0bf ("hastd: Use void pointers for opaque data") Reported by: garga@ (cherry picked from commit dff56e8118985248678e1a6916cdefd708a9d85f) M sbin/hastd/proto_common.c M sbin/hastd/proto_impl.h M sbin/hastd/proto_socketpair.c M sbin/hastd/proto_tcp.c M sbin/hastd/proto_uds.c _____________________________________________________________________________________________________________ Commit: a1e5a9af6390f3a1d901155095264aeb1bae7382 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a1e5a9af6390f3a1d901155095264aeb1bae7382 Author: Dag-Erling Smørgrav (Wed 4 Nov 2026 15:32:33 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:53 GMT) auditd: Support logging directly to syslog Every tenth call to auditwarnlog(), check that the audit_warn(5) script exists and is executable by us. If it is, execute it as previously; otherwise, fall back to calling syslog(3) directly. Additionally, if we choose to use the script and fail, also log the original message to syslogd, not just the fact that we failed to log. We could record the result of trying to execute the script, but that would require pausing while it runs (or at least until the execve(2) call has completed). Retesting every tenth call is a little clunky but avoids having to restart or signal auditd(8) to force it to notice a change in availability, or adding a command-line option and / or modifying the audit_control(5) syntax to let the user express a preference. MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Qualys, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D60172 (cherry picked from commit b18489dd60980e51093f196299eb8c38b12daa20) M contrib/openbsm/bin/auditd/audit_warn.c M contrib/openbsm/man/audit_warn.5 _____________________________________________________________________________________________________________ Commit: 0a3363814a00c6cee6a96cedbc41090fa74b9888 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0a3363814a00c6cee6a96cedbc41090fa74b9888 Author: Dag-Erling Smørgrav (Wed 4 Nov 2026 15:32:28 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:52 GMT) audit_warn: Avoid pointless fork and path search While here, document what the script actually does, not what it once did on a project branch somewhere that was never merged. MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: Qualys, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D60171 (cherry picked from commit 173268f3d5ede5f55a25f684d4c8c4c43749fde7) M contrib/openbsm/etc/audit_warn M contrib/openbsm/man/audit_warn.5 _____________________________________________________________________________________________________________ Commit: 09c3a0fdd9a2d509421afd74e8ff3ed7b1db80d0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=09c3a0fdd9a2d509421afd74e8ff3ed7b1db80d0 Author: Dag-Erling Smørgrav (Thu 22 Oct 2026 16:12:57 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:52 GMT) auditdistd: Avoid deprecated OpenSSL APIs SSL_use_RSAPrivateKey_file() was deprecated in OpenSSL 3.0. Use the more generic SSL_use_PrivateKey_file() instead. Sponsored by: Klara, Inc. Sponsored by: Qualys, Inc. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D60899 (cherry picked from commit 8133230d7e944d12108f89a15d6f4e468764dff9) M contrib/openbsm/bin/auditdistd/proto_tls.c _____________________________________________________________________________________________________________ Commit: 72ebe324d09e778f0b86c4204a4bfdb4b089ff3d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=72ebe324d09e778f0b86c4204a4bfdb4b089ff3d Author: Dag-Erling Smørgrav (Tue 20 Oct 2026 14:28:37 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:52 GMT) auditdistd: Use void pointers for opaque data Use void, not char, for pointers to opaque data in our send and receive functions. Sponsored by: Klara, Inc. Sponsored by: Qualys, Inc. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D60728 (cherry picked from commit 4f19e4aca4f4b7a3058be5d3bfc5aed66668b00f) auditdistd: Fix build failure Fixes: 4f19e4aca4f4 ("auditdistd: Use void pointers for opaque data") Reported by: garga@ (cherry picked from commit 0ce9d6e240a14d5b7cd8eb45a83d0e429f4a3edf) M contrib/openbsm/bin/auditdistd/proto_common.c M contrib/openbsm/bin/auditdistd/proto_impl.h M contrib/openbsm/bin/auditdistd/proto_socketpair.c M contrib/openbsm/bin/auditdistd/proto_tcp.c M contrib/openbsm/bin/auditdistd/proto_tls.c M contrib/openbsm/bin/auditdistd/proto_uds.c _____________________________________________________________________________________________________________ Commit: 09db65a7ac2671a6d74db61407e5020e86f5f906 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=09db65a7ac2671a6d74db61407e5020e86f5f906 Author: Dag-Erling Smørgrav (Tue 13 Oct 2026 16:55:27 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:52 GMT) auditdistd: Use fixed-length protocol names All communication between auditdistd senders and receivers and internally between auditdistd and its worker children passes through the same pair of send / receive functions. The receive function uses recv(2) with the MSG_WAITALL flag, which in theory means we should never get a short read. However, when handing off a socket to a worker child, we also pass a variable-length string identifying the type of socket we're passing, and reading this string relies on a short read. This used to work because the arrival of the descriptor would interrupt the recv(2) call, but this bug was fixed when the AF_UNIX code was rewritten a while ago and auditdistd has been broken ever since. Fixing the length of the protocol name to four characters including the terminating null solves the short-read bug by never requiring a short read (nothing else in auditdistd requires one). PR: 296107 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296107 ) MFC after: 1 week Reviewed by: js, kevans Differential Revision: https://reviews.freebsd.org/D59565 (cherry picked from commit 3ca4b8dd162afbecb8de70dc44f525d708726b07) M contrib/openbsm/bin/auditdistd/proto.c M contrib/openbsm/bin/auditdistd/proto_impl.h M contrib/openbsm/bin/auditdistd/proto_socketpair.c M contrib/openbsm/bin/auditdistd/proto_tls.c _____________________________________________________________________________________________________________ Commit: b147483845c8f28fed73e32a01500548cbf40317 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b147483845c8f28fed73e32a01500548cbf40317 Author: Dag-Erling Smørgrav (Mon 2 Nov 2026 12:27:53 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:52 GMT) libfetch: Apply timeout to SSL handshake When the SSL handshake cannot proceed because the server is slow to respond, poll() with a timeout instead of spinning. MFC after: 1 week PR: 298962 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298962 ) Event: Oslo Hackathon 2026 Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60975 (cherry picked from commit d6678851308d3cec767f07b0712a429cdc5895de) M lib/libfetch/common.c _____________________________________________________________________________________________________________ Commit: 23c80630ed1c21ea4b8f0239ddd41d6f6de14cc9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=23c80630ed1c21ea4b8f0239ddd41d6f6de14cc9 Author: Dag-Erling Smørgrav (Mon 2 Nov 2026 12:27:46 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:52 GMT) libfetch: Use C locale for dates MFC after: 1 week PR: 299084 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299084 ) Reviewed by: arrowd, kevans Differential Revision: https://reviews.freebsd.org/D60901 (cherry picked from commit 581d5098ec2c9738db8a98bb1ef3c36ca33033b9) M lib/libfetch/http.c _____________________________________________________________________________________________________________ Commit: 031f3279a0a07798d905ff296c86d71813b83be1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=031f3279a0a07798d905ff296c86d71813b83be1 Author: Dag-Erling Smørgrav (Wed 30 Sep 2026 17:55:23 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:52 GMT) libfetch: Plug connection leaks in FTP code When setting up an FTP transfer, we need to dereference the cached connection before returning after a failure. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60017 (cherry picked from commit 570869838f8bdaedb4c54953e80fe001a82190fd) M lib/libfetch/ftp.c _____________________________________________________________________________________________________________ Commit: 7a25d6d6d202809e114f20c9900eb27ea2f79121 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7a25d6d6d202809e114f20c9900eb27ea2f79121 Author: Dag-Erling Smørgrav (Wed 30 Sep 2026 17:55:18 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:52 GMT) libfetch: Plug leak in 304 Not Modified case When we get a 304 Not Modified response, we need to go through the error path to properly free any resources we've allocated instead of just returning NULL directly. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60016 (cherry picked from commit b212f565fb1a34fdcd2f5c9530164ff4718a1a9f) M lib/libfetch/http.c _____________________________________________________________________________________________________________ Commit: 197741f6c8f0a1426f1e45cf0bc214a83bf5bf4e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=197741f6c8f0a1426f1e45cf0bc214a83bf5bf4e Author: Dag-Erling Smørgrav (Wed 30 Sep 2026 17:55:13 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:51 GMT) libfetch: Correctly free redirect target When processing a redirect, if we get multiple Location headers, we free the previous one using free(new) instead of fetchFreeURL(new), which leaks new->doc. While here, rename new to loc since new is a reserved word in C++. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60015 (cherry picked from commit cd2fca49d31d06957027dd32538511ebe2938c1f) M lib/libfetch/http.c _____________________________________________________________________________________________________________ Commit: a63630dcb5eb8ea9f1129b711d27d0d645956360 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a63630dcb5eb8ea9f1129b711d27d0d645956360 Author: Dag-Erling Smørgrav (Wed 30 Sep 2026 17:54:33 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:51 GMT) libfetch: Reject control characters in credentials If a URL contains credentials, check that neither the user name nor the password contain control characters which might confuse the server, especially in the FTP case. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60008 (cherry picked from commit b319c3d6ac7cf408b56fe745f718de6a324ec180) M lib/libfetch/fetch.c _____________________________________________________________________________________________________________ Commit: 3bad251da53c7d6f30a391aa93b37715e2b1c61d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3bad251da53c7d6f30a391aa93b37715e2b1c61d Author: Dag-Erling Smørgrav (Wed 30 Sep 2026 17:54:25 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:51 GMT) libfetch: Limit response line length When reading an FTP or HTTP response, error out if we read 64 kB before hitting a newline. Otherwise a runaway or malicious server could have us spinning for quite a while allocating more and more memory before we gave up or crashed. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D60007 (cherry picked from commit 64ce9daab9ee49b4647f43141a830d7518723142) M lib/libfetch/common.c _____________________________________________________________________________________________________________ Commit: b0871018511ca1171d7fee481bdaafb4075eb29c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b0871018511ca1171d7fee481bdaafb4075eb29c Author: Dag-Erling Smørgrav (Wed 21 Oct 2026 14:22:17 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:51 GMT) unbound: Update to 1.26.2 Release notes at https://community.nlnetlabs.nl/t/unbound-1-26-2-released Merge commit 'ce3304d97ba4861eabac759e538426a568aef0a5' Security: CVE-2026-35501 Security: CVE-2026-50106 Security: CVE-2026-96405 Security: CVE-2026-97206 Security: CVE-2026-109125 (cherry picked from commit c6d7a2478c9eeb38ed1284e4ee1ff64c75ca8b09) M contrib/unbound/configure M contrib/unbound/configure.ac M contrib/unbound/doc/README M contrib/unbound/doc/example.conf M contrib/unbound/doc/example.conf.in M contrib/unbound/doc/libunbound.3 M contrib/unbound/doc/libunbound.3.in M contrib/unbound/doc/unbound-anchor.8 M contrib/unbound/doc/unbound-anchor.8.in M contrib/unbound/doc/unbound-checkconf.8 M contrib/unbound/doc/unbound-checkconf.8.in M contrib/unbound/doc/unbound-control.8 M contrib/unbound/doc/unbound-control.8.in M contrib/unbound/doc/unbound-host.1 M contrib/unbound/doc/unbound-host.1.in M contrib/unbound/doc/unbound.8 M contrib/unbound/doc/unbound.8.in M contrib/unbound/doc/unbound.conf.5 M contrib/unbound/doc/unbound.conf.5.in M contrib/unbound/services/authzone.c M contrib/unbound/services/mesh.c M contrib/unbound/services/outside_network.c M contrib/unbound/util/data/dname.c M contrib/unbound/util/data/dname.h M contrib/unbound/util/data/msgparse.c M contrib/unbound/util/netevent.c M contrib/unbound/util/netevent.h M contrib/unbound/validator/validator.c M contrib/unbound/validator/validator.h M lib/libunbound/config.h _____________________________________________________________________________________________________________ Commit: cfac2ad3a0ff493de08ee35a96c1760322e0fe31 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cfac2ad3a0ff493de08ee35a96c1760322e0fe31 Author: Dag-Erling Smørgrav (Sat 31 Oct 2026 23:06:28 GMT) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:51 GMT) tzcode: Update to 2026f MFC after: 1 week Event: Oslo Hackathon 2026 (cherry picked from commit af58db5d6efd1770c53b22e7301a039db7e04213) M contrib/tzcode/Makefile M contrib/tzcode/NEWS M contrib/tzcode/asctime.c M contrib/tzcode/date.1 M contrib/tzcode/localtime.c M contrib/tzcode/theory.html M contrib/tzcode/time2posix.3 M contrib/tzcode/tz-link.html M contrib/tzcode/tzfile.h M contrib/tzcode/version M contrib/tzcode/zic.8 M contrib/tzcode/zic.c _____________________________________________________________________________________________________________ Commit: bc5cb53698198f5dcc7ead1acdc42d9e07e2dd89 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bc5cb53698198f5dcc7ead1acdc42d9e07e2dd89 Author: Dag-Erling Smørgrav (Wed 30 Sep 2026 09:40:30 BST) Committer: Dag-Erling Smørgrav (Thu 5 Nov 2026 15:11:49 GMT) tzcode: Update to 2026e MFC after: 1 week (cherry picked from commit 2447e7773e36bbc89e80294c1e8cb53f9f607762) M contrib/tzcode/NEWS M contrib/tzcode/asctime.c M contrib/tzcode/localtime.c M contrib/tzcode/theory.html M contrib/tzcode/version _____________________________________________________________________________________________________________ Commit: 54001c69a93c29f9786c7c3310eccae4870d76e2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=54001c69a93c29f9786c7c3310eccae4870d76e2 Author: Juraj Lutter (Thu 29 Oct 2026 13:51:09 GMT) Committer: Juraj Lutter (Thu 5 Nov 2026 09:06:27 GMT) memset.3: Fix .Fn usage and too many commas Fix wrong usage of .Fn macro in paragraph for `memset_explicit' that caused too many commas improperly emitted into rendered manual page. Approved by: des MFC after: 1 week (cherry picked from commit 3479ee8e003b948ee3011d1a88d656add3d1284f) M lib/libc/string/memset.3 _____________________________________________________________________________________________________________ Commit: 3bcfea6969029f67e788e31e2dfc58c43de089c5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3bcfea6969029f67e788e31e2dfc58c43de089c5 Author: Andrey V. Elsukov (Wed 28 Oct 2026 11:13:53 GMT) Committer: Andrey V. Elsukov (Thu 5 Nov 2026 07:05:02 GMT) ipfw: fix off-by-one error in bdel() After deleting an item from a sorted array, bdel() moves the tail following it, but the size of the data to move was calculated with an off-by-one error, causing memmove() to read one element past the end of the array. This can happen when the table is full for ifidx or numarray algorithms. Obtained from: Yandex LLC Sponsored by: Yandex LLC (cherry picked from commit c6b08de0e4c797929f4609d86395d494ac695c68) M sys/netpfil/ipfw/ip_fw_table_algo.c _____________________________________________________________________________________________________________ Commit: cd4426a1bf11272ffd556b115740ee63e5d0649c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cd4426a1bf11272ffd556b115740ee63e5d0649c Author: Kevin Bowling (Wed 4 Nov 2026 19:32:50 GMT) Committer: Kevin Bowling (Thu 5 Nov 2026 02:08:24 GMT) e1000: Separate DH89xxCC memory errors DH89xxCC shares the 82580 MAC type but reserves several of its memory error control and status registers. Accessing the full 82580 register set breaks normal RX/TX operation on affected adapters. Give DH89xxCC separate configuration, accounting, and recovery paths. Use its transmit packet-buffer ECC counter and DMA/LAN parity status with device-specific masks, avoiding the reserved receive-buffer ECC and PCIe error registers. Retain the port-reset sequence for fatal memory-error recovery without waiting for the absent STATUS.RST_DONE. Tested by: chuck2k (https://github.com/opnsense/src/issues/329) Fixes: 915c628c4f49 ("igb: Report 82580 memory ECC errors") Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D61138 (cherry picked from commit 0857b57787cb2bdd2bb123b12638ea5e4c10eabd) M sys/dev/e1000/e1000_defines.h M sys/dev/e1000/if_em.c _____________________________________________________________________________________________________________ Commit: 12d221772c47d3411b647da7cc7eb72075b2e069 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=12d221772c47d3411b647da7cc7eb72075b2e069 Author: Kevin Bowling (Mon 2 Nov 2026 16:17:00 GMT) Committer: Kevin Bowling (Thu 5 Nov 2026 02:08:09 GMT) snd_hdsp: Use saved resource IDs on detach Release resources with the IDs used to allocate them. Rename irqid to rid to reflect that it stores a resource ID. This mirrors the corresponding snd_hdspe change. Sponsored by: BBOX.io (cherry picked from commit 96e2a9a40a05716a444dc217629374c387efd159) M sys/dev/sound/pci/hdsp.c M sys/dev/sound/pci/hdsp.h _____________________________________________________________________________________________________________ Commit: 94d836a0c8b0c6b645900e7bae03d3c255a47635 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=94d836a0c8b0c6b645900e7bae03d3c255a47635 Author: Kevin Bowling (Tue 21 Jul 2026 04:36:41 BST) Committer: Kevin Bowling (Thu 5 Nov 2026 02:07:54 GMT) snd_hdspe: Use saved resource IDs on detach Release resources with the IDs used to allocate them. Rename irqid to rid to reflect that it stores a resource ID. Reviewed by: br Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58373 (cherry picked from commit d33ab9dae2f5f5421e4cb5a141751924e35eeb2d) M sys/dev/sound/pci/hdspe.c M sys/dev/sound/pci/hdspe.h _____________________________________________________________________________________________________________ Commit: 76cb1db21c39d0c8f1c6659f6e7bdedd9d553626 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=76cb1db21c39d0c8f1c6659f6e7bdedd9d553626 Author: Kevin Bowling (Mon 2 Nov 2026 16:09:33 GMT) Committer: Kevin Bowling (Thu 5 Nov 2026 02:07:41 GMT) snd_hdsp: Use busdma for DMA buffers Program DMA buffer registers with the bus addresses returned by busdma. Require one full-size contiguous DMA segment per direction and validate its alignment and 32-bit address range. Synchronize buffer ownership around playback, capture, clearing, and teardown. Disable channels before clearing their DMA buffers, and unwind partially allocated resources on failure. This mirrors snd_hdspe's DMA handling, adapted to HDSP's single base address per direction. Sponsored by: BBOX.io (cherry picked from commit 5355c97e129a004f013570be0b7a99c8610e1757) M sys/dev/sound/pci/hdsp-pcm.c M sys/dev/sound/pci/hdsp.c M sys/dev/sound/pci/hdsp.h _____________________________________________________________________________________________________________ Commit: 06ee38896e14710c6200400a76b668087be9a20d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=06ee38896e14710c6200400a76b668087be9a20d Author: Kevin Bowling (Tue 21 Jul 2026 04:36:02 BST) Committer: Kevin Bowling (Thu 5 Nov 2026 02:07:28 GMT) snd_hdspe: Use busdma for DMA buffers Program DMA pages from busdma segments and synchronize buffer ownership. Unwind partially allocated resources on failure. Reviewed by: br Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58372 (cherry picked from commit 46b338381400cb8106d6d2af945e7950553c16f4) M sys/dev/sound/pci/hdspe-pcm.c M sys/dev/sound/pci/hdspe.c M sys/dev/sound/pci/hdspe.h _____________________________________________________________________________________________________________ Commit: 4c43db6c59a55add794af998e6fd097dc1e07b7c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4c43db6c59a55add794af998e6fd097dc1e07b7c Author: Kevin Bowling (Mon 2 Nov 2026 15:54:35 GMT) Committer: Kevin Bowling (Thu 5 Nov 2026 02:07:15 GMT) snd_hdsp: Serialize rate and latency updates Protect running-state checks and register updates with the softc lock. Keep the pointer reset and the HDSP 9632 frequency rewrite in the same critical section as the latency update. Drop the lock around sndbuf_resize(), which may sleep, and recheck the running state after reacquiring it. Preserve resize error handling so that a failed resize leaves the hardware unchanged. This mirrors the locking in snd_hdspe. Sponsored by: BBOX.io (cherry picked from commit a25ad366d51d52ef30b8bc4e2a7dd377255a409b) M sys/dev/sound/pci/hdsp-pcm.c _____________________________________________________________________________________________________________ Commit: adc47928706d579f409b5858ccd1bf71cd1fa80e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=adc47928706d579f409b5858ccd1bf71cd1fa80e Author: Kevin Bowling (Tue 21 Jul 2026 04:33:08 BST) Committer: Kevin Bowling (Thu 5 Nov 2026 02:07:02 GMT) snd_hdspe: Serialize rate and latency updates Protect running-state checks and register updates with the softc lock. Drop the lock around sndbuf_resize(), which may sleep, and recheck the running state after reacquiring it. Keep the resize ahead of the latency register update so that a failed resize leaves the hardware unchanged. Reviewed by: br Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58371 (cherry picked from commit d1dcb2b117a3c128c8e8eda047f93739f06d6099) M sys/dev/sound/pci/hdspe-pcm.c _____________________________________________________________________________________________________________ Commit: ded58efff1e21e53a3ccae1a01373daa2c523618 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ded58efff1e21e53a3ccae1a01373daa2c523618 Author: Jessica Clarke (Thu 29 Oct 2026 12:29:54 GMT) Committer: Jessica Clarke (Thu 5 Nov 2026 00:33:26 GMT) Makefile.inc1: Make bootstrap mandoc's bootstrap libz dependency conditional We bootstrap libz unconditionally on macOS and Linux, and conditionally on FreeBSD if pre-1600029 or DISK_IMAGE_TOOLS_BOOTSTRAP is enabled, but if building on new enough -CURRENT without DISK_IMAGE_TOOLS_BOOTSTRAP then libz is not bootstrapped and so this libz dependency does not exist. Add the dependency whenever we are bootstrapping libz but not otherwise, and do so without duplicating the condition. Fixes: 1dbcc7ee92c4 ("Makefile.inc1: Make sure mandoc bootstrap tool depends on libz") MFC after: 1 week (cherry picked from commit 983cb64c05fabe2b83338d4c2087a9114ed27a1c) M Makefile.inc1 _____________________________________________________________________________________________________________ Commit: c8119d2d330877dfbe599b92e83cb11c65181ae8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c8119d2d330877dfbe599b92e83cb11c65181ae8 Author: Jessica Clarke (Thu 29 Oct 2026 00:45:01 GMT) Committer: Jessica Clarke (Thu 5 Nov 2026 00:33:26 GMT) Makefile.inc1: Make sure mandoc bootstrap tool depends on libz It links against both libopenbsd and libz, so reflect this in the bootstrap tool's dependencies in case of races from highly-parallel builds. Reported by: jkh MFC after: 1 week (cherry picked from commit 1dbcc7ee92c427480802cd1a40e1a1e3395d9bac) M Makefile.inc1 _____________________________________________________________________________________________________________ Commit: 349b6a0ee633406435c2f7418788b7553440a929 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=349b6a0ee633406435c2f7418788b7553440a929 Author: Arthur Kiyanovski (Fri 30 Oct 2026 08:23:00 GMT) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:58 GMT) ena: Update driver version to v2.8.6 Bug Fixes: * Revert "Reinit RSS components during queue count change flow" * Fix RSS sysctl panic when the RSS table is destroyed * Set ENA_FLAG_RSS_ACTIVE only when RSS is really configured Reviewed by: cperciva MFC after: 3 days Sponsored by: Amazon, Inc. Differential Revision: https://reviews.freebsd.org/D61059 (cherry picked from commit 6c177745c58e526bcf7451ad2765df6c63f35f97) M sys/dev/ena/ena.h _____________________________________________________________________________________________________________ Commit: a8579f0cc5b9c6311ff3ddd0224aba3907d75e54 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a8579f0cc5b9c6311ff3ddd0224aba3907d75e54 Author: Arthur Kiyanovski (Fri 30 Oct 2026 01:38:44 GMT) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:58 GMT) ena: Set ENA_FLAG_RSS_ACTIVE only when RSS is really configured If the device does not report support for the RSS indirection table, ena_rss_init_default() destroys the RSS state and returns EOPNOTSUPP. ena_rss_configure() treats EOPNOTSUPP as success and returns 0, and ena_up_complete() sets ENA_FLAG_RSS_ACTIVE on any 0 return. Reading dev.ena.N.rss.key at this point causes kernel panic. Every current device reports the indirection table, so reaching this needs a device that is broken or misreporting. The SYSINIT removed by a6205766b300 called ena_rss_init_default() directly, saw the EOPNOTSUPP and cleared the flag. Routing the decision through ena_rss_configure(), which hides EOPNOTSUPP, lost that. Move the flag set into ena_rss_configure(), which can see whether a table exists, and clear it when tbl_log_size is 0. Reviewed by: cperciva Fixes: a6205766b300 ("ena: Fix RSS not working after driver reload") MFC after: 3 days Sponsored by: Amazon, Inc. Differential Revision: https://reviews.freebsd.org/D61058 (cherry picked from commit 8aea6556529159d133aba66f25a2ec26aa47dc4c) M sys/dev/ena/ena.c M sys/dev/ena/ena_rss.c _____________________________________________________________________________________________________________ Commit: 85616af94e20b02398246de23cd7243583940943 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=85616af94e20b02398246de23cd7243583940943 Author: Arthur Kiyanovski (Fri 30 Oct 2026 01:38:44 GMT) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:58 GMT) ena: Fix RSS sysctl panic when the RSS table is destroyed ena_set_io_queue_count() destroys the ena-com RSS state but left ENA_FLAG_RSS_ACTIVE set. The RSS sysctl handlers gate on that flag, so they ran against state that was gone. This causes 2 types of issues: 1. Kernel panic when reading dev.ena.0.rss.key or writing to dev.ena.0.rss.indir_table 2. Returning a stale cached RSS table when reading dev.ena.0.rss.indir_table, or a bogus 1 when reading dev.ena.0.rss.indir_table_size ena_set_io_queue_count() is called in 2 cases: 1. The io_queues_nb sysctl. 2. Device restore when the device comes back with fewer MSI-X vectors than before. Clear ENA_FLAG_RSS_ACTIVE when the RSS table is destroyed. The handlers then fail with ENOTSUP until the next ena_up() rebuilds RSS. This both fixes the panics, and stops returning cached and bogus values. Note: A plain ifconfig down does not destroy the table, so the sysctls keep working across a down/up cycle. Reviewed by: cperciva Fixes: 56d41ad5fe9c ("Add sysctl node for ENA IO queues number adjustment") Fixes: 2d4d2ed3fef6 ("ena: Reinit RSS table on device restore when queue count shrinks") MFC after: 3 days Sponsored by: Amazon, Inc. Differential Revision: https://reviews.freebsd.org/D61057 (cherry picked from commit eb65bcbf6cb5b8ace59504ea721ff1802e912296) M sys/dev/ena/ena.c _____________________________________________________________________________________________________________ Commit: 98d25a8ce885d830f4aeaa38d3f491b2aca86614 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=98d25a8ce885d830f4aeaa38d3f491b2aca86614 Author: Arthur Kiyanovski (Fri 30 Oct 2026 01:38:44 GMT) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:58 GMT) Revert "ena: Reinit RSS components during queue count change flow" This reverts commit 2a27dd0076c5. Changing the IO queue count destroys the RSS table, and if this is done while the device is down a new table is not rebuilt until the next ena_up(). That leaves 2 problems in the meantime: 1. A stale copy of the destroyed table is still returned via sysctl. 2. Reading the destroyed key, or writing the table, panics. That commit addressed 1 by creating a new RSS table, so that sysctl returns a fresh default table with the new number of queues. It did not set out to fix 2, but the rebuild hid it by accident. The rebuilt table is the default round-robin one, wired to no queues and unusable: a write still fails, because programming the device needs the IO queues that only exist after ena_up(). ena_up() builds that same table anyway. Rebuilding also programs the device while no IO queues exist. When the queue count grows this fails with EINVAL; when it shrinks it succeeds and points the device at completion queues that ena_down() destroyed. The following commit addresses both issues properly. Reviewed by: cperciva MFC after: 3 days Sponsored by: Amazon, Inc. Differential Revision: https://reviews.freebsd.org/D61056 (cherry picked from commit ccceb1729a6bd82b8b293bc5ea61b863179a268e) M sys/dev/ena/ena.c _____________________________________________________________________________________________________________ Commit: 74a9d617ec5c5ad24cb33445f84e5c2dcd5f9176 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=74a9d617ec5c5ad24cb33445f84e5c2dcd5f9176 Author: Arthur Kiyanovski (Thu 22 Oct 2026 03:52:37 BST) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:58 GMT) ena: Update driver version to v2.8.5 New Features: * Retrieve RSS indirection table size from device Bug Fixes: * Limit IO IRQ setup loop to active queues only * Reinit RSS table on device restore when queue count shrinks * Fix RSS not working after driver reload * Fix NULL deref before NULL check in RSS sysctl * Reinit RSS components during queue count change flow Minor Changes: * Fix ENA_MEM_FREE_COHERENT with an expression size argument Reviewed by: cperciva MFC after: 3 days Sponsored by: Amazon, Inc. (cherry picked from commit 5e66bf0df3104e212c1b24ff65284b6d1a694c59) M sys/dev/ena/ena.h _____________________________________________________________________________________________________________ Commit: 28236ef569dd795d266fd3c10606b0d64fc59553 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=28236ef569dd795d266fd3c10606b0d64fc59553 Author: Gilad Ben Yakov (Sun 31 May 2026 09:28:48 BST) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:57 GMT) ena: Reinit RSS components during queue count change flow The io_queues_nb sysctl is writable while the interface is down, and setting it destroys the RSS components. When the interface is not UP nothing reinitialises them, so the indirection table is left referencing queues that no longer exist until the next ifconfig up. Call ena_rss_configure() after the queue count changes when the interface is down. When it is up, this happens through ena_up(). This can configure RSS twice if the interface is brought up afterwards, costing three redundant admin commands. That is preferred over changing ena_up(), which the reset path also uses. Reviewed by: cperciva Fixes: 56d41ad5fe9c ("Add sysctl node for ENA IO queues number adjustment") MFC after: 3 days Sponsored by: Amazon, Inc. (cherry picked from commit 2a27dd0076c55789a43415559906f795fd10c2da) M sys/dev/ena/ena.c _____________________________________________________________________________________________________________ Commit: 612e19784b286f2c016847e41091201610640b37 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=612e19784b286f2c016847e41091201610640b37 Author: Evgeny Ostrovsky (Tue 26 May 2026 08:01:39 BST) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:57 GMT) ena: Fix NULL deref before NULL check in RSS sysctl In ena_sysctl_rss_indir_table(), the code dereferenced indir->sysctl_buf before checking whether indir itself is NULL. Move the NULL check above the dereference so the early-return path fires before any access through indir. Reviewed by: cperciva Fixes: 6d1ef2abd330 ("ena: Implement full RSS reconfiguration") MFC after: 3 days Sponsored by: Amazon, Inc. (cherry picked from commit 462b6c50c7089e96c54cbd34378467f32fc709d4) M sys/dev/ena/ena_sysctl.c _____________________________________________________________________________________________________________ Commit: a548831d3c1c0a7aedbb53f7b8544f993745da6b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a548831d3c1c0a7aedbb53f7b8544f993745da6b Author: Gilad Ben Yakov (Tue 19 May 2026 11:18:37 BST) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:57 GMT) ena: Fix RSS not working after driver reload When reloading the driver (kldunload/kldload), ena_rss_init_default_deferred() is called before ena_attach() completes. At this point, devclass_get_softc() returns NULL for all devices because the adapter structs have not been populated yet. As a result, ena_rss_init_default() is never called and ENA_FLAG_RSS_ACTIVE is never set. Later, in ena_up_complete(), the code checks the flag, finds it unset, and skips ena_rss_configure() entirely. RSS is never initialized, and all traffic is directed to queue 0. Remove the ENA_FLAG_RSS_ACTIVE gate in ena_up_complete() and always call ena_rss_configure(), which initialises the table when tbl_log_size is zero. The deferred SYSINIT is now redundant, so remove it. Reviewed by: cperciva Fixes: 9b8d05b8ac78 ("Add support for Amazon Elastic Network Adapter (ENA) NIC") MFC after: 3 days Sponsored by: Amazon, Inc. (cherry picked from commit a6205766b300e83d3aa2ddc740707987f3c3c97e) M sys/dev/ena/ena.c M sys/dev/ena/ena_rss.c M sys/dev/ena/ena_sysctl.c _____________________________________________________________________________________________________________ Commit: dd9a612d0ac1f384f4e30fec9cc39b0c5a7a2d2a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=dd9a612d0ac1f384f4e30fec9cc39b0c5a7a2d2a Author: Gilad Ben Yakov (Tue 5 May 2026 11:02:13 BST) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:57 GMT) ena: Reinit RSS table on device restore when queue count shrinks When ena_restore_device() is called after a reset, pci_alloc_msix() may return fewer MSI-X vectors than requested, causing num_io_queues to shrink. When this happens, the RSS indirection table retains entries referencing queues that no longer exist, routing packets to non-existent queues and causing connectivity loss. Extract ena_set_io_queue_count() to pair the queue count update with ena_com_rss_destroy(), ensuring the RSS table is always invalidated when the queue count changes. Use it from both ena_update_io_rings() and ena_restore_device(). Reviewed by: cperciva Fixes: e2735b095b7e ("Fix assumptions about number of IO queues in the ENA") MFC after: 3 days Sponsored by: Amazon, Inc. (cherry picked from commit 2d4d2ed3fef6acda9269f545f6703d6f32f2f0b7) M sys/dev/ena/ena.c _____________________________________________________________________________________________________________ Commit: 43bdfc7c94ff8597bbda61c43f8e1ed98c720d3a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=43bdfc7c94ff8597bbda61c43f8e1ed98c720d3a Author: Gilad Ben Yakov (Mon 30 Mar 2026 13:12:50 BST) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:57 GMT) ena: Retrieve RSS table size from device The current driver assumes a default RSS table size of 128 entries, expecting the device's RSS table size to match this assumption. This patch allows the driver to create RSS indirection table with the size advertised by the device. Reviewed by: cperciva MFC after: 3 days Sponsored by: Amazon, Inc. (cherry picked from commit 3d1e732a43eda16f20dea3fe2671ce6fca8a03a6) M share/man/man4/ena.4 M sys/dev/ena/ena.c M sys/dev/ena/ena.h M sys/dev/ena/ena_rss.c M sys/dev/ena/ena_rss.h M sys/dev/ena/ena_sysctl.c _____________________________________________________________________________________________________________ Commit: 75e47e1ae33be043997bc90e044cbb0ce5667eaf URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=75e47e1ae33be043997bc90e044cbb0ce5667eaf Author: Gilad Ben Yakov (Wed 29 Apr 2026 13:10:38 BST) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:56 GMT) ena: Limit IO IRQ setup loop to active queues only The loop in ena_request_io_irq() iterated over adapter->msix_vecs, which reflects the maximum number of MSI-X vectors allocated at init time. When the number of IO queues is reduced at runtime via the io_queues_nb sysctl, msix_vecs is not updated, causing the driver to bind interrupts and log CPU affinity for queues that no longer exist. Replace the loop bound with ENA_IO_IRQ_IDX(adapter->num_io_queues) to iterate only over the currently active IO queues. Also replace the loop in ena_free_io_irq() the same. Reviewed by: cperciva Fixes: 56d41ad5fe9c ("Add sysctl node for ENA IO queues number adjustment") MFC after: 3 days Sponsored by: Amazon, Inc. (cherry picked from commit 32c301922dc1e6f52bdd043046661ac1e2b462d8) M sys/dev/ena/ena.c _____________________________________________________________________________________________________________ Commit: e713398043b8b05fc0fbafab455fcefa84078646 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e713398043b8b05fc0fbafab455fcefa84078646 Author: Arthur Kiyanovski (Thu 29 Oct 2026 02:53:22 GMT) Committer: Arthur Kiyanovski (Wed 4 Nov 2026 20:52:56 GMT) ena: Upgrade ena-com to freebsd v2.8.5 Merge commit 'c51345cf234c029abf8b5f1655f65f6c2ffaaec9' Reviewed by: cperciva MFC after: 3 days Sponsored by: Amazon, Inc. (cherry picked from commit 0f6f75189f5e55a5846e3b20eec18db93cfafa89) M sys/contrib/ena-com/ena_com.c M sys/contrib/ena-com/ena_com.h M sys/contrib/ena-com/ena_defs/ena_admin_defs.h M sys/contrib/ena-com/ena_plat.h _____________________________________________________________________________________________________________ Commit: 646a485c3b2f08906b3a75da656da3466438e758 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=646a485c3b2f08906b3a75da656da3466438e758 Author: Yura Tkachenko (Fri 30 Oct 2026 20:20:24 GMT) Committer: Igor Ostapenko (Wed 4 Nov 2026 01:13:03 GMT) jailmeta: reject empty keys in metadata lookups Reject empty keys in metadata lookups with EINVAL to prevent an infinite loop while holding allprison_lock and pr_mtx. Add tests for empty-key reads and writes with empty and populated meta/env buffers, trailing newlines, and empty final values. Reviewed by: igoro, jamie MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D61025 (cherry picked from commit d1a465f02b14c9eed8a87c31092bb9251dc053c1) M sys/kern/kern_jailmeta.c M tests/sys/kern/jailmeta.sh _____________________________________________________________________________________________________________ Commit: c1ed6dd4dfa2576d88d737a54abfc85aefa98acc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c1ed6dd4dfa2576d88d737a54abfc85aefa98acc Author: Colin Percival (Tue 3 Nov 2026 18:31:35 GMT) Committer: Colin Percival (Wed 4 Nov 2026 15:43:20 GMT) Makefile.inc1: Fix bare $ characters The '$' characters inside awk commands need to be $$ when appearing inside a Makefile. Without this, we generate empty src and src-sys packages. Reported by: Stefan Grundmann Fixes: a8be89928930 ("build: Support got") MFC after: 1 day (cherry picked from commit 6a99232c75f6460b03a95019e2625828a158d457) M Makefile.inc1 _____________________________________________________________________________________________________________ Commit: d326ee6e982671ce8ee47b5080c6fa42a78b07fc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d326ee6e982671ce8ee47b5080c6fa42a78b07fc Author: Konstantin Belousov (Tue 20 Oct 2026 21:42:00 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:33:50 GMT) x86/mp_x86.c: unbreak COUNT_IPIS Fixes: 3a0e2ca3eecd ("x86: ipi_bitmap_handler(): Account for IPIs correctly on COUNT_IPIS") (cherry picked from commit 40582412d3fc6c68bb5c90fa7878998ba7f799e3) M sys/x86/x86/mp_x86.c _____________________________________________________________________________________________________________ Commit: 9034531196233609005f5cd8b77900847d5107fb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9034531196233609005f5cd8b77900847d5107fb Author: Cy Schubert (Tue 3 Nov 2026 16:45:06 GMT) Committer: Cy Schubert (Wed 4 Nov 2026 13:29:09 GMT) sqlite3: Vendor import of sqlite3 3.54.1 Release notes at https://sqlite.org/releaselog/3_54_1.html. Obtained from: https://www.sqlite.org/2026/sqlite-autoconf-3540100.tar.gz Security: 84cd82e1-d49f-11f1-bae2-3497f65b111b CVE-2026-119371 CVE-2026-119372 CVE-2026-119373 CVE-2026-119374 CVE-2026-119375 CVE-2026-119376 CVE-2026-119377 CVE-2026-119378 CVE-2026-119379 CVE-2026-119591 Merge commit '8fcea37c441fdc95cbfc8c34eeb0dcddbc02dca1' (cherry picked from commit 71bb028fc165e51e6d04e509749da48f48f3aab4) M contrib/sqlite3/VERSION M contrib/sqlite3/autosetup/cc.tcl M contrib/sqlite3/autosetup/find_tclconfig.tcl M contrib/sqlite3/autosetup/jimsh0.c M contrib/sqlite3/autosetup/proj.tcl M contrib/sqlite3/autosetup/sqlite-config.tcl M contrib/sqlite3/shell.c M contrib/sqlite3/sqlite3.c M contrib/sqlite3/sqlite3.h M contrib/sqlite3/sqlite3ext.h M contrib/sqlite3/sqlite3rc.h M contrib/sqlite3/tea/generic/tclsqlite3.c _____________________________________________________________________________________________________________ Commit: 52fd2aabb7726521e81f620d98a4c8d8c5a784fe URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=52fd2aabb7726521e81f620d98a4c8d8c5a784fe Author: Olivier Certner (Sat 17 Oct 2026 18:38:59 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:38 GMT) powerpc: powerpc_ipi_handler(): Stop first, preempt last Preemption should happen last so that other IPIs have a chance to be executed in due course, in particular hardclockintr(). So, move handling of IPI_PREEMPT at the end. An IPI_STOP/IPI_STOP_HARD request should be processed immediately to avoid risks that further processing changes the system state on panic, or worse itself causes another panic on corrupted kernel state. While here, move IPI_AST handling just before IPI_PREEMPT. We currently do not need to do anything for it, but if we were to, it is likely that would have to happen after other IPIs but IPI_PREEMPT. Reviewed by: jhibbits Fixes: 9d5a22b928c2 ("MFp4: SMP support") Fixes: 12640815f815 ("MFp4: SMP support") Fixes: 7ed09a6778d3 ("powerpc: Rework IPI message processing") MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60863 (cherry picked from commit 07ab87b60d08c665eab0b187e81a239145f9961d) M sys/powerpc/powerpc/mp_machdep.c _____________________________________________________________________________________________________________ Commit: a6bcee2c76bc100b3c8fdd9485845b21cc01c13b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a6bcee2c76bc100b3c8fdd9485845b21cc01c13b Author: Olivier Certner (Tue 13 Oct 2026 15:46:26 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:37 GMT) x86: ipi_bitmap_handler(): Account for IPIs correctly on COUNT_IPIS A preemption could occur before the updates to the initial CPU's IPI counters, leading to a potential non-atomic updates of these counters from another CPU. Reviewed by: kib Fixes: ff326a187907 ("x86: Restore the critical section (...)") MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60862 (cherry picked from commit 3a0e2ca3eecd3176fa7dd139e59913a67c858ac9) M sys/x86/x86/mp_x86.c _____________________________________________________________________________________________________________ Commit: d54cae6c5ad6b8096c2022bb6bcc57ab2acbd115 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d54cae6c5ad6b8096c2022bb6bcc57ab2acbd115 Author: Olivier Certner (Tue 13 Oct 2026 15:32:15 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:37 GMT) x86: ipi_bitmap_handler(): Preempt last, reduce critical section Preemption should happen last so that other IPIs have a chance to be executed in due course, in particular hardclockintr(). So, move handling of IPI_PREEMPT at the end. Reduce the critical section to be in force only around hardclockintr(), which needs it to execute entirely without preemption (because of code it calls that can enter a critical section; interrupts are already disabled in this handler, as usual). The critical_exit() following hardclockintr() may cause preemption if due. If that happens, there is no need to preempt again on IPI_PREEMPT, so make sure sched_preempt() is not called in this case. This fixes inadvertent removal of the optimization that sched_preempt() should be called outside of a critical section to perform an immediate context switch in the case of IPI_HARDCLOCK and IPI_PREEMPT being handled at the same time. While here, move IPI_AST handling just before IPI_PREEMPT. We currently do not need to do anything for it, but if we were to, it is likely that would have to happen after other IPIs but IPI_PREEMPT. Reviewed by: kib Fixes: ff326a187907 ("x86: Restore the critical section around ...") MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60861 (cherry picked from commit b83bd6fec075f4acf614283cd66a691111847881) M sys/x86/x86/mp_x86.c _____________________________________________________________________________________________________________ Commit: c9e5bf3e6e39ecd301ca818e1fa43a976975d443 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c9e5bf3e6e39ecd301ca818e1fa43a976975d443 Author: Olivier Certner (Tue 13 Oct 2026 09:31:36 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:36 GMT) sched: INVARIANTS: Check sched_preempt() is called on 'curthread' sched_preempt() does not support operating on a remote thread. If you are looking to influence CPU allocation on another thread, see, e.g., cpuset_setthread(), which in the end calls sched_affinity(). MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit f19009020a33d07d7cad9393b4bf0a36f267cd07) M sys/kern/sched_4bsd.c M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: f27e4afe6486b9bfd1733e8cbbd432eaef60ff76 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f27e4afe6486b9bfd1733e8cbbd432eaef60ff76 Author: Olivier Certner (Tue 13 Oct 2026 09:28:18 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:36 GMT) sched_ule: Use TDQ_CPU() macro instead of fiddling with DPCPU No functional change (intended). MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit 79ca9f787ca92018a1374242bb77252af6fce0d0) M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: 97313fef935d17cb6b16f773caff3beeb345c5bf URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=97313fef935d17cb6b16f773caff3beeb345c5bf Author: Olivier Certner (Fri 9 Oct 2026 15:50:59 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:36 GMT) sched_ule: sched_affinity(): Delineate steps No functional change (intended). MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit a1fe7f00bc452653426493c511d288e5a4e7862d) M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: 7118fa2c90bb355a65a181fa3684672d87cc2c38 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7118fa2c90bb355a65a181fa3684672d87cc2c38 Author: Olivier Certner (Fri 9 Oct 2026 10:22:31 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:35 GMT) sched_ule: tdq_notify(): Fix a typo in a comment MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit ea1da6a51a5aa0c949fc125aece6b88a68e67a3a) M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: 847ef7cee8aa2259aefdbb17146a444a34d1fe45 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=847ef7cee8aa2259aefdbb17146a444a34d1fe45 Author: Olivier Certner (Fri 9 Oct 2026 10:19:58 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:35 GMT) sched_ule: tdq_runq_add(): Scope variables, delineate the different steps For better readability. No functional change (intended). MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit d5e9c642307c13b8058609f421b63e2c72bab45f) M sys/kern/sched_ule.c _____________________________________________________________________________________________________________ Commit: 051de28eb9bbe542c6cec129787afb1dbe7cca63 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=051de28eb9bbe542c6cec129787afb1dbe7cca63 Author: Olivier Certner (Mon 12 Oct 2026 09:38:58 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:35 GMT) ObsoleteFiles.inc: was removed Reported by: glebius Fixes: e478037df4f1 ("systm.h: Remove unused ") Sponsored by: The FreeBSD Foundation (cherry picked from commit b42793d4bcdf73475b77a26c9dbacd45f8876621) M ObsoleteFiles.inc _____________________________________________________________________________________________________________ Commit: b8cadc76350d57317abb50508323ea0d32b70dd8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b8cadc76350d57317abb50508323ea0d32b70dd8 Author: Olivier Certner (Tue 6 Oct 2026 10:36:09 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:34 GMT) systm.h: Remove unused It only contains sched_pin_lite() and sched_unpin_lite(), which have been unused in-tree for the past 8 years, and were only briefly used between 6573d7580b85 ("epoch(9): allow preemptible epochs to compose") and a760c50c9ea7 ("With epoch not inlined, there is no point in using _lite KPI. (...)"). Additionally, these functions are redundant with the existing sched_pin() and sched_unpin() in , which are already themselves inline functions. The only difference is that the sched_*_lite() ones do not require the full definition of 'struct thread', which may have been useful to circumvent namespace pollution. That problem, if it materializes again, could be quickly circumvented without this trickery by the use of non-inline functions, or using inline functions referencing a variable filled at kernel startup with the desired offset. The trickery of using offsets computed at compile-time appears necessary only in the case of extremely performance sensitive functions. Cleaning up namespace pollution should stay the preferred way forward whenever possible. Reviewed by: glebius, imp MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60404 (cherry picked from commit e478037df4f12e3d1b6b551f05ea7ce23c096886) D sys/sys/kpilite.h M sys/sys/systm.h _____________________________________________________________________________________________________________ Commit: 1bdd2609b80a2f661a8f479e22b03fea94c8fcbb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1bdd2609b80a2f661a8f479e22b03fea94c8fcbb Author: Olivier Certner (Tue 6 Oct 2026 10:27:55 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:33 GMT) sched.h: Include unconditionally Even if SCHED_STATS is not defined, this header is necessary to provide a definition of 'curthread' used in sched_pin() and sched_unpin(). MFC after: 1 week Sponsored by: The FreeBSD Foundation (cherry picked from commit b6d10a962448bf03400dd381b2083d1f547f869c) M sys/sys/sched.h _____________________________________________________________________________________________________________ Commit: 2065d90fb00e87b4f45623d0a1884f0bc1a2e01b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2065d90fb00e87b4f45623d0a1884f0bc1a2e01b Author: Olivier Certner (Tue 6 Oct 2026 17:18:14 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:32 GMT) sched.h: Fix a typo and remove an extra line Fixes: 42490d5cd29d ("sched: New scheduler interface definition scheme") Sponsored by: The FreeBSD Foundation (cherry picked from commit 0bccbb9e98930f55bff5a943c881e460d4f31aec) M sys/sys/sched.h _____________________________________________________________________________________________________________ Commit: 1cfafa761ec9e6d8bbb8562747caee71f9021ec0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1cfafa761ec9e6d8bbb8562747caee71f9021ec0 Author: Olivier Certner (Mon 7 Sep 2026 17:19:53 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:31 GMT) sched: New scheduler interface definition scheme Define the scheduler interface once and for all (in 'sys/sys/sched.h') and remove all code duplication related to it (function signatures, slot names, dispatch, scheduler instance declaration), making it easier to modify the interface or to add new schedulers. This is implemented by defining the interface as X macros, which are passed a macro (and additional arguments for it) that is "called" with a variable number of arguments describing a single function of the interface. The convention used for a function's parameters is that each parameter is represented with two macro arguments, the first one being the type and the second one being the name. Helper macros allow to process arguments described in this convention in order to generate a list of arguments for function definitions (currently, up to 4 function parameters). The chosen convention eliminates the need for any specific declaration of functions depending on their number of arguments. DECLARE_SCHEDULER() has been changed to automatically declare and fill a 'struct sched_instance' structure. Its number of parameters has been reduced to the minimum, and the symbol part used to produce distinct structure names can now start with a digit (useful for 4BSD). The new implementation has the following additional benefits: 1. The name of implementations for the interface functions is imposed (same name as the interface function but with the scheduler symbol that was passed to DECLARE_SCHEDULER() added just after the 'sched_' prefix, e.g., for ULE, 'sched_ule_*()') and checked at compile-time. 2. Missing functions in an implementation are detected at compile-time (and not at runtime with a NULL dereference). 3. Failures to fill correctly the 'struct sched_instance' object associated to an implementation are eliminated. Preserve comments/categories of interface functions by moving comments that were in the old explicit interface declarations to the SCHED_ITF*() macros, and while here, marginally improve some (and move the common documentation for sched_initticks() from the implementations to the interface). Several of them are not exact, but this will be fixed in a separate commit. Make the active scheduler instance object internal, as it is not used outside of the shim implementation and one of the purposes of the interface is also to hide the actual implementation. If the need arises, it would be easy to add scheduler-specific routines as new fields in 'struct sched_instance' and to extend the machinery to automatically assign routines returning EOPNOTSUPP to these fields, and then to provide a macro to register non-trivial implementation, instead of making the current instance object visible again. Additionally, in order to avoid collision with C and C++ keywords: 1. Fields in 'struct sched_instance' are now suffixed with '_impl', so that, e.g., 'switch()' does not require special treatment anymore and the corresponding implementations can be renamed back to `sched_*_switch()`. This suffix avoids any collision with existing C++ keywords as new functions are added to the interface. (See SCHED_ITF_FIELD_NAME().) 2. Actual interface functions' C declarations do not list parameter names anymore (sched_class() was causing a problem in C++ with its 'class' parameter). allowing to remove the bracketing with '#ifndef __cplusplus'. Reviewed by: mchoo, kib Fixes: ce38acee8d0b ("Add kern/sched_shim.c") (+ some followups) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59988 (cherry picked from commit 42490d5cd29d7a6acd3c28dacfbdc527c2d39028) M sys/arm/arm/mp_machdep.c M sys/arm64/arm64/mp_machdep.c M sys/kern/init_main.c M sys/kern/sched_4bsd.c M sys/kern/sched_shim.c M sys/kern/sched_ule.c M sys/powerpc/aim/mp_cpudep.c M sys/powerpc/booke/mp_cpudep.c M sys/riscv/riscv/mp_machdep.c M sys/sys/sched.h M sys/x86/x86/mp_x86.c _____________________________________________________________________________________________________________ Commit: 7817357c2601969c06d4ceb8dd292fcb051a2f80 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7817357c2601969c06d4ceb8dd292fcb051a2f80 Author: Olivier Certner (Wed 30 Sep 2026 10:10:44 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:30 GMT) cred: freebsd14_setgroups(): Remove a now-unnecessary local variable MFC with: e6fbef451dd4 ("cred: Fix a race in the FreeBSD-14-compatible setgroups(2)") Sponsored by: The FreeBSD Foundation (cherry picked from commit e40d60838c9a0ebe5e5fb0e3cb00e7b08dd8c959) M sys/kern/kern_prot.c _____________________________________________________________________________________________________________ Commit: 6f2f1f34784e05b4491f246c7348d1a1e1aa4cf8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6f2f1f34784e05b4491f246c7348d1a1e1aa4cf8 Author: Olivier Certner (Fri 25 Sep 2026 18:27:25 BST) Committer: Olivier Certner (Wed 4 Nov 2026 13:21:19 GMT) cred: Fix a race in the FreeBSD-14-compatible setgroups(2) The freebsd14_setgroups() function would try to modify the effective GID on the current process' credentials without holding the process lock, allowing races with other threads concurrently modifying the process credentials. In the worst case, freebsd14_setgroups() could be manipulating a 'struct ucred' already freed by another thread (in the very small window after reading 'p_ucred' without lock but before modifying the effective GID). Concurrent uses of freebsd14_setgroups() or setcred() could also lead to non-atomic credentials modifications. Fix this by making kern_setgroups() take a new boolean indicating whether the passed array includes the effective GID in its first slot. When this boolean is true, it internally keeps the effective GID in a separate variable, pretends that the groups[] array that was passed actually starts at 'groups + 1', do the usual steps to set the supplementary groups and new extra ones to set the effective GID along, without releasing the process lock in between. Reported by: markj Reviewed by: markj MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60028 (cherry picked from commit e6fbef451dd45159071a1b234cd13c66fbb654fa) M sys/kern/kern_prot.c M sys/sys/syscallsubr.h _____________________________________________________________________________________________________________ Commit: 4b8e4e6d5605b70d60efcca13d0f6953fc3b1e54 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4b8e4e6d5605b70d60efcca13d0f6953fc3b1e54 Author: Rick Richard (Sat 3 Oct 2026 17:00:00 BST) Committer: Mitchell Horne (Tue 3 Nov 2026 14:23:33 GMT) riscv: Map the DTB when it is outside the kernel's 1GB region When the kernel is started directly by SBI firmware, locore.S maps only the 1GB region that contains the kernel, and initriscv() reads the DTB through that mapping at the physical address passed in a1. If the firmware put the DTB in another 1GB region, as QEMU does with more than 1GB of RAM, fake_preload_metadata() faults before the console is up and the kernel hangs. Also map the 1GB region that contains the DTB. This fixes direct kernel booting without FreeBSD loader(8). PR: 299088 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299088 ) Reviewed by: mhorne Fixes: bfb857546984 ("riscv: Construct an identity map in locore.S") MFC after: 1 week Signed-off-by: Rick Richard (cherry picked from commit 509d65fae512c24fc755d6a8b3b41bb967e6c5e1) M sys/riscv/riscv/locore.S _____________________________________________________________________________________________________________ Commit: 80c954a926c6ac4a7dda462423fd732f4ce06f40 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=80c954a926c6ac4a7dda462423fd732f4ce06f40 Author: Martin Matuska (Sat 31 Oct 2026 23:39:49 GMT) Committer: Martin Matuska (Tue 3 Nov 2026 14:22:05 GMT) libarchive: merge from vendor branch libarchive 3.8.11 ChangeLog: https://github.com/libarchive/libarchive/compare/v3.8.10...v3.8.11 Obtained from: libarchive Vendor commit: 03036ffa409a2aa1c5bbad35be2202641a040fda MFC after: 3 days (cherry picked from commit 322d4227521380a61850b3d4f2ebd2b42343a254) M contrib/libarchive/NEWS M contrib/libarchive/cpio/cpio.c A contrib/libarchive/cpio/test/test_option_o_rejected_entry.c M contrib/libarchive/libarchive/archive.h M contrib/libarchive/libarchive/archive_digest_private.h M contrib/libarchive/libarchive/archive_entry.h M contrib/libarchive/libarchive/archive_read.c M contrib/libarchive/libarchive/archive_read_append_filter.c M contrib/libarchive/libarchive/archive_read_data_into_fd.c M contrib/libarchive/libarchive/archive_read_disk_entry_from_file.c M contrib/libarchive/libarchive/archive_read_open_filename.c M contrib/libarchive/libarchive/archive_read_support_filter_by_code.c M contrib/libarchive/libarchive/archive_read_support_filter_uu.c M contrib/libarchive/libarchive/archive_read_support_format_7zip.c M contrib/libarchive/libarchive/archive_read_support_format_cpio.c M contrib/libarchive/libarchive/archive_read_support_format_iso9660.c M contrib/libarchive/libarchive/archive_read_support_format_mtree.c M contrib/libarchive/libarchive/archive_read_support_format_rar.c M contrib/libarchive/libarchive/archive_read_support_format_tar.c M contrib/libarchive/libarchive/archive_read_support_format_xar.c M contrib/libarchive/libarchive/archive_read_support_format_zip.c M contrib/libarchive/libarchive/archive_string.c M contrib/libarchive/libarchive/archive_write.c M contrib/libarchive/libarchive/archive_write_add_filter.c M contrib/libarchive/libarchive/archive_write_add_filter_b64encode.c M contrib/libarchive/libarchive/archive_write_add_filter_uuencode.c M contrib/libarchive/libarchive/archive_write_add_filter_zstd.c M contrib/libarchive/libarchive/archive_write_disk_posix.c M contrib/libarchive/libarchive/archive_write_set_format_7zip.c M contrib/libarchive/libarchive/archive_write_set_format_iso9660.c M contrib/libarchive/libarchive/archive_write_set_format_pax.c M contrib/libarchive/libarchive/archive_write_set_format_xar.c M contrib/libarchive/libarchive/archive_write_set_format_zip.c M contrib/libarchive/libarchive/archive_xml_private.h M contrib/libarchive/libarchive/test/test_archive_read.c M contrib/libarchive/libarchive/test/test_archive_read_append_filter.c M contrib/libarchive/libarchive/test/test_archive_read_open_filenames.c M contrib/libarchive/libarchive/test/test_archive_write_add_filter.c M contrib/libarchive/libarchive/test/test_archive_write_add_filter_by_name.c A contrib/libarchive/libarchive/test/test_archive_write_close_callback.c M contrib/libarchive/libarchive/test/test_create_child_environment.c M contrib/libarchive/libarchive/test/test_gnutar_filename_encoding.c M contrib/libarchive/libarchive/test/test_open_filename.c M contrib/libarchive/libarchive/test/test_read_data_large.c M contrib/libarchive/libarchive/test/test_read_filter_compress.c A contrib/libarchive/libarchive/test/test_read_filter_compress_multi_volume.part01.uu A contrib/libarchive/libarchive/test/test_read_filter_compress_multi_volume.part02.uu A contrib/libarchive/libarchive/test/test_read_filter_compress_multi_volume.part03.uu M contrib/libarchive/libarchive/test/test_read_filter_uudecode.c M contrib/libarchive/libarchive/test/test_read_format_7zip.c A contrib/libarchive/libarchive/test/test_read_format_7zip_chained_lzma2.7z.uu A contrib/libarchive/libarchive/test/test_read_format_cpio_newc_resync.c A contrib/libarchive/libarchive/test/test_read_format_iso_joliet_overlong.iso.Z.uu A contrib/libarchive/libarchive/test/test_read_format_iso_joliet_utf16be_cycle.c A contrib/libarchive/libarchive/test/test_read_format_iso_joliet_utf16be_cycle.iso.Z.uu A contrib/libarchive/libarchive/test/test_read_format_iso_rockridge_sl_leak.c A contrib/libarchive/libarchive/test/test_read_format_iso_rockridge_sl_leak.iso.uu M contrib/libarchive/libarchive/test/test_read_format_isojoliet_long.c M contrib/libarchive/libarchive/test/test_read_format_mtree.c M contrib/libarchive/libarchive/test/test_read_format_rar.c A contrib/libarchive/libarchive/test/test_read_format_tar_gnu_sparse_map.c A contrib/libarchive/libarchive/test/test_read_format_tar_gnu_sparse_map_invalid.tar.uu A contrib/libarchive/libarchive/test/test_read_format_tar_gnu_sparse_map_overflow.tar.uu M contrib/libarchive/libarchive/test/test_read_format_xar.c A contrib/libarchive/libarchive/test/test_read_format_xar_invalid_seek_offset.xar.uu A contrib/libarchive/libarchive/test/test_read_format_zip_streamable_skip.c M contrib/libarchive/libarchive/test/test_ustar_filename_encoding.c M contrib/libarchive/libarchive/test/test_v7tar_filename_encoding.c M contrib/libarchive/libarchive/test/test_write_disk_secure744.c M contrib/libarchive/libarchive/test/test_write_filter_b64encode.c M contrib/libarchive/libarchive/test/test_write_filter_uuencode.c M contrib/libarchive/libarchive/test/test_write_filter_zstd.c A contrib/libarchive/libarchive/test/test_write_format_iso9660_boot_load_size.c A contrib/libarchive/libarchive/test/test_write_format_option_missing_value.c A contrib/libarchive/libarchive/test/test_write_format_pax_mac_meta.c M contrib/libarchive/libarchive/test/test_zip_filename_encoding.c M contrib/libarchive/libarchive_fe/lafe_fnmatch.c M contrib/libarchive/tar/creation_set.c M contrib/libarchive/tar/subst.c A contrib/libarchive/tar/test/test_copy_data_warning.c A contrib/libarchive/tar/test/test_copy_data_warning.lzh.uu M contrib/libarchive/tar/test/test_option_s.c M contrib/libarchive/tar/util.c M contrib/libarchive/tar/write.c M contrib/libarchive/test_utils/test_common.h M contrib/libarchive/test_utils/test_main.c M contrib/libarchive/unzip/bsdunzip.c A contrib/libarchive/unzip/test/test_prompt.c A contrib/libarchive/unzip/test/test_prompt.zip.uu A contrib/libarchive/unzip/test/test_stdin.c M lib/libarchive/tests/Makefile M usr.bin/cpio/tests/Makefile M usr.bin/tar/tests/Makefile M usr.bin/unzip/tests/Makefile _____________________________________________________________________________________________________________ Commit: 3dba72dfef7577c054cbe9ee551321b811106d8b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3dba72dfef7577c054cbe9ee551321b811106d8b Author: Ali Mashtizadeh (Fri 31 Jul 2026 03:11:17 BST) Committer: Mitchell Horne (Tue 3 Nov 2026 14:18:51 GMT) libpmc: Fix AMD L3 counter parameter parsing Fix two small bugs affecting the event parsing of AMD L3 counters. AMD's manual and JSON disagree about the naming scheme on recent processors. I use the naming scheme present in the recent PPRs to be consistent, so in the JSON parser we rename 'allslices' to 'allsources' just as we already do with sliceid and sourceid. Also ensure that we parse the 0x prefix present in the newer JSON files. Reviewed by: mhorne Sponsored by: Netflix MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/2180 (cherry picked from commit d38b3a5ead0d3507080da5321144219b13d43aa9) M lib/libpmc/libpmc_pmu_util.c M lib/libpmc/pmu-events/jevents.c _____________________________________________________________________________________________________________ Commit: e7c7fed0e369a0415626572b592c9a1b0ffe4e62 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e7c7fed0e369a0415626572b592c9a1b0ffe4e62 Author: Bojan Novković (Sat 21 Mar 2026 14:37:44 GMT) Committer: Mitchell Horne (Tue 3 Nov 2026 14:18:51 GMT) libpmc/pmu-events: Add support for new json fields This change adds support for three new Intel fields to jevents.c: - MetricThreshold - MetricgroupNoGroup - DefaultMetricgroupName Reviewed by: ali_mashtizadeh.com, mhorne Differential Revision: https://reviews.freebsd.org/D56017 MFC after: 1 week (cherry picked from commit 6ad94d549eb2286d791abd5634400d8ef36d8259) M lib/libpmc/pmu-events/jevents.c M lib/libpmc/pmu-events/pmu-events.h _____________________________________________________________________________________________________________ Commit: 8f1f763f713cc132f604909794f6f2f9544786b8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8f1f763f713cc132f604909794f6f2f9544786b8 Author: Mitchell Horne (Mon 16 Mar 2026 23:25:00 GMT) Committer: Mitchell Horne (Tue 3 Nov 2026 14:18:51 GMT) jevents: include file path in whitelist error message A small enhancement. Reviewed by: Ali Mashtizadeh Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55830 (cherry picked from commit f0e0c4c52971f58d41a89690d402520500d286bd) M lib/libpmc/pmu-events/jevents.c _____________________________________________________________________________________________________________ Commit: 60edd118e7138210873a0358cc9d812899a356c2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=60edd118e7138210873a0358cc9d812899a356c2 Author: Ali Mashtizadeh (Sat 28 Feb 2026 20:45:27 GMT) Committer: Mitchell Horne (Tue 3 Nov 2026 14:18:48 GMT) libpmc: Explicitly whitelist json fields Adds all missing Intel fields and turns jevents.c into an explicit white list mechanism so that we no longer ignore important fields that often invalidate the counter. The json event parser must now parse every field on each architecture that we support. This has been tested by running tinderbox and manually running jevent against our current json repository. As a bonus I fixed spelling errors in the AMD JSON definitions. Sponsored by: Netflix Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2055 (cherry picked from commit bfb2fd5f66183454cfe8771595df09c0f23c7efb) M lib/libpmc/libpmc.c M lib/libpmc/libpmc_pmu_util.c M lib/libpmc/pmu-events/arch/x86/amdzen4/cache.json M lib/libpmc/pmu-events/arch/x86/amdzen5/load-store.json M lib/libpmc/pmu-events/arch/x86/amdzen6/load-store.json M lib/libpmc/pmu-events/jevents.c _____________________________________________________________________________________________________________ Commit: 8b55ee60829ff629a0b00c49c16434c3f3397e07 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8b55ee60829ff629a0b00c49c16434c3f3397e07 Author: Ali Mashtizadeh (Tue 24 Feb 2026 15:52:00 GMT) Committer: Mitchell Horne (Tue 3 Nov 2026 14:03:17 GMT) libpmc: Import AMD Zen 6 PMU events. Sponsored by: Netflix Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2049 (cherry picked from commit 178d0b5b8da7480f455273aedf40dd8f1e785d3f) A lib/libpmc/pmu-events/arch/x86/amdzen6/branch-prediction.json A lib/libpmc/pmu-events/arch/x86/amdzen6/decode.json A lib/libpmc/pmu-events/arch/x86/amdzen6/execution.json A lib/libpmc/pmu-events/arch/x86/amdzen6/floating-point.json A lib/libpmc/pmu-events/arch/x86/amdzen6/inst-cache.json A lib/libpmc/pmu-events/arch/x86/amdzen6/l2-cache.json A lib/libpmc/pmu-events/arch/x86/amdzen6/l3-cache.json A lib/libpmc/pmu-events/arch/x86/amdzen6/load-store.json A lib/libpmc/pmu-events/arch/x86/amdzen6/memory-controller.json A lib/libpmc/pmu-events/arch/x86/amdzen6/pipeline.json A lib/libpmc/pmu-events/arch/x86/amdzen6/recommended.json M lib/libpmc/pmu-events/arch/x86/mapfile.csv _____________________________________________________________________________________________________________ Commit: 58d080ea724f9582abb482ad569e37dd529341ab URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=58d080ea724f9582abb482ad569e37dd529341ab Author: Ali Mashtizadeh (Thu 8 Jan 2026 22:33:41 GMT) Committer: Mitchell Horne (Tue 3 Nov 2026 14:02:48 GMT) libpmc: Import AMD Zen 5 PMU events. Sponsored by: Netflix Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1954 (cherry picked from commit bae832487038b2c8778dc6f52700b4353175ccec) A lib/libpmc/pmu-events/arch/x86/amdzen5/branch-prediction.json A lib/libpmc/pmu-events/arch/x86/amdzen5/data-fabric.json A lib/libpmc/pmu-events/arch/x86/amdzen5/decode.json A lib/libpmc/pmu-events/arch/x86/amdzen5/execution.json A lib/libpmc/pmu-events/arch/x86/amdzen5/floating-point.json A lib/libpmc/pmu-events/arch/x86/amdzen5/inst-cache.json A lib/libpmc/pmu-events/arch/x86/amdzen5/l2-cache.json A lib/libpmc/pmu-events/arch/x86/amdzen5/l3-cache.json A lib/libpmc/pmu-events/arch/x86/amdzen5/load-store.json A lib/libpmc/pmu-events/arch/x86/amdzen5/memory-controller.json A lib/libpmc/pmu-events/arch/x86/amdzen5/pipeline.json A lib/libpmc/pmu-events/arch/x86/amdzen5/recommended.json M lib/libpmc/pmu-events/arch/x86/mapfile.csv _____________________________________________________________________________________________________________ Commit: 06e5b0422f3abf525472f6eb69677d7a32f4748f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=06e5b0422f3abf525472f6eb69677d7a32f4748f Author: Christos Margiolis (Tue 27 Oct 2026 11:27:32 GMT) Committer: Christos Margiolis (Tue 3 Nov 2026 09:10:44 GMT) sound tests: Check the return value of close(2) While here, remove two munmap(2) calls on mappings the tests require to have failed, since they are practically dead. MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D60800 (cherry picked from commit eb36c35ccf83ea94d46a3bcb282c01ceeaeb3bab) M tests/sys/sound/mmap.c M tests/sys/sound/polling.c M tests/sys/sound/sndstat.c _____________________________________________________________________________________________________________ Commit: 1f94158da648daa262de7cf1e1dc791e0c600e0f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1f94158da648daa262de7cf1e1dc791e0c600e0f Author: Christos Margiolis (Tue 27 Oct 2026 11:26:29 GMT) Committer: Christos Margiolis (Tue 3 Nov 2026 09:10:44 GMT) sound: Let pcm_unregister() tear down a partially initialized device Since 3107b952f534 ("sound: Merge PCM_ALIVE() with PCM_REGISTERED()"), pcm_unregister() is gated on PCM_REGISTERED(), so it cannot run unless pcm_register() has already succeeded, which means drivers will leak resources if a failure happened prior to this. Reintroduce PCM_ALIVE(), but test dev rather than the lock. pcm_init() assigns dev before anything else, so it can tell us whether pcm_init() has run or not. Make sure to clear it in pcm_unregister() so that a second call to pcm_unregister() cannot double-free. While here, publish to sndstat(4) only once pcm_register() has succeeded. Reported by: jah Fixes: 3107b952f534 ("sound: Merge PCM_ALIVE() with PCM_REGISTERED()") MFC after: 1 week Sponsored by: The FreeBSD Foundation Reviewed by: jah, markj Differential Revision: https://reviews.freebsd.org/D60801 (cherry picked from commit 5760c22a05220cfb6b6cbf623f2cda5047b28706) M sys/dev/sound/pcm/dsp.c M sys/dev/sound/pcm/sound.c M sys/dev/sound/pcm/sound.h _____________________________________________________________________________________________________________ Commit: 9291bb153595a4b10ef86cd3fee5b783835db819 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9291bb153595a4b10ef86cd3fee5b783835db819 Author: Sarah Walker (Fri 27 Feb 2026 14:17:15 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:21 GMT) virtio_net: Use bus_dma for command/ack buffers (cherry picked from commit ea130fa32099ea7e0c03702efdec28e745ea6ef1) M sys/dev/virtio/network/if_vtnet.c M sys/dev/virtio/network/if_vtnetvar.h _____________________________________________________________________________________________________________ Commit: 6695c6bd0bf248927f34479a9ea2e13a6bf7db3d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6695c6bd0bf248927f34479a9ea2e13a6bf7db3d Author: Sarah Walker (Mon 16 Feb 2026 14:19:13 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:20 GMT) virtio_net: Use bus_dma for rxq/txq buffers (cherry picked from commit 8193fa3b8e1a9425bd8ac8b707cab565816b8584) M sys/dev/virtio/network/if_vtnet.c M sys/dev/virtio/network/if_vtnetvar.h _____________________________________________________________________________________________________________ Commit: 87bba0ac11788cb3a7ee48dee64e01e57b6f39f7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=87bba0ac11788cb3a7ee48dee64e01e57b6f39f7 Author: Konstantin Belousov (Fri 30 Oct 2026 13:01:15 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:20 GMT) amd64 FRED: enable interrupts after user EXTINTs and NMIs (cherry picked from commit 91d9fbb6e1537009c35ec0c1c37ca09b28c0b31d) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: d3040b1cf1e23333620ca9105601356619c5a0ea URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d3040b1cf1e23333620ca9105601356619c5a0ea Author: Konstantin Belousov (Fri 30 Oct 2026 12:46:52 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:20 GMT) amd64 FRED: use symbolic constant for the NMI unblocking bit for ERETS (cherry picked from commit 614b6597e7025b5b1dd23f058e53e8c28dc28efe) M sys/amd64/amd64/exception.S M sys/amd64/amd64/genassym.c _____________________________________________________________________________________________________________ Commit: eb91ae9eb20ee6b8ef6655700e2e2e173234343c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=eb91ae9eb20ee6b8ef6655700e2e2e173234343c Author: Konstantin Belousov (Fri 30 Oct 2026 12:43:44 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:19 GMT) amd64 FRED: get out of NMI blocking mode unconditionally (cherry picked from commit 880d2991661de74e1f800db867dc9d0eda7b1bc9) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: 4604502157b3e60ff5e8e9d549e2f27a0a9b6194 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4604502157b3e60ff5e8e9d549e2f27a0a9b6194 Author: Konstantin Belousov (Thu 29 Oct 2026 03:34:45 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:19 GMT) amd64 FRED: fix dtrace fbt (cherry picked from commit cf4ff7bd369e42fb0a1c6f5cf2dc4fa7a990158e) M sys/amd64/amd64/exception.S M sys/amd64/amd64/genassym.c M sys/cddl/dev/dtrace/amd64/dtrace_asm.S _____________________________________________________________________________________________________________ Commit: a9a3c581828535a06ee7b821d7936e9c844f379d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a9a3c581828535a06ee7b821d7936e9c844f379d Author: Konstantin Belousov (Thu 29 Oct 2026 02:16:42 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:19 GMT) amd64 FRED: handle INT 3, INT 4, and INT 0x92 same as for IDT (cherry picked from commit 32b9c967e07c7af2b6e421969d0e7ba1cc9b9425) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: 94816f650989310f5d19dc562b73544e84520eaf URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=94816f650989310f5d19dc562b73544e84520eaf Author: Konstantin Belousov (Thu 29 Oct 2026 02:16:42 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:18 GMT) amd64: add helpers to set up thread state on trap (cherry picked from commit 7f49a62e3c5ff15d87afcce9ab7fe787319a3f7f) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: c393a1369a16fee8a21112d954a21e2f3f909a08 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c393a1369a16fee8a21112d954a21e2f3f909a08 Author: Konstantin Belousov (Thu 29 Oct 2026 02:05:47 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:18 GMT) amd64 FRED: fix handling of ATPIC IRQ range when no atpic is configured (cherry picked from commit bf074ee97407f24c200613470b3b7a24ce5a5242) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: 5a87d01319cbd06654583e9c12d245600924bef4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5a87d01319cbd06654583e9c12d245600924bef4 Author: Konstantin Belousov (Thu 29 Oct 2026 02:04:13 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:18 GMT) amd64 FRED: re-wrap the comment (cherry picked from commit 0213bd5e5639e855d4039212f0f3f6ad89c6d65a) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: 2c85ff5441e6702924603cf1279ebf88d5c8a898 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2c85ff5441e6702924603cf1279ebf88d5c8a898 Author: Konstantin Belousov (Thu 29 Oct 2026 01:26:04 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:17 GMT) amd64 FRED: normalize the user-provided 'fred' knob value (cherry picked from commit 78962f9b66d1f84b957ddac3f528f184ba1f4739) M sys/amd64/amd64/machdep.c _____________________________________________________________________________________________________________ Commit: 0ecc788089b932d097bb1ccad81ba064443c87db URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=0ecc788089b932d097bb1ccad81ba064443c87db Author: Konstantin Belousov (Thu 29 Oct 2026 01:16:49 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:17 GMT) amd64 FRED: explain why %rax is saved early (cherry picked from commit 6105e8589b2cd7f9001df045392c30fc86900633) M sys/amd64/amd64/exception.S _____________________________________________________________________________________________________________ Commit: 7dc8a9bf7a3ca03fd341b9b73e68d279855966c1 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7dc8a9bf7a3ca03fd341b9b73e68d279855966c1 Author: Konstantin Belousov (Thu 29 Oct 2026 01:07:40 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:17 GMT) amd64 db_nextframe(): classify user_fred_syscall frame as SYSCALL (cherry picked from commit b2767c7b022a8d7c03af8ee1b0fcd20d855d5433) M sys/amd64/amd64/db_trace.c _____________________________________________________________________________________________________________ Commit: 7effd5b69c370ca13f533aac83b29b44e32f2050 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7effd5b69c370ca13f533aac83b29b44e32f2050 Author: Konstantin Belousov (Thu 29 Oct 2026 01:04:23 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:16 GMT) amd64 FRED: add missed newline in the diagnostic (cherry picked from commit 0cfbb34a12e59851b0eba2c6671e39cb05095e29) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: a15c346af4189bcd1a58a9c2a138c2ed4f77d3bd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a15c346af4189bcd1a58a9c2a138c2ed4f77d3bd Author: Konstantin Belousov (Thu 29 Oct 2026 01:01:05 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:16 GMT) amd64 FRED: no need to store fs/gsbase on user_fred_not_syscall path (cherry picked from commit 6ca697360b53ce4f952d2b178c5d34f75f8c50ec) M sys/amd64/amd64/exception.S _____________________________________________________________________________________________________________ Commit: 06a534c55900c709d3dc6fe9a9d7ea7eac6016e8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=06a534c55900c709d3dc6fe9a9d7ea7eac6016e8 Author: Konstantin Belousov (Thu 29 Oct 2026 00:57:52 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:16 GMT) amd64 FRED: clear %dr6 on #DB from kernel (cherry picked from commit 837bb27c93a58a2df2f5203393ffa245b93caf31) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: ab2a4548ebb4dff4d3231f41d140777b79a3ee46 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ab2a4548ebb4dff4d3231f41d140777b79a3ee46 Author: Konstantin Belousov (Wed 28 Oct 2026 14:28:01 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:16 GMT) amd64 FRED: mark trap frame as initialized for KASAN/KMSAN (cherry picked from commit 1c25a7f1cb2986901957cc1cdf7a0c0f99748a35) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: d5d2aee87319a677896277a994ee4f57f665a94d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d5d2aee87319a677896277a994ee4f57f665a94d Author: Konstantin Belousov (Wed 28 Oct 2026 14:05:50 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:15 GMT) amd64 resumectx(): restore FRED state before loading %cr4 (cherry picked from commit 2fd12bf2dd9c1cf997ce2505bc2af10572ca70e2) M sys/amd64/amd64/cpu_switch.S _____________________________________________________________________________________________________________ Commit: 2efebd04b4bed3e75898d5d74830e119ea45244e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2efebd04b4bed3e75898d5d74830e119ea45244e Author: Konstantin Belousov (Wed 28 Oct 2026 13:58:49 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:15 GMT) amd64 FRED: handle in-kernel faults same as IDT (cherry picked from commit efb0c54c7694798214a2c130ec8461a34444e1c4) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: 74e7965ac7e646c77b2ef79b765f81a6551f0dcd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=74e7965ac7e646c77b2ef79b765f81a6551f0dcd Author: Konstantin Belousov (Wed 28 Oct 2026 00:45:33 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:15 GMT) amd64: strictly enforce the caller's mode for FRED 64bit syscall handler in C (cherry picked from commit dcc5adb27e3b00f003c2256a9e9aa2fcc20c4d32) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: 4a52b966727be87bbb1ae579f944eddc9cd2da54 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4a52b966727be87bbb1ae579f944eddc9cd2da54 Author: Konstantin Belousov (Tue 27 Oct 2026 10:08:14 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:14 GMT) amd64: Make the SYSENTER and INTn action same as for IDT case. (cherry picked from commit 73b3fb41e67a11f18b9b63a5265e174e4b688661) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: 6aa36e57d0b26f6ccacd10c577c9bb5c3cf57c12 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6aa36e57d0b26f6ccacd10c577c9bb5c3cf57c12 Author: Konstantin Belousov (Tue 27 Oct 2026 10:08:14 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:14 GMT) amd64: do not pass SYSENTER frame to FRED fast syscall handler (cherry picked from commit 8671e823b7678731cd1aaf8850ccde4a2c293527) M sys/amd64/amd64/exception.S M sys/amd64/amd64/genassym.c _____________________________________________________________________________________________________________ Commit: 06d35e735d19401ec55afda4b3e5e7c24318a585 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=06d35e735d19401ec55afda4b3e5e7c24318a585 Author: Konstantin Belousov (Tue 27 Oct 2026 09:21:55 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:14 GMT) amd64: fixes for register handling of syscall entry for FRED (cherry picked from commit 473cd1bba9b4e80b741769ff6185ba3846b1f050) M sys/amd64/amd64/exception.S _____________________________________________________________________________________________________________ Commit: ae5ad9c6a79b29b7092323b3bc284fa3f21c213d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ae5ad9c6a79b29b7092323b3bc284fa3f21c213d Author: Konstantin Belousov (Tue 27 Oct 2026 09:10:09 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:14 GMT) amd64: do not allow to set IOPL to 3 when FRED is used (cherry picked from commit 5bc997b6f5b1265ff28d11405eb980bf471c3db4) M sys/amd64/amd64/io.c M sys/amd64/linux/linux_machdep.c M sys/amd64/linux32/linux32_machdep.c M sys/dev/syscons/syscons.c M sys/dev/vt/vt_core.c _____________________________________________________________________________________________________________ Commit: d855bc608f20c2674573ab19afd215fdccd0f387 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d855bc608f20c2674573ab19afd215fdccd0f387 Author: Konstantin Belousov (Tue 27 Oct 2026 08:58:44 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:13 GMT) trap_fred_handle_k_exc(): handle #AC in kernel (cherry picked from commit e86a612d77ab34ecd96cce5fd0732999ffdd7fc0) M sys/amd64/amd64/trap.c _____________________________________________________________________________________________________________ Commit: b9fba0c59689aebd930d04b34d2dfc223afe86af URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b9fba0c59689aebd930d04b34d2dfc223afe86af Author: Konstantin Belousov (Tue 27 Oct 2026 08:54:43 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:13 GMT) amd64_cpu_init_fred(): set stack level for NMI and not #NM (cherry picked from commit 787e2e411d2a169fd28581f9bbf1e87c51757303) M sys/amd64/amd64/initcpu.c _____________________________________________________________________________________________________________ Commit: 4d7f2bc4142f5feac9d0e4302b433af0392e9e24 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4d7f2bc4142f5feac9d0e4302b433af0392e9e24 Author: Konstantin Belousov (Fri 30 Oct 2026 16:02:34 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:13 GMT) fdcopy(): properly update fd_freefile when skipping non-copyable fd PR: 300234 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300234 ) (cherry picked from commit 99a58803f9a306253df36c82f11991bc1e36e5a5) M sys/kern/kern_descrip.c _____________________________________________________________________________________________________________ Commit: 77b0d8a3d4a6de1062156e07db88045b7c416dab URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=77b0d8a3d4a6de1062156e07db88045b7c416dab Author: Konstantin Belousov (Sun 25 Oct 2026 17:57:40 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:12 GMT) rtld: free heap donelists abandoned by the lookup restart (cherry picked from commit ed059dbfe2ef85ea79c5bc2834e75b2a33bb8a61) M libexec/rtld-elf/rtld.c M libexec/rtld-elf/rtld.h M libexec/rtld-elf/rtld_lock.c _____________________________________________________________________________________________________________ Commit: 6128589a5a381a5d25be427c9c4eec4d932cfd3d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6128589a5a381a5d25be427c9c4eec4d932cfd3d Author: Konstantin Belousov (Sun 25 Oct 2026 17:57:40 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:12 GMT) rtld: add lockstate_rlocked() (cherry picked from commit 87a7419c63756580278fcbdebdbca8b16f3bdd24) M libexec/rtld-elf/rtld_lock.c M libexec/rtld-elf/rtld_lock.h _____________________________________________________________________________________________________________ Commit: 2583f6c40f72dc68b884b1907d7591c5e3a013b5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2583f6c40f72dc68b884b1907d7591c5e3a013b5 Author: Konstantin Belousov (Thu 29 Oct 2026 13:50:22 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:12 GMT) rtld: add RtldLockState initializer (cherry picked from commit 500924a6b16d61070f16fb8de49afc0b796d1170) M libexec/rtld-elf/rtld.c M libexec/rtld-elf/rtld_lock.c M libexec/rtld-elf/rtld_lock.h _____________________________________________________________________________________________________________ Commit: 84d316496fa9f735304b10b2542b328a743b9f03 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=84d316496fa9f735304b10b2542b328a743b9f03 Author: Konstantin Belousov (Sun 25 Oct 2026 17:57:39 GMT) Committer: Konstantin Belousov (Tue 3 Nov 2026 09:01:11 GMT) rtld: extract donelist heap allocation into donelist_alloc() (cherry picked from commit 53cbd14ea7ca78c140ee90c1e459589bb574d938) M libexec/rtld-elf/rtld.c _____________________________________________________________________________________________________________ Commit: fab3594e208f7bcc20ce7ccfa9dddffb364db5a4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fab3594e208f7bcc20ce7ccfa9dddffb364db5a4 Author: Mark Johnston (Tue 27 Oct 2026 16:47:19 GMT) Committer: Ram Kishore Vegesna (Tue 3 Nov 2026 08:50:42 GMT) ocf_fc: Fix up max() usage max() truncates its parameters to 32-bit integers. Reviewed by: ram Sponsored by: The FreeBSD Foundation Fixes: 26081296b244 ("ocs_fc: Harden ioctl, XRI lookup and FCP command validation") (cherry picked from commit 9b6b3a36ee295dc6edd0e00aa34adaebaed98c7d) M sys/dev/ocs_fc/ocs_ioctl.c _____________________________________________________________________________________________________________ Commit: 3440d485873e82989d1bc14ed871b7ea364946c8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3440d485873e82989d1bc14ed871b7ea364946c8 Author: Ram Kishore Vegesna (Mon 19 Oct 2026 18:29:31 BST) Committer: Ram Kishore Vegesna (Tue 3 Nov 2026 08:50:40 GMT) ocs_fc: Fix config space bounds, double PRLI response and a stack overflow Fix three unrelated problems found by security review of the driver. ECD helper ioctl: - OCS_ECD_HELPER_CFG_READ* and OCS_ECD_HELPER_CFG_WRITE* passed a user supplied offset straight to pci_read_config() and pci_write_config(). Reject accesses that extend past PCIE_REGMAX, so that a wide access starting in range cannot run past the end of config space. - Use the real access width (1, 2 or 4 bytes) of the command for both the BAR and the config space checks, rather than assuming 4 bytes, so that narrow accesses at the very end of the BAR or config space are not rejected while wider ones remain bounded. PRLI: - When a PRLI carries an FC-4 type other than the one the driver supports, ocs_d_send_prli_rsp() sent an LS_RJT and started node shutdown, but then fell through and sent a second response on the same IO (another LS_RJT, or a PRLI LS_ACC when the initiator is accepted), followed by a conflicting transition to __ocs_d_device_ready. The two responses posted two WQEs for one IO and caused a double ocs_ref_put(), a use after free of the ELS IO. Return after dispatching the LS_RJT so that exactly one response is sent. - __ocs_d_port_logged_in calls ocs_d_send_prli_rsp() without checking the FC-4 type, so any port that has completed a PLOGI can trigger this with a single PRLI, whether or not target mode is enabled. Management: - The active profile id is a uint32_t that is formatted as "0x%02x" with sprintf() into a buffer of MAX_PROFILE_LENGTH (5) bytes, which overflows for any id above 0xff. Size the buffer for the longest possible string ("0x" plus 8 hex digits and the terminating NUL) and use ocs_snprintf(). - Use ocs_snprintf() for nv_wwpn as well, as nv_wwnn already does. MFC after: 1 week Sponsored by: Broadcom Reviewed by: ken (cherry picked from commit 039a8e11f887e359af1346b04e05180b9a49920c) M sys/dev/ocs_fc/ocs_device.c M sys/dev/ocs_fc/ocs_ioctl.c M sys/dev/ocs_fc/ocs_mgmt.c _____________________________________________________________________________________________________________ Commit: 44bc8c2d5f5ae6e5dca57dc8d362391007678953 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=44bc8c2d5f5ae6e5dca57dc8d362391007678953 Author: Ram Kishore Vegesna (Wed 14 Oct 2026 12:24:07 BST) Committer: Ram Kishore Vegesna (Tue 3 Nov 2026 08:50:37 GMT) ocs_fc: Harden ioctl, XRI lookup and FCP command validation Fix several issues found by security review of the driver. ioctl: - Require PRIV_DRIVER for all ocs ioctls and create the device node with mode 0600, group wheel. - Return the error from ocs_process_sli_config() to the caller. Previously only ENXIO was propagated, so a failed validation or a failed copyin() still issued the mailbox command, in the latter case with a descriptor pointing at freed memory. - Reject COMMON_WRITE_OBJECT when in_bytes exceeds desired_write_length, and cap WRITE_OBJECT, READ_OBJECT, READ_OBJECT_LIST and non-embedded mailbox buffers at OCS_MAX_DMA_ALLOC, returning EINVAL. - Use a 64-bit size for the non-embedded mailbox buffer to avoid truncation of a user supplied length. - Refuse to copy out more than the size of the DMA buffer allocated for the command. - Range check the BAR offset in the ECD helper ioctl. HW: - Range check the XRI in ocs_hw_io_lookup() and return NULL when it is out of range. Handle a NULL return in the auto xfer ready command and data paths (returning the RQ buffers in the former), and in ocs_hw_reclaim_xri(). - Make ocs_ref_get_unless_zero() atomic. FCP: - additional_fcp_cdb_length is in 4-byte words, but ocs_validate_fcp_cmd() added it to the expected payload length as bytes, so the length check under-validated the received frame. - Drop commands with a CDB longer than CAM_MAX_CDBLEN instead of passing a truncated CDB to CAM. MFC after: 1 week Sponsored by: Broadcom Reviewed by: ken (cherry picked from commit 26081296b244a979732f2bd09e6def256e3d7bd4) M sys/dev/ocs_fc/ocs_cam.c M sys/dev/ocs_fc/ocs_hw.c M sys/dev/ocs_fc/ocs_hw_queues.c M sys/dev/ocs_fc/ocs_ioctl.c M sys/dev/ocs_fc/ocs_os.h M sys/dev/ocs_fc/ocs_unsol.c _____________________________________________________________________________________________________________ Commit: 8a08808fe07e12e258bddcde00ca5e3c7e0cd950 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8a08808fe07e12e258bddcde00ca5e3c7e0cd950 Author: Faraz Vahedi (Sun 12 Jul 2026 22:09:06 BST) Committer: Faraz Vahedi (Mon 2 Nov 2026 20:41:32 GMT) vtnet: Accept VIRTIO_NET_F_CTRL_RX_EXTRA Although the driver does not issue the extra receive-mode commands accepting the feature is harmless and some devices, notably Apple's Virtualization.framework, offer their control-queue features as a group and refuse FEATURES_OK unless the whole set is acknowledged. Signed-off-by: Faraz Vahedi Reviewed by: adrian Pull Request: https://github.com/freebsd/freebsd-src/pull/2322 (cherry picked from commit d4ddf8eaee9371d1d20bfb753237f25505d6afee) M sys/dev/virtio/network/if_vtnetvar.h _____________________________________________________________________________________________________________ Commit: 94e19d4178e6aa758c0526345578ba56331813d7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=94e19d4178e6aa758c0526345578ba56331813d7 Author: Faraz Vahedi (Sun 12 Jul 2026 21:46:20 BST) Committer: Faraz Vahedi (Mon 2 Nov 2026 20:41:21 GMT) vtnet: Implement VIRTIO_NET_F_GUEST_ANNOUNCE When the device sets VIRTIO_NET_S_ANNOUNCE in the config status field, for example after a VM migrates to a new host, announce the interface's presence on the network so peers and switches learn the new attachment point, then acknowledge the request with the VIRTIO_NET_CTRL_ANNOUNCE_ACK control command, as per VirtIO v1.3, 5.1.6.5.4. The announcement raises iflladdr_event: the stack sends gratuitous ARPs and unsolicited neighbor advertisements for the interface's addresses, and stacked interfaces such as vlan(4) propagate the event and announce theirs as well. The event handlers may sleep, so the work is deferred from the config change interrupt to a task on taskqueue_thread; that context also allows the acknowledgement to be skipped safely if the interface was stopped in the meantime, in which case the device keeps the bit set and the request is re-delivered with the next config change interrupt. Signed-off-by: Faraz Vahedi Reviewed by: adrian Pull Request: https://github.com/freebsd/freebsd-src/pull/2322 (cherry picked from commit c5caf856453325728155a18d3bb02a9cd651a0a0) M sys/dev/virtio/network/if_vtnet.c M sys/dev/virtio/network/if_vtnetvar.h _____________________________________________________________________________________________________________ Commit: a94d4deae39b56390ad910d4f4adc311ec330b51 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a94d4deae39b56390ad910d4f4adc311ec330b51 Author: Kristof Provost (Mon 25 Aug 2025 14:49:22 BST) Committer: Kristof Provost (Mon 2 Nov 2026 16:05:29 GMT) pf: allows TCP RST packets in the backwards window if ACK matches TCP reset packets are generated for the sequence numbers that have been acknowledged. Our pf(4) is quite strict regarding sequence numbers of reset packets to avoid evil connection drops. It expected exact match and did not allow a sequence window for resets. As pf tracks neither gaps in the sequence space nor the acknowledged data, it does not know where exactly the reset is expected by the TCP stack. Problem was that legit reset packets before a gap but not at the highest sequence numbers were blocked by pf. Solution is to fix pf_tcp_track_full(). Now it allows sequence number windows if the packet has ACK+RST flags set and the acknowlege number matches perfectly. This still prevents reset number guessing by an attacker. Curiously the TCP stack behaves correctly and accepts only resets before the gap. pf only allowed resets after the final data. So any reset was ignored by the system. When the other side processed the challenge ACK, the situation could be fixed. bug reported and fix tested by Lucas Aubard with Johan Mazel, Gilles Guette and Pierre Chifflier; OK sashan@ Obtained from: OpenBSD, bluhm , 12e4c257ea Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit fc63421de9f69ed67aad7bae29712fca2f570693) M sys/netpfil/pf/pf.c _____________________________________________________________________________________________________________ Commit: c4b6df9a7cc977cbe842b4fa9499af15b48a1b88 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c4b6df9a7cc977cbe842b4fa9499af15b48a1b88 Author: Vinícius Ferrão (Mon 2 Nov 2026 15:45:03 GMT) Committer: Adrian Chadd (Mon 2 Nov 2026 15:46:42 GMT) netinet6: Fix ND link-layer address option layout for IPoIB (stable/15) RFC 4391 (IP over InfiniBand), section 9.3, lays the ND source/target link-layer address option out as type, length (3), two reserved zero octets, then the 20-octet IPoIB link-layer address. The ND code assumed the Ethernet layout (RFC 4861, section 4.6.1) everywhere and read/wrote the address directly after the option header, i.e. two octets early. The option-length sanity check computes 24 for both layouts for a 20-octet address, so the mismatch was silent. Against a conformant peer (e.g. Linux) this broke IPv6 over IPoIB in both directions: the address parsed from a received NS/NA option was shifted by two bytes, so the cached link-layer address embedded a GID that does not exist on the fabric and replies were sent nowhere, and the options we built carried our address at the wrong offset for the peer. IPv4/ARP was unaffected. This blocked everything IPv6 over IPoIB against Linux, including rdma_cm's IP-to-GID resolution and therefore NFS-over-RDMA-over-InfiniBand with IPv6. Add nd6_lladdr_opt_pad(), the analog of Linux's ndisc_addr_option_pad(): the number of reserved octets between the option header and the address (2 for IFT_INFINIBAND and IFT_INFINIBANDLAG, 0 otherwise). Apply it at the option parse sites (nd6_ns_input(), nd6_na_input(), nd6_rs_input(), nd6_ra_input(), icmp6_redirect_input()) and the option build sites (nd6_ns_output_fib(), nd6_na_output_fib(), icmp6_redirect_output()). Zero the redirect target option before filling it; previously its trailing pad bytes were left uninitialized on links with 20-octet addresses. No functional change for link types without reserved octets. This is a direct commit to stable/15, equivalent to main commit bac4760524a2a15ce75e35251f0c9cdf31732f3f (D58096). It could not be cherry-picked cleanly: the neighbor-discovery code diverged on main (the router advertisement parse was refactored into helpers), so the same fix is reimplemented against the stable/15 sources. PR: 296585 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296585 ) Sponsored by: VersatusHPC Reviewed by: pouria Differential Revision: https://reviews.freebsd.org/D58132 M sys/netinet6/icmp6.c M sys/netinet6/nd6.h M sys/netinet6/nd6_nbr.c M sys/netinet6/nd6_rtr.c _____________________________________________________________________________________________________________ Commit: b9f1f9b60c6f7ddff4fa87de161a62ef1ed3a859 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b9f1f9b60c6f7ddff4fa87de161a62ef1ed3a859 Author: Nimish Jain (Tue 4 Aug 2026 00:08:31 BST) Committer: Konstantin Belousov (Mon 2 Nov 2026 10:39:49 GMT) fix p9fs_vget_common() panics (cherry picked from commit 2d21dbaaaf75558b42a000561eb6224b6c1c0615) M sys/fs/p9fs/p9fs_vfsops.c M sys/fs/p9fs/p9fs_vnops.c _____________________________________________________________________________________________________________ Commit: 5a9d56c68c08431d1f98b758aa65c9668d158564 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5a9d56c68c08431d1f98b758aa65c9668d158564 Author: Abdelkader Boudih (Mon 23 Feb 2026 16:11:10 GMT) Committer: Enji Cooper (Mon 2 Nov 2026 04:24:17 GMT) acpi_panasonic: Clear wireless RF_KILL on boot and resume On Panasonic FZ-Y1 and similar models, the EC latches RF_KILL on shutdown and suspend when battery is at certain level, causing wireless to boot with hard block. Call WLSW.SHRF during attach and resume to clear the block. Tested on Panasonic FZ-Y1 with Intel Wireless 7265. Reviewed by: adrian, obiwac Approved by: adrian, obiwac Differential Revision: https://reviews.freebsd.org/D55265 (cherry picked from commit 16822dac32ab8955539ffa4eda05145df8638154) M sys/dev/acpi_support/acpi_panasonic.c _____________________________________________________________________________________________________________ Commit: 029bb78ebee0f7305a7c39f7501d8e21dc839ed8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=029bb78ebee0f7305a7c39f7501d8e21dc839ed8 Author: Abdelkader Boudih (Tue 5 May 2026 20:49:01 BST) Committer: Enji Cooper (Mon 2 Nov 2026 04:24:16 GMT) 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 (cherry picked from commit 7619d14d08a0036a07dce670f55b9568f8133b38) M sys/dev/acpi_support/acpi_panasonic.c _____________________________________________________________________________________________________________ Commit: 9462353bf06584126ff85f50f958b61da51bdcf4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9462353bf06584126ff85f50f958b61da51bdcf4 Author: Denis Lemire (Thu 29 Oct 2026 06:14:18 GMT) Committer: Jaeyoon Choi (Mon 2 Nov 2026 02:24:53 GMT) ufshci: fix the WLUN peripheral lookup timeout The timeout in ufshci_sim_find_periph() is uint64_t, making the comparison of timeout - ticks with zero always false. If the requested peripheral does not become available, the lookup can wait indefinitely. Use an sbintime_t deadline based on sbinuptime() and mstosbt(), and compare the current uptime directly with the deadline. Preserve the successful lookup path and existing timeout cleanup. On an HP 15-fd0118ca with Intel N150 and Samsung UFS 3.1 storage, a kernel built from stable/15 revision 84aa3cb3204d with this change logged the missing-WLUN timeout, attached da0 and mounted root in two boot trials. Signed-off-by: Denis Lemire Reviewed by: jaeyoon Fixes: 31407551c3d4 ("ufshci: Add a check for WLUN during driver initialization") MFC after: 3 days Pull Request: https://github.com/freebsd/freebsd-src/pull/2520 (cherry picked from commit 8721f68642c392afa0413eafa3cefde66d65b6eb) M sys/dev/ufshci/ufshci_sim.c _____________________________________________________________________________________________________________ Commit: c334757cb920349e0f75a561427744c627f7cc77 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c334757cb920349e0f75a561427744c627f7cc77 Author: ShengYi Hung (Tue 13 Oct 2026 20:41:00 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:08:30 GMT) libthr: Remove deadcode in join_common The while loop previous can only be break when ret == ETIMEDOUT. They never produce EBUSY. Remove the deadcode here. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60711 (cherry picked from commit a0e152973613e0d0d55257f4e1f614509b7ec4c9) M lib/libthr/thread/thr_join.c _____________________________________________________________________________________________________________ Commit: 8b3f74c152968ec7b8b57a96bbe3b2091b2b817a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8b3f74c152968ec7b8b57a96bbe3b2091b2b817a Author: ShengYi Hung (Thu 8 Oct 2026 19:53:06 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:08:26 GMT) libthr: Fix LIBPTHREAD_QUEUE_FIFO range LIBPTHREAD_QUEUE_FIFO is used in bitwise offset, we set the limit to 0~31 so that it won't cause undefined behavior. Also, create a new helper function to do getenv++strtol directly and check the boundary of the valid value. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60487 (cherry picked from commit 5fb07bbcd5d5d9a865d9e7765fb93e9ba5edef1c) M lib/libthr/libthr.3 M lib/libthr/thread/thr_init.c _____________________________________________________________________________________________________________ Commit: e3e0f6e7a517f828679830e34ff91a3600975115 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e3e0f6e7a517f828679830e34ff91a3600975115 Author: ShengYi Hung (Wed 26 Aug 2026 21:44:47 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:08:22 GMT) linux: cap mount id to INT_MAX linux stores mount id as a int32_t, using xor would make it becomes negative in some cases. As a result, we cap the value to INT_MAX to prevent getting a negative value from userspace. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D59202 (cherry picked from commit 23626eb9e3d61928358c9c813aa5a17e797ba404) M sys/compat/linprocfs/linprocfs.c _____________________________________________________________________________________________________________ Commit: 15ba44617d18f044fbca605d56eb582e9345c176 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=15ba44617d18f044fbca605d56eb582e9345c176 Author: ShengYi Hung (Mon 5 Oct 2026 20:58:06 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:08:04 GMT) hyperv: Fix single page invalidation path A single page invalidation sets addr2 == 0. In the original code, it falsely flush the whole address in non global pmap. However, the kernel pmap are all PG_G, which means a single page flush will always be staled and thus become invalid. As a result, we set parameter based on their op in a new helper function instead of relying on args. This affects only on AMD platform as Intel has their PTI implementation. PR: 291577 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291577 ) Tested by: franco@opnsense.org MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60380 (cherry picked from commit 5b1f1fd624352840cd9666447ff9cdebeaf910d4) M sys/dev/hyperv/vmbus/hyperv_mmu.c _____________________________________________________________________________________________________________ Commit: b2e37d027f10910bb2e7577df906dadd66739153 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b2e37d027f10910bb2e7577df906dadd66739153 Author: ShengYi Hung (Wed 7 Oct 2026 03:30:48 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:08:00 GMT) libthr: Fix some bugs in trylock 1. When contester > 2, a release causes kernel set CONTENTION bit but with no owner. In this case, the userspace should be able to try the lock instead of fall immediately. We copy this from trylock2. 2. A PI mutex should consult to kernel instead of decided by userspace itself. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60427 (cherry picked from commit de2c0f157a9cce0b763da9ae97ada870fa4d1824) M lib/libthr/thread/thr_umtx.h _____________________________________________________________________________________________________________ Commit: b0038255565601c1a36250eb2101acc4b8f3baad URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b0038255565601c1a36250eb2101acc4b8f3baad Author: ShengYi Hung (Wed 7 Oct 2026 02:30:56 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:07:54 GMT) libthr: reject count < 0 This causes count == -1 spin for INT_MAX times in userspace. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60425 (cherry picked from commit 627e7d5b72cf967eae3cd9e9e0707ce0ff63a4da) M lib/libthr/thread/thr_mutex.c _____________________________________________________________________________________________________________ Commit: 28093296d9e4a5744abb9ee78a36ce68638be491 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=28093296d9e4a5744abb9ee78a36ce68638be491 Author: ShengYi Hung (Wed 7 Oct 2026 02:41:55 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:07:51 GMT) libthr: Do not rely on UB in counter counter + 1 > 0 is a undefined behavior and nobody guarantee that it will be honestly perform by the compiler that counter + 1 will always be INT_MIN. We switch to INT_MAX check instead to provide a deterministic result. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D60426 (cherry picked from commit 1d21e67e720a08992e81d626cff9d76524a81f22) M lib/libthr/thread/thr_mutex.c _____________________________________________________________________________________________________________ Commit: bd5aaf84d2e69d353908bde065a00e4c05aef105 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bd5aaf84d2e69d353908bde065a00e4c05aef105 Author: ShengYi Hung (Wed 7 Oct 2026 00:08:42 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:07:45 GMT) libthr: Consume error in check_and_init_mutex MFC after: 2 weeks (cherry picked from commit 192781bf5d047cceff3a1947bfc754c8b5eb0835) M lib/libthr/thread/thr_mutex.c _____________________________________________________________________________________________________________ Commit: 6b597a9470ad3d31b2014ae2380a12dda5181818 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6b597a9470ad3d31b2014ae2380a12dda5181818 Author: ShengYi Hung (Sat 26 Sep 2026 07:42:39 BST) Committer: ShengYi Hung (Sun 1 Nov 2026 22:07:40 GMT) uchcom: Set rate to 1 if 0 If userspace provides rate == 0, it causes kernel panic as rate is directly used as a divident, which cannot be zero. Fix it by set the rate to 1 if it is passed as 0. Reviewed by: imp, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59111 (cherry picked from commit 228b1a011660ee1005bc4ab7c97113af8d87fe5c) M sys/dev/usb/serial/uchcom.c _____________________________________________________________________________________________________________ Commit: caffcee1ad9fbca36cb517c738125a10dad9bdb2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=caffcee1ad9fbca36cb517c738125a10dad9bdb2 Author: Abdelkader Boudih (Sat 15 Aug 2026 16:52:51 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 17:01:42 GMT) busdma_bounce: fix unused-function warning on powerpc static inline, and powerpc's own must_bounce() never calls it. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D58825 (cherry picked from commit 087d722624c7293c2cbc5ab2bc1e20b6a68aae96) M sys/kern/subr_busdma_bounce.c _____________________________________________________________________________________________________________ Commit: 2a535edd3560aad2e024f7d33049b3fddca26590 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2a535edd3560aad2e024f7d33049b3fddca26590 Author: Abdelkader Boudih (Fri 31 Jul 2026 22:25:52 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 17:01:42 GMT) acpi: parse resources of not-present devices that are kept enabled acpi_probe_child() keeps PCI link devices, the RTC, and docking stations enabled even when _STA reports them not present, but skipped acpi_parse_resources() for them. With an empty resource list, resource-based hint matching (BUS_HINT_DEVICE_UNIT) cannot wire such a device to its hinted unit, and the hinted ISA device is then created as a duplicate. Modern AMI firmware reports the PNP0B00 RTC as not present while handing timekeeping to the ACPI Time-and-Alarm device. Reviewed by: adrian, jhb Differential Revision: https://reviews.freebsd.org/D58047 (cherry picked from commit 21bc31ce2e4a7106ec352c9e30fc6d948b881653) M sys/dev/acpica/acpi.c _____________________________________________________________________________________________________________ Commit: 6b649b145231cedc29519a322f3dfa9dcc725e03 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6b649b145231cedc29519a322f3dfa9dcc725e03 Author: Abdelkader Boudih (Wed 29 Jul 2026 20:24:46 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 17:01:42 GMT) sdhci: don't infer a non-removable slot on Apollo Lake SDXC Intel Apollo Lake SDXC controller reports a Slot Type of "Embedded Slot for One Device" in SDHCI_CAPABILITIES bits, even when the slot is a removable card reader. This caused 48 timeouts before the boot sequence resumed. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D58467 (cherry picked from commit 248d537e4ca7295a08bab60e82633d332d36e525) M sys/dev/sdhci/sdhci.c M sys/dev/sdhci/sdhci.h M sys/dev/sdhci/sdhci_pci.c _____________________________________________________________________________________________________________ Commit: add962bb175e538f6f1d3c8727aa00dfa9c90874 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=add962bb175e538f6f1d3c8727aa00dfa9c90874 Author: Abdelkader Boudih (Sat 25 Jul 2026 02:28:44 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 17:01:42 GMT) ietp: guard iicbus_get_addr with devclass check When a USB HID device triggers identify, the grandparent is usbhid on a USB hub. Calling iicbus_get_addr() on a non-iicbus device hits a KASSERT panic. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D58432 (cherry picked from commit 3fbffbcbec88932d7c7b024aca5a1e26a36f13a4) M sys/dev/hid/ietp.c _____________________________________________________________________________________________________________ Commit: 384bf143fee1df7b2b6cdb0202465208b381f5ae URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=384bf143fee1df7b2b6cdb0202465208b381f5ae Author: Abdelkader Boudih (Wed 8 Jul 2026 06:30:44 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 17:01:42 GMT) fwohci: fix LPS delay, PHY_INT storm, and SID timeout recovery Fixed the post-LPS delay from 500us to the IEEE 1394a-2000 s6.1 mandated 10ms ceiling. Handled PHY_INT by clearing W1C status bits in register 5 (masked ISBR to avoid spurious bus resets). Added a SID timeout callout that recovers the state machine when a remote device fails to complete self-ID. Fixed FW_PHY_SPD operator precedence and gated noisy messages behind bootverbose/firewire_debug. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D58033 (cherry picked from commit 4b3d035668211c19fc6fd5d4d207c2e8f96e7ad3) M sys/dev/firewire/fwohci.c M sys/dev/firewire/fwohcivar.h _____________________________________________________________________________________________________________ Commit: 618bedfe920be4dfb3b7c37f86f726880ba18176 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=618bedfe920be4dfb3b7c37f86f726880ba18176 Author: Abdelkader Boudih (Sun 5 Jul 2026 19:26:05 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 17:01:42 GMT) fwip: Fix M_PKTHDR loss in fwip_async_output broadcast path M_PREPEND in the broadcast branch may call m_prepend(9) which allocates a new head mbuf and calls m_move_pkthdr(), stripping M_PKTHDR from the old mbuf. xfer->mbuf was set before M_PREPEND, so it pointed at the deheadered old mbuf. bus_dmamap_load_mbuf(9) asserts M_PKTHDR and panics. Reviewed by: zlei, adrian Differential Revision: https://reviews.freebsd.org/D57495 (cherry picked from commit 22ddc9eb1d7a4fffe78b0692bdc4ec03e1d04ac4) M sys/dev/firewire/if_fwip.c _____________________________________________________________________________________________________________ Commit: e846a85f65cb02afb4e4193df67be1921aed8171 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e846a85f65cb02afb4e4193df67be1921aed8171 Author: Abdelkader Boudih (Sat 6 Jun 2026 21:08:59 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 17:01:42 GMT) fwe: add missing net epoch around ether_input Wrap the if_input() call in fwe_as_input() with NET_EPOCH_ENTER/EXIT. The network stack requires epoch protection when delivering packets via if_input, and fwe was missing it. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D57459 (cherry picked from commit a620746da173d1583b342b096419297e33d0ed15) M sys/dev/firewire/if_fwe.c _____________________________________________________________________________________________________________ Commit: 97ab9dc1fed0744ea28c88c035292783047eaa7c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=97ab9dc1fed0744ea28c88c035292783047eaa7c Author: Abdelkader Boudih (Wed 17 Jun 2026 15:50:48 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 16:59:39 GMT) est: gate "not recognized" message behind bootverbose On modern Intel CPUs that use HWP (hwpstate_intel: /usr/src/sys/x86/cpufreq/hwpstate_intel.c) instead of EST, this message prints unconditionally during probe even though it is expected and harmless. Gated behind bootverbose to reduce console noise on systems where EST is present but considered legacy. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D57616 (cherry picked from commit 85814f5912618808ebe5b7065b70344675c98b5b) M sys/x86/cpufreq/est.c _____________________________________________________________________________________________________________ Commit: fedc3c4c0525adb7e34c6cb392f753943d2bad42 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fedc3c4c0525adb7e34c6cb392f753943d2bad42 Author: Abdelkader Boudih (Sun 29 Mar 2026 03:54:28 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 16:59:39 GMT) usbdevs: Add USB device IDs for Nuand bladeRF SDR Add vendor and product IDs for bladeRF family of USB software defined radios manufactured by Nuand LLC. Reviewed by: imp, adrian Differential Revision: https://reviews.freebsd.org/D54733 (cherry picked from commit e7de7feb74262bfdb04d285846bac2fc6229f734) M sys/dev/usb/usbdevs _____________________________________________________________________________________________________________ Commit: 9f3c685d1904dd26d5b13e3b0c1534d43aca3fc3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9f3c685d1904dd26d5b13e3b0c1534d43aca3fc3 Author: Abdelkader Boudih (Wed 6 May 2026 00:59:10 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 16:59:39 GMT) 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 (cherry picked from commit 081d3ab24e03d271a0de3b173802fbe71f52e8aa) M sys/dev/ichsmb/ichsmb_pci.c _____________________________________________________________________________________________________________ Commit: 136ddcb80c8ff3798c3d2e341a7dc2a0717abfa9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=136ddcb80c8ff3798c3d2e341a7dc2a0717abfa9 Author: Abdelkader Boudih (Mon 16 Feb 2026 03:58:41 GMT) Committer: Abdelkader Boudih (Sun 1 Nov 2026 16:59:39 GMT) ichsmb: Add Intel Raptor Lake SMBus controller support Add PCI device ID 0x7a23 for Intel 700 Series (Raptor Lake) chipset SMBus controller. This enables hardware monitoring functionality on 13th and 14th generation Intel Core platforms. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D54957 (cherry picked from commit e4bcfe4ebf03e321a5f8317491cdeea49e4f6357) M sys/dev/ichsmb/ichsmb_pci.c _____________________________________________________________________________________________________________ Commit: 2e2f55cfd9fee487a706ed624ad180196f154430 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=2e2f55cfd9fee487a706ed624ad180196f154430 Author: Abdelkader Boudih (Wed 17 Jun 2026 15:30:21 BST) Committer: Abdelkader Boudih (Sun 1 Nov 2026 16:59:39 GMT) mtw: Fix firmware loading and memory leaks - Skip firmware reload if MCU already initialized - Fix firmware_put() memory leaks on error paths - Increase MCU init timeout to 15 seconds - Use debug macros instead of device_printf for verbose output - Remove unused 'ret' variable - Fix space indentation to tabs per style(9) Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D57597 (cherry picked from commit f981fa12b760a5f0983eeec8065a4dec5295ab24) M sys/dev/usb/wlan/if_mtw.c _____________________________________________________________________________________________________________ Commit: f0cbd0b360c4b79a67ce1fabc2ea60d9cf47c0bf URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f0cbd0b360c4b79a67ce1fabc2ea60d9cf47c0bf Author: Abdelkader Boudih (Wed 14 Jan 2026 02:35:53 GMT) Committer: Abdelkader Boudih (Sun 1 Nov 2026 16:59:38 GMT) mtw(4): Fix warm reboot initialization failures for MT7601U The mtw(4) driver works correctly on initial boot, but fails to initialize the MT7601U WiFi adapter after a warm reboot. Users must either physically unplug and replug the USB adapter, or perform a full power cycle to restore functionality, if usb power is always powered (only a replug works) The root cause is that warm reboot does not power-cycle USB devices, leaving the MT7601U in a stale state from the previous session. The MCU retains its ready flag and the device ignores initialization commands, resulting in timeout waiting for MCU to initialize errors. At the OS Level, pinging 1.1.1.1 will work, but the speed will be very slow. In addition in debug mode, we see thousand of error logs. This patch addresses the issue by: * Performing USB re-enumeration on attach to reset the device state * Detecting when the MCU is already marked ready (stale from previous session) and forcing a reset of the MCU before loading firmware * Increasing the firmware load timeout from 3s to 10s to accommodate slower initialization after reset * Increasing MCU ready poll attempts from 100 to 300 with longer delays to handle devices that take longer to become ready after reset Note: The increase was random, lower value might work. Test Plan: Tested on MacBook Pro (late-2015) and a MacMini with MediaTek MT7601U USB adapter across multiple warm reboot cycles. With the mac-mini and a another desktop, the issue happens only if connected via an always powered usb hub port in the monitor. The laptop don't power cycle it power. Differential Revision: https://reviews.freebsd.org/D54659 Reviewed by: adrian (cherry picked from commit a24166d23d2e93e787165064fac75215d4383c65) M sys/dev/usb/wlan/if_mtw.c _____________________________________________________________________________________________________________ Commit: a1b3329affb949ce5d14f8af373b215faa51cdcc URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a1b3329affb949ce5d14f8af373b215faa51cdcc Author: David Bidner (Sat 3 Oct 2026 15:04:32 BST) Committer: Christos Margiolis (Sun 1 Nov 2026 13:38:25 GMT) snd_hda: use the pin ELD to select DisplayPort audio framing hdaa_audio_setup() reads the converter widget's ELD when choosing between HDMI and DisplayPort audio infoframes. ELD is stored on the output pin, so the converter has no ELD and the driver selects HDMI framing even when the connected display uses DisplayPort. Read the ELD from the output pin to select the correct audio framing. The equivalent change was tested on DragonFly BSD with an Intel Kaby Lake display-audio codec and an LG HDR 4K monitor connected over DisplayPort. Before the change, converter node 2 had no ELD, while output pin 5 had an 83-byte ELD identifying DisplayPort. Captured driver commands programmed HDMI audio infoframe bytes (84 01 0a 70 01 00 00 00). After applying the change and rebooting, the commands used the existing DisplayPort form (84 1b 44 01 00 00 00), and console tones and desktop audio were audible. PR: 299094 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299094 ) Signed-off-by: David Bidner Reviewed by: christos MFC after: 2 weeks Pull-Request: https://github.com/freebsd/freebsd-src/pull/2463 (cherry picked from commit 29449b3e468cb1673814dc6452e82035b3c2a628) M sys/dev/sound/pci/hda/hdaa.c _____________________________________________________________________________________________________________ Commit: 1d57423b4c0f76aadf746a2e3080a499feafc7e9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1d57423b4c0f76aadf746a2e3080a499feafc7e9 Author: Enji Cooper (Wed 22 Jul 2026 20:33:44 BST) Committer: Enji Cooper (Sun 1 Nov 2026 05:06:35 GMT) Only build secure/libexec/ssh-sk-helper if MK_USB == no The ssh-sk-helper utility only functions if/when MK_USB == yes. Installing it on systems where MK_USB == no doesn't make sense. Differential Revision: https://reviews.freebsd.org/D58246 (cherry picked from commit 4db3872aabc33088cf180599c5eaa23b6f58e6d1) M secure/libexec/Makefile M secure/libexec/ssh-sk-helper/Makefile M tools/build/mk/OptionalObsoleteFiles.inc _____________________________________________________________________________________________________________ Commit: 5c47571943912fc965a69d594b15965e3d77d2e2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5c47571943912fc965a69d594b15965e3d77d2e2 Author: Maxim Konovalov (Sat 24 Oct 2026 17:32:58 BST) Committer: Maxim Konovalov (Sun 1 Nov 2026 05:04:57 GMT) jail.8: fix a typo, sort Xr PR: 299990 (typo part) MFC after: 1 week (cherry picked from commit b9585475ee627e5ea0e17b9d2d2874faaf03a762) M sbin/sysctl/sysctl.8 _____________________________________________________________________________________________________________ Commit: 377e0cfa0fe5c15a989ab0faf7246c87a53f6ff2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=377e0cfa0fe5c15a989ab0faf7246c87a53f6ff2 Author: Enji Cooper (Tue 9 Sep 2025 20:11:13 BST) Committer: Enji Cooper (Sun 1 Nov 2026 03:48:58 GMT) freebsd-update: sort options alphabetically This helps future developers when adding additional options handlers in the surrounding blocks. This is effectively a no-op. MFC after: 1 month (cherry picked from commit 0adec3d7ec96105c402ff2286e402ad63c845066) M usr.sbin/freebsd-update/freebsd-update.sh _____________________________________________________________________________________________________________ Commit: 4e17a6f588dfa6edc8a798cda76b9388af11f412 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4e17a6f588dfa6edc8a798cda76b9388af11f412 Author: Enji Cooper (Wed 2 Sep 2026 08:38:17 BST) Committer: Enji Cooper (Sun 1 Nov 2026 02:31:58 GMT) tests/sys/netinet/tcp_socket: fix build with ATF 0.22+ Confirm that creating clients/sockets was successful by testing the result separate from the assignment and test that the return value is not -1 instead of testing that the value returned is non-zero. This fixes the build with [ATF 0.22+][1]. MFC after: 2 weeks Reported by: clang (-Wparenthesis) Reviewed by: tuexen, cc Differential Revision: https://reviews.freebsd.org/D59284 [1]: https://github.com/freebsd/atf/pull/72 Conflicts: tests/sys/netinet/tcp_implied_connect.c (cherry picked from commit 4aea6ea2eb400737837ff8d22c25688f88c7966c) M tests/sys/netinet/tcp_implied_connect.c _____________________________________________________________________________________________________________ Commit: ef7f64b766d69ebdd3f93f415fdd47d66b480ce2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ef7f64b766d69ebdd3f93f415fdd47d66b480ce2 Author: Enji Cooper (Mon 7 Sep 2026 04:21:50 BST) Committer: Enji Cooper (Sun 1 Nov 2026 02:01:34 GMT) contrib/lutok: remove autotools generated files These files provide no value in the FreeBSD tree proper and change frequently, depending on what machine I generate the release tarball on (and what versions of autotools are on the host). Nuke the autogenerated files to avoid bloating commit history/the tree. MFC after: 3 days Requested by: Benjamin Jacobs (cherry picked from commit cfe443e1e63dd588fba7eabec553ed5e1c408d1f) D contrib/lutok/Makefile.in D contrib/lutok/aclocal.m4 D contrib/lutok/admin/ar-lib D contrib/lutok/admin/compile D contrib/lutok/admin/config.guess D contrib/lutok/admin/config.sub D contrib/lutok/admin/depcomp D contrib/lutok/admin/install-sh D contrib/lutok/admin/ltmain.sh D contrib/lutok/admin/missing D contrib/lutok/configure D contrib/lutok/m4/libtool.m4 D contrib/lutok/m4/ltoptions.m4 D contrib/lutok/m4/ltversion.m4 D contrib/lutok/m4/lt~obsolete.m4 _____________________________________________________________________________________________________________ Commit: d6cf497d2a1c82267c1a1686dc7c9bd76a80db11 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d6cf497d2a1c82267c1a1686dc7c9bd76a80db11 Author: Enji Cooper (Mon 31 Aug 2026 17:29:06 BST) Committer: Enji Cooper (Sun 1 Nov 2026 02:01:33 GMT) contrib/lutok: update from 0.4 to 0.6.2 More information about what's included in the new release can be found [here](https://github.com/freebsd/lutok/compare/lutok-0.4...lutok-0.6.2). MFC after: 1 week Merge commit '447d4fe61d8bf55ffa21698ecee0ac51010a9a0f' (cherry picked from commit 132f818ddbf457ee67d502cd89b5a18e0a34713d) A contrib/lutok/Makefile.in A contrib/lutok/aclocal.m4 A contrib/lutok/admin/ar-lib A contrib/lutok/admin/compile A contrib/lutok/admin/config.guess A contrib/lutok/admin/config.sub A contrib/lutok/admin/depcomp A contrib/lutok/admin/install-sh A contrib/lutok/admin/ltmain.sh A contrib/lutok/admin/missing A contrib/lutok/configure A contrib/lutok/m4/libtool.m4 A contrib/lutok/m4/ltoptions.m4 A contrib/lutok/m4/ltversion.m4 A contrib/lutok/m4/lt~obsolete.m4 _____________________________________________________________________________________________________________ Commit: 5ab617767196d2169d6dfbda48d9c3c73cd25240 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5ab617767196d2169d6dfbda48d9c3c73cd25240 Author: Enji Cooper (Sun 18 Oct 2026 19:24:20 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:52:02 GMT) sbuf(3): clean up tests - Update the copyright dates and add "Joao Bonifacio" to the top of `sbuf_core_test.c`. - Use `SPDX-Identifier` instead of longform copyright tort. - Remove `sbuf_test_common.h`: the header was originally added to help with the 10.x/11.x split, but is no longer needed given that those releases have been EOLed for multiple years now. MFC after: 1 week (cherry picked from commit 3593be37a49e3f5268259bcc2af58cf730b08335) M lib/libsbuf/tests/sbuf_core_test.c M lib/libsbuf/tests/sbuf_stdio_test.c M lib/libsbuf/tests/sbuf_string_test.c D lib/libsbuf/tests/sbuf_test_common.h _____________________________________________________________________________________________________________ Commit: f5b2ad742e5ff913314953fa8c7253a7296bc9a5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f5b2ad742e5ff913314953fa8c7253a7296bc9a5 Author: Joao Bonifacio (Sun 9 Aug 2026 23:43:26 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:52:02 GMT) sbuf(3): increase test coverage This change adds additional explicit test coverage for the following sbuf(3) APIs: - sbuf_clear_flags - sbuf_get_flags - sbuf_set_flags While here, add a missing `sbuf_delete` to `sbuf_drain_ret0_test`: while it isn't strictly required (the library's state is cleaned up shortly after the test process ends), tools such as Coverity and LSAN flag issues with leaked memory. Adding the sbuf_delete(3) call to the test quells that issue. MFC after: 1 week Reviewed-by: ngie Pull-Request: https://github.com/freebsd/freebsd-src/pull/2367 (cherry picked from commit 642b3d965eb6ef3ecf733950e66fad565a27c967) M lib/libsbuf/tests/sbuf_core_test.c _____________________________________________________________________________________________________________ Commit: 889727e4805eca28a68f8817329166eb6fc32970 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=889727e4805eca28a68f8817329166eb6fc32970 Author: Enji Cooper (Thu 24 Sep 2026 05:30:34 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:36:39 GMT) integration_test: backport fix from freebsd/atf See the related merge commit for more details. MFC after: 28 days Obtained from: [freebsd/atf@2690b04c][upstream] Fixes: 95223108 ("contrib/atf: upgrade to 0.26") Merge commit '8fd09407c8e64fd26d095c9b00990c545577db5a' [upstream]: https://github.com/freebsd/atf/commit/2690b04cbc608af165a58426b7275c063b779f03 (cherry picked from commit 8d94a93d967bbb985813aa5561c823ab5f75bb73) M contrib/atf/atf-sh/integration_test.sh _____________________________________________________________________________________________________________ Commit: 040ab05d3617ff7c5afcf9159bb8d4c41f1814db URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=040ab05d3617ff7c5afcf9159bb8d4c41f1814db Author: Enji Cooper (Tue 22 Sep 2026 16:23:32 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:32:47 GMT) contrib/atf: upgrade to 0.26 This new version gets contrib/atf in line with the published version of the package up on [GitHub][github]. Please note that this release is a major update: it contains several bugfixes and feature enhancements. Most were already present in the FreeBSD src repo, but there were a large number of changes made in addition to what was already present. MFC after: 1 month Merge commit '9c78088348bcf1059d82a62bb57a0746309d4312' (cherry picked from commit 952231086100bed7130212b5425e44ffd732913b) [github]: https://github.com/freebsd/atf M ObsoleteFiles.inc D contrib/atf/.cirrus.yml D contrib/atf/.gitignore D contrib/atf/.travis.yml M contrib/atf/FREEBSD-Xlist M contrib/atf/NEWS D contrib/atf/README M contrib/atf/README.md M contrib/atf/atf-c++/atf-c++.3 M contrib/atf/atf-c++/check.cpp M contrib/atf/atf-c++/check.hpp M contrib/atf/atf-c++/detail/Kyuafile M contrib/atf/atf-c++/detail/application.cpp M contrib/atf/atf-c++/detail/application.hpp D contrib/atf/atf-c++/detail/auto_array.hpp D contrib/atf/atf-c++/detail/auto_array_test.cpp M contrib/atf/atf-c++/detail/fs.cpp M contrib/atf/atf-c++/detail/process.cpp M contrib/atf/atf-c++/detail/process.hpp M contrib/atf/atf-c++/detail/process_test.cpp M contrib/atf/atf-c++/detail/test_helpers.hpp M contrib/atf/atf-c++/detail/text.cpp M contrib/atf/atf-c++/detail/text.hpp M contrib/atf/atf-c++/detail/text_test.cpp M contrib/atf/atf-c++/tests.cpp M contrib/atf/atf-c++/tests_test.cpp D contrib/atf/atf-c/.gitignore M contrib/atf/atf-c/atf-c.3 M contrib/atf/atf-c/build.c M contrib/atf/atf-c/check.c M contrib/atf/atf-c/defs.h.in M contrib/atf/atf-c/detail/dynstr.c M contrib/atf/atf-c/detail/dynstr_test.c M contrib/atf/atf-c/detail/env.c M contrib/atf/atf-c/detail/fs.c M contrib/atf/atf-c/detail/fs_test.c M contrib/atf/atf-c/detail/list.c M contrib/atf/atf-c/detail/map.c M contrib/atf/atf-c/detail/map_test.c M contrib/atf/atf-c/detail/process.c M contrib/atf/atf-c/detail/process.h M contrib/atf/atf-c/detail/process_test.c M contrib/atf/atf-c/detail/sanity_test.c M contrib/atf/atf-c/detail/text.c M contrib/atf/atf-c/detail/tp_main.c M contrib/atf/atf-c/error.c M contrib/atf/atf-c/macros.h M contrib/atf/atf-c/tc.c M contrib/atf/atf-c/tc.h M contrib/atf/atf-c/tc_test.c M contrib/atf/atf-c/tp.c M contrib/atf/atf-c/tp.h M contrib/atf/atf-c/tp_test.c M contrib/atf/atf-c/utils.c M contrib/atf/atf-c/utils.h D contrib/atf/atf-sh/.gitignore M contrib/atf/atf-sh/Kyuafile A contrib/atf/atf-sh/Kyuafile.in M contrib/atf/atf-sh/atf-check.1 M contrib/atf/atf-sh/atf-check.cpp M contrib/atf/atf-sh/atf-check_test.sh M contrib/atf/atf-sh/atf-sh.3 M contrib/atf/atf-sh/atf-sh.cpp M contrib/atf/atf-sh/integration_test.sh A contrib/atf/atf-sh/kmod_test.sh M contrib/atf/atf-sh/libatf-sh.subr M contrib/atf/config.h D contrib/atf/doc/.gitignore R097 contrib/atf/doc/atf-test-case.4 contrib/atf/doc/atf-test-case.7 M contrib/atf/test-programs/srcdir_test.sh M lib/atf/Makefile.inc M libexec/atf/Makefile.inc M share/doc/atf/Makefile M share/man/man4/Makefile M share/man/man7/Makefile _____________________________________________________________________________________________________________ Commit: a4f1d261fb615d17cbf8e259fbc17ea959264959 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a4f1d261fb615d17cbf8e259fbc17ea959264959 Author: Xiaoqiang Zhao (Sat 10 Oct 2026 18:45:18 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:24:43 GMT) tests/libc: only build brk_test where libc provides sbrk Replace the exclusion list with an allowlist of the architectures whose libc exports brk/sbrk: amd64, i386, arm and powerpc. On aarch64, riscv and loongarch libc does not export those symbols and the test cannot run, so do not build it there. New architectures now default to not building the test unless brk support is added. MFC after: 1 week Signed-off-by: Xiaoqiang Zhao Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D60357 (cherry picked from commit 8a7df6c58d549bd2eaa5cad30b2ef93c3eca3c18) M lib/libc/tests/sys/Makefile _____________________________________________________________________________________________________________ Commit: 52be6e2bdf9697ad0c93087eb03e05f5efea8c46 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=52be6e2bdf9697ad0c93087eb03e05f5efea8c46 Author: Enji Cooper (Sat 10 Oct 2026 08:27:35 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:18:58 GMT) acl(9): expound on NFSv4 constants' meanings This change adds missing documentation for various NFSv4 constants supported by acl(9). Bump `.Dd` for the change. MFC after: 1 week Reviewed by: rmacklem Differential Revision: https://reviews.freebsd.org/D58736 (cherry picked from commit 7a48c3fd3e6ea097a8fa8f3ce3e25fe7c2d37d9e) M share/man/man9/acl.9 _____________________________________________________________________________________________________________ Commit: e4679ca286d0611cd6f79220ed8b74f36cf9aecd URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e4679ca286d0611cd6f79220ed8b74f36cf9aecd Author: Enji Cooper (Wed 7 Oct 2026 19:22:00 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:18:57 GMT) LinuxKPI: firmware: remove `enoentok` logic in `*firmware_request(..)` Prior to this change, in the event that a firmware module could not be loaded, the linux_firmware driver would return a partially initialized structure with uninitialized/zeroed out values for certain fields. Linux does not do this, however, so some drivers that use `request_firmware_nowait` expecting Linux behavior, like `if_bcrmfmac`, would crash trying to dereference a NULL pointer. This doesn't address the load/unload situation completely as the driver remains loaded after the "firmware crashes", but it makes a completely unusable situation (a kernel panic) into a slightly more usable situation (driver does not unload). As a sidenote: the raw free(9) call was replaced with a call to `linuxkpi_release_firmware` because the latter call [better] ensures that all resources allocated earlier on in the function are cleaned up. MFC after: 1 weeks Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D58451 (cherry picked from commit ef947bb97302d8862545cd0a5f38b24fa1bae2f6) M sys/compat/linuxkpi/common/src/linux_firmware.c _____________________________________________________________________________________________________________ Commit: 8957a039f85726fa20808140e2967cc56ab72f26 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8957a039f85726fa20808140e2967cc56ab72f26 Author: Enji Cooper (Fri 2 Oct 2026 20:27:51 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:18:00 GMT) [tests] lib/libc/gen:assert_test: undefine `NDEBUG` In the event `NDEBUG` was defined, `assert` would become a no-op, breaking some of the expectations in `assert_test` around `assert(..)` failing generating a coredump. This is a better approach than the previous one committed in 6f3445006a as it continues to test the `assert(..)` function instead of just skipping it if `NDEBUG` was defined. Suggested by: kevans MFC after: 4 days MFC with: 6f3445006a Fixes: 6f3445006a Differential Revision: https://reviews.freebsd.org/D60253 (cherry picked from commit 9d5a33d9c294b01cead6ff65b0773b5b5ab85ccd) M contrib/netbsd-tests/lib/libc/gen/t_assert.c _____________________________________________________________________________________________________________ Commit: c88dd36d7cd42d00a2ee735ec6e508b7c0e39b69 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c88dd36d7cd42d00a2ee735ec6e508b7c0e39b69 Author: Enji Cooper (Tue 22 Sep 2026 07:22:57 BST) Committer: Enji Cooper (Sun 1 Nov 2026 01:17:59 GMT) [tests] lib/libc/gen:assert_test: skip tests when NDEBUG set In the event that NDEBUG is specified in CFLAGS--which is most likely triggered via `MK_ASSERT_DEBUG` == "no" -- all assert(3) statements are optimized out by design. This breaks the assert(3) tests as they specifically rely on assert(3) actually raising a `SIGABRT` instead of quietly succeeding. Skip both tests if `NDEBUG` is set. There's no sense running the `assert(true)` test if the result could instead be a false positive. MFC after: 2 weeks (cherry picked from commit 6f3445006aa05550f14af65b04276c3d25169941) M contrib/netbsd-tests/lib/libc/gen/t_assert.c _____________________________________________________________________________________________________________ Commit: a38180f9cbcb8a249a5c63f07668a778b462ff8d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a38180f9cbcb8a249a5c63f07668a778b462ff8d Author: Enji Cooper (Sun 25 Oct 2026 02:56:21 GMT) Committer: Enji Cooper (Sun 1 Nov 2026 01:03:39 GMT) share/mk/bsd.confs.mk: fix trivial typo in message The error message noting that the file should not be included said "bsd.conf.mk" before this change. Now it correctly says "bsd.confs.mk". MFC after: 3 days (cherry picked from commit a3214d4e9b661fb173fc25b06b7ee9902b0b57e3) M share/mk/bsd.confs.mk _____________________________________________________________________________________________________________ Commit: a5f3339c0be71df08c7d5b758d0b516f784719f8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a5f3339c0be71df08c7d5b758d0b516f784719f8 Author: Siva Mahadevan (Tue 27 Oct 2026 14:23:11 GMT) Committer: Siva Mahadevan (Sat 31 Oct 2026 22:49:53 GMT) tests/pf/igmp: fix attribute error with newer versions of scapy This fixes the flaky testcase in CI[0]. While here: * fix a typo in a comment * remove an unnecessary import * fix this deprecation warning: /usr/local/lib/python3.12/site-packages/scapy/contrib/igmp.py:12: DeprecationWarning: scapy.contrib.igmp is deprecated. Please use scapy.layers.igmp instead ! [0] https://ci.freebsd.org/job/FreeBSD-main-amd64-test/29813/testReport/junit/sys.netpfil.pf.igmp/py/TestIGMP__test_ip_opts/ Reviewed by: kp MFC after: 3 days Sponsored by: The FreeBSD Foundation (cherry picked from commit d9d6e77965b32a8d2f9eeffd34e519a087e603e2) M tests/sys/netpfil/pf/igmp.py _____________________________________________________________________________________________________________ Commit: a7a4583702f497428d4fbf40af8ba8ef6b0c3362 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a7a4583702f497428d4fbf40af8ba8ef6b0c3362 Author: Andrew Griffiths (Tue 29 Sep 2026 21:11:31 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 21:04:22 GMT) rge: Preserve replacement mbufs after defragmentation m_defrag() has pointer-return ownership semantics: success frees the original chain and returns a replacement, while failure returns NULL and leaves the original owned by the caller. rge_encap() compared that pointer as an integer status and could return failure after success, causing rge_tx_task() to free its stale old head. Pass the mbuf by reference, retain the replacement returned by m_defrag(), and publish it to the caller before retrying DMA mapping. A later mapping failure is then cleaned up through the current chain, and a successful transmission uses that same chain for BPF and TX ownership. An unprivileged process can reach the EFBIG branch in mapped-sendfile mode. Signed-off-by: Andrew Griffiths Reviewed by: adrian, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60142 (cherry picked from commit 669cd0d90ee7b5bed794ded5fa00b6be854a6598) M sys/dev/rge/if_rge.c _____________________________________________________________________________________________________________ Commit: 424339c7d300e1f970944c935d9258842ee220df URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=424339c7d300e1f970944c935d9258842ee220df Author: Adrian Chadd (Sun 12 Jul 2026 16:26:46 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:06 GMT) rge: fix multicast add/removal by using if_getdrvflags() Using if_getflags() to check IFF_DRV_RUNNING is wrong; if_getdrvflags() is required. This issue resulted in the multicast filter not being updated. This was an oversight by me in my initial port. Thanks to danilo@ for reporting it and Oleg for the fix. PR: kern/295176 (cherry picked from commit 7aa34e12c9e198bf8b7e74370ff702def5ec2649) M sys/dev/rge/if_rge.c _____________________________________________________________________________________________________________ Commit: 5211e4330fb825ad479680219172594e1b3d0bf6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5211e4330fb825ad479680219172594e1b3d0bf6 Author: Justin Hibbits (Wed 1 Jul 2026 03:30:24 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:06 GMT) rge: Fix 32-bit powerpc build Book-E powerpc has 64-bit bus_addr_t but only a 32-bit bus_size_t. Use the right macros for maxsize and maxsegsize to fix the build. Fixes: 4bf8ce037 ("if_rge: initial import of if_rge driver from OpenBSD.") Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D57794 (cherry picked from commit 2b5d1d8e298b2f5aff68fd5106d9b09d59fda907) M sys/dev/rge/if_rge.c _____________________________________________________________________________________________________________ Commit: 9971ac5cdd01fa10ce5642461bc045891b12a7d7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9971ac5cdd01fa10ce5642461bc045891b12a7d7 Author: John (Tue 16 Jun 2026 14:06:40 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:06 GMT) rge: fix VLAN hardware tagging Set the correct value in the TX descriptor for the vlan header. PR: kern/295175 (cherry picked from commit 76f9bb488e77ae4cc220b0bbbc53f1a7315ef977) M sys/dev/rge/if_rge.c _____________________________________________________________________________________________________________ Commit: 4f624f85cd3a12082f9f4c50b99b318f78f8a44f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4f624f85cd3a12082f9f4c50b99b318f78f8a44f Author: Kyle Evans (Mon 11 May 2026 16:26:03 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:06 GMT) rge: add the Intel Killer E5000 PCI ID This and the E3000 are both handled by the r8169 driver in Linux, and reportedly this is infact just a straight re-brand of the RTL8126. Tested by: "Sinetek" on Discord Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D56917 (cherry picked from commit 92f623e4a98876c897669be0f1220887c996918e) M share/man/man4/rge.4 M sys/dev/rge/if_rge.c M sys/dev/rge/if_rge_vendor.h _____________________________________________________________________________________________________________ Commit: 75a29ec9771419e1496604daaa8d104c73b85d14 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=75a29ec9771419e1496604daaa8d104c73b85d14 Author: Christos Longros (Fri 17 Apr 2026 03:34:55 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:06 GMT) rge: add disable_aspm tunable for PCIe power management Add a per-interface loader tunable dev.rge.%d.disable_aspm to disable PCIe ASPM (L0s/L1) and ECPM on the RTL8125/8126/8127. Disabling ASPM reduces latency at the cost of higher power consumption. Default is off (ASPM left as configured by BIOS). Signed-off-by: Christos Longros Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D56103 (cherry picked from commit 4390c37b5c94b6de4cb4bdbcc3967efe74fa7517) M share/man/man4/rge.4 M sys/dev/rge/if_rge.c M sys/dev/rge/if_rge_sysctl.c M sys/dev/rge/if_rgevar.h _____________________________________________________________________________________________________________ Commit: 99d566e8f63a31a29d665568592b78af8f648355 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=99d566e8f63a31a29d665568592b78af8f648355 Author: Christos Longros (Fri 10 Apr 2026 18:31:38 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:05 GMT) rge: add Wake-on-LAN support for magic packet Advertise IFCAP_WOL_MAGIC when PCI power management is available and enable it by default. On suspend or shutdown, rge_setwol() enables the WOL_MAGIC and WOL_LANWAKE bits in CFG3/CFG5, disables the RXDV gate, and enables PM so the NIC stays powered to watch for magic packets. Move hardware-specific WOL register configuration into rge_wol_config() in if_rge_hw.c to keep hardware-specific functions in sync with OpenBSD. Update rge.4 to document WoL support. Tested on FreeBSD 16.0-CURRENT bare metal with Realtek RTL8125 on a Gigabyte B650 Gaming X AX motherboard. Signed-off-by: Christos Longros Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D56259 (cherry picked from commit fc68534a9ad93f6df1756ffa8e707c30a35ce4d7) M share/man/man4/rge.4 M sys/dev/rge/if_rge.c M sys/dev/rge/if_rge_hw.c M sys/dev/rge/if_rge_hw.h _____________________________________________________________________________________________________________ Commit: 071c56dca173aab9dbd313bdf4039c17bc7183bb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=071c56dca173aab9dbd313bdf4039c17bc7183bb Author: Christos Longros (Wed 25 Mar 2026 01:27:14 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:05 GMT) rge: make rx_process_limit a sysctl tunable The number of packets processed per interrupt was hardcoded to 16. Add a per-interface sysctl dev.rge.%d.rx_process_limit tunable so users can adjust this value at runtime. Signed-off-by: Christos Longros Reviewed by: ziaee, adrian Differential Revision: https://reviews.freebsd.org/D56014 (cherry picked from commit 930a790c2abb3680a3449a1f9ce2eff2be7acc36) M share/man/man4/rge.4 M sys/dev/rge/if_rge.c M sys/dev/rge/if_rge_sysctl.c M sys/dev/rge/if_rgevar.h _____________________________________________________________________________________________________________ Commit: 652c0e8fb934642903095cdbd7141a61eb4f6fde URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=652c0e8fb934642903095cdbd7141a61eb4f6fde Author: Christos Longros (Wed 25 Mar 2026 01:26:10 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:05 GMT) rge.4: fix incorrect speed range in HARDWARE section The HARDWARE section stated "PCIe 1GB to 1GB Ethernet devices" which is incorrect. The RTL8125/8126/8127 chips support speeds from 1Gbps to 10Gbps. Correct the range. Signed-off-by: Christos Longros rge.4: note that the driver manages PHY directly The rge(4) driver does not use the miibus(4) interface for PHY management. Instead, it accesses PHY registers directly via the chip's OCP (On-Chip Peripheral) bus. Document this in the DESCRIPTION section. Signed-off-by: Christos Longros Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D55995 (cherry picked from commit 8f36a012d65f1a3c4e071c3396ecc7a963485637) M share/man/man4/rge.4 _____________________________________________________________________________________________________________ Commit: e50d25ef5aff7e4b0033f4a587fe4a743413a1fb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e50d25ef5aff7e4b0033f4a587fe4a743413a1fb Author: Brad Smith (Wed 25 Mar 2026 01:22:52 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:05 GMT) rge: handle interface flags changes Handle interface flags like other drivers do. Reviewed by: zlei, adrian Differential Revision: https://reviews.freebsd.org/D55728 (cherry picked from commit f7fd4e79fa0943446aa5900147f737a70c73d9e3) M sys/dev/rge/if_rge.c M sys/dev/rge/if_rgevar.h _____________________________________________________________________________________________________________ Commit: f2ba05974900c69e628bd5da8ad6b4ae73bc166b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f2ba05974900c69e628bd5da8ad6b4ae73bc166b Author: Christos Longros (Sun 15 Mar 2026 20:09:56 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:05 GMT) rge: use C style comments instead of C++ FreeBSD style(9) mandates C style comments. The initial import from OpenBSD left several C++ style // comments in if_rge.c and if_rgevar.h. Replace them with proper /* */ comments. Also fix a malformed comment that mixed // with a closing */. Signed-off-by: Christos Longros Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D55743 (cherry picked from commit 9976cff55e8897f74d970567e61512103216cf58) M sys/dev/rge/if_rge.c M sys/dev/rge/if_rgevar.h _____________________________________________________________________________________________________________ Commit: e1dfc6dac20c9c2895bccd2774241040dfc12d0d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e1dfc6dac20c9c2895bccd2774241040dfc12d0d Author: Christos Longros (Sat 14 Mar 2026 21:35:20 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:04 GMT) re(4), rge(4): improve Realtek driver man pages Add D-Link DGE-530(T) and Killer E2600 to the re(4) HARDWARE list. Both are supported by the driver but were missing from the man page. Also add cross-references between re(4) and rge(4) in SEE ALSO, as both are Realtek NIC drivers. Signed-off-by: Christos Longros Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D55745 (cherry picked from commit e6f4e4ab8a51f5bec178f5d937e541e227efb561) M share/man/man4/re.4 M share/man/man4/rge.4 _____________________________________________________________________________________________________________ Commit: 3e5ac541e3ee038d09bb9ee43c645ed46e8e07f2 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3e5ac541e3ee038d09bb9ee43c645ed46e8e07f2 Author: Kevin Lo (Thu 26 Feb 2026 02:52:14 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:04 GMT) rge.4: correct media types in the manual page Correct media types for 1000Mbit/s, 2500Mbit/s, 5000Mbit/s and 10Gbit/s. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D55496 (cherry picked from commit 25e89051df7ace23ae4953c21402e568cfce78b4) M share/man/man4/rge.4 _____________________________________________________________________________________________________________ Commit: 01e4d2be385945ea8a32fc058b0867f1cadfa2f0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=01e4d2be385945ea8a32fc058b0867f1cadfa2f0 Author: Christos Longros (Sun 22 Feb 2026 18:06:50 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:04 GMT) rge: log silicon revision during attach The initial import from OpenBSD contained chip revision printf() calls commented out, as OpenBSD's bare printf() style does not translate to FreeBSD's device_printf() idiom. The result is that users cannot distinguish RTL8125 from RTL8125B, RTL8125D_1, RTL8125D_2 etc. via dmesg alone, even though all variants show as '' from the PCI probe string. Add proper device_printf() calls including the raw hwrev value, consistent with how re(4) reports chip revisions. Signed-off-by: Christos Longros Reviewed by: zlei, imp, adrian Differential Revision: https://reviews.freebsd.org/D55402 (cherry picked from commit acbf7498f5e11b00ffcd6c12bdb8bd1eddeb6d7f) M sys/dev/rge/if_rge.c _____________________________________________________________________________________________________________ Commit: 9c67ab24b0e947a527206d02dd4262897610858c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9c67ab24b0e947a527206d02dd4262897610858c Author: John (Sun 22 Feb 2026 18:06:44 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:04 GMT) rge: correctly free busdma memory / zero things out only if allocated * Only free busdma memory that was allocated * Don't free tx/rx rings until their buffers have also been freed PR: kern/293307 Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D55420 (cherry picked from commit d1947d0a1a55f905e5ed076d46d4f75a00c6f823) M sys/dev/rge/if_rge.c _____________________________________________________________________________________________________________ Commit: 818d2192135ed3dd8fd862eb72bf21c8e0524732 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=818d2192135ed3dd8fd862eb72bf21c8e0524732 Author: John (Sun 22 Feb 2026 18:06:39 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:04 GMT) rge: fix callout setup/teardown; handle invalid ethernet address * Do the callout init early; since some of the teardown path expects the callout to be valid * Handle an invalid ethernet address by generating a local one. PR: kern/293307 Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D55419 (cherry picked from commit d5ca52182e522a192d0c8fbdaa438f50e200082f) M sys/dev/rge/if_rge.c _____________________________________________________________________________________________________________ Commit: 56ff0b895b2dc9f1bf2b76c79112cab3bc2f565b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=56ff0b895b2dc9f1bf2b76c79112cab3bc2f565b Author: Brad Smith (Wed 4 Feb 2026 06:25:13 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:03 GMT) if_rge: sync with up to date OpenBSD code e574c2d36cbcacf2556088879be336775e80154b Add support for RTL8125D revision 0x6890000 Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D54922 MFC after: 2 weeks (cherry picked from commit 3f3cc6fd69e4e3abf6b48c242e93b650c00451c1) M sys/dev/rge/if_rge.c M sys/dev/rge/if_rge_hw.c M sys/dev/rge/if_rge_microcode.h M sys/dev/rge/if_rgereg.h M sys/dev/rge/if_rgevar.h _____________________________________________________________________________________________________________ Commit: 4dce344c01a576df070557f4d2d6799f7161c724 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4dce344c01a576df070557f4d2d6799f7161c724 Author: Brad Smith (Wed 7 Jan 2026 02:24:12 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:03 GMT) if_rge: sync with up to date OpenBSD code a0b4d9e5bd63984bc3ad25b7f2881741e0d73980 Add support for RTL8126 chip revision 0x64a00000 from Carl Henriksson. While here, update and add microcode for the RTL8126 chipset variant. 46810ff569a9416642fc5f8e86501028008a2e95 For RTL8125, there's no need to check whether RGE_CMD_STOPREQ has been completed. As with other chip variants, RGE_CMD_STOPREQ never acknowledges completion. 5729fb17b5eeba56781da0b5c0525c198c5c2cd8 remove duplicate RGE_PHYSTAT_5000MBPS test Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D54517 Obtained from: OpenBSD (cherry picked from commit 5d73fca1f4b2bac8833e2b9233fa496059dab745) M sys/dev/rge/if_rge.c M sys/dev/rge/if_rge_hw.c M sys/dev/rge/if_rge_microcode.h M sys/dev/rge/if_rgereg.h M sys/dev/rge/if_rgevar.h _____________________________________________________________________________________________________________ Commit: 9f5c6ac6ff06324009dbb2e90b95e306249c1aa4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9f5c6ac6ff06324009dbb2e90b95e306249c1aa4 Author: Stefan Eßer (Thu 18 Dec 2025 07:55:03 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:03 GMT) if_rge: fix typo in man page Fix the list of devices supported by the driver: RTL8125 occured twice, should have been RTL8127 in one case. Approved by: adrian (cherry picked from commit cf5eed71591563ecfc7a40c28d7c4f001f903219) M share/man/man4/rge.4 _____________________________________________________________________________________________________________ Commit: 686934c15f3f8525fc9de2fcab9ae00887cf25ad URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=686934c15f3f8525fc9de2fcab9ae00887cf25ad Author: Olivier Cochard (Tue 16 Dec 2025 15:50:30 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:03 GMT) if_rge: Add PNP info for module Add PNP info so the module can be matched by devmatch(8) and automatically loaded. Reviewed by: adrian Approved by: adrian Differential Revision: https://reviews.freebsd.org/D54254 (cherry picked from commit cce603cfca773c61f3e17ea38575f4ba0557792d) M sys/dev/rge/if_rge.c _____________________________________________________________________________________________________________ Commit: b03beddc9664999b958e4965357b1ff4d809575a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b03beddc9664999b958e4965357b1ff4d809575a Author: Adrian Chadd (Sat 6 Dec 2025 05:26:30 GMT) Committer: Adrian Chadd (Sat 31 Oct 2026 20:15:03 GMT) if_rge: initial import of if_rge driver from OpenBSD. This is an initial import of the if_rge driver from OpenBSD and adapted to FreeBSD. Differential Revision: https://reviews.freebsd.org/D54101 (cherry picked from commit 4bf8ce037dc8fa699be87350bb6467f1b74cb96d) M share/man/man4/Makefile A share/man/man4/rge.4 M sys/conf/files A sys/dev/rge/if_rge.c A sys/dev/rge/if_rge_debug.h A sys/dev/rge/if_rge_hw.c A sys/dev/rge/if_rge_hw.h A sys/dev/rge/if_rge_microcode.h A sys/dev/rge/if_rge_stats.c A sys/dev/rge/if_rge_stats.h A sys/dev/rge/if_rge_sysctl.c A sys/dev/rge/if_rge_sysctl.h A sys/dev/rge/if_rge_vendor.h A sys/dev/rge/if_rgereg.h A sys/dev/rge/if_rgevar.h M sys/modules/Makefile A sys/modules/rge/Makefile _____________________________________________________________________________________________________________ Commit: 3a0d13751d211d13e225d6277b65f49ac1b1ce82 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=3a0d13751d211d13e225d6277b65f49ac1b1ce82 Author: Kevin Bowling (Sat 31 Oct 2026 19:18:42 GMT) Committer: Kevin Bowling (Sat 31 Oct 2026 19:20:26 GMT) igb/igbv: MFC SR-IOV PF support and the VF driver split Add SR-IOV PF support for Intel 82576 and I350 controllers and register virtual functions as igbv. Bring over the shared mailbox and hardware queue mapping changes, separate VF policy, filtering and statistics, mailbox recovery, retained-queue sanitization, DMA fencing, and Hyper-V support and recovery. Include the native VF-status provider for the netlink framework already on stable/15. Consolidate the series with the later e1000 and iflib fixes already merged to stable/15. Complete the igb-specific pieces of the existing IOV restart support, including configuration while the PF is down. The resulting e1000 sources match main before the separate RSS hash-field policy change in 86bdf7a4aec5. The reverted ioctl VF-status interface is not imported. Accept the VF interface rename from igbN to igbvN and document the configuration and device-tunable migration in UPDATING. Preserve the if_em.ko implementation and if_igb.ko alias, add if_igbv.ko and manual aliases, and document the PF queue constraints and Hyper-V limitations. Relnotes: yes Sponsored by: BBOX.io (cherry picked from commit ac9a6d00a0146b3cda6d03b4d2c8895c2813d89a) (cherry picked from commit fd594981c55b3a4e316e72265065566a54d40d38) (cherry picked from commit e6b9ce25ec062b45038a37c88d193fa438f5ef58) (cherry picked from commit a2ed165f0049595f2e52ec545095240e362f27c7) (cherry picked from commit 316f6f2f7fa613d13316ea966a34ee5285b987ec) (cherry picked from commit a6bb3850e7c6ab6ce1356d52bc41368fe64e76fa) (cherry picked from commit 9332fd555588ef4f7913664f8bdb57febc828e76) (cherry picked from commit 350211ab1782a68190754dcbdbcc7c9169ce22cb) (cherry picked from commit 5ce6c94f98599e5ae0595ff5178a224145b6225f) (cherry picked from commit e8f3b96ba794521af9904a451da33cf119381da8) (cherry picked from commit fdce3830d9a66aa30cb40ad4ea984f376ee00095) (cherry picked from commit 5f02c8439786728392f250ff6fa772ce1787b74c) (cherry picked from commit 7cd6d2365b3121743dfd6012e259a3b05b0e7adb) (cherry picked from commit 8c8724705613c856836c3928e7240baae03e690c) (cherry picked from commit a77257d6005839f2dd540e98f1e9ecd70879a38d) (cherry picked from commit ac2be06e0c697f0c15c9a4fcb9503b2ddb14e135) (cherry picked from commit 176259efcb907bd73079e4da83344077271916a5) (cherry picked from commit 1c91c3ae1ec6c65e458f130a95d3119d83ca088e) (cherry picked from commit 75538a0f3275887d75f3585038d3de23baad9005) (cherry picked from commit 612f87c949a2aa3363258890bca2abaea99d3fd6) (cherry picked from commit 505e6bb93f80fa3a7799cd88b0d0cafcaa468491) (cherry picked from commit 037d45a0526f452d96f44059e88f735298a9063d) (cherry picked from commit 8d14fc8ba7f55c873e866f392c17113d514acce9) (cherry picked from commit f51ad3a266ec1ea71c24329dbffdb66a3708b214) (cherry picked from commit 89ce1aa07241abbcea1703b5f2b85b88460d584f) (cherry picked from commit f308d6d4846a51c2d0839840d6eabbbe70309515) (cherry picked from commit 100f7b8d39b273d0083b3f5a884fc00cc73169fd) (cherry picked from commit 2cf580c694f6f392531a63f01c3fb89c0244f89a) M UPDATING M share/man/man4/Makefile M share/man/man4/em.4 M sys/conf/files M sys/dev/e1000/e1000_82575.h M sys/dev/e1000/e1000_hw.h M sys/dev/e1000/e1000_mbx.c M sys/dev/e1000/e1000_mbx.h M sys/dev/e1000/e1000_osdep.h M sys/dev/e1000/e1000_regs.h M sys/dev/e1000/e1000_vf.c M sys/dev/e1000/e1000_vf.h M sys/dev/e1000/em_txrx.c M sys/dev/e1000/if_em.c M sys/dev/e1000/if_em.h A sys/dev/e1000/if_igb_iov.c A sys/dev/e1000/if_igb_iov.h A sys/dev/e1000/if_igbv.c M sys/dev/e1000/igb_txrx.c M sys/modules/em/Makefile _____________________________________________________________________________________________________________ Commit: 952ea69cf245cd4843071026cda1732ac968d415 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=952ea69cf245cd4843071026cda1732ac968d415 Author: Avinash Duduskar (Wed 28 Oct 2026 10:22:14 GMT) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:05 GMT) netlink_snl: make snl_free() safe to call twice snl_init() calls snl_free() on its own failure paths but leaves the state marked initialised and the buffer pointers set, so a caller that also frees the state on failure, as libpfctl's pfctl_open() does, closes the descriptor twice and, on the lb_init() failure path, frees the buffer twice. Reset what snl_free() releases so a second call is a no-op. Signed-off-by: Avinash Duduskar Reviewed by: kp Pull Request: https://github.com/freebsd/freebsd-src/pull/2508 (cherry picked from commit 489ded6d5231f44e02988e8c47969a9e6a1e07b7) M sys/netlink/netlink_snl.h _____________________________________________________________________________________________________________ Commit: 9ce80f6e6f9644bd41e6c078ad55de30e16691eb URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9ce80f6e6f9644bd41e6c078ad55de30e16691eb Author: Kevin Bowling (Sun 6 Sep 2026 12:54:42 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) Bump __FreeBSD_version for SR-IOV VF status Bump for the new ifnet and iflib VF-status provider KBI and the rtnetlink VF-status interface. Use 1501507 on stable/15 to identify the new provider and query APIs. The backport preserves existing ifnet and driver member offsets and the sizes of caller-owned structures. (cherry picked from commit 9872a04038486676296501532337c767ffdec332) M sys/sys/param.h _____________________________________________________________________________________________________________ Commit: 47bf0dc861b69b4a2cd1bf18c0fc5cca96eed17d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=47bf0dc861b69b4a2cd1bf18c0fc5cca96eed17d Author: Kevin Bowling (Sat 8 Aug 2026 19:00:44 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) qlnx: Report SR-IOV VF status Retain the PF-known MAC and allocated transmit and receive queue counts for each VF and expose them through the PF ifnet. Sum queues across all hardware functions rather than reporting only the first one. Publish and snapshot the VF cache under the existing hardware lock. Unpublish it before hardware teardown, and invalidate queue-allocation knowledge when error recovery releases the underlying VF resources. Initialize the cache, release it on failed initialization, and reject an out-of-range VF index instead of continuing into the array. Tested by: zlei Place the new status flags in existing padding on stable/15, preserving the VF attribute array stride and existing member offsets. Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58742 (cherry picked from commit 9b8bc7b827ef99a0488d0bed32293bad323e8cdb) M sys/dev/qlnx/qlnxe/qlnx_def.h M sys/dev/qlnx/qlnxe/qlnx_os.c _____________________________________________________________________________________________________________ Commit: 968d580bcbe13b60780c709f70474a61c1fc42b7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=968d580bcbe13b60780c709f70474a61c1fc42b7 Author: Kevin Bowling (Sat 8 Aug 2026 18:46:27 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) bnxt: Report SR-IOV VF status Expose the PF-known effective per-VF MAC, allocated transmit and receive queue counts, and policy state through the iflib VF status method. Snapshot the state under the SR-IOV lock so concurrent trust and anti-spoof sysctl updates cannot produce a torn report. Mark known queue allocations present even when their value is zero. Cache a VF-selected MAC only after firmware accepts the forwarded request. Prefer that address in status. Replay the accepted address, trust state, and MAC anti-spoof policy after firmware recovery. Record completion of the per-VF configuration callback separately from firmware resource allocation. Track successful PCI SR-IOV attachment independently of the active VF count. This lets a supported but unconfigured PF return an empty status while unsupported devices and failed attachments omit it. Place the attachment flag in existing padding on stable/15, preserving the PF and VF structure sizes and all existing member offsets. Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58738 (cherry picked from commit 2c379efd1834dac2432a98de847b79f345f66974) M sys/dev/bnxt/bnxt_en/bnxt.h M sys/dev/bnxt/bnxt_en/bnxt_sriov.c M sys/dev/bnxt/bnxt_en/bnxt_sriov.h M sys/dev/bnxt/bnxt_en/if_bnxt.c _____________________________________________________________________________________________________________ Commit: aae9d87526e183395469a9901da3106ef7454af0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=aae9d87526e183395469a9901da3106ef7454af0 Author: Kevin Bowling (Sat 8 Aug 2026 18:50:12 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) mlx5en: Report SR-IOV VF status Query each enabled eswitch vport to report its effective MAC and VLAN configuration and administrative link-state policy. Serialize the query with vport enable and disable, and hold the interface state lock so teardown joins an in-progress report. Propagate firmware errors from MAC, administrative link-state, and supported VLAN queries instead of returning a partially initialized configuration. When the hardware lacks CVLAN enforcement, report the remaining status with no imposed access VLAN. Keep the existing caller-owned vport-info structure unchanged on stable/15. Return the additional CVLAN state through a new helper, and retain the original query entry point as a compatibility wrapper. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D58740 (cherry picked from commit 0c08d85c99b7b57e45816d011685d349b240a3e3) M sys/dev/mlx5/mlx5_core/eswitch.h M sys/dev/mlx5/mlx5_core/mlx5_eswitch.c M sys/dev/mlx5/mlx5_core/mlx5_vport.c M sys/dev/mlx5/mlx5_en/mlx5_en_main.c M sys/dev/mlx5/vport.h _____________________________________________________________________________________________________________ Commit: 85524d4891abe3eb11ae79216d2dae2ca154fa36 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=85524d4891abe3eb11ae79216d2dae2ca154fa36 Author: Kevin Bowling (Sat 8 Aug 2026 18:53:29 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) cxgbe: Report SR-IOV VF status Retain the PF-accepted MAC and VLAN settings from the per-port t4iov companion and expose them through the corresponding cxgbe ifnet. Publish, snapshot, and destroy the cache under the existing adapter synchronized-operation mechanism so status queries cannot race IOV configuration or teardown. Track successful t4iov attachment independently of the active VF count. Restrict reporting to the port main VI, return an empty status for a supported but unconfigured PF, and omit status from VF and auxiliary VIs. On stable/15, append the cached status fields to port_info to preserve all existing member offsets. Reject VF adapters before accessing the extended portion, which an older VF module does not allocate. Reviewed by: jhb Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58741 (cherry picked from commit e1c59c909d63931dae999479ecd01e3cf1855543) M sys/dev/cxgbe/adapter.h M sys/dev/cxgbe/t4_iov.c M sys/dev/cxgbe/t4_main.c _____________________________________________________________________________________________________________ Commit: 54e6bf9cf8f8014151072c704d0106fc93d2c4c8 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=54e6bf9cf8f8014151072c704d0106fc93d2c4c8 Author: Kevin Bowling (Sun 6 Sep 2026 17:17:40 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) ice: Report SR-IOV VF status Report the VF MAC, allocated transmit and receive queues, exact trunk VLAN-filter count and capacity, negotiated virtchnl API, configured MAC, VLAN, spoof-check, and promiscuous-mode policy, automatic link-state policy, PF traffic permission, and fault containment through iflib. Expose mirror configuration and active hardware rules, precise malicious-driver isolation and counters, software mailbox-overflow isolation and counters, VF-owned MAC-filter count and limit, and reset diagnostics through a versioned driver.ice extension. Distinguish a failed VF reset from a required VSI rebuild, which may still be pending rather than failed. Keep the namespace schema local to the driver so future extensions need no changes to common network headers or the formatter. Invalidate cached VF handshakes during preparation for an externally initiated device reset, before releasing the context lock to wait for hardware. Mark the VFs as requiring rebuild even if an early PF rebuild failure prevents reaching their VSIs. Software-initiated resets retain their advance notification before invalidating the handshake. The iflib context lock protects VF state and VSI lifetime while constructing the snapshot. The query uses only cached state and does not issue AdminQ commands or read device registers. Validation on E810 with host-attached iavf VFs used ifconfig -v and direct Netlink queries to check handshake, queue, VLAN, policy, MDD, and mailbox state across VF and PF resets. Reviewed by: Pawel Sobczyk , ziaee Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58739 (cherry picked from commit 31a77c113507d5e7689996976679a972a11ff5f7) M share/man/man4/ice.4 M sys/dev/ice/ice_iov.c M sys/dev/ice/ice_iov.h M sys/dev/ice/if_ice_iflib.c _____________________________________________________________________________________________________________ Commit: cb7d37f1ac1d39080d779db66af3cd1955798837 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=cb7d37f1ac1d39080d779db66af3cd1955798837 Author: Kevin Bowling (Mon 10 Aug 2026 23:29:37 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) ixl: Report SR-IOV VF status Expose cached per-VF configuration through the iflib VF status method. Report mailbox initialization and the negotiated virtual-channel API, MAC address, access or trunk VLAN mode, queue resources, administrator policy, PF traffic permission, and fault containment. Expose per-VF malicious-driver isolation and cumulative transmit and receive event counts through a versioned driver.ixl extension. Track successful PCI IOV attachment separately from hardware capability. This lets a successfully attached but unconfigured PF return an empty snapshot without claiming support when PCI IOV registration was unavailable. The query uses driver-cached state and does not issue AdminQ requests or read device registers. On stable/15, place the attachment flag in existing padding and restore the VF handshake-status bit and its reset/resource-reply bookkeeping, which were omitted from earlier MFCs. Existing structure sizes and member offsets are unchanged. Sponsored by: BBOX.io (cherry picked from commit 477e31110ab84b941e95d95d62d8339e822719bc) M share/man/man4/ixl.4 M sys/dev/ixl/if_ixl.c M sys/dev/ixl/ixl_pf.h M sys/dev/ixl/ixl_pf_iov.c _____________________________________________________________________________________________________________ Commit: b2fe18e78db4bcde3e3101204f4f105ca1267226 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b2fe18e78db4bcde3e3101204f4f105ca1267226 Author: Kevin Bowling (Mon 10 Aug 2026 23:29:37 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) ixgbe: Report SR-IOV VF status Expose cached VF configuration, policy, and runtime state through the iflib VF status method. Include access or trunk VLAN mode, transmit and receive queue counts selected by the current virtualization mode, negotiated mailbox API, PF traffic permission, fault containment, and quarantine state. Initialize every cached API version before VF enumeration so an unconfigured slot cannot be mistaken for API 1.0. The query does not issue mailbox requests or read hardware registers. Place the new attachment flag in existing padding on stable/15 to retain the softc size and all existing member offsets. Sponsored by: BBOX.io (cherry picked from commit 049331b20657cf0e7723c071efb75fda53a655fd) M sys/dev/ixgbe/if_ix.c M sys/dev/ixgbe/if_sriov.c M sys/dev/ixgbe/ixgbe.h M sys/dev/ixgbe/ixgbe_sriov.h _____________________________________________________________________________________________________________ Commit: 6a98111eab803df454233c146f5d9e09b5b3e1ad URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6a98111eab803df454233c146f5d9e09b5b3e1ad Author: Kevin Bowling (Thu 10 Sep 2026 07:54:50 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) rtnetlink: Allow VF priority reporting in trunk mode PF-administered priority need not impose an access VLAN. Permit the existing VLAN PCP attribute in either access or trunk mode, while keeping VLAN identifier and protocol access only. Display trunk PCP in ifconfig and document the broader meaning in the kernel snapshot, libifconfig, and rtnetlink contracts. This changes no attribute numbers, wire encoding, or structure layout. Reported by: kib Sponsored by: BBOX.io (cherry picked from commit 429fbc7c35a6d860462db3109608b7f800f0e50b) M lib/libifconfig/libifconfig.h M sbin/ifconfig/ifconfig.8 M sbin/ifconfig/ifvfstatus.c M share/man/man4/rtnetlink.4 M sys/net/if_vf_status.h M sys/netlink/route/iface.c M tests/sys/netlink/test_snl.c _____________________________________________________________________________________________________________ Commit: f7576250ee30c4a9036facc440ebdeb379b51902 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f7576250ee30c4a9036facc440ebdeb379b51902 Author: Kevin Bowling (Sun 6 Sep 2026 15:13:23 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) rtnetlink(4): Qualify VF status descriptions Driver-specific extension namespaces are optional. Describe their role without implying that every provider supplies one. Clarify that the VLAN count excludes membership installed implicitly by the PF without implying that an explicit VID 0 request cannot consume a reported filter. Sponsored by: BBOX.io (cherry picked from commit 949029692f361fb5a96b24cfc46cee74be2b3a9c) M share/man/man4/rtnetlink.4 _____________________________________________________________________________________________________________ Commit: d36050dc99ea68894f5c300a550a7841e8803e7e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d36050dc99ea68894f5c300a550a7841e8803e7e Author: Kevin Bowling (Mon 10 Aug 2026 23:30:22 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:04 GMT) ifconfig: Add SR-IOV VF status output Add NIC-specific VF status to the existing ifconfig -v output. Fetch the data through libifconfig using a separate native route Netlink query. Group optional identity, initialization, resources, VLAN policy, administrator policy, protocol, traffic-permission, and fault containment fields. Omitted fields remain distinct from false or zero. Refer users to iovctl -L for device-neutral PCI attachment and passthrough state. This is a Netlink-native evolution of the original interface by Eric Joyner. Relnotes: yes Adapt the documentation to the iovctl features available on stable/15. Sponsored by: Intel Corporation (initial version) Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58778 Co-authored-by: Eric Joyner (cherry picked from commit 41418a7cd00c4a20eb72bc8c315c0e364d4e4ad2) M sbin/ifconfig/Makefile M sbin/ifconfig/ifconfig.8 M sbin/ifconfig/ifconfig.h M sbin/ifconfig/ifconfig_netlink.c A sbin/ifconfig/ifvfstatus.c M usr.sbin/iovctl/iovctl.8 M usr.sbin/iovctl/iovctl.conf.5 _____________________________________________________________________________________________________________ Commit: 188843491a0429894e6a10efabdbf32dd104f197 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=188843491a0429894e6a10efabdbf32dd104f197 Author: Kevin Bowling (Mon 10 Aug 2026 23:29:49 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:03 GMT) libifconfig: Add a native SR-IOV VF status query Request RTEXT_FILTER_VF through route Netlink and parse the common VF status schema into typed public structures. Preserve per-field presence using IFLAF_VF_* attribute numbers as mask bit indices so callers can distinguish omitted values from false or zero. Validate required VF indices, repeated driver namespaces, and their versioned typed fields while allowing unknown optional attributes. Return VF records through a pointer vector so append-only growth of the public VF structure does not change the array stride seen by existing consumers. Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58777 (cherry picked from commit a8eca531e23b49b71115216a9d54bd78dd16d87b) M lib/libifconfig/Symbol.map M lib/libifconfig/libifconfig.h M lib/libifconfig/libifconfig_nl.c _____________________________________________________________________________________________________________ Commit: 8a6404f29a2b9aade6082503e69c8699e0d0a9a3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8a6404f29a2b9aade6082503e69c8699e0d0a9a3 Author: Kevin Bowling (Mon 10 Aug 2026 23:29:23 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:03 GMT) rtnetlink: Add native SR-IOV VF status Add a transport neutral kernel snapshot for NIC-specific SR-IOV VF status and an optional iflib provider method. Providers gather state under driver defined synchronization. Honor RTEXT_FILTER_VF on RTM_GETLINK requests and encode the status as native typed route Netlink attributes. Represent VFs, driver namespaces, and namespace fields as directly repeated nested attributes. Presence masks in consumers can distinguish omission from false or zero. Drivers may add custom status under stable, versioned namespaces. The named, typed representation lets generic transports and consumers carry or display fields without knowing their driver-specific schemas, while the driver retains ownership of their names and meanings. Document the ABI and add parser and RTM_GETLINK coverage. For stable/15, store the ifnet callback in reserved tail space, preserving the structure size and all existing non-spare member offsets. Reduce the spare array to account for the callback. Append the parsed link extension mask so existing interface cloners retain their member offsets, and retain the branch's interface-event signatures. Reviewed by: melifaro, iflib (gallatin), kgalazka (previous version) Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58776 (cherry picked from commit 2019f3d86f783711e9969d72cc423b26a4ce2f5a) M share/man/man4/rtnetlink.4 M sys/net/if.c M sys/net/if_dead.c M sys/net/if_private.h M sys/net/if_var.h A sys/net/if_vf_status.h M sys/net/ifdi_if.m M sys/net/iflib.c M sys/netlink/netlink_snl.h M sys/netlink/netlink_snl_route_parsers.h M sys/netlink/route/iface.c M sys/netlink/route/interface.h M sys/netlink/route/route_var.h M tests/atf_python/sys/netlink/attrs.py M tests/atf_python/sys/netlink/netlink_route.py M tests/sys/netlink/test_rtnl_iface.py M tests/sys/netlink/test_snl.c _____________________________________________________________________________________________________________ Commit: de1d079d6a3a84642adf7690017f897f65947d28 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=de1d079d6a3a84642adf7690017f897f65947d28 Author: R. Christian McDonald (Sun 11 Oct 2026 21:46:56 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:03 GMT) netlink: Make room for the unfinished message when growing the buffer When a message outgrows the writer's buffer, _nlmsg_refill_buffer() allocates a larger one and moves the unfinished message there. The new buffer was sized for the data about to be added alone, so with enough of the message already written the caller wrote past its end and left it with datalen > buflen. A 20-byte message plus an attribute of 8176 bytes got a buffer of 8192 bytes for 8200 bytes of data, and reading it panicked an INVARIANTS kernel in nl_soreceive(). Size the new buffer for both, and add a ktest for it. Reviewed by: glebius Fixes: 7e5bf68495cc ("netlink: add netlink support") MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D60541 (cherry picked from commit 5180fce1cf7ec7430ccf2adb88358602e5ccee1e) M sys/netlink/ktest_netlink_message_writer.c M sys/netlink/netlink_message_writer.c M tests/sys/netlink/test_netlink_message_writer.py _____________________________________________________________________________________________________________ Commit: c5b58592b57b05de41d10d8e6763768b54ffbc3a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c5b58592b57b05de41d10d8e6763768b54ffbc3a Author: Pouria Mousavizadeh Tehrani (Thu 27 Aug 2026 14:01:11 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:03 GMT) ifconfig: Add netlink support for reading ifgroup Read interface groups from IFLAF_GROUP netlink attribute. Reviewed by: glebius Differential Revision: https://reviews.freebsd.org/D58644 (cherry picked from commit 901a242269b208613a3e4fc02f78c52b7eeed828) M sbin/ifconfig/ifconfig_netlink.c _____________________________________________________________________________________________________________ Commit: b0b892aa61150fc99c9d3f08e722b7be5f14e5a3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b0b892aa61150fc99c9d3f08e722b7be5f14e5a3 Author: Pouria Mousavizadeh Tehrani (Thu 27 Aug 2026 13:43:28 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:03 GMT) rtnetlink: Add FreeBSD-specific IFLAF_GROUP support Netlink IFLA_GROUP works with a single group id, in our implementation an interface can be joined to multiple groups and it works with group name. Store interface groups in IFLAF_GROUP attribute. Reviewed by: glebius, melifaro Discussed with: markj Differential Revision: https://reviews.freebsd.org/D58643 (cherry picked from commit 2f8f892ca344d884abbed0305886bb532f16368f) M sys/net/if.c M sys/net/if_var.h M sys/netlink/netlink_snl_route_parsers.h M sys/netlink/route/iface.c M sys/netlink/route/interface.h _____________________________________________________________________________________________________________ Commit: 020fae1f133e189900f3eb52b60052a74a704754 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=020fae1f133e189900f3eb52b60052a74a704754 Author: Kevin Bowling (Mon 10 Aug 2026 22:34:12 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 18:57:03 GMT) netlink: Parse repeated nested attributes Modern Netlink arrays encode their elements as repeated attributes of the same type rather than as children of an additional array container. Add an SNL callback that parses one nested element for each occurrence and appends it to a geometrically grown parser array. Retain the existing parray callback for protocols that use the legacy container form. Store the growth capacity in struct snl_parray, appended after its existing public count and items fields so their offsets remain stable on LP64 and ILP32. Require parser targets to be real snl_parray objects, and convert bitset, generic Netlink, and route multipath arrays accordingly. This avoids relying on layout aliases for private growth state. Add regression coverage for a nested bit array that grows beyond its initial allocation, while preserving replacement semantics when a legacy array target is reused. On stable/15, retain the existing route-expiry handling and omit changes to main-only nexthop reporting and its test program. Reviewed by: melifaro, pouria Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D58775 (cherry picked from commit 60c0a075472cabd0ac7f54411f6a65626169984a) M sbin/route/route_netlink.c M sys/netlink/netlink_snl.h M sys/netlink/netlink_snl_generic.h M sys/netlink/netlink_snl_route_parsers.h M tests/sys/netlink/test_snl.c M tests/sys/netlink/test_snl_generic.c M usr.bin/genl/genl.c M usr.bin/netstat/route_netlink.c M usr.sbin/arp/arp_netlink.c M usr.sbin/ndp/ndp_netlink.c _____________________________________________________________________________________________________________ Commit: b61fdb5484fe12407d2cf3bcff544dc0ec528d7e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b61fdb5484fe12407d2cf3bcff544dc0ec528d7e Author: Abdelkader Boudih (Mon 3 Aug 2026 19:12:19 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 18:20:29 GMT) kqueue: stream the knote report instead of buffering all of it kern_proc_kqueues_out() sized its intermediate sbuf from the preceding sizing pass, so dumping core for a process with many knotes wired a buffer as large as the entire report. Shrank the intermediate to one page and added a drain that copied into the caller's sbuf up to maxlen, stopping the walk once it was reached. Truncation stayed byte exact. A dump of 384k knotes peaked at 20 KB of M_SBUF instead of 445 MB. Reviewed by: adrian, markj Differential Revision: https://reviews.freebsd.org/D58584 MFC after: 1 week (cherry picked from commit 9590878fca68e62c63d607da73139698e204d0f0) M sys/kern/kern_event.c _____________________________________________________________________________________________________________ Commit: 9fbdf07d9ef27773aae245505ba47d0c2f83e901 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9fbdf07d9ef27773aae245505ba47d0c2f83e901 Author: Abdelkader Boudih (Mon 3 Aug 2026 19:11:49 BST) Committer: Adrian Chadd (Sat 31 Oct 2026 18:20:17 GMT) kqueue: fix the always-empty NT_PROCSTAT_KQUEUES core note sbuf reserves a byte of its buffer for the terminator, so the sbuf created with maxlen held one byte less than the sizing pass had computed. The last record overflowed it, sbuf_bcat() failed, and the error == 0 guard skipped the copy into the caller's sbuf, so the note has been emitted at full size but zero filled since 5e7c43ff02dc. Fixes: 5e7c43ff02dc Reviewed by: adrian, markj Differential Revision: https://reviews.freebsd.org/D58583 MFC after: 1 week (cherry picked from commit 5078280bb42c00eecffeabf93706c145e87b4b2b) M sys/kern/kern_event.c _____________________________________________________________________________________________________________ Commit: 96a1a3355e2d5359c30981d67342d2948431302b URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=96a1a3355e2d5359c30981d67342d2948431302b Author: Andrew Gallatin (Wed 8 Jul 2026 13:24:35 BST) Committer: Kevin Bowling (Sat 31 Oct 2026 17:24:10 GMT) lagg: re-check port caps after bringing up a port Some nic drivers (including iflib) do not initialize if_hwassist until after the interface is brought up. If a lagg member is included in a lagg when its not yet been brought up, that will cause lagg to see if_hwassist=0 and will disable all checksum offload, etc, on the interface. This is almost impossible to debug without kgdb or dtrace, as ifconfig does not surface if_hwassist. Fix this by re-calculating lagg caps (including if_hwassist) after adding a port. I encountered this problem when I had a commented-out if_foo1=up entry in my rc.conf that i neglected to uncomment when I was re-configuring a lagg. Sponsored by: Netflix Reviewed by: markj, zlei Differential Revision: https://reviews.freebsd.org/D58062 (cherry picked from commit 1cce5ef05d7ba077b0cb29d30b59f3a862e7e5ae) M sys/net/if_lagg.c _____________________________________________________________________________________________________________ Commit: 5c8bb2bbcda6d9b724220acad3e71eeae56e57db URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5c8bb2bbcda6d9b724220acad3e71eeae56e57db Author: Roman Bogorodskiy (Wed 30 Sep 2026 18:56:18 BST) Committer: Roman Bogorodskiy (Sat 31 Oct 2026 17:10:22 GMT) bhyve.8: add details on using TPM with UEFI Add a note that UEFI VMs using TPM devices should be configured to use a varfile. Some UEFI boot loaders, such as shim, update persistent boot variables and then reset the system when a TPM is present. Without a writable varfile, the VM may be reset repeatedly. Add a TPM device example to the examples list. While here, add a missing "\" to the "uefivm" example, and add ".Pp" before the vCPU pinning examples for consistency with other examples. PR: 287326 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287326 ) Reviewed by: michaelo, ziaee Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D60181 (cherry picked from commit ff2efe65a89a943beec4dd4cc956f5e075a921be) M usr.sbin/bhyve/bhyve.8 _____________________________________________________________________________________________________________ Commit: 1a86e51f70e37a4578d891433e4b4e51acd1fb71 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1a86e51f70e37a4578d891433e4b4e51acd1fb71 Author: Dag-Erling Smørgrav (Sun 30 Aug 2026 18:56:51 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:35 GMT) libc: Fix C23 version macro visibility In headers that existed prior to C23, these should be visible only in C23 or BSD mode. Fixes: 0fe73dcf7c32 ("libc: Add C23 feature test macro") Fixes: 1f09e354297c ("sys/limits.h: Add BOOL_MAX, BITINT_MAXWIDTH, and C23 feature test macro") Fixes: cd0727ec709b ("libc: Add C23 feature test macro") Fixes: fc9d02cb29ed ("libc: Add C23 feature test macro") Fixes: 4aeed6e9d213 ("libc: Add C23 feature test macro") Reviewed by: fuz, kfv, dteske Differential Revision: https://reviews.freebsd.org/D59272 (cherry picked from commit 5076e9b5463afa47cf2e7689431d3dd33e5b15cb) M include/assert.h M include/limits.h M include/setjmp.h M include/stdio.h M include/time.h M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: 908fae661a7fb75b3d67a7db9b95835aeebc1bf5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=908fae661a7fb75b3d67a7db9b95835aeebc1bf5 Author: Faraz Vahedi (Sat 5 Sep 2026 09:28:29 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:35 GMT) libc: Add C23 feature test macro Define __STDC_VERSION_INTTYPES_H__ now that the header fully conforms to C23. Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D59382 (cherry picked from commit 733ea4ee584db9b25b470ee48243135a321b4eed) M include/inttypes.h _____________________________________________________________________________________________________________ Commit: 1026dd139386a434a94079f4f75ace7fcc348e9f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=1026dd139386a434a94079f4f75ace7fcc348e9f Author: Faraz Vahedi (Thu 3 Sep 2026 00:35:22 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:34 GMT) libm: Implement femode_t, fegetmode(), and fesetmode() as per C23 Reviewed by: kargl, kib Approved by: fuz (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D59288 (cherry picked from commit d8b6461f8c56237a00ddc32678b3928bf76f5440) M lib/msun/Makefile M lib/msun/Symbol.map M lib/msun/aarch64/fenv.c M lib/msun/aarch64/fenv.h M lib/msun/amd64/fenv.c M lib/msun/arm/fenv-mangle.h M lib/msun/arm/fenv.c M lib/msun/arm/fenv.h M lib/msun/i387/fenv.c A lib/msun/man/fegetmode.3 M lib/msun/man/fegetround.3 M lib/msun/man/fenv.3 M lib/msun/powerpc/fenv.c M lib/msun/powerpc/fenv.h M lib/msun/riscv/fenv.c M lib/msun/riscv/fenv.h M lib/msun/src/fenv-softfloat.h M lib/msun/tests/fenv_test.c M lib/msun/x86/fenv.h _____________________________________________________________________________________________________________ Commit: e6cab850f13158e42aa26556f07dab90212112c3 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e6cab850f13158e42aa26556f07dab90212112c3 Author: Faraz Vahedi (Mon 24 Aug 2026 14:48:08 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:34 GMT) libc: Add C23 feature test macro Define the __STDC_VERSION_SETJMP_H__ feature test macro as the header fully conforms to C23. Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D59135 (cherry picked from commit 4aeed6e9d2132366fe5d7fa46d47d73be9de263b) M include/setjmp.h _____________________________________________________________________________________________________________ Commit: 71649bb9f522de06266c88df7529c2c072c92395 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=71649bb9f522de06266c88df7529c2c072c92395 Author: Faraz Vahedi (Mon 24 Aug 2026 14:47:15 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:34 GMT) libc: Add C23 feature test macro Define the __STDC_VERSION_TIME_H__ feature test macro as the header fully conforms to C23. Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D59134 (cherry picked from commit fc9d02cb29ed8505eeb4f90348b7318ddcfae434) M include/time.h _____________________________________________________________________________________________________________ Commit: 068271f0331d626296bbbb3421485c80afe7157e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=068271f0331d626296bbbb3421485c80afe7157e Author: Faraz Vahedi (Tue 18 Aug 2026 11:48:20 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:33 GMT) libc: Restore prior C23 include guards To avoid any sort of POLA violation, this commit restores old guards and defines the C23 feature test macros in addition to them. This is to close off whole class of possible breakage, rather than patching it case by case. Reported by: dim Reviewed by: dim, dteske, fuz Approved by: dim, dteske (mentor), fuz (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D58911 (cherry picked from commit 8d29d242964976d9ffa89387d97de87d6cedc886) M include/assert.h M include/limits.h M include/rpc/xdr.h M include/stdio.h M include/xlocale.h M lib/libc/xdr/xdr.3 M lib/libgeom/libgeom.h M lib/libutil/libutil.h M stand/libsa/geli/geliboot_internal.h M sys/sys/stdatomic.h M sys/sys/syslimits.h _____________________________________________________________________________________________________________ Commit: 47f45c2cf2b90fad597dcfa8020bb14068423372 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=47f45c2cf2b90fad597dcfa8020bb14068423372 Author: Faraz Vahedi (Fri 14 Aug 2026 13:22:00 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:33 GMT) libc: Add C23 feature test macro Define the __STDC_VERSION_STDIO_H__ feature test macro now that the header fully conforms to C23. Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D58842 (cherry picked from commit cd0727ec709bb54f8f82104f6113284a15dd3464) M include/rpc/xdr.h M include/stdio.h M include/xlocale.h M lib/libc/xdr/xdr.3 M lib/libgeom/libgeom.h M lib/libutil/libutil.h M stand/libsa/geli/geliboot_internal.h _____________________________________________________________________________________________________________ Commit: a76700665f67ef90cca44caeec12bac7d4d062e5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a76700665f67ef90cca44caeec12bac7d4d062e5 Author: Faraz Vahedi (Tue 4 Aug 2026 17:31:37 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:33 GMT) libc/tests: Add assertions for BOOL_WIDTH, BOOL_MAX, and BITINT_MAXWIDTH Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/2352 (cherry picked from commit b54dcb897a5fa66ff1013d0ea403ed8894e34b8a) M lib/libc/tests/gen/limits_test.c _____________________________________________________________________________________________________________ Commit: 39dbfae2ca68cb617240a3724c13eccaf9c36bac URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=39dbfae2ca68cb617240a3724c13eccaf9c36bac Author: Faraz Vahedi (Tue 4 Aug 2026 13:47:39 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:32 GMT) sys/limits.h: Fix typo Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/2352 (cherry picked from commit ca1c1eceb38c57ce7439786008f7c6f37c9a62d3) M sys/powerpc/include/_limits.h _____________________________________________________________________________________________________________ Commit: 20ff5aa0253490240d1058e7c8502f7ab96a56ed URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=20ff5aa0253490240d1058e7c8502f7ab96a56ed Author: Faraz Vahedi (Tue 4 Aug 2026 13:43:57 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:32 GMT) sys/limits.h: Add BOOL_MAX, BITINT_MAXWIDTH, and C23 feature test macro Add BOOL_MAX and BITINT_MAXWIDTH macros for C23 compliance, and define the __STDC_VERSION_LIMITS_H__ feature test macro now that the header fully conforms to C23. Reviewed by: fuz Approved by: fuz (mentor) MFC after: 1 month Pull Request: https://github.com/freebsd/freebsd-src/pull/2352 (cherry picked from commit 1f09e354297ce571353210c23e50ef6fc19ce382) M include/limits.h M sys/sys/limits.h M sys/sys/syslimits.h _____________________________________________________________________________________________________________ Commit: 92bb927c768d59ed1e384db692c7f3d08cea851c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=92bb927c768d59ed1e384db692c7f3d08cea851c Author: Dag-Erling Smørgrav (Sun 21 Jun 2026 20:51:14 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:32 GMT) libc: Fix ATOMIC_VAR_INIT visibility Fixes: 28cecfe27964 ("libc: Restrict ATOMIC_VAR_INIT for C23 conformance") Reviewed by: fuz, imp Differential Revision: https://reviews.freebsd.org/D57724 (cherry picked from commit 4c860db34a1b8cff79e7f0d5184423221613e8e1) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: 123200496e244a822f0774932336ba0f6ce64a48 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=123200496e244a822f0774932336ba0f6ce64a48 Author: Faraz Vahedi (Fri 8 May 2026 03:54:23 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:31 GMT) libc: Fix GCC pointer semantics for atomic_fetch_add/sub Correct the GCC implementation of `atomic_fetch_add_explicit()` and `atomic_fetch_sub_explicit()` for atomic pointer types. The previous implementation passed the operand directly to the builtins. For pointer objects, this could result in raw byte-wise address arithmetic rather than the required C atomic pointer semantics, where the operand is interpreted as a `ptrdiff_t` element count. As a result, operations such as `atomic_fetch_sub_explicit(&p, 2, ...)` could produce an incorrect post-operation pointer value. Fix this by applying pointer scaling in the GCC path before invoking the builtin, mirroring the existing legacy fallback implementation. Pointer operands are now scaled by the size of the pointed-to type, while integer atomic behaviour remains unchanged. Signed-off-by: Faraz Vahedi Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185 (cherry picked from commit 26bf9fc3a40275a7aca0ce1809751a90c84b643a) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: af116659c071a284b036d4e8e232b107a7c3ecaa URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=af116659c071a284b036d4e8e232b107a7c3ecaa Author: Faraz Vahedi (Fri 8 May 2026 00:00:47 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:31 GMT) libc: Fix atomic_init for GCC atomic objects Add a dedicated `__GNUC_ATOMICS` path that initialises via `atomic_store_explicit(obj, value, memory_order_relaxed)`. This ensures the required initialisation semantics without assuming any particular object representation. Previously, `atomic_init` on GCC fell through to the legacy `__val` member path intended only for old struct-backed atomic objects. For current atomic objects, this caused the following compilation error: > error: request for member '__val' in something not a structure or union As a result, valid code such as `atomic_init(&x, 1)` failed to compile when using GCC. This fix restores compatibility with standard-conforming callers while other code paths remain unchanged. Signed-off-by: Faraz Vahedi Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185 (cherry picked from commit 54ac231419cf09557d2f5826b1539e83db552410) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: 53ba20bad7895e3c504856ac9b94f91655de6480 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=53ba20bad7895e3c504856ac9b94f91655de6480 Author: Faraz Vahedi (Thu 7 May 2026 11:25:56 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:31 GMT) libc: Enforce lock-free atomic_flag and C23-safe initialisation Select the `atomic_flag` backing type according to the C standard requirements that `atomic_flag` operations be lock-free. C11 §7.17.1.5 defines `atomic_flag` as: > a structure type representing a lock-free, primitive atomic flag and §7.17.8.2 further requires: > Operations on an object of type atomic_flag shall be lock free Therefore: - Prefer `atomic_bool` when `ATOMIC_BOOL_LOCK_FREE == 2` - Fall back to `atomic_uchar` when `ATOMIC_CHAR_LOCK_FREE == 2` - Trigger a translation failure if neither type is lock-free Adjust `ATOMIC_FLAG_INIT` for C23 initialisation rules: - Use `{ ATOMIC_VAR_INIT(0) }` in pre-C23 modes - Use `{ 0 }` in C23 and later Preserve `atomic_flag_test_and_set_explicit()` semantics by normalising the exchanged value with `!= 0`, ensuring consistent boolean results regardless of whether the underlying representation is `atomic_bool` or `atomic_uchar`. Signed-off-by: Faraz Vahedi Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185 (cherry picked from commit 640ddf8571291ab2965de85f67e6065a4d7efbf8) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: 650fea6abff7640a343e678b0fd343e4051bc333 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=650fea6abff7640a343e678b0fd343e4051bc333 Author: Faraz Vahedi (Sat 2 May 2026 04:40:27 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:30 GMT) libc: Reorder atomic operations to match ISO C standard Reorder definitions of specified generic operations on atomic types so they follow the sequence in ISO/IEC 9899:2024 §7.17.7: 1. `atomic_store` 2. `atomic_load` 3. `atomic_exchange` 4. `atomic_compare_exchange` 5. `atomic_fetch` This aligns the header layout with the standard, making it easier to cross-check against the normative text and maintain consistency with the rest of the header. The behaviour of the macros remains unchanged; this is purely a reorganisation and documentation improvement. Signed-off-by: Faraz Vahedi Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185 (cherry picked from commit cb88e7b8cdd6b4c707e47abee4ba8541d9fccea6) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: db50099480e78dff37457514af08716e45a48124 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=db50099480e78dff37457514af08716e45a48124 Author: Faraz Vahedi (Fri 1 May 2026 18:49:27 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:30 GMT) libc: Reorganise memory_order enumeration constants Place the `memory_order` enumeration constants alongside the corresponding typedef under the §7.17.3 heading. The previous layout separated the fallback constant definitions from the enum, which could obscure their relationship. These fallbacks exist only to provide values when the compiler does not supply the builtins. The removed comment encoded implementation-specific assumptions about compiler-provided definitions and implied a relationship between Clang/GCC macros and fallback values. In practice, the fallback definitions exist solely to ensure the enumerators are defined when compiler intrinsics are absent, and do not depend on any particular numeric mapping. No functional change; this is a mere structural and clarity improvement. Signed-off-by: Faraz Vahedi Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185 (cherry picked from commit e17fddce8978efbc70fc473425bad59b111f4b16) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: 127109e75d06b14bce30849e9131318b592ea808 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=127109e75d06b14bce30849e9131318b592ea808 Author: Faraz Vahedi (Fri 1 May 2026 16:41:49 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:30 GMT) libc: Add missing kill_dependency macro Add `kill_dependency` as specified by C11 §7.17.3.1. The macro is required to break dependency chains in expressions without affecting the value. No functional impact beyond providing the required, value-preserving definition. Signed-off-by: Faraz Vahedi Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185 (cherry picked from commit 9d87c1aac4a84ac5e82acf872f645a7202977204) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: 54916e23699241d418f8c86b9bd8268e2aa2dd28 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=54916e23699241d418f8c86b9bd8268e2aa2dd28 Author: Faraz Vahedi (Fri 1 May 2026 15:34:44 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:29 GMT) libc: Restrict ATOMIC_VAR_INIT for C23 conformance Omit `ATOMIC_VAR_INIT` when targeting C23, where it has been removed. Retain it for earlier C standards and for C++ (as it still remains in C++23, albeit marked as deprecated since C17 and C++20.) Also separate `atomic_init` definitions from `ATOMIC_VAR_INIT` to avoid coupling with a deprecated initialisation mechanism. No functional change intended for `atomic_init`; this is purely a conformance and cleanup adjustment. Signed-off-by: Faraz Vahedi Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185 (cherry picked from commit 28cecfe27964fdb67497800f5dcd5d3e1033727f) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: 7407dd9f47f2740917de00a564e56154a830db2c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7407dd9f47f2740917de00a564e56154a830db2c Author: Faraz Vahedi (Fri 1 May 2026 02:01:20 BST) Committer: Faraz Vahedi (Sat 31 Oct 2026 10:03:29 GMT) libc: Add atomics C23 feature test macro Signed-off-by: Faraz Vahedi Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/2185 (cherry picked from commit 85becdacf3b043849b240eb1b1b2cde63add0690) M sys/sys/stdatomic.h _____________________________________________________________________________________________________________ Commit: 406279104888ed56dc8f6a27e4880056bbe730c7 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=406279104888ed56dc8f6a27e4880056bbe730c7 Author: Philip Paeps (Wed 28 Oct 2026 14:46:33 GMT) Committer: Philip Paeps (Sat 31 Oct 2026 03:52:03 GMT) contrib/tzdata: import tzdata 2026f Changes: https://github.com/eggert/tz/blob/2026f/NEWS (cherry picked from commit 5a2e900390155ca00ca321230e498f94d449eff5) M contrib/tzdata/Makefile M contrib/tzdata/NEWS M contrib/tzdata/backzone M contrib/tzdata/leapseconds M contrib/tzdata/leapseconds.awk M contrib/tzdata/northamerica M contrib/tzdata/southamerica M contrib/tzdata/theory.html M contrib/tzdata/version _____________________________________________________________________________________________________________ Commit: f89814a2d968df0e40d2ddbcb0863e24ea39bf94 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=f89814a2d968df0e40d2ddbcb0863e24ea39bf94 Author: Konstantin Belousov (Sun 25 Oct 2026 15:35:21 GMT) Committer: Konstantin Belousov (Sat 31 Oct 2026 03:15:23 GMT) dl_iterate_phdr(3): do not return garbage for objects not using TLS (cherry picked from commit 175595ba6c5253e395c028e792787dffd2875910) M libexec/rtld-elf/rtld.c _____________________________________________________________________________________________________________ Commit: e3440c4f1e65d5b7c2e703ccdd85acabd32abeb6 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=e3440c4f1e65d5b7c2e703ccdd85acabd32abeb6 Author: Konstantin Belousov (Sun 25 Oct 2026 15:30:20 GMT) Committer: Konstantin Belousov (Sat 31 Oct 2026 03:15:22 GMT) rtld: some cosmetics in donelist_init() (cherry picked from commit e2979f4cbbf6546daa7ad9fd1cd544d22c286315) M libexec/rtld-elf/rtld.c _____________________________________________________________________________________________________________ Commit: 8e231b6ae0168f91a072402d02df39f4a0daf70d URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=8e231b6ae0168f91a072402d02df39f4a0daf70d Author: Konstantin Belousov (Sun 25 Oct 2026 15:28:14 GMT) Committer: Konstantin Belousov (Sat 31 Oct 2026 03:15:22 GMT) rtld: fix leak in get_program_var_addr() on the error path (cherry picked from commit 91d8163803b4fa25e51afe1209d0f5c30c603b93) M libexec/rtld-elf/rtld.c _____________________________________________________________________________________________________________ Commit: 66da93680c97645f23b1ce0232c6c3caa9c52824 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=66da93680c97645f23b1ce0232c6c3caa9c52824 Author: Konstantin Belousov (Sun 25 Oct 2026 01:49:59 GMT) Committer: Konstantin Belousov (Sat 31 Oct 2026 03:15:21 GMT) x86: make machine/sysarch.h usable from assembler (cherry picked from commit dc1514eda55c5a2439cb5b8fa5c08e78468b7d3b) M sys/x86/include/sysarch.h _____________________________________________________________________________________________________________ Commit: ffc17f8c6b807d193e54c6269d95fa85c574fea5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=ffc17f8c6b807d193e54c6269d95fa85c574fea5 Author: Joy (Sat 24 Oct 2026 03:28:42 BST) Committer: Konstantin Belousov (Sat 31 Oct 2026 03:15:21 GMT) arm64 linux: Allow FUTEX_REQUEUE on arm64 by setting the brand flag PR: 299836 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299836 ) (cherry picked from commit a3d1d4e88ae7435cfc32a886999dcde2173839cd) M sys/arm64/linux/linux_sysvec.c _____________________________________________________________________________________________________________ Commit: 42094ab41e5ad34b56603fa343ba53f93c7f4984 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=42094ab41e5ad34b56603fa343ba53f93c7f4984 Author: Joy (Sat 24 Oct 2026 03:22:29 BST) Committer: Konstantin Belousov (Sat 31 Oct 2026 03:15:21 GMT) linux: correct errors from mremap(2) PR: 299835 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299835 ) (cherry picked from commit 9a8d5af1ba0174ec5fcc3eedba545aec9a627987) M sys/compat/linux/linux_misc.c _____________________________________________________________________________________________________________ Commit: d2cb52033b6701fbe1631b3e294109bcd8102c15 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d2cb52033b6701fbe1631b3e294109bcd8102c15 Author: Kevin Bowling (Mon 3 Aug 2026 06:36:04 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 18:03:43 GMT) e1000: clear VFTA when last VLAN is removed The conventional VLAN filter update skipped zero shadow words. Removing the final VLAN represented by a VFTA word therefore left the hardware bit programmed even though the software shadow was clear. Pass the changed word to em_if_vlan_filter_write() and write it even when its new value is zero. Retained nonzero words continue to be replayed as before. (cherry picked from commit a9305a6f50be89f22c7a469aeee4c3bea2086ace) M sys/dev/e1000/if_em.c _____________________________________________________________________________________________________________ Commit: 6b4a887448d723dc3ad8af46642e52ac21febc29 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6b4a887448d723dc3ad8af46642e52ac21febc29 Author: Gleb Smirnoff (Wed 20 May 2026 15:27:52 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:56:36 GMT) netlink: fix unsigned overflow on a truncated message PR: 295106 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295106 ) Submitted by: Robert Morris Reviewed by: pouria, melifaro Differential Revision: https://reviews.freebsd.org/D56916 (cherry picked from commit e924a2c80b9e1ace68d8ca0ffdacec65feec90a3) M sys/netlink/netlink_message_parser.h _____________________________________________________________________________________________________________ Commit: c804f6ecdf1e9a79e6b6b0ad805adf1a0239dba4 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=c804f6ecdf1e9a79e6b6b0ad805adf1a0239dba4 Author: Pouria Mousavizadeh Tehrani (Sat 10 Oct 2026 16:51:58 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:53:10 GMT) netgraph/ng_ksocket: Enter epoch on NG_SEND_DATA_ONLY The work queued by ng_send_fn() is intentionally processed outside of the epoch in ngthread(). It is ng_ksocket's responsibility to enter epoch if it decides to send data from such work. Reviewed by: glebius Fixes: 104827151e2a ("ng_iface: don't recursively enter epoch ...") Differential Revision: https://reviews.freebsd.org/D60589 (cherry picked from commit 67be955f6bd5d5b51fdee407969d1a7cde156f65) M sys/netgraph/ng_ksocket.c _____________________________________________________________________________________________________________ Commit: 9bf31b638b1493264a784076447669f219f14343 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=9bf31b638b1493264a784076447669f219f14343 Author: Gleb Smirnoff (Wed 17 Dec 2025 22:05:53 GMT) Committer: Kevin Bowling (Fri 30 Oct 2026 17:53:03 GMT) ng_iface: don't recursively enter epoch in the rcvdata method Reviewed by: p.mousavizadeh_protonmail.com, zlei Differential Revision: https://reviews.freebsd.org/D54241 (cherry picked from commit 104827151e2abc7fe6fb9bf59a12b443657d1506) M sys/netgraph/ng_iface.c _____________________________________________________________________________________________________________ Commit: d26372fee6fb6bc79ea34c788566d10812708305 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d26372fee6fb6bc79ea34c788566d10812708305 Author: Gleb Smirnoff (Sat 27 Jun 2026 00:03:14 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:51:43 GMT) ng_socket: plug node reference leak There is no need to reference node in its constructor, the framework already granted us a reference. This extraneous reference was later given back on socket detach. However, if node is destroyed before the socket, the node was leaked. This leak was harmless until VIMAGE, where vnet_netgraph_uninit() would cycle through all nodes and shut them down expecting them to not exist after the shutdown. Fixes: 19284374970533e1aa04020d4f840e8877ed6266 (cherry picked from commit 4d3cbeb7b407e127a5364f86039745068fbfc61f) M sys/netgraph/ng_socket.c _____________________________________________________________________________________________________________ Commit: 221d978bccda79a0acf6425551b9ec3592e1b76e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=221d978bccda79a0acf6425551b9ec3592e1b76e Author: Teddy Engel (Tue 2 Jun 2026 17:24:57 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:50:38 GMT) ipfw/nat64: Fix type confusion panic when using wrong NAT64 instance type Add etlv type validation to ipfw_nat64clat() and ipfw_nat64stl() to verify that the retrieved instance is actually a nat64clat instance before use. All NAT64 instance types share the same srvstate[] array but have different struct layouts. Without type validation, using the wrong instance type with a handler causes type confusion and kernel panic. Signed-off-by: Teddy Engel PR: 292023 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292023 ) Reviewed by: pouria Pull Request: https://github.com/freebsd/freebsd-src/pull/2259 (cherry picked from commit 2e6b22abf44d99b84abf17fe25ca2e8f89716c04) M sys/netpfil/ipfw/nat64/nat64clat.c M sys/netpfil/ipfw/nat64/nat64stl.c _____________________________________________________________________________________________________________ Commit: df8a63fbae20815a66fbafed00e533cd8f10468a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=df8a63fbae20815a66fbafed00e533cd8f10468a Author: Teddy Engel (Mon 1 Jun 2026 17:42:56 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:50:14 GMT) nat64lsn: Fix type confusion panic when using wrong NAT64 instance type When an ipfw rule references a NAT64 instance by name using 'nat64lsn', the kernel looks up the instance in the shared srvstate[] array without verifying the instance type. If the named instance is actually a nat64clat or nat64stl instance (created with 'nat64clat' or 'nat64stl'), the code incorrectly casts the instance to nat64lsn_instance and dereferences the ->cfg pointer, which causes a kernel panic. The root cause is that all NAT64 instance types share the same srvstate[] array but have different struct layouts. For nat64lsn_instance, the field after 'no' is a pointer to nat64lsn_cfg. For nat64clat_cfg, the same offset contains an embedded nat64_config struct. Fix by adding a type check after NAT64_LOOKUP() to verify that the instance's etlv matches IPFW_TLV_NAT64LSN_NAME before proceeding. If the type doesn't match, return IP_FW_DENY to reject the packet safely rather than crashing. Signed-off-by: Teddy Engel PR: 292023 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292023 ) Reported by: pouria Reviewed by: ae Pull-Request: https://github.com/freebsd/freebsd-src/pull/2249 (cherry picked from commit ea4888e63f6ac89c38982ffee693f89a5927e9c9) M sys/netpfil/ipfw/nat64/nat64lsn.c _____________________________________________________________________________________________________________ Commit: b021a5925f49475a8443f035f195489022378e42 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b021a5925f49475a8443f035f195489022378e42 Author: Olivier Cochard (Thu 5 Mar 2026 11:02:20 GMT) Committer: Kevin Bowling (Fri 30 Oct 2026 17:48:45 GMT) carp: fix global demotion counter to VRRP advertisements When net.inet.carp.preempt=1 and a physical interface goes down, the global V_carp_demotion counter is incremented. For CARP this was already reflected in outgoing advertisements via DEMOTE_ADVSKEW(), but VRRP sent the raw sc_vrrp_prio unchanged, so demotion had no effect. Add DEMOTE_VRRP_PRIO(), a macro analogous to DEMOTE_ADVSKEW(): It subtracts V_carp_demotion from the configured priority and clamps the result to [0, 254]. Priority 0 is VRRPv3's "resign" signal and causes backups to preempt immediately. Priority 255 (IP address owner) is never demoted. Reviewed by: kp Approved by: kp Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D55558 (cherry picked from commit 9f71153aec0cb455cd49af6d4ca7e4c16fd45d7a) M sys/netinet/ip_carp.c M tests/sys/netinet/carp.sh _____________________________________________________________________________________________________________ Commit: 401be0a0cdda89ac815600ffe210be08bdc86c8e URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=401be0a0cdda89ac815600ffe210be08bdc86c8e Author: Andrew Gallatin (Tue 13 Oct 2026 14:01:26 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:47:23 GMT) pfil: Avoid potential mbuf tag leak In '398254f9999e mbuf: simplify m_free' we removed tag processing on m_free() of M_NOFREE mbufs. It is possible that a packet filter could attach a tag to this stack mbuf and call m_free() on it, meaning that 398254f9999e may have introduced a tag leak. However,if a tag is attached without anyone calling m_free(), then this leak was pre-existing. Reviewed by: glebius Differential Revision: https://reviews.freebsd.org/D60686 Fixes: 398254f9999e Sponsored by: Netflix (cherry picked from commit f4ff995e361fa72cea240c4dbac2d0931965c80f) M sys/net/pfil.c _____________________________________________________________________________________________________________ Commit: 5a0c302cc990e665744586206d326d4bd538c83a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=5a0c302cc990e665744586206d326d4bd538c83a Author: Andrew Gallatin (Mon 12 Oct 2026 22:32:52 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:47:12 GMT) mbuf: simplify m_free The check for (M_PKTHDR|M_NOFREE) was added by np@ in "91d1b03d3617 Merge r254736 from user/np/cxl_tuning." in order to support a clever rx mode optimization used by cxgbe at the time. That optimization was removed in 46e1e307edb6 several years ago. This check is otherwise unneeded and adds an extraneous test to every mbuf free, so let's remove it. Reviewed by: glebius, np Differential Revision: https://reviews.freebsd.org/D60686 Sponsored by: Netflix (cherry picked from commit 398254f9999eb1af5f0842570111d584aaf8d01a) M sys/sys/mbuf.h _____________________________________________________________________________________________________________ Commit: 6258dfebdcae305f1d8ef89fd9000f4ef2709c9c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6258dfebdcae305f1d8ef89fd9000f4ef2709c9c Author: KUROSAWA Takahiro (Tue 7 Jul 2026 20:43:32 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:45:26 GMT) pf: fix a crash on sendfile() The network layer must not pass unmapped (M_EXTPG) mbufs to if_output() of network interfaces without IFCAP_MEXTPG. pf should convert these mbufs by mb_unmapped_to_ext() for such interfaces but it didn't. The problem had occurred on sendfile because sendfile system call uses unmapped mbufs for the file data. Reported by: feld Reviewed by: kp, glebius Differential Revision: https://reviews.freebsd.org/D58021 (cherry picked from commit 8a14fcd23a201944f3eb5086403d10cfe1fc128f) M sys/netpfil/pf/pf.c M tests/sys/netpfil/pf/Makefile A tests/sys/netpfil/pf/unmapped_mbuf.sh _____________________________________________________________________________________________________________ Commit: 94da8a12cdb2ac2d18349212982e6c8e0bb6162c URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=94da8a12cdb2ac2d18349212982e6c8e0bb6162c Author: Pouria Mousavizadeh Tehrani (Wed 29 Jul 2026 20:32:35 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:43:17 GMT) netinet6: Fix check for pktinfo outgoing ifindex in route cache lookup_route is only called for outgoing traffic, therefore check nh_ifp index instead of nh_aifp as specified by RFC3542 sec 6. Differential Revision: https://reviews.freebsd.org/D58544 (cherry picked from commit 7753a59fdf196fcbd8bb5706ad44bfc590bce0a9) M sys/netinet6/in6_src.c _____________________________________________________________________________________________________________ Commit: d3eedbcb799ded5d7aa811558f7d73de3c6fcb23 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=d3eedbcb799ded5d7aa811558f7d73de3c6fcb23 Author: Olivier Cochard (Fri 16 Oct 2026 05:40:03 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:40:18 GMT) ktls: Fix capability checks in ktls_reset_receive_tag() IFCAP2_RXTLS4 and IFCAP2_RXTLS6 are bit numbers, not masks, so ktls_reset_receive_tag() tested if_capenable2 against 0 for IPv4 and against the RXTLS4 bit for IPv6. An IPv4 connection with NIC receive TLS offload thus never got a new receive tag after its packets moved to another interface, and fell back to software decryption for good. c721694 fixed the same checks in ktls_alloc_rcv_tag(); use IFCAP2_BIT() here as well. Fixes: fe8c78f ("ktls: Add full support for TLS RX offloading via network interface.") Approved by: gallatin, kib Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D60757 (cherry picked from commit 32a981471c0147ea494745477434807cf8b6dadb) M sys/kern/uipc_ktls.c _____________________________________________________________________________________________________________ Commit: b953e80ac305349854aa2a2fe7cbf079da4ccbf0 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b953e80ac305349854aa2a2fe7cbf079da4ccbf0 Author: Olivier Cochard (Fri 16 Oct 2026 05:32:29 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:40:04 GMT) ktls: Take the receiving interface of each packet in sbappend_ktls_rx() sbappend_ktls_rx() read the receiving interface of each packet header it demotes from the chain's first mbuf, whose header it had zeroed on the first pass. A chain of two packets or more thus had no interface, and a change of input interface went unnoticed: the TLS receive tag stayed on the old interface until a later append of one packet. Read it from the packet being demoted, as the decrypted mark is. Fixes: fe8c78f0d202 ("ktls: Add full support for TLS RX offloading via network interface.") Approved by: gallatin Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D60758 (cherry picked from commit c9599b80015a50e66c907dc667334a53bc234dab) M sys/kern/uipc_sockbuf.c _____________________________________________________________________________________________________________ Commit: 7b8ddbd4a07de27c12319aad36750f4946ff12be URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=7b8ddbd4a07de27c12319aad36750f4946ff12be Author: Andrew Gallatin (Fri 22 May 2026 18:57:54 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:39:48 GMT) sendfile: Fix bug when using headers with SW KTLS offload When using SW KTLS, we must account for the headers in sf_iodone() in terms of either freeing or enqueuing them for TLS work. Not doing so can lead to a situation where we enqueue only the payload, and not the header, for encryption. Rather than leaking the header, the socket is left "hung" with the header marked M_NOTREADY. Sponsored by: Netflix Reviewed by: glebius, kib Differential Revision: https://reviews.freebsd.org/D57134 (cherry picked from commit fd9af1e7084c550358d9598407f9ee7583e6a53f) M sys/kern/kern_sendfile.c _____________________________________________________________________________________________________________ Commit: 349288bc0fbd6e7887ed58f85247cefed3e7dc1f URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=349288bc0fbd6e7887ed58f85247cefed3e7dc1f Author: Adrian Chadd (Mon 19 Oct 2026 01:34:46 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:38:43 GMT) iwn: fix TX QoS AC -> TID mapping for A-MPDU selection Map the packet QoS value to a TID before looking it up in the per node + TID AMPDU state array. The TX A-MPDU state used to be per-AC, but I changed it to be per-TID because it /is/ negotiated per-TID. However this is not aligned correctly and A-MPDU on eg the voice queue would cause a mismatch and thus packets to get dropped. (TIDs 8..15 are special and session based, not traffic QoS based.) I noticed this because "ssh host" failed after a while, but "telnet host 22" succeeded. It turned out that frames weren't making it to the driver transmit path and I traced it back to being dropped here. Traffic worked for a while until A-MPDU TX was negotiated, and then all traffic on a TID would fail until the 802.11 association was re-established. Locally tested: * iwn 6205, STA mode - forced traffic into VO AC/TID Differential Revision: https://reviews.freebsd.org/D60848 (cherry picked from commit c78d70298edef4c599b503536d193caeb8204784) M sys/dev/iwn/if_iwn.c _____________________________________________________________________________________________________________ Commit: b71d79c270ff7561838cd7dfd2abb8b000cd4d64 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=b71d79c270ff7561838cd7dfd2abb8b000cd4d64 Author: Adrian Chadd (Sat 17 Oct 2026 22:32:51 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:38:26 GMT) iwm: mask closed_rb_num to the RX ring size iwm_notif_intr() reads hw = le16toh(sc->rxq.stat->closed_rb_num) & 0xfff and loops while (sc->rxq.cur != hw) without masking hw to the ring size (512 entries for 9000-series MQ RX, 256 for legacy). If the hardware reports a value at or above the ring size, cur never equals hw: the loop walks stale ring entries indefinitely and the write-pointer update uses a bogus index. Linux iwlwifi masks the value (5eae443eb5e2) and OpenBSD has done the same since 9000-series support was added (3287dca4fa10). This was found while debugging an iwm crash on another BSD using the same driver lineage (DragonFly, upstream bug 3449) Locally tested: * 7260, 9260, STA mode PR: kern/299427 Submitted by: David Bidner Differential Revision: https://reviews.freebsd.org/D60824 (cherry picked from commit 461da47e45e7f8ef8754875f4820d3855e7f4097) M sys/dev/iwm/if_iwm.c M sys/dev/iwm/if_iwmvar.h _____________________________________________________________________________________________________________ Commit: 4ab772166ebea004bee73c84b6252241d68e48ce URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=4ab772166ebea004bee73c84b6252241d68e48ce Author: Kevin Lo (Mon 15 Jun 2026 02:43:57 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:37:59 GMT) mwl: return ENOMEM when rx buffer allocation fails The malloc() failure path returned error, which is 0 at this point, so callers would treat the allocation failure as success. Return ENOMEM instead to correctly propagate the out-of-memory condition. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D42282 (cherry picked from commit fa75c1cc242665d123ef5bf2f4ced2e076b35450) M sys/dev/mwl/if_mwl.c _____________________________________________________________________________________________________________ Commit: 6ff264d47f9970a1c6be03b48374110b56ef4ba5 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=6ff264d47f9970a1c6be03b48374110b56ef4ba5 Author: Adrian Chadd (Wed 1 Oct 2025 03:21:01 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:37:46 GMT) ath: fix ath_buf leak if ath_tx_tag_crypto() returns an error If ath_tx_tag_crypto() returns an error, then ath_tx_normal_setup() should consume the mbuf and return an error, so the caller knows to free the ath_buf. But it wasn't. This fixes issues I've seen locally where a an AP VAP constantly hits error conditions (due to other RF/PHY/MAC chipset issues which I haven't yet figured out) and encryption fails because the station goes away whilst something's being queued. Locally tested: * AR9380, AP mode (2G HT20, 5G HT20, 5G HT40) (cherry picked from commit f7aad20db59210a4411559d07976a48809b3b0a7) M sys/dev/ath/if_ath_tx.c _____________________________________________________________________________________________________________ Commit: a8c7eefc86bf0689f3ec8f4c9fd80328e0267d96 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=a8c7eefc86bf0689f3ec8f4c9fd80328e0267d96 Author: Navdeep Parhar (Thu 1 Oct 2026 17:16:10 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:37:05 GMT) cxgbev(4): verify the vendor id before claiming a device PR: 299002 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299002 ) Reviewed by: jhb Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D60203 (cherry picked from commit 5f275e547814db5944ff1ca746c31447a0896e1e) M sys/dev/cxgbe/t4_vf.c _____________________________________________________________________________________________________________ Commit: bbfcd780c0afb9e3392c579607fa13a25222bfa9 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=bbfcd780c0afb9e3392c579607fa13a25222bfa9 Author: Navdeep Parhar (Tue 10 Feb 2026 19:07:43 GMT) Committer: Kevin Bowling (Fri 30 Oct 2026 17:36:41 GMT) cxgbe(4): Fix assertion in timer calibration The calibration callout is stopped when the adapter is marked off limits but not when the adapter is merely stopped. Sponsored by: Chelsio Communications (cherry picked from commit afe55ae68e742ea5e5eb9e78cf68d570d458cd0d) M sys/dev/cxgbe/t4_main.c _____________________________________________________________________________________________________________ Commit: 86bb4e34d45faf42699de2534b8d4709820fa194 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=86bb4e34d45faf42699de2534b8d4709820fa194 Author: Navdeep Parhar (Fri 14 Nov 2025 07:45:59 GMT) Committer: Kevin Bowling (Fri 30 Oct 2026 17:36:16 GMT) cxgbe(4): Avoid racy access to requested_fec in sysctl_requested_fec PR: 289121 ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289121 ) Reported by: Qiu-ji Chen Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D52199 (cherry picked from commit b0cfa27c91c400dcf3e8441cc04f9e5300c7c3af) M sys/dev/cxgbe/t4_main.c _____________________________________________________________________________________________________________ Commit: 57ccd4ea288601e38e4798999d08e06e2ee9d656 URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=57ccd4ea288601e38e4798999d08e06e2ee9d656 Author: Faraz Vahedi (Sun 12 Jul 2026 19:48:36 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:35:39 GMT) vtnet: Retry feature negotiation without offloads A device is permitted to reject an otherwise valid subset of its offered features by refusing to accept FEATURES_OK (VirtIO v1.3, 2.2.2). Apple's Virtualization.framework does this in practice; it treats the offered CSUM/TSO offloads as all-or-nothing, while vtnet's default request contains only part of that group because of hw.vtnet.lro_disable that would drop the guest TSO bits, thus negotiation fails and the device does not attach. If FEATURES_OK is rejected, retry the negotiation once with every offload-related feature stripped. Changing the feature set after a failed FEATURES_OK requires re-initialising from device reset (VirtIO v1.3, 3.1.1), so the retry goes through virtio_reinit(). A NIC without offloads is preferable to no NIC at all. Devices that accept the initial feature set are unaffected, while those that also reject the reduced set continue to fail attachment as before. Signed-off-by: Faraz Vahedi Reviewed by: adrian Pull Request: https://github.com/freebsd/freebsd-src/pull/2322 (cherry picked from commit 5481c2d3ac1fc7682cdd184c7a797c0583e391c0) M sys/dev/virtio/network/if_vtnet.c M sys/dev/virtio/network/if_vtnetvar.h _____________________________________________________________________________________________________________ Commit: fee767cd85bba58a2fa389670e5afbe0e022c26a URL: https://git.freebsd.catflap.wales/src/stable-15/commit/?id=fee767cd85bba58a2fa389670e5afbe0e022c26a Author: Ryan Libby (Wed 15 Oct 2025 05:01:48 BST) Committer: Kevin Bowling (Fri 30 Oct 2026 17:35:03 GMT) mv88e151x: fix potential attach and autonegotiation issues Reported by: GCC -Wmaybe-uninitialized, -Wtautological-compare Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D45919 (cherry picked from commit 68501a93076ac095be7a96ecd55d15287c497c9d) M sys/dev/mii/mv88e151x.c ____________________________________________________________________________________________________________