FreeBSD/src df20cc3 — tests/sys/kern ssl_sendfile.c

tests/ssl_sendfile: fix flakyness under load

When loopback TCP delivery is faster than our sending thread it may take
several writes to full buffer reliably.

PR:             299447
DeltaFile
+14-7tests/sys/kern/ssl_sendfile.c
+14-71 files

FreeBSD/src b5bff92 — usr.sbin/syslogd/tests syslogd_forwarded_format_test.sh syslogd_relayed_format_test.sh

syslogd/tests: wait for tcpdump before sending the message

The forwarded and relayed format tests could send the message before tcpdump
attached to lo0, so "tcpdump -c 1" never saw it and the test hung until the
300s timeout. Also make syslogd_stop_on_ports stop every port it is given.

Reviewed by:    markj
Approved by:    markj
Sponsored by:   Netflix
Differential Revision:  https://ron-dev.freebsd.org/FreeBSD/src/pulls/108
DeltaFile
+15-3usr.sbin/syslogd/tests/syslogd_format_test_common.sh
+4-3usr.sbin/syslogd/tests/syslogd_relayed_format_test.sh
+3-2usr.sbin/syslogd/tests/syslogd_forwarded_format_test.sh
+22-83 files

FreeBSD/src b496e15 — sys/dev/axgbe xgbe-sysctl.c

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)
DeltaFile
+20-20sys/dev/axgbe/xgbe-sysctl.c
+20-201 files

FreeBSD/src 8774185 — sys/dev/axgbe xgbe-sysctl.c

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)
DeltaFile
+49-21sys/dev/axgbe/xgbe-sysctl.c
+49-211 files

FreeBSD/src cd2a0f8 — sys/netinet tcp_output.c

tcp: address PR295870

Fix accounting in the sequence space for a FIN bit potentially
piggy bagged during SACK loss recovery triggered transmissions.

Approved by:    re (cperciva)
Reviewed By: #transport, tuexen
Sponsored by: NetApp, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D61312

(cherry picked from commit 0aa6428f463699c5f5e03715ea4ebe2309a23a2d)
(cherry picked from commit f5797fcb0d8d8b2a63a49c3fe27eb9d7c7c417a8)
DeltaFile
+10-1sys/netinet/tcp_output.c
+10-11 files

FreeBSD/src 3157501 — tests/sys/kern module_test.c

modstat: check errno before calling feature_present

feature_present will overwrite errno if COMPAT_FREEBSD13 is not present.

Approved by:    re (cperciva)
Reported by:    llm-postcr
Fixes:          ef726c645300 ("modstat: allow compat support to fail in tests")

(cherry picked from commit acd270c8c6542b45e404078b28e1a732106aa76c)
(cherry picked from commit ed8dc5e715fff0a0c9f60416362924315bb49381)
DeltaFile
+1-1tests/sys/kern/module_test.c
+1-11 files

FreeBSD/src 7675717 — tests/sys/kern module_test.c

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.

Approved by:    re (cperciva)
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)
(cherry picked from commit 4a9770b9256c7119da287b15a6e7900298e6d514)
DeltaFile
+16-8tests/sys/kern/module_test.c
+16-81 files

FreeBSD/src e1d96bb — sys/kern kern_module.c

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.

Approved by:    re (cperciva)
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


    [2 lines not shown]
DeltaFile
+153-108sys/kern/kern_module.c
+153-1081 files

FreeBSD/src 0ca2438 — sys/kern kern_module.c

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.

Approved by:    re (cperciva)
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)
(cherry picked from commit 80fed5b6b5bdf712603b90a236796e35ed7e604c)
DeltaFile
+32-26sys/kern/kern_module.c
+32-261 files

FreeBSD/src 300d7db — sys/kern kern_module.c, sys/sys syscallsubr.h

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.

Approved by:    re (cperciva)
Effort:         CHERI upstreaming
Sponsored by:   DARPA, AFRL, Innovate UK
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2284

(cherry picked from commit b96dc2c04fb4f504ad0c752c5d4b074c5bfbf7e0)
(cherry picked from commit 5c7d799c53ccb2f0a886566750f8226ea0c7f02f)
DeltaFile
+22-7sys/kern/kern_module.c
+3-0sys/sys/syscallsubr.h
+25-72 files

FreeBSD/src 33101b0 — sys/kern vfs_extattr.c

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.

Approved by:    re (cperciva)
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)
(cherry picked from commit 0967b36fe7837e4b1727ec1230ef1ee28ea6db8c)
DeltaFile
+7-1sys/kern/vfs_extattr.c
+7-11 files

