FreeBSD git weekly: 2026-10-19 to 2026-10-25

Introduction

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

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

Table of contents and commits per category:

(0) Highlighted commits (these are copies, not in stats)
7 5.3% Userland programs
15 11.5% Documentation
31 23.7% Hardware support
18 13.7% Networking
21 16.0% System administration
2 1.5% Libraries
0 0.0% Filesystems
18 13.7% Kernel
4 3.1% Build system
2 1.5% Internal organizational stuff
0 0.0% Testing
5 3.8% Style, typos, and comments
6 4.6% Contrib code
2 1.5% Reverted commits
0 0.0% Unclassified commits
131 100% total
Technical notes about this page

debug: info about the automatic classification

num % num changed stage
2 1.5% 0 00-reverts
5 3.8% 0 01-style
18 13.7% 0 02-filenames_wildcards
67 51.1% 0 03-filenames_plain1
32 24.4% 0 04-filenames_plain2
3 2.3% 0 05-summary-prefix
4 3.1% 0 Manually-classified commits
0 0.0% 0 Unclassified commits

debug: more stats

num % stage
0 0.0% Misclassified commits
127 96.9% Classified commits, no corrections

debug: groups

2 1.5% num in revert
2 1.5% num in fixes
29 22.1% num in consecutive
33 25.2% Commits in groups

Highlighted commits

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

-- no commits in this category this week --

Userland programs

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

diff: diff regular files when `-q` is specified again
c30a321a61ce accidentally modified the code paths when diffing regular
files to not diff them if `-q` was specified. Call `diffreg(..)` again,
regardless of whether or not `-q` was specified to restore the
functionality pre-c30a321a61ce, while only printing out the result to
the console if `-q` is not specified.

This change unbreaks diff so 2 files which differ are reported again via
the exit code when with `-q` is specified.

MFC after:      3 days
PR:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299643
Reviewed by:    des
Differential Revision: https://reviews.freebsd.org/D60910
Fixes: https://cgit.freebsd.org/src/commit/?id=c30a321a61ce ("diff: support -qq to output absolutely nothing")
ec1754a677a0bebb735d752583ad625150114eee Enji Cooper 2026-10-20 17:37:12

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

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: https://cgit.freebsd.org/src/commit/?id=bb5c77e9d281 ("OpenSSH: Update to 10.4p1")
Differential Revision:  https://reviews.freebsd.org/D60922
2d6f961164e4ab7e823972336dc9cfaae6a88ed8 Osvaldo Janeri Filho 2026-10-20 19:11:32

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

Commit group #0: mkimg
mkimg: Use reallocf

Reviewed by:    ngie
Suggested by:   ngie
Improves:       1a0523197c5c ("mkimg: Check for realloc failure")
MFC after:      1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60419
38407c46ded957a2ecb7fe2a0dca6c4ac8e802f3 Colin Percival 2026-10-06 20:01:39

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


mkimg: Don't ignore invalid partition offsets

When handling PART_KIND_FILE, the "error" variable is set to reflect
any errors in parsing the specified offset; but that value is then
overwritten by the return value of image_copyin.

Error out immediately instead.  Note that it is not necessary to change
the code in PART_KIND_SIZE which parses the size, since in that case we
do not overwrite the value in "error".

Fixes:          https://cgit.freebsd.org/src/commit/?id=8f3c71c85e5f ("mkimg: Add support for offset if the source is an image")
MFC after:      1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60422
e7f84fe6cfac2de3471e4912b1ac82023976ccfa Colin Percival 2026-10-06 21:22:07

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


mkimg: Add per-partition alignment

This adds a "%align" field to partition specifications, resulting in
the start of a partition being shifted to the next aligned position.
When both :offset and %align are used, a relative offset is treated as
a minimum value, while an unaligned absolute offset is an error.

Reviewed by:    imp (earlier version)
MFC after:      1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60450
729883c93e7fd89a4b88e8b9a7ef42938a431efa Colin Percival 2026-10-07 21:51:26

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

mkimg: Remove duplicate variable assignment
Fixes:        https://cgit.freebsd.org/src/commit/?id=459a61fd2d0a ("Add the ability to specify absolute and relative offsets to size partitions.")
MFC after:      1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60452
1485ee74f81039cfdccd294440813a1a2badfc0b Colin Percival 2026-10-08 00:09:09

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

mkimg: Ignore redundant %align values
Partitions are trivially aligned to sector boundaries, so asking e.g.
for a partition to be aligned to a 64-byte boundary is pointless but
harmless.  Treat it as such, with a warning (in case the request was
a mistake, e.g. requesting 1-byte instead of 1M-byte alignment) rather
than as an error.

Reviewed by:    markj
Suggested by:   markj
MFC after:      1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60819
da04cf02c96b97c587580b336fa527392467f689 Colin Percival 2026-10-17 19:14:16

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

Documentation

Man pages, release notes, etc.

pmc.perf.3: Mark only for amd64 architecture
Manual pages have an optional architecture specifier after the section
number in the document title macro. I highly recommend using it when
expedient, the extra information is available programmatically and it
uses no extra lines in the rendered page.

MFC after:              No, pmc.perf.3 is not MFCing
Reviewed by:            Anderson Nascimento <anascime@amd.com>
Differential Revision:  https://reviews.freebsd.org/D60714
daca1e12bb99e795bf96b6ef4d069fd35c85ddac Alexander Ziaee 2026-10-19 19:15:57

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

networking.7: Scope netif to wlan0
I recently learned that you can restart just wlan0 instead of the entire
netif, which will save you when doing on-device networking like bhyve,
or activting wlan0 when it is booted parked via rc.conf's NOAUTO.

MFC after:              3 days
Reviewed by:            bz, bcr
Discussed with:         emaste
Differential Revision:  https://reviews.freebsd.org/D59586
d2df0d4eb5c0e9915abf8c96c22adb051d33cbe2 Alexander Ziaee 2026-10-19 19:16:17

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

armv8crypto: Canonicalize document description
MFC after:            3 days
Reported by:            fuz
Reviewed by:            fuz
Differential Revision:  https://reviews.freebsd.org/D59730
36804775d3541266d721d2549d05e74fc160a8cf Alexander Ziaee 2026-10-19 19:17:52

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

ossl.4: Canonicalize HARDWARE and add powerpc64
This driver now supports powerpc64, so add that to the list of supported
hardware. Further, rewrite that list into the canonical HARDWARE section
for inclusion in the FreeBSD 16.0 Hardware Release Note.

markj notes that it would be useful to list the CPU features required
for this driver to be usable on these platforms. ngie notes that this
would be good as a table.

Fixes:  https://cgit.freebsd.org/src/commit/?id=5daf8ed625af ("Add GCM support on powerpc64/powerpc64le")
MFC after:              the above was scheduled to but has not mfc yet
Reviewed by:            ngie
Differential Revision:  https://reviews.freebsd.org/D59770
067c6da5ce046e24024f27fa2be7270929865ed3 Alexander Ziaee 2026-10-19 19:17:57

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

termios.4: clarify the behavior on the last close of controlling terminal
Reviewed by:  kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60701
44961edac85505ddd7d6670b8e0bfba9cbb7c70b Vladimir Grebenshchikov 2026-10-13 23:04:27

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

mkimg.1: Document new %align mechanism
Reviewed by:  imp (earlier version)
MFC after:      1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60451
b063ea64c72e075f593d0429739881df304ccd56 Colin Percival 2026-10-07 21:55:47

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

find.1: rewrite the -s flag section for clarity
Restructure the description of -s flag:
1. what the option does
2. why it is useful (deterministic order, streaming output)
3. how its results can differ from `find | sort'

Reviewed by: ziaee
MFC after: 3 days
ad0f86694157c998fec500e9a553550976cbc100 Wolfram Schneider 2026-10-22 08:50:56

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

pdfork.2: improve markup
Sponsored by: The FreeBSD Foundation
MFC after:      3 days
cf63e3f3cd8e37a84bb80c9944e5a8e004a58286 Konstantin Belousov 2026-10-23 18:16:45

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

locate.1: clarify bytes vs. characters
The database stores bytes, not characters. Remove the historical
note about 7-bit storage. Also document that -i ignores case only
for ASCII letters.

Reviewed by: ziaee
MFC after: 3 days
a03b051f238eb78cfccbe834b0cc206e66d566e5 Wolfram Schneider 2026-10-24 10:12:05

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

df.1: Fix unusual Xr order
51a531151a111f31d37aaf69302d4e3ebfb11c5d Wolfram Schneider 2026-10-25 11:32:12

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

ps.1: Fix unusual Xr order
14680d205c4c6967c89b49af79478b3756965ec2 Wolfram Schneider 2026-10-25 11:36:15

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

Commit group #1: manpages
manpages: Fix unusual Xr order
741197267eb5038351079e8e125c04d3401ebb16 Wolfram Schneider 2026-10-25 11:51:42

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


manpages: Fix unusual Xr order
3f4743d657785dcc5b06ada4aefde225d6350b39 Wolfram Schneider 2026-10-25 11:57:18

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


manpages: Fix unusual Xr order
44a5cf137230ea9c0fcb33fb2a03700be4efd365 Wolfram Schneider 2026-10-25 12:02:00

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


manpages: Fix unusual Xr order
f7114dc7b7b6c2b1ae72a742fcd344e3ae39f876 Wolfram Schneider 2026-10-25 12:06:08

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

Hardware support

Hardware drivers and architecture-specific code.

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

MFC after: 1 week

Differential Revision:  https://reviews.freebsd.org/D60848
c78d70298edef4c599b503536d193caeb8204784 Adrian Chadd 2026-10-19 00:34:46

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

Commit group #2: nvme
nvme: add a timeout for Format NVM commands

Format commands need a longer timeout.

Reviewed by:            seuros, chuck
Differential Revision:  https://reviews.freebsd.org/D59827
5258b44e845a7ccdc3e07a9244e77dc100feedca Warner Losh 2026-10-19 04:38:14

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


nvme: support per-request timeouts

Allow different timeouts per command.

Reviewed by:            seuros, chuck
Differential Revision:  https://reviews.freebsd.org/D59828
1c31ef40e185a09c030d53640f6ebc71bb0c830f Warner Losh 2026-10-19 04:38:45

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


nvme: honor Linux passthrough command timeouts

Now that we have per-command timeouts, allow linux-compat ioctls to have
a passed-in timeout.

Reviewed by:            seuros, chuck
Differential Revision:  https://reviews.freebsd.org/D59829
15cd8528b1964e646ed8d2282c42f5fe00b72ed2 Warner Losh 2026-10-19 04:39:16

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


nvme: Refactor namespace notifications for additions

When we add a namespace, we have the code inline to do the
notifications. Refactor ahead or reuse.

Reviewed by:            seuros
Differential Revision:  https://reviews.freebsd.org/D59831
66c24c94323ae36f2132c60bc2788ab70b60f224 Warner Losh 2026-10-19 04:40:45

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


nvme: Notify namespaces on reset sometimes

When we're resetting after a controller failure, and we fix the failure,
and we've not resetting as part of initialization, notify the all the
children devices of new namespaces. When we failed the controller
before, we removed all the namespaces.

Reviewed by:            seuros
Differential Revision:  https://reviews.freebsd.org/D59832
e65ccec8c0e359f584b2948c100ee3012e43c6e7 Warner Losh 2026-10-19 04:41:00

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

Add loongarch64 as an optional boot-test.sh arch
D59889 brings up a FreeBSD/loongarch64 EFI loader, none of it in
this tree yet. Add a disabled config entry (excluded from -A, usable
via -a once the port lands) using the confirmed QEMU virt/la464
recipe; hw/loongarch/virt.c defaults to virtio-blk/net, so the
existing generic EFI+GPT builder needs no arch-specific QEMU code.

loongarch64 has never had a FreeBSD release, so
install_minimal_userland's ISO extraction can never find one. Split
it into ISO and installworld-cross-build paths, selected by a new
no_release capability, so archs without a release can still get a
minimal userland.

Differential Revision:  https://reviews.freebsd.org/D59923
041802b362aab8786419618ead6e50c389eb875a Warner Losh 2026-10-19 07:03:19

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

sound examples: trigger dsp devices via syncgroup
Triggering is only needed if device is in mmap mode, and in mmap example
the device is triggered as part of syncgroup. For non-mmap mode,
triggering is not needed at all. Triggering mmap'ed device too early
would start the IPTR/OPTR counters and that would cause those pointers
to be out of sync, so let syncgroup do the triggering once the device is
fully configured and ready for capture and playback.

MFC after:      1 week
Reviewed by:    christos
Differential Revision:  https://reviews.freebsd.org/D60839
d3aa926bffd20e4ef0e12e3ee9af1707ad234cda Goran Mekić 2026-10-19 08:59:36

debug: classified in 05-summary-prefix by 'sound examples:'

uart: support Meteor Lake-P LPSS UART 0
Recognize Intel 8086:7e25 using 32-bit MMIO with a four-byte register
stride. Deassert the LPSS functional resets and program the 100 MHz
reference clock divider for a 44.2368 MHz UART clock before the UART
core claims the register window, and reprogram both on resume.

Reviewed by:    imp, adrian
Differential Revision:  https://reviews.freebsd.org/D60858
b37e8ffbd9d4c46c4dc36842a9721fa766e0e61e Abdelkader Boudih 2026-10-19 15:14:58

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

intel: add a shared header for the LPSS private registers
The Intel Low Power Subsystem wraps its I2C, SPI and UART functions in a
block of private registers that control the functional clock and the
function and DMA resets.

Refactored to use a single header

Reviewed by:    imp, adrian
Differential Revision:  https://reviews.freebsd.org/D60859
6690cbdc649e7d0b23d96e1490b72068fc791a95 Abdelkader Boudih 2026-10-19 15:15:09

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

amd64: Don't probe MSR_IRPERF when running under bhyve
vmm doesn't implement it, and bhyve simply aborts.  I fixed this in
commit c83e075d72f6, but it'll still be impossible to boot newer FreeBSD
guests on older hosts without this workaround.

Reviewed by:    adrian
Fixes:          https://cgit.freebsd.org/src/commit/?id=2272fac218a8 ("hwpmc: Add support for AMD-only IRPERF in hwpmc PERF class")
Differential Revision:  https://reviews.freebsd.org/D60730
32f7bddb443ad7ddc72fa65ab0eb3a3658703cc7 Mark Johnston 2026-10-19 13:59:41

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

rk_spi: Do not change the clock with the driver lock held
The clock framework can sleep, it takes the clock topology sx lock.  Calling
clk_set_freq() and clk_get_freq() from rk_spi_hw_setup() with the driver
mutex held triggers a witness warning about a sleepable lock acquired after
a non-sleepable one, on the first transfer that raises the clock.

Set the clock in a new function that is called before taking the lock, and
only keep the register setup under the lock.
6aa2c651df0b0d9e0f8693dbab09d11ecea8e1f8 Emmanuel Vadot 2026-10-20 11:35:59

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

wg: fix the LINT-NOIP build
We don't have anything to tunnel without INET or INET6, so just smack
it with the same config(5) hammer that ovpn uses and exclude it from
such builds.

Reported by:    mjg
Reviewed by:    emaste, markj
Differential Revision:  https://reviews.freebsd.org/D60896
8430de47aa7c004e1330b8f6a3018c360425606e Kyle Evans 2026-10-20 14:34:03

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

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
a11b901f5a46de33d53899200744252424a37efe Hans Rosenfeld 2026-10-20 15:11:52

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

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
ebf1041fc854c531a27efd9f979e28d57306777d Mark Johnston 2026-10-20 15:30:38

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

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:          https://cgit.freebsd.org/src/commit/?id=ff326a187907 ("x86: Restore the critical section around ...")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60861
b83bd6fec075f4acf614283cd66a691111847881 Olivier Certner 2026-10-13 14:32:15

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

Commit group #3: x86: ipi_bitmap_handler(): Account for IPIs correctly on COUNT_IPIS
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:          https://cgit.freebsd.org/src/commit/?id=ff326a187907 ("x86: Restore the critical section (...)")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60862
3a0e2ca3eecd3176fa7dd139e59913a67c858ac9 Olivier Certner 2026-10-13 14:46:26

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


x86/mp_x86.c: unbreak COUNT_IPIS

Fixes:  https://cgit.freebsd.org/src/commit/?id=3a0e2ca3eecd ("x86: ipi_bitmap_handler(): Account for IPIs correctly on COUNT_IPIS")
40582412d3fc6c68bb5c90fa7878998ba7f799e3 Konstantin Belousov 2026-10-20 20:42:00

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

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:          https://cgit.freebsd.org/src/commit/?id=9d5a22b928c2 ("MFp4: SMP support")
Fixes:          https://cgit.freebsd.org/src/commit/?id=12640815f815 ("MFp4: SMP support")
Fixes:          https://cgit.freebsd.org/src/commit/?id=7ed09a6778d3 ("powerpc: Rework IPI message processing")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60863
07ab87b60d08c665eab0b187e81a239145f9961d Olivier Certner 2026-10-17 17:38:59

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

arm64: Fix EFI runtime mappings with 16K pages
Map complete EFI descriptor ranges at the kernel page granularity
and merge compatible entries when 4K EFI regions share a kernel page.
Preserve execution when any sharing region requires it and reject
conflicting mapping attributes without panicing.

This gets my small N1 booting with 16K pages.

Reviewed by: chs, imp
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D60749
ef7d7011ce2fa48ab072c5e802ac00ccb25c4c48 Andrew Gallatin 2026-10-20 18:54:01

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

nvme: Fix default is_storage_device kobj method
makeobjops.awk only accepts an uppercase DEFAULT before a default kobj
method. This commit fixes a typo introduced in 949804c81909 so non-PCI
drivers actually use nvme_is_storage_device_default instead of
kobj_error_method. Note that even though kobj_error_method returns
ENXIO (6), it does not get implicitly cast to a bool due to the function
pointer casting in the nvme_if.h generated by makeobjops. Instead the
codegen for the NVME_IS_STORAGE_DEVICE callsite shows that only the
lowest bit is being checked as if it were always a bool. Without this
any nvme driver that doesn't implement is_storage_device is not treated
as a storage device.

Reviewed by:    imp, kevans
Differential Revision:  https://reviews.freebsd.org/D60112
775e421dc38f18fa6b7fdc7b214a013cca44b58b Ayrton Munoz 2026-10-22 16:40:50

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

fdt: Support SCMI shared memory under reserved-memory nodes
Add a simplebus-based pseudo-bus that matches the "reserved-memory"
node in the device tree.  Update the SCMI shared memory driver so that
it can attach either as a child of mmio_sram or directly under
simplebus (via the new reserved-memory bus). Make the mmio_sram memory
resource shareable so both attachment methods can coexist when required.

MFC after:      1 week
Reviewed by:    manu
ffcd78861eda41d5ff00a39120f46dbbe8f814b5 Michal Meloun 2025-12-06 16:50:36

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

ixl(4): Fix NVM update API
Driver provides an interface for tools operating on adapters'
Non-Volatile Memory using SIOC(G|S)DRVSPEC ioctls. It allows
tools to issue Admin Queue commands to the firmware, which
may return an error code encoded as a negative integer.
The driver passed this negative integer as the return value
of the ioctl handler. This was causing issues because the FreeBSD
kernel reserves negative error codes in system calls for special
purposes such as restarting the handler or detecting incorrect
behavior in VFS operations. Simple remapping of negative values
to positive integers caused currently available tools to misbehave
and could break the NVM update process. Introduce a new API version,
which allows new versions of tools to detect the fixed driver.
Temporarily keep the old API, but issue a warning that tools need
to be updated.

Also refactor the code to use centralized cleanup and move the
debug message from the firmware earlier to make sure it is not masked
by an error from copyout.

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

Tested by:      Mateusz Moga <mateusz.moga@intel.com>
MFC after:      2 weeks
Assisted by:    Copilot GPT 5.4
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D57942
8e55febde6b54685fe24c8b48ed6720bae97c491 Krzysztof Galazka 2026-10-05 09:22:10

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

Commit group #4: smsc
smsc: Remove phy address check in smsc_miibus_writereg

The driver only allowed writes to the expected phy (i.e., sc->sc_phyno),
and reads were never filtered.  sc_phyno is already passed to
mii_attach() as phyloc, so nothing tries to issue MDIO writes to other
addresses and the check is not required.

Remove the check in advance of supporting external PHYs at arbitrary
addresses.

Tested on Microchip's EVB-LAN9500A-LC LAN9500A evaluation board.

Sponsored by:   The FreeBSD Foundation
Sponsored by:   Microchip (Hardware)
Differential Revision: https://reviews.freebsd.org/D60743
13011cbf7d80cd1554d87296225ceccb3f7524b4 Ed Maste 2026-10-15 13:31:41

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


smsc: Support external PHY

SMSC_HW_CFG_PSEL indicates that an external PHY is present. Skip the
internal PHY initialization when set and store the ID of the detected
PHY.

Reviewed by:    br
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60744
dc4c75c9a3c3611af451da13990e49e267551475 Ed Maste 2026-10-14 01:04:24

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


smsc: Use read-modify-write to configure LEDs

After reset the driver enables three LED outputs by writing 1s to
the appropriate GPIO/LED configuration bits in the LED & GPIO
configuration register LED_GPIO_CFG.

The LED Select (LED_SEL) bit in LED_GPIO_CFG chooses between two LED
modes:

0: Speed, Link+Activity, Full Duplex
1: Speed, Link, Activity

If an EEPROM is present LED_SEL is initialized from bit 1 in the
EEPROM's configuration flags value.  If no EEPROM is present this bit
defaults to zero.

Previously we wrote to all bits in the register, clearing LED_SEL.  A
device with LED_SEL set by the EEPROM would thus not have correct LEDs.

Now we read the current value of LED_GPIO_CFG and just set the three
LED configuration bits, as Linux does in commit 52a2f0608366 ("net: usb:
smsc95xx: fix changing LED_SEL bit value updated from EEPROM").

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D60828
10ceddaa94d5b234dde897a3eb90ca57700636d8 Ed Maste 2026-10-16 17:52:04

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

amdsmu: Don't rely on s0i3_last_entry_status metric
This metric seems unreliable and I have observed it occasionally report
1 (successful entry to S0i3) when the time_last_in_s0i3 metric was 0 on
Phoenix, which does not make sense.

So just rely on time_last_in_s0i3 instead.

Sponsored by:   The FreeBSD Foundation
cb77c4e846d420af4d7d43f6616da213689a734b Aymeric Wibo 2026-10-23 23:56:58

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

arm64 linux: Allow FUTEX_REQUEUE on arm64 by setting the brand flag
Better change is to provide the dedicated musl brandinfo, as it is done
on amd64/i386, which should be done later.

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

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

smsc: Allow 10BASE-T1L/-T1S media
These are Single-Pair Ethernet types (SPE) from 802.3cg. smsc sets the
link flag only if mii_media_active is one of a known set of media types.

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D60745
81f86c9a9417d7ad7445d46739e19a26ab916e6b Ed Maste 2026-10-14 17:12:34

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

x86: make machine/sysarch.h usable from assembler
Sponsored by: The FreeBSD Foundation
MFC after:      1 week
dc1514eda55c5a2439cb5b8fa5c08e78468b7d3b Konstantin Belousov 2026-10-25 01:49:59

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

snd_hda: Identify AMD Audio Coprocessor
This makes the driver attach, but the device is still not usable.

Reported by:    Lukasz Wencki <lukasz@smail.net.pl>
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
8dac0bdb4df0815e14db219e9a7fb5d0be5737b8 Christos Margiolis 2026-10-25 10:21:20

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

Networking

Network-related commands, library, and kernel.

iflib: Pass up the frames received before a descriptor error
When the driver's isc_rxd_pkt_get() fails part way through a receive
pass, iflib_rxeof() jumps straight to the reset request.  The frames it
already took off the ring and chained for if_input() are neither passed
up nor freed, so up to budget - 1 frames are lost and their mbufs and
clusters leak on every such error, and the frames queued to LRO in the
pass wait for the next one.  Leave the loop instead, pass the chain up
and flush LRO as on the normal exit, then request the reset as before,
without refilling.

The path is reachable from several drivers: igc, em, igb and ixgbe
return EBADMSG for frames received with errors, which the hardware
passes up only with store-bad-packets enabled; ixl, iavf and ice for
every descriptor flagged RXE; aq, enetc, mgb and enic for descriptors
they cannot use.

Reviewed by:            gallatin
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D60805
bdaddb76ef1b9d5537f4a76cff01cdb4795804a4 R. Christian McDonald 2026-10-19 01:06:41

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

ng_pppoe: fix m_pullup() logic
The clear intent here is to do m_pullup() if we _don't_ have two bytes.
Before the fix: a) m_pullup() was always called and did nothing; b) if a
node was ever supplied with a fragmented but otherwise correct mbuf, then
it would not handle PROT_LCP as intended.

Noticed by:             zlei
Reviewed by:            zlei, eugen_grosbein.net
Differential Revision:  https://reviews.freebsd.org/D60788
Fixes:                  https://cgit.freebsd.org/src/commit/?id=28903f396af4b151e16ea606cda66a9244fb179f
4c72b1c36dda72b9ba8de593cac2c94e15f42bcf Gleb Smirnoff 2026-10-19 17:30:43

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

net*: use inlined m_pullup()
Leverage the fact that m_pullup() in an inline function in mbuf.h and let
compiler to do all optimizations.

Mostly mechanical changes, but in few cases surrounding lines are brought
to style(9).  In netinet6, a few input functions changed to set the
input/output `struct mbuf **` pointer to NULL at a single place.

Reviewed by:            pouria, zlei, gallatin
Differential Revision:  https://reviews.freebsd.org/D60689
41356c80179c708b6a49eabf1be9cedd6bca4444 Gleb Smirnoff 2026-10-19 17:32:00

debug: classified in 03-filenames_plain1 by '['sys/net/', 'sys/net80211/', 'sys/netgraph/', 'sys/netinet/', 'sys/netinet6/', 'sys/netipsec/', 'sys/netpfil/']'

ipfw: gc disabled old hashing code
This code was disabled for 8 years already.  It used to produce very
predictable hash without a salt, and that made the dynamic state engine an
easy DoS attack vector.  No chance we will ever use it again.
bc9e66886a2537d4536e24353669ef1a21105b70 Gleb Smirnoff 2026-10-19 17:32:15

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

ipfw: keep flag(s) definition next to member that holds them
f2bba019216648c634a41ac4381fc62801905c41 Gleb Smirnoff 2026-10-19 17:32:21

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

inpcb: make ipport_randomized static
4488a4f0486c1c766f5e9498a524c379a5ad7add Gleb Smirnoff 2026-10-19 19:41:58

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

pflow: Destroy exporters on module unload
Since 83641335f96c only jail removal destroys exporters.  Unloading
pflow with one left trips the assertion in vnet_pflowdetach() or,
without INVARIANTS, leaves pf calling into the freed module the next
time it removes a state that pflow exports.

Reviewed by:    kp
Fixes:          https://cgit.freebsd.org/src/commit/?id=83641335f96c ("pf: clean up pflow sockets on jail removal")
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")
c91539772b07cb78369626716a4ddf92cf6caa5f R. Christian McDonald 2026-10-19 20:18:25

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

pf: Keep every chunk of a table that a ruleset defines
libpfctl sends a table definition in chunks of 256 addresses, each as
its own PFNL_CMD_INA_DEFINE.  The kernel treated every chunk as a new
definition and replaced the shadow table, so only the last chunk
survived.

Mark the chunks after the first with PF_ID_APPEND and have the kernel
add them to the shadow table in progress.  A request without the
attribute still replaces the shadow; one with it and no definition in
progress fails with EINVAL.  Old kernels ignore the attribute, so both
halves are needed; the ioctl sends all addresses at once and is not
affected.  Mask the flags userland passes to PFR_FLAG_ALLMASK, as
PFR_FLAG_APPEND is kernel-internal.

Add a test that defines a table of 1,000 addresses, also in an anchor.

Reviewed by:            kp
Fixes:                  https://cgit.freebsd.org/src/commit/?id=219ce3063840 ("pf: convert DIOCRINADEFINE to netlink")
Sponsored by:           Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D60876
a3173175193e111f2a92c999842bc3cfbcc2d945 R. Christian McDonald 2026-10-20 12:45:35

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

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
f69099fc0fc55262741621451a52de50f164271a Ed Maste 2026-05-11 20:27:40

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

tcp: refactor tcp_autorcvbuf() and associated sysctls
Run the entire function under the socket buffer lock.  Make it responsible
to set the new limit or clear SB_AUTOSIZE in case of a failure.  Use
unsigned type for newsize, that matches both the sb_hiwat type and min()
argument types.  Make byte counter in the tcpcb unsigned, too.  Make the
sizing tunables unsigned, and make the switching tunable a boolean.  Don't
execute Dtrace probe in case of a failure.  Simplify the Dtrace probe to
report only relevant information, the previous probe looked more like a
leftover from a debugging session.

Reviewed by:            tuexen
Differential Revision:  https://reviews.freebsd.org/D60731
04cd9bca4dab67c45292c59bbf6d78ce66fc5628 Gleb Smirnoff 2026-10-22 03:27:36

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

Commit group #5: tcp: refactor tcp_autosndbuf() and associated sysctls
tcp: refactor tcp_autosndbuf() and associated sysctls

Rename tcp_sndbuf_autoscale() to tcp_autosndbuf().  This matches
complementary tcp_autorcvbuf() that was factored out as a separate
function a few months before tcp_sndbuf_autoscale() was.  Move the large
comment to the header of the function.  Use unsigned types for all sizing
sysctls and variables and use bool for the switching sysctl.  Add a
comment above net.inet.tcp.sendbuf_auto_lowat (default to off) providing a
reference to its origins.  Add DTrace probe tcp::send-autoresize,
complementary to the existing tcp::receive-autoresize.

Rack has its own function, just enable the DTrace probe there.

Reviewed by:            tuexen
Differential Revision:  https://reviews.freebsd.org/D60732
7146ad04f18e7f0767a4d44cff43c1c67ea98cec Gleb Smirnoff 2026-10-22 03:27:47

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


tcp: fix incorrect assertion

tcp_autosndbuf() asserts that the buffer is locked, but it should assert
this about the send buffer, not the receive buffer.

Fixes:          https://cgit.freebsd.org/src/commit/?id=7146ad04f18e ("tcp: refactor tcp_autosndbuf() and associated sysctls")
Reviewed by:    tuexen
Sponsored by:   Rubicon Communications, LLC ("Netgate")
c7523e8cfbd0fa8f8a9dc6c8864bf138b7cffde8 Kristof Provost 2026-10-22 13:38:31

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

ipfw: hold sleepable "upper half lock" for periodic state expiry
The state expiration may lead to freeing rules, which requires this lock.
Since the lock is sleepable, move the expiry routine from callout context
to a taskqueue.  This also should have a positive effect of not running
expensive function as a callout.

Fixes:  https://cgit.freebsd.org/src/commit/?id=e3caa360d5d0a73af0de1d293d5b8ff6e900ceb4

Reviewed by:            pouria
Differential Revision:  https://reviews.freebsd.org/D60869
331333ba0186fe43cbd5256c305c41ffb2748692 Gleb Smirnoff 2026-10-22 03:28:57

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

icmp6: make icmp6_notify_error() more readable
Remove a level of indentation, improve line breaks, remove single use
variables.  No functional change.
abb8b02550c3313d846c15167755f699388a4731 Gleb Smirnoff 2026-10-21 20:49:17

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

udp: in_pcblookup() never returns a freed inpcb
49548ea75c91893f9a30b35abb122b2fff9274f0 Gleb Smirnoff 2026-10-21 21:32:15

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

inpcb: inp_next() never returns a freed inpcb
9c67d6ed9632e180e95bebabc5a8ceae7f22ce1a Gleb Smirnoff 2026-10-21 21:36:01

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

sctp: Allow to ignore iface type when determining address scope
Scope restriction by loopback interface was not specified in
the draft-stewart-tsvwg-sctp-ipv4 draft and having global address
on loopback interface is common.
Therefore, allow to skip loopback interface type check in sctp.

Reviewed by:    tuexen
Differential Revision:  https://reviews.freebsd.org/D60938
3200a274272d28cf6d2385a8ea46959f313866de Pouria Mousavizadeh Tehrani 2026-10-21 15:53:51

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

iflib: Do not pull up trailing IPv4 fragments to the L4 header
iflib_parse_header() pulls every IPv4 packet up to the end of the TCP or
UDP header, including fragments at a non-zero offset, which carry no L4
header at all.  A trailing fragment shorter than that header (1-7 bytes
of UDP, 1-19 bytes of TCP) makes m_pullup() fail and the frame is freed
without a trace in the interface counters.

Only parse the L4 header on the first fragment.  TSO never produces
fragments, so assert that.

With a 1500-byte MTU every UDP datagram of 1473-1479 bytes is lost
behind a forwarding host whose ingress NIC sets receive checksum flags,
or on any VLAN with hardware tagging.  SIP over UDP is a common victim.

Reported by:    Alex Roberts
Reviewed by:    gallatin
Fixes:          https://cgit.freebsd.org/src/commit/?id=c224b2ce7de0 ("iflib: don't pullup UDP payloads to the TCP header size")
See also:       https://redmine.pfsense.org/issues/17196
MFC after:      3 days
Sponsored by:   Rubicon Communications, LLC ("Netgate")
f1726686cb31ff141e507760124f44442c9f141a R. Christian McDonald 2026-10-23 18:28:29

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

System administration

Stuff in man section 8 (other than networking).

Commit group #6: nvmecontrol
nvmecontrol: select format by sector size

Add automatic selection of lbaf value based on a single sector size. The
lbas (the data sector size) is selected based on the power of 2 in the
sector size, and the metadata size is selected by the remainder. If an
lbaf matches these values is used, otherwise we exit with an error.
When there's a tie, we prefer the higher performance.

Manual selection of these values remains as well for times when we
select incorrectly.

Reviewed by:            seuros, chuck
Differential Revision:  https://reviews.freebsd.org/D59833
4623bbfe7bfc81d2626a5c2a7a5cfb2ff15c0360 Warner Losh 2026-10-19 04:42:12

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


nvmecontrol: support controller-wide sector sizes

Extend sector-size selection to controller-wide formats when every
namespace has one compatible format index and matching effective
metadata and protection settings. Reject ambiguous or inconsistent
layouts so heterogeneous fleets can request a sector size without
risking an unintended controller-wide format.

Reviewed by:            seuros, chuck
Differential Revision:  https://reviews.freebsd.org/D59834
b991e2dd824cc6a120a346a183837875ff75b66d Warner Losh 2026-10-19 04:42:43

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


nvmecontrol: add format dry-run support

Add -n/--dry-run to resolve and print the Format NVM command without
submitting it. This lets users verify namespace selection and format
parameters before making destructive media changes.

Reviewed by:            seuros, chuck
Differential Revision:  https://reviews.freebsd.org/D59835
3b66efc6e9b8999053f11a449056fad5ebc1c1ac Warner Losh 2026-10-19 04:43:00

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


nvmecontrol: Use admin device for admin-passthru

When we're doing admin-passhtru, we need to use the admin device, not
the namespace device. So when we're passed in ndaX or nvdX, we need to
translate that to nvmeY for this command for the admin-passthru command,
but not the io-passthru command. Note namespace nuance in man page.

Differential Revision:  https://reviews.freebsd.org/D59878
bf3726998fc7655fa116dd99be24842407d8263b Warner Losh 2026-10-19 04:43:09

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


nvmecontrol: Fix mixup between pi and pil

pi and pil were extracted from the incorrect place. Swap how we get/set
there to be correct. However, since these are always 0, this is a nop.
ee96770ee37591d5fc9f7ee39aa1386636e8dc8d Warner Losh 2026-10-19 06:19:17

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

bhyveload: Factor global variables into a software context
This will make it easier to port bhyveload's functionality into the main
bhyve executable.

No functional change intended.

Reviewed by:    novel
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D60481
55d0e022fbcd83ec5a29fe5751af85e2c3ebf19b Mark Johnston 2026-10-19 13:45:36

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

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:          https://cgit.freebsd.org/src/commit/?id=054accac71e0 ("Add a virtio-input device emulation.")
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60679
f1986e5b88630b1404a202251499bca0f97f5f06 Mark Johnston 2026-10-19 13:54:33

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

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:          https://cgit.freebsd.org/src/commit/?id=f81cdf24ba54 ("bhyve: Add support for XML register definitions")
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60847
5ce0ab7355264d38fcde4684f0a64347ec0f5234 Osvaldo Janeri Filho 2026-10-19 18:53:05

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

pfctl: Report the error of a failed fingerprint flush
pfctl_flush_fingerprints() returns an error number instead of setting
errno, so a failed flush was reported with whatever errno held: "No
error: 0" on a kernel with ALTQ, ENODEV from the ALTQ probe on one
without.  Every "pfctl -f" flushes the fingerprints first, so on a
kernel that predates PFNL_CMD_OSFP_FLUSH every ruleset load fails this
way without saying why.

Reviewed by:    kp
Fixes:          https://cgit.freebsd.org/src/commit/?id=75c0a8376204 ("pf: convert DIOCOSFPFLUSH DIOCOSFPGET DIOCOSFPADD to netlink")
Sponsored by:   Rubicon Communications, LLC ("Netgate")
1594fbd7f2f4c1af3262d1abd8cb100be2fed414 R. Christian McDonald 2026-10-19 18:44:09

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

pfctl: Report why a table definition failed
pfctl_ina_define() returns an error number instead of setting errno, but
both of its callers print errno.  A table that failed to load was
reported as "cannot define table t: No error: 0", or with a stale errno,
both in the main ruleset (process_tabledef()) and in anchors
(pfctl_load_tables()).

Reviewed by:    kp
Fixes:          https://cgit.freebsd.org/src/commit/?id=219ce3063840 ("pf: convert DIOCRINADEFINE to netlink")
Sponsored by:   Rubicon Communications, LLC ("Netgate")
96944ab79acd48d8a552e6b1229fc46361e65341 R. Christian McDonald 2026-10-19 18:47:05

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

Commit group #7: hastd: Use void pointers for opaque data
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
a5e6bee5a0bff9e9c12037e0b2c76c4f2ab5e046 Dag-Erling Smørgrav 2026-10-20 13:28:42

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


hastd: Fix build failure

Fixes:          https://cgit.freebsd.org/src/commit/?id=a5e6bee5a0bf ("hastd: Use void pointers for opaque data")
Reported by:    garga@
dff56e8118985248678e1a6916cdefd708a9d85f Dag-Erling Smørgrav 2026-10-20 14:58:45

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

Commit group #8: caroot: Regenerate
caroot: Regenerate

Regenerate using certificate data from NSS 3.131.1.

Upstream dropped emSign_ECC_Root_CA_-_G3.pem entirely; we deliberately
move it to untrusted instead to block its reintroduction through e.g.
an outdated copy of security/ca_root_nss.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D60906
82af7f44ebefbe46cd635f63db300a066de48ee1 Dag-Erling Smørgrav 2026-10-20 19:24:31

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


ObsoleteFiles.inc: Add dropped certificates

Reported by:    michaelo@
Fixes:          https://cgit.freebsd.org/src/commit/?id=82af7f44ebef ("caroot: Regenerate")
21ac4761428c60c48bb5c3a0367a04dae164c414 Dag-Erling Smørgrav 2026-10-20 19:38:42

debug: classified in 03-filenames_plain1 by 'ObsoleteFiles.inc'


ObsoleteFiles.inc: Add moved certificates

These two moved from trusted to untrusted.

Fixes:          https://cgit.freebsd.org/src/commit/?id=21ac4761428c ("ObsoleteFiles.inc: Add dropped certificates")
dd6a1fef0ed2bf760a294106ab93fbcdcfdcae3d Dag-Erling Smørgrav 2026-10-20 19:55:21

debug: classified in 03-filenames_plain1 by 'ObsoleteFiles.inc'

debug: moved to admin because 'Need to be grouped with 21ac4761428c60c48bb5c3a0367a04dae164c414'

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
9ab2bf0f4296e8bfafe4dc70f2f200265e6933bd Osvaldo Janeri Filho 2026-10-20 15:40:28

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

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:             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
6f051f0e56feba19731adfa6f6bd2a098b5091de Mark Johnston 2026-10-20 15:41:21

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

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
e809c7d810ced2307741a7c0c135a8b1bef1851b Roman Bogorodskiy 2026-07-22 16:08:09

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

rtld: fix leak in get_program_var_addr() on the error path
Fixes:        https://cgit.freebsd.org/src/commit/?id=1e370f038778 ("rtld: stop using unbound alloca()")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
91d8163803b4fa25e51afe1209d0f5c30c603b93 Konstantin Belousov 2026-10-25 15:28:14

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

rtld: some cosmetics in donelist_init()
Add a missing word in the comment.
Make each assignment a separate statement.
Fix formatting.

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

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

dl_iterate_phdr(3): do not return garbage for objects not using TLS
For objects without a TLS segment, tlsindex is zero. tls_get_addr_slow()
then reads dtv_slots[-1], which is dtv_size, and returns it as the TLS
address. Set dlpi_tls_data to NULL for such objects instead.

Fixes:  https://cgit.freebsd.org/src/commit/?id=d36d68161517 ("rtld dl_iterate_phdr(): dlpi_tls_data is wrong")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
175595ba6c5253e395c028e792787dffd2875910 Konstantin Belousov 2026-10-25 15:35:21

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

Libraries

libthr: drop use of try_gc in the end of thr_join
thr_try_gc unlock and lock again to make sure the lock order. However,
there is no reason for such roundtrip if the caller holds the correct
oder. As a result, we create a new helper function to add the thread
to gc list without unlock + lock and wire the join_common to this new helper.

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D60717
894f70a2bd8c7f67f131b76b9ce122a752818af3 ShengYi Hung 2026-10-13 22:40:05

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

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
06abe08de45d251410949eac1bbb025367275260 Osvaldo Janeri Filho 2026-10-20 22:04:17

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

Filesystems

-- no commits in this category this week --

Kernel

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

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
d5e9c642307c13b8058609f421b63e2c72bab45f Olivier Certner 2026-10-09 09:19:58

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

sched_ule: sched_affinity(): Delineate steps
No functional change (intended).

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
a1fe7f00bc452653426493c511d288e5a4e7862d Olivier Certner 2026-10-09 14:50:59

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

sched_ule: Use TDQ_CPU() macro instead of fiddling with DPCPU
No functional change (intended).

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
79ca9f787ca92018a1374242bb77252af6fce0d0 Olivier Certner 2026-10-13 08:28:18

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

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
f19009020a33d07d7cad9393b4bf0a36f267cd07 Olivier Certner 2026-10-13 08:31:36

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

kmsan: Add a required forward type declaration
MFC after:    1 week
ad37abf653f77c59ce6c296eda9976c74c905d2e Mark Johnston 2026-10-16 14:11:03

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

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:             https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299239
Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60782
de80428118101624aaeaae02d59665d1027ff10e Mark Johnston 2026-10-19 13:44:41

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

mbuf: make m_pullup() an inline over most expected case
Implement a most typical use of m_pullup() as an inline and leave only the
heavy part as a function.  A sweeping change to make benefit of the new
version follows.

Reviewed by:            pouria, zlei, gallatin
Differential Revision:  https://reviews.freebsd.org/D60688
671babc79497587ef5a59f58578f8fce9359398c Gleb Smirnoff 2026-10-19 17:31:50

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

linux: implement sched_getattr()
This change adds the necessary glue to translate Linux scheduler policy
and priority from FreeBSD so this information is available to Linux
applications.

Please note that this change does not fill in the `.sched_nice` property: this
will be handled in a follow up commit (see bug 299617 for more details).

This unbreaks using the Linux version of Chromium on FreeBSD.

PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297468
Signed-off-by:  Joao Bonifacio <joaoboni017@gmail.com>
Pull Request: https://github.com/freebsd/freebsd-src/pull/2370
Reviewed by:    olce
Differential Revision:  https://reviews.freebsd.org/D60214
e45c7bc6115ef3cd9567a397e1351c608c0269a7 Enji Cooper 2026-10-10 18:18:23

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

Retire bogus predicts on case statements.
They are ignored by clang.

No functional changes (nor .o changes).

Sponsored by:   Rubicon Communications, LLC ("Netgate")
dbbff47e274c16d56c6adf42fecbb33157718287 Mateusz Guzik 2026-10-20 05:24:13

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

vfs: unbreak builds when MAC is not defined
Sorts out powerpc.QORIQ64 build failure.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
e6fb3b518ac453a714dcf2fa3fbb84f31907d84c Mateusz Guzik 2026-10-20 05:49:18

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

devfs: make persistent controlling terminal an ABI property
Linux leaves the session's controlling terminal in place after the
last file descriptor on the slave is closed, so a later open of
/dev/tty succeeds.  FreeBSD drops the session vnode reference on that
close. /dev/tty then fails, which breaks Linux programs such as xterm
that close the pty slave during startup and expect /dev/tty to keep
working.

When the closer is a Linux process, leave the session reference in
place.  Still pass FLASTCLOSE to the driver so the master sees hangup.
Native close behavior is unchanged.

Add the SV_PERSISTENT_CTTY sysentvec flag for ABIs that retain the
controlling terminal after the last slave descriptor is closed.  This
keeps the devfs behavior ABI-agnostic and allows other ABIs to request
the same semantics if needed.  Use the flag in devfs_close().

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60701
e8923c7346a882418352683f72e7c4f8e68d6907 Vladimir Grebenshchikov 2026-10-13 23:04:27

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

arm64: enable ossl accelerated AES-GCM on arm64
Connect the baseline OpenSSL ARMv8 fused AES-GCM kernels to the OCF
ossl driver. Advertise the algorithm only when the system-wide capability set
includes both AES and PMULL.

Note that get_kernel_reg() is used to detect features such as PMULL
because the ossl device attaches before arm64 populates elf_hwcap when
ossl is built into the kernel or pre-loaded at boot.

Prefer OSSL over armv8crypto for AES-GCM sessions while retaining
armv8crypto as a fallback.

This provides about a 50% speedup for a Netflix ktls workload on a small
neoverse N1 board.

Reviewed by: markj
Constructive review feedback from: andrew, ngie
Differential Revision: https://reviews.freebsd.org/D60097
Sponsored by: Netflix
ceb575553b222a310346f6a98b3c39bff49cb069 Andrew Gallatin 2026-10-20 18:58:39

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

sys/sysent.h: align SV_* flags values, provide full 32bit
Sponsored by: The FreeBSD Foundation
MFC after:      1 week
dca0b0ad8bc7df6119b04d1b766289406e3274a3 Konstantin Belousov 2026-10-20 17:43:58

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

sys: centralize SV_* flags definitions for several FreeBSD ABIs
The omitted ABI is compat32 on arm64, which lacks SV_ASLR.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
f69d974bf6d2f7ccaa3e6a5f9609cfca0d66ec8d Konstantin Belousov 2026-10-20 17:50:34

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

sys: centralize SV_* flags definitions for ELF Linux ABIs
Sponsored by: The FreeBSD Foundation
MFC after:      1 week
8dfa23d81f5e0969ac31c34279201f9286358e44 Konstantin Belousov 2026-10-20 18:23:26

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

LinuxKPI: restore several hard coded return values for the CONFIG_PM case
drm-kmod sets CONFIG_PM (unclear if for other parts) but LinuxKPI
has no understanding of a dev->power implementation for pm_runtime.h.

The return values based on !CONFIG_PM thus cause problems to drm-kmod.
Return the previous values under CONFIG_PM but leave the TODO logging
as the actual implementation is missing and return values may not be
universally correct (beyond the known drm-kmod use cases).

The following functions having a return value but none sepcific for
CONFIG_PM as (based on drm-kmod master):
pm_runtime_resume          only caller ignores the return value
pm_runtime_set_active      two callers ignore the return value
pm_runtime_put_autosuspend all callers seem to ignore the return value
pm_runtime_autosuspend     2/3 callers ignore the return value;
                           3rd is #ifdef __linux__
pm_runtime_suspended       3/4 callers ... do check the return value
                           but the logic expects the false, which also
                           matches the previous value.

Fixes:          https://cgit.freebsd.org/src/commit/?id=863fe7ae5152 ("LinuxKPI: re-implement pm_runtime.h")
Reported by:    markj
MFC after:      3 days
Tested by:      markj, Oleg V. Nauman (oleg.nauman gmail.com)
Differential Revision: https://reviews.freebsd.org/D60878
d2145e9b96448da34d3cfede24c509af6d830c92 Bjoern A. Zeeb 2026-10-19 21:30:14

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

kernel: Use external retpoline thunks
External retpoline thunks for amd64 and i386 were added in commit
74d971fe1561 ("x86: Add external retpoline thunk").  Use them when
WITH_KERNEL_RETPOLINE is set.

There should not be any material performance impact -- the call sites
are identical, and this just replaces (on amd64) compiler-generated
__llvm_retpoline_r11 functions in each object with our
__x86_indirect_thunk_r11.

After this change we could implement boot-time patching, replacing
__x86_indirect_thunk_r11 with just jmp %r11 when retpoline is not
required.

Note on i386: An i386 build WITH_KERNEL_RETPOLINE was successful, but
has not been extensively tested.  Clang may use registers other than
just eax on i386 and so in the future additional thunks beyond the one
added in 74d971fe1561 could be required for i386.  Patches are welcome
if this is important to you.

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
bea44a83631704110de8bbd7693b683c81d4fe55 Ed Maste 2018-03-16 02:29:38

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

linux: correct errors from mremap(2)
Linux returns EFAULT when the range to be remapped is not mapped at all,
and ENOMEM only when it is mapped but cannot be grown in place. Callers
depend on that distinction: musl's pthread_getattr_np() measures the
main thread stack by growing a one page mapping and retries while errno
is ENOMEM. Returning ENOMEM for every growth request makes that loop
spin forever.

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

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

Build system

OCI: Remove dead code
We don't need to pick a repository URL when all we're doing is enabling
one which was specified in /etc/pkg/.

Reviewed by:    dch, imp
Fixes:  https://cgit.freebsd.org/src/commit/?id=c73ae6734899 ("release/tools: use same pkg settings ...")
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60868
93c05b743ea865bb87653e9ee5fbaa837c00eee7 Colin Percival 2026-10-19 17:17:16

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

__FreeBSD_version: Bump for mkimg %align feature
MFC after:    1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60453
0f787e867d217583017181d1a904933939b4c34d Colin Percival 2026-10-08 00:47:49

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

vmimage.subr: Support partition alignment
If VM_PARTALIGN is set, pass %${VM_PARTALIGN} to mkimg in the
specification of swap, config, root, and ESP partitions.  (Boot
partitions are not aligned, both because they're small and in
case firmware makes assumptions about their locations.)

Reviewed by:    lwhsu, imp
MFC after:      1 week
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60454
f46269aba8a0bc2b60a0305bdafd8dfb42e0bb88 Colin Percival 2026-10-08 00:52:01

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

EC2: Align partitions to 1 MB boundaries
Reviewed by:  jlduran, imp
MFC after:      2 months
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60455
5774911bfb304c2c9b5d6c3c798c21e2c40b59de Colin Percival 2026-10-08 00:56:01

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

Internal organizational stuff

bsd-family-tree: add OpenBSD 8.0
97b9e96a7f762102148c45f30fee1ec9e8f7bb50 Sergey A. Osokin 2026-10-20 01:16:44

debug: classified in 03-filenames_plain1 by 'share/misc/bsd-family-tree'

mailmap: Add entry for longros
Approved by:  jrm (mentor)
Differential Revision:  https://reviews.freebsd.org/D60912
e48eb1c5c47fa3e0814f161f17ccf5de98470fe5 Christos Longros 2026-10-11 15:51:48

debug: classified in 03-filenames_plain1 by '.mailmap'

Testing

-- no commits in this category this week --

Style, typos, and comments

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

sched_ule: tdq_notify(): Fix a typo in a comment
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
ea1da6a51a5aa0c949fc125aece6b88a68e67a3a Olivier Certner 2026-10-09 09:22:31

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

bsd-family-tree: polish grammar and style
Reviewed by:  ziaee
d3bad289dfd536d8019e7bcbd7701b1d6dfb11c3 Wolfram Schneider 2026-10-20 07:39:57

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

ptnet.4: Fix typo
MFC after:    3 days
Reviewed by:    ziaee
Signed-off-by:  Seth Hoffert <seth.hoffert@gmail.com>
Closes:         https://github.com/freebsd/freebsd-src/pull/2480
86a925f538c0f451702e0a2d1d85deb1929b5db6 Seth Hoffert 2026-10-18 13:57:37

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

jail.8: fix a typo, sort Xr
b9585475ee627e5ea0e17b9d2d2874faaf03a762 Maxim Konovalov 2026-10-24 16:32:58

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

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
a3214d4e9b661fb173fc25b06b7ee9902b0b57e3 Enji Cooper 2026-10-25 02:56:21

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

Contrib code

Commit group #9: auditdistd: Use void pointers for opaque data
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
4f19e4aca4f4b7a3058be5d3bfc5aed66668b00f Dag-Erling Smørgrav 2026-10-20 13:28:37

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


auditdistd: Fix build failure

Fixes:          https://cgit.freebsd.org/src/commit/?id=4f19e4aca4f4 ("auditdistd: Use void pointers for opaque data")
Reported by:    garga@
0ce9d6e240a14d5b7cd8eb45a83d0e429f4a3edf Dag-Erling Smørgrav 2026-10-20 14:59:46

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

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
c6d7a2478c9eeb38ed1284e4ee1ff64c75ca8b09 Dag-Erling Smørgrav 2026-10-21 13:22:17

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

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
8133230d7e944d12108f89a15d6f4e468764dff9 Dag-Erling Smørgrav 2026-10-22 15:12:57

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

Merge commit 4d7292e58078 from llvm-project (by Minsoo Choo):
  [libunwind] Unwind through AArch64 FreeBSD signal trampolines (#235065)

  Retried from https://reviews.llvm.org/D155066.

  Recognize signal trampolines using KERN_PROC_SIGTRAMP when unwind
  metadata is unavailable. Restore the interrupted PC, LR, SP, general
  registers, and valid floating-point registers.

  Add coverage for unwinding out of an interrupted leaf function on both
  regular and alternate signal stacks.

  Assisted-by: GPT

MFC after:      1 week
6a936d939b886fe3d777d33b0327987c3aa08f51 Dimitry Andric 2026-10-25 11:34:38

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

Merge commit fd4113508a64 from llvm-project (by Minsoo Choo):
  [libunwind] Support extended amd64 segment registers (#229176)

  Raise the amd64 DWARF register limit to 59 and add RFLAGS, all six
  segment selectors, FS.base, and GS.base to the register model. Capture
  the extended state and restore it when resuming, using sigreturn() on
  FreeBSD to restore selectors and bases together. Pack the state into the
  existing context buffers without changing their public sizes or the
  Windows XMM offsets.

  Add tests for register access, signal-frame CFI recovery, register
  bounds, and resume behavior.

  Assisted-by: GPT

MFC after:      1 week
28ec7cb8712fde61107126c8ff174578d0ccdf79 Dimitry Andric 2026-10-25 12:10:59

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

Reverted commits

Commit & revert pair: inpcb: add single peer local port caching
inpcb: add single peer local port caching

A typical caching proxy problem is port allocation to backends.  We
usually have a few of them, with thousands connections to each.  Upon
creation of a new connection we need to find a new unique local port for
the peer:port.  This is achieved by linear search in in_pcb_lport_dest().
The closer we get to the port exhaustion the more expensive this loop is.
It needs to be executed tens thousands of times to find a port or fail.

Address the problem by adding advisory negative cache that is lazily
allocated upon first conflict.  Once the cache is in action we skip trying
those ports that are already marked in the cache.  During the search we
may encounter a cache allocated by other lookup.  In this case the caches
are merged into one.  The expectation is that under a stable heavy load we
are going to stabilize at a very low number of allocated caches, ideally
one per peer:port. The cache is a bitset of IPPORT_MAX, which makes it 8k.
Unfortunately metadata pushes allocation size to 16k UMA bucket.  However,
the expectation is that we are going to have a very few allocated, thus
current decision is to not create a separate UMA zone.

Differential Revision:  https://reviews.freebsd.org/D58290
289082428c764ed282623cc6f7ee9b7448fddad1 Gleb Smirnoff 2026-10-23 17:33:04

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


Revert "inpcb: add single peer local port caching"

This reverts commit 289082428c764ed282623cc6f7ee9b7448fddad1.

Requested by:   markj
91bff7d7ed461360bc992dcd411703db6cd6d2a1 Gleb Smirnoff 2026-10-23 18:56:06

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

Unclassified commits

Not classified automatically, and waiting for manual attention.

-- no commits in this category this week --

Technical notes

Dates:

Automatic grouping:

Automatic categories:

Source code:


Generated with commits-periodical 0.21 at 2026-11-03 03:23:55+00:00.

This work is supported by Tarsnap Backup Inc.

Alternate version: 2026-10-19 (release)