FreeBSD/src f7cbc4d — sys/powerpc/aim mmu_radix.c

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

    [13 lines not shown]
DeltaFile
+16-3sys/powerpc/aim/mmu_radix.c
+16-31 files

FreeBSD/src 66e24d4 — sys/compat/linux linux_xattr.c

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.

Approved by:    re (cperciva)
Reviewed by:    adrian, markj
Approved by:    adrian (mentor)
Differential Revision:  https://reviews.freebsd.org/D61006
Signed-off-by: Nick Price <nprice at FreeBSD.org>
(cherry picked from commit fbe4835e6b1eec36103a5ce97efbab11b3b5fc72)
(cherry picked from commit a46d6ae4c0b6f6e8eb74b13da6f607d2ead74be7)
DeltaFile
+9-1sys/compat/linux/linux_xattr.c
+9-11 files

FreeBSD/src af04e99 — sys/kern uipc_socket.c, tests/sys/kern ktls_test.c

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:    re (cperciva)
Approved by:    markj
Fixes:          b2e60773c6b0 ("Add kernel-side support for in-kernel TLS.")
Sponsored by:   Netflix

(cherry picked from commit bd4975e5fb051c2b2e8d5218940b7e8ef87b5bdf)
(cherry picked from commit 42e7802e24fefd1cef6913ab162cda2c7bdc477f)
DeltaFile
+43-0tests/sys/kern/ktls_test.c
+1-1sys/kern/uipc_socket.c
+44-12 files

FreeBSD/src 12c79b3 — lib/libc/tests/db db_hash_tamper_test.c

libc/db: Correct a typo in the the hash tampering test

Fixes the gcc build.

Fixes:  7f5f07b139a5
(cherry picked from commit b774fbdb0077571dd34ca55ecb87199895ff47d3)
DeltaFile
+1-1lib/libc/tests/db/db_hash_tamper_test.c
+1-11 files

FreeBSD/src e3483db — sys/netinet tcp_input.c tcp_var.h, sys/netinet/tcp_stacks rack.c bbr.c

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")
MFC after:              3 days
MFC to:                 stable/14
MFC to:                 stable/15
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D61685
DeltaFile
+10-0sys/netinet/tcp_var.h
+1-4sys/netinet/tcp_stacks/rack.c
+1-4sys/netinet/tcp_stacks/bbr.c
+1-4sys/netinet/tcp_input.c
+13-124 files

FreeBSD/ports b470f7b — www/opencloud Makefile, www/opencloud/files opencloud-cli.in opencloud.env.sample

www/opencloud: Add New Port

OpenCloud is an open-source platform for file management, sharing and
collaboration.  The server is a single Go binary that bundles the web
UI, WebDAV and Graph APIs, an embedded OpenID Connect identity provider
and storage services.  It needs no external database.

www: https://opencloud.eu/

PR:             295844
Submitted by:   Jordan Ostreff <jordan at ostreff.info>
Based on work by:       Robert Schulze <rs at bytecamp.net>
Sponsored by:   Netzkommune GmbH
DeltaFile
+233-0www/opencloud/files/README.FreeBSD
+125-0www/opencloud/files/opencloud.in
+82-0www/opencloud/Makefile
+49-0www/opencloud/files/pkg-message.in
+41-0www/opencloud/files/opencloud.env.sample
+31-0www/opencloud/files/opencloud-cli.in
+561-08 files not shown
+599-214 files

FreeBSD/ports c7e9403 — sysutils/cpu-microcode-intel pkg-plist Makefile

sysutils/cpu-microcode-intel: Update to 2026-11-10 release

This release adds microcode for Xeon 6900E+ (Clearwater Forest)
processors and includes functional fixes for a variety of other
platforms.  Refer to the release notes for details.

Release notes:  https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/releases/tag/microcode-20261110
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3sysutils/cpu-microcode-intel/distinfo
+1-1sysutils/cpu-microcode-intel/Makefile
+1-0sysutils/cpu-microcode-intel/pkg-plist
+5-43 files

FreeBSD/ports fe2fe6c — devel/py-pyformance Makefile, devel/py-pyformance/files patch-setup.py patch-pyformance_registry.py

devel/py-pyformance: Improve port

- Fix the hosted Graphite and OpenTSDB reporters.
- Add the missing py-setuptools run dependency: pyformance/__init__.py
  declares a pkg_resources namespace.
- Stop installing the top-level tests package, which fails stage-qa.
- Replace the deprecated Thread.setDaemon() with the daemon attribute
  and make the RegexRegistry docstring raw (invalid escape
  SyntaxWarning on 3.12+).
- Switch to USE_PYTHON=pep517 (the package metadata becomes dist-info).
- Add USE_PYTHON=unittest for the tests.
- Fix portlint warnings and document the patches.

PR:             299863, 290289
Reported by:    se (PR 290289)
Approved by:    Waitman Gobble <waitman at waitman.net> (maintainer timeout)
Approved by:    osa, vvd (mentors, implicit)
MFH:            2026Q4

(cherry picked from commit 61e8483a89378a935ae06642e0bd246969a6223a)
DeltaFile
+38-0devel/py-pyformance/files/patch-pyformance_reporters_hosted__graphite__reporter.py
+17-0devel/py-pyformance/files/patch-pyformance_registry.py
+17-0devel/py-pyformance/files/patch-pyformance_reporters_opentsdb__reporter.py
+17-0devel/py-pyformance/files/patch-pyformance_reporters_reporter.py
+16-0devel/py-pyformance/files/patch-setup.py
+8-5devel/py-pyformance/Makefile
+113-56 files

FreeBSD/ports 61e8483 — devel/py-pyformance Makefile, devel/py-pyformance/files patch-setup.py patch-pyformance_reporters_reporter.py

devel/py-pyformance: Improve port

- Fix the hosted Graphite and OpenTSDB reporters.
- Add the missing py-setuptools run dependency: pyformance/__init__.py
  declares a pkg_resources namespace.
- Stop installing the top-level tests package, which fails stage-qa.
- Replace the deprecated Thread.setDaemon() with the daemon attribute
  and make the RegexRegistry docstring raw (invalid escape
  SyntaxWarning on 3.12+).
- Switch to USE_PYTHON=pep517 (the package metadata becomes dist-info).
- Add USE_PYTHON=unittest for the tests.
- Fix portlint warnings and document the patches.

PR:             299863, 290289
Reported by:    se (PR 290289)
Approved by:    Waitman Gobble <waitman at waitman.net> (maintainer timeout)
Approved by:    osa, vvd (mentors, implicit)
MFH:            2026Q4
DeltaFile
+38-0devel/py-pyformance/files/patch-pyformance_reporters_hosted__graphite__reporter.py
+17-0devel/py-pyformance/files/patch-pyformance_reporters_reporter.py
+17-0devel/py-pyformance/files/patch-pyformance_reporters_opentsdb__reporter.py
+17-0devel/py-pyformance/files/patch-pyformance_registry.py
+16-0devel/py-pyformance/files/patch-setup.py
+8-5devel/py-pyformance/Makefile
+113-56 files

FreeBSD/ports 1fe3bf9 — java/java-cup Makefile

java/java-cup: Fix typo

Reported by:    ronald

(cherry picked from commit d145ae326c1913009a368f99fafb0738768915bd)
DeltaFile
+1-1java/java-cup/Makefile
+1-11 files

FreeBSD/ports cce7c5b — www/py-pyweblib Makefile

www/py-pyweblib: Mark DEPRECATED

- Python 2 only (implicit relative imports)
- Fails to import on Python 3
- No consumers in the tree
- Set EXPIRATION_DATE 2026-12-17

(cherry picked from commit dc6414e778de88215fff0d918c62df689a3a262d)
DeltaFile
+5-2www/py-pyweblib/Makefile
+5-21 files

FreeBSD/ports 3cd0ab1 — x11/xautomation Makefile

x11/xautomation: Mark DEPRECATED

- xte cannot move the pointer on current Xorg servers
- Upstream inactive since 2015
- No consumers in the tree
- Use x11/xdotool instead
- Set EXPIRATION_DATE 2026-12-17

(cherry picked from commit 2b774e84d85a48c3c6d16c2ab1f5a402a3178734)
DeltaFile
+5-3x11/xautomation/Makefile
+5-31 files

FreeBSD/ports 6854fe9 — devel/py-pyhashxx pkg-descr Makefile, devel/py-pyhashxx/files patch-setup.py

devel/py-pyhashxx: Do not install the top-level tests package

This port installs a file into a generic directory instead of a
private sub-directory of the port:

lib/python3.11/site-packages/tests/__init__.py

This violates the directory hierarchy rules and causes install
conflicts with 16 other ports.

find_packages() picks up the tests directory, which installs a
top-level "tests" package into site-packages, and stage-qa rejects it.
Exclude it.

While here, strip the extension module (stage-qa warned that it is not
stripped), expand pkg-descr from the upstream description, add
concurrent to USE_PYTHON (the package does not change) and document the
patch.


    [9 lines not shown]
DeltaFile
+17-0devel/py-pyhashxx/files/patch-setup.py
+12-2devel/py-pyhashxx/Makefile
+7-1devel/py-pyhashxx/pkg-descr
+36-33 files

FreeBSD/ports 8e8e334 — devel/py-pyhashxx pkg-descr Makefile, devel/py-pyhashxx/files patch-setup.py

devel/py-pyhashxx: Do not install the top-level tests package

This port installs a file into a generic directory instead of a
private sub-directory of the port:

lib/python3.11/site-packages/tests/__init__.py

This violates the directory hierarchy rules and causes install
conflicts with 16 other ports.

find_packages() picks up the tests directory, which installs a
top-level "tests" package into site-packages, and stage-qa rejects it.
Exclude it.

While here, strip the extension module (stage-qa warned that it is not
stripped), expand pkg-descr from the upstream description, add
concurrent to USE_PYTHON (the package does not change) and document the
patch.


    [7 lines not shown]
DeltaFile
+17-0devel/py-pyhashxx/files/patch-setup.py
+12-2devel/py-pyhashxx/Makefile
+7-1devel/py-pyhashxx/pkg-descr
+36-33 files

FreeBSD/ports 42bf142 — net/librespeed-cli Makefile distinfo

net/librespeed-cli: update to 1.0.15

Changes:        https://github.com/librespeed/speedtest-cli/releases/tag/v1.0.15
DeltaFile
+9-9net/librespeed-cli/distinfo
+1-2net/librespeed-cli/Makefile
+10-112 files

FreeBSD/src 5b2f5e9 — usr.sbin/bhyve bhyverun.h bhyverun.c, usr.sbin/bhyve/aarch64 vmexit.c

bhyve: Do not abort when the VM is destroyed during an exit

When a VM is destroyed (bhyvectl --destroy) while a vCPU thread is
handling an exit in bhyve, every call on the VM fails.  vm_loop()
handles that for vm_run() and ends bhyve with BHYVE_EXIT_ERROR, but a
vCPU in the middle of an exit hits one of the assert(error == 0) after
a register update or an exception injection (emulate_inout(),
vmexit_rdmsr(), vm_inject_fault()), or reports "Failed to emulate
instruction" and returns VMEXIT_ABORT: bhyve dies of SIGABRT and
leaves a core.  With a guest doing a lot of port I/O or MSR accesses
that bhyve emulates, a forced stop hits this regularly.

Add vm_check_destroyed(), which exits with BHYVE_EXIT_ERROR, as
vm_loop() does, if the VM is gone.  Call it before those asserts and
on the instruction emulation failure paths on amd64, arm64 and
riscv.  A failure on a VM that still exists asserts or aborts as
before.

Signed-off-by:  Wanpeng Qian <wanpengqian at gmail.com>

    [4 lines not shown]
DeltaFile
+18-0usr.sbin/bhyve/bhyverun.c
+8-0usr.sbin/bhyve/amd64/vmexit.c
+8-0usr.sbin/bhyve/amd64/inout.c
+1-0usr.sbin/bhyve/riscv/vmexit.c
+1-0usr.sbin/bhyve/bhyverun.h
+1-0usr.sbin/bhyve/aarch64/vmexit.c
+37-06 files

FreeBSD/doc 394524c — website/content/en/releases/15.1R/ec2-ami-ids latest.adoc

15.1: Update "latest" AMIs

We now have 15.1-RELEASE-p7 AMIs.

Approved by:    re (implicit)
Sponsored by:   Amazon
DeltaFile
+512-512website/content/en/releases/15.1R/ec2-ami-ids/latest.adoc
+512-5121 files

FreeBSD/ports 9033b37 — filesystems/libfsntfs Makefile, filesystems/libfsxfs Makefile

*/*: use the correct LICENSE_FILE
DeltaFile
+1-1sysutils/libfvde/Makefile
+1-1security/libfcrypto/Makefile
+1-1security/libcaes/Makefile
+1-1filesystems/libmodi/Makefile
+1-1filesystems/libfsxfs/Makefile
+1-1filesystems/libfsntfs/Makefile
+6-630 files not shown
+36-3636 files

FreeBSD/ports ea76daa — databases/db Makefile distinfo

databases/db: Update 1.27 => 1.28

Changes:
* db(1): Don't lie in the usage message re: `-q`
* db(1)'s man page to describe the actual behavior of '-q'
https://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/db/

PR:             300851
Approved by:    osa, vvd (mentors, implicit)
DeltaFile
+7-7databases/db/distinfo
+1-1databases/db/Makefile
+8-82 files