FreeBSD/src 3ac82ee — sys/powerpc/powerpc ptrace_machdep.c

powerpc: zero the FPU save area in PT_SETVSRREGS when it was not valid

PT_SETVSRREGS marks the saved FPU registers valid and fills in the VSX
halves of VSR0-31. The FP registers and the FPSCR are left alone, and
on a thread that hasn't used the FPU since exec they still hold whatever
the previous program left there.

So after a PT_SETVSRREGS on such a thread PT_GETFPREGS and a core dump
show the FP registers of the program that ran before the exec, and the
new program gets them on its first FP instruction.

Zero the save area first when it wasn't valid, like set_fpregs() does.

Reported by:    llm-postcr
Reviewed by:    jhibbits
Fixes:          2ab5877e45d8 ("powerpc: use the register validity flags in the vector ptrace requests")
MFC with:       2ab5877e45d8
Differential Revision:  https://reviews.freebsd.org/D62379
DeltaFile
+4-1sys/powerpc/powerpc/ptrace_machdep.c
+4-11 files

FreeBSD/src 44062d2 — sys/conf kern.post.mk

kern.post.mk: Really fix ports module build

The package target was never needed; we install directly from the
staging directory.

Fixes:          b393df657811 ("kern.post.mk: Fix unprivileged ports module build")
DeltaFile
+1-1sys/conf/kern.post.mk
+1-11 files

FreeBSD/src 59b06a9 — bin/pkill/tests pkill-j_test.sh

pkill: Fix typo in test

The cleanup function for pkill -j <jname> had the wrong name.

PR:             301350
Fixes:          93f8c45c0314 ("pkill: Convert pgrep / pkill -j tests to ATF")
DeltaFile
+1-1bin/pkill/tests/pkill-j_test.sh
+1-11 files

FreeBSD/src fdd58e7 — sys/kern uipc_usrreq.c

unix: increase net.local.(stream|seqpacket).(recv|send)space to 64 KiB

The limit of 8 KiB comes straight from the 80-ies, when memory sizes were
two orders of magnitude less.  Microbenchmarking clearly shows that
increased maximum buffer size is needed to improve bulk transfer
performance over unix(4).  Most operating system have larger default
sizes.  This brings us another reason for increase.  A buggy application,
that treats a stream socket as a datagram socket, shall work on Linux as
long as its messages are smaller than socket buffer size without any
issues 99.99% of time.  But on FreeBSD it will instantly fail.  In the
ports system there are already applications that suggest increase of this
sysctls for the application to work.  We don't want to be a bug catcher
for bad applications in the default configuration.

Note that buffer size increase will not increase memory usage even on a
system with a million unix(4) sockets at normal runtime, as long as
applications are written properly and receivers drain their sockets and
system has enough CPU time for them to do that.


    [5 lines not shown]
DeltaFile
+6-9sys/kern/uipc_usrreq.c
+6-91 files

FreeBSD/src 12bd439 — sys/conf newvers.sh

15.2: Update to RC2

Approved by:    re (implicit)
DeltaFile
+1-1sys/conf/newvers.sh
+1-11 files

FreeBSD/src d5fc069 — sys/kern imgact_elf.c

imgact_elf: accept PT_INTERP segments up to 4096 bytes

The Yocto/Poky relocatable SDK NUL-pads the interpreter path in
PT_INTERP out to 4096 bytes (within Linux's POSIX PATH_MAX) so that
'relocate_sdk.py' can rewrite the path in place.  The kernel rejected
any PT_INTERP with p_filesz > BSD's MAXPATHLEN (1024) with
"Invalid PT_INTERP" and ENOEXEC, so none of the SDK's binaries could
be run under the Linuxulator.

- The PT_INTERP segment may now be up to 'PT_INTERP_SEG_MAXSZ'
  bytes, which may be greater than 'MAXPATHLEN'.
- The interpreter path within the segment must still be shorter
  than 'MAXPATHLEN' -- when violated results in 'ENAMETOOLONG'
  when the interpreter is looked up.

Approved by:    re (cperciva)
Reviewed by:    kib
Differential Revision: https://reviews.freebsd.org/D62075
(cherry picked from commit 7ee8d41ebb2ffb13e50ea59fd5bc43155123f323)
(cherry picked from commit cada5351b20f3dd1e146d558d0f44a8f9a1f9b52)
DeltaFile
+10-2sys/kern/imgact_elf.c
+10-21 files

FreeBSD/src 270aacc — sys/dev/virtio/network if_vtnetvar.h if_vtnet.c

Revert "virtio_net: Use bus_dma for rxq/txq buffers"

This code is causing data corruption in 15.2-RC1 and needs to be fixed
before it lands in a release.

This reverts commit 6695c6bd0bf248927f34479a9ea2e13a6bf7db3d.

Approved by:    re (cperciva)
DeltaFile
+17-281sys/dev/virtio/network/if_vtnet.c
+0-10sys/dev/virtio/network/if_vtnetvar.h
+17-2912 files

FreeBSD/src a8bc6d4 — sys/dev/virtio/network if_vtnetvar.h if_vtnet.c

Revert "virtio_net: Use bus_dma for command/ack buffers"

This code is causing data corruption in 15.2-RC1 and needs to be fixed
before it lands in a release.

This reverts commit 9291bb153595a4b10ef86cd3fee5b783835db819.

Approved by:    re (cperciva)
DeltaFile
+65-285sys/dev/virtio/network/if_vtnet.c
+0-6sys/dev/virtio/network/if_vtnetvar.h
+65-2912 files

FreeBSD/src 18f4c84 — lib/libthr/thread thr_exit.c

libthr: Unblock signal using correct variable

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D62262
DeltaFile
+1-1lib/libthr/thread/thr_exit.c
+1-11 files

FreeBSD/src d394c17 — sys/vm vm_page.c

vm_page: Make every shared unbusy a release

vm_page_sunbusy() and vm_page_busy_release() drop a shared busy that
other threads still hold with a relaxed atomic_fcmpset_int().  Only the
last sharer's update is a release, but any sharer can modify the page.
The next thread to busy the page exclusively synchronizes with the last
sharer's release, so on weakly ordered CPUs it need not see the changes
by a sharer that was not the last.

Found by:       Claude Code (Opus 5.5)
Reviewed by:    kib, markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D62391
DeltaFile
+8-2sys/vm/vm_page.c
+8-21 files

FreeBSD/src 512f019 — sys/dev/vmm vmm_dev.c

vmm: Fix double free with devmem_create_cdev error

devmem_create_cdev() does not allocate name storage and should not free
it in the error path.  It is already freed by the caller on error.

Reviewed by:    markj
Fixes:          cef5f43f819c
MFC after:      1 day
MFC to:         stable/15
Differential Revision:  https://reviews.freebsd.org/D61529
DeltaFile
+0-1sys/dev/vmm/vmm_dev.c
+0-11 files

FreeBSD/src 2328c35 — . ChangeLog, src/common tuklib_cgroup.c

Vendor import of xz 5.8.5 (trimmed)
DeltaFile
+1,310-0ChangeLog
+230-75src/liblzma/simple/x86.c
+193-0src/common/tuklib_cgroup.c
+77-45src/liblzma/common/stream_encoder_mt.c
+62-18src/liblzma/lz/lz_encoder_hash.h
+42-7src/liblzma/lzma/lzma2_encoder.c
+1,914-14533 files not shown
+2,238-23839 files

FreeBSD/src de89d4a — etc/mtree BSD.tests.dist

BSD.tests.dist: Add entry for bsdconfig

Fixes:          9ffe2919e6b6 (bsdconfig: Resolve GEOM ids and names without scanning)
Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-0etc/mtree/BSD.tests.dist
+2-01 files

FreeBSD/src f260c85 — sys/netpfil/ipfw ip_fw_nat.c, tests/sys/netpfil/ipfw nat44_config.c

ipfw_nat: Report a redirect that cannot be set up

nat44_config() ignores the error from add_redir_spool_cfg(), which
stops at the first redirect it cannot set up: one with an unknown mode,
a port redirect without ports or with a protocol other than TCP, UDP or
SCTP, or one for which libalias cannot allocate a link.  That redirect
and the ones after it are dropped silently, but the instance keeps the
redirect count of the request, so "ipfw nat N show config" reports more
redirects than it returns and ipfw(8) misreads the reply ("unknown redir
mode").  A port range that runs out of memory partway also leaves its
first links in libalias.

Return the error, count only the redirects that are set up, and delete
the links of a port range that fails.  As before, the instance stays
installed with the redirects ahead of the failed one.  Add a
nat44_config test case for a redirect without ports.

Reviewed by:            maxim
Fixes:                  d6164b77f8b7 ("Make ipfw_nat module use IP_FW3 codes.")

    [3 lines not shown]
DeltaFile
+55-0tests/sys/netpfil/ipfw/nat44_config.c
+11-6sys/netpfil/ipfw/ip_fw_nat.c
+66-62 files

FreeBSD/src 360dd44 — contrib/atf NEWS COPYING, contrib/atf/atf-c macros.h macros_test.c

contrib/atf: update to 0.27.0

This release contains the upstreamed version of the wchar_t macros,
provided by des@ in https://reviews.freebsd.org/D61616.

MFC after:      1 week
Merge commit '9e2097a19a9dad81dcd8e7074283b8126464f310'

(cherry picked from commit 704c30247527f46e7dd49e79bf32049436eb85ee)
DeltaFile
+816-0contrib/atf/atf-sh/libatf-sh/common.subr
+189-8contrib/atf/atf-c/macros_test.c
+28-22contrib/atf/COPYING
+36-0contrib/atf/atf-c/macros.h
+33-0contrib/atf/NEWS
+24-0contrib/atf/atf-sh/libatf-sh/FreeBSD.subr
+1,126-308 files not shown
+1,185-5414 files

FreeBSD/src 6b8d17c — contrib/atf/atf-sh atf-check_test.sh atf-check.cpp

atf-check: Add shortcut for not-exit:0

Allow the command to be preceded by an exclamation point, which changes
the default expected result to a clean exit with a non-zero exit code.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    ngie
Differential Revision:  https://reviews.freebsd.org/D58099

(cherry picked from commit 76797b9b6ed4f2fe4ebb08fede0f19a88f985494)
DeltaFile
+16-2contrib/atf/atf-sh/atf-check.1
+12-0contrib/atf/atf-sh/atf_check_test.sh
+9-1contrib/atf/atf-sh/atf-check.cpp
+6-0contrib/atf/atf-sh/atf-check_test.sh
+43-34 files

FreeBSD/src 159762c — contrib/atf/atf-c macros.h tc.c, contrib/atf/atf-c/detail fs_test.c process_test.c

contrib/atf: upgrade to 0.26.1

This is a bugfix release. Please see the related merge commit for more
details.

MFC after:      1 week
Merge commit 'bd8d548676ba2235320c105e0683a758ac742e8e'

(cherry picked from commit 87fac2e0c07327a02791fef5d01123abd3e590fe)
DeltaFile
+273-282contrib/atf/atf-c/macros_test.c
+250-222contrib/atf/atf-c/tc.c
+177-171contrib/atf/atf-c/macros.h
+144-176contrib/atf/atf-c/detail/process_test.c
+190-122contrib/atf/atf-c/detail/fs_test.c
+147-157contrib/atf/atf-sh/atf-check.cpp
+1,181-1,13097 files not shown
+3,883-3,757103 files

FreeBSD/src f5c22a9 — sys/dev/ixgbe if_sriov.c if_ix.c

ixgbe: Restore PF multicast reception with SR-IOV

The PF and VFs share the multicast table. With VMDq replication
enabled, the PF pool needs ROMPE to receive frames matching that
table. A VF accepting multicast can otherwise receive the PF's IPv6
Neighbor Discovery traffic while the PF misses it.

Program the PF pool receive mode when the multicast list or interface
flags change and when initialization restores the filters after reset.
Enable ROMPE for a nonempty PF list and MPE for promiscuous mode,
all-multicast mode, or a full PF address list. Build the pool mode
from the PF settings so a reused pool cannot retain stale VF flags.

Serialize the flag-change callback with multicast updates and SR-IOV
reconfiguration before selecting the pool and writing the registers.

Reported by:    llm-postcr
Fixes:          48056c88e19e ("Delta D2489 - Add SRIOV support to the Intel 10G driver.")
MFC after:      1 week
Sponsored by:   BBOX.io
DeltaFile
+36-40sys/dev/ixgbe/if_ix.c
+1-6sys/dev/ixgbe/if_sriov.c
+37-462 files

FreeBSD/src 02f3565 — sys/amd64/vmm vmm.c, sys/arm64/vmm vmm.c

vmm: Refactor VM reinitialization code a bit

We can avoid the bool parameter to vm_init() by moving a bit of code
around.  This makes the VM (re)initialization code easier to read.

No functional change intended.

Reviewed by:    bnovkov
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61043
DeltaFile
+8-12sys/amd64/vmm/vmm.c
+7-12sys/riscv/vmm/vmm.c
+7-12sys/arm64/vmm/vmm.c
+22-363 files

FreeBSD/src 7830318 — contrib/atf NEWS COPYING, contrib/atf/atf-c macros.h macros_test.c

contrib/atf: update to 0.27.0

This release contains the upstreamed version of the wchar_t macros,
provided by des@ in https://reviews.freebsd.org/D61616.

MFC after:      1 week
Merge commit '9e2097a19a9dad81dcd8e7074283b8126464f310'

(cherry picked from commit 704c30247527f46e7dd49e79bf32049436eb85ee)
DeltaFile
+816-0contrib/atf/atf-sh/libatf-sh/common.subr
+189-8contrib/atf/atf-c/macros_test.c
+28-22contrib/atf/COPYING
+36-0contrib/atf/atf-c/macros.h
+33-0contrib/atf/NEWS
+24-0contrib/atf/atf-sh/libatf-sh/FreeBSD.subr
+1,126-308 files not shown
+1,185-5414 files

FreeBSD/src 4fc4970 — contrib/atf/atf-c macros.h tc.c, contrib/atf/atf-c/detail fs_test.c process_test.c

contrib/atf: upgrade to 0.26.1

This is a bugfix release. Please see the related merge commit for more
details.

MFC after:      1 week
Merge commit 'bd8d548676ba2235320c105e0683a758ac742e8e'

(cherry picked from commit 87fac2e0c07327a02791fef5d01123abd3e590fe)
DeltaFile
+273-282contrib/atf/atf-c/macros_test.c
+250-222contrib/atf/atf-c/tc.c
+177-171contrib/atf/atf-c/macros.h
+144-176contrib/atf/atf-c/detail/process_test.c
+190-122contrib/atf/atf-c/detail/fs_test.c
+147-157contrib/atf/atf-sh/atf-check.cpp
+1,181-1,13097 files not shown
+3,883-3,757103 files

FreeBSD/src 7a21615 — contrib/atf/atf-sh atf-check_test.sh atf-check.cpp

atf-check: Add shortcut for not-exit:0

Allow the command to be preceded by an exclamation point, which changes
the default expected result to a clean exit with a non-zero exit code.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    ngie
Differential Revision:  https://reviews.freebsd.org/D58099

(cherry picked from commit 76797b9b6ed4f2fe4ebb08fede0f19a88f985494)
DeltaFile
+16-2contrib/atf/atf-sh/atf-check.1
+12-0contrib/atf/atf-sh/atf_check_test.sh
+9-1contrib/atf/atf-sh/atf-check.cpp
+6-0contrib/atf/atf-sh/atf-check_test.sh
+43-34 files

FreeBSD/src c80cc23 — sys/contrib/openzfs/include/sys ddt.h, sys/contrib/openzfs/module/zfs zio.c ddt.c

ddt: select traditional phys by block identity, not BP DVA count

The write path stores a traditional DDT entry in the phys slot chosen
by the zp_copies value the block was written with, but the free-path
lookup validation (ddt_entry_lookup_is_valid()) selected the slot to
compare by the BP's physical DVA count, and ddt_addref() bumped the
refcount of that same wrongly-selected slot.

The two indexes diverge whenever a deduplicated block's BP carries
more DVAs than its copies value, which is exactly what ganging does:
a gang header is stored in more copies than the data it gangs, so
copies=1 blocks get a two-DVA gang header BP (unconditionally
through 2.3.3, and under the default redundant_metadata=all since
a46ce73ca8 made it configurable in 2.3.4 and 9250403ba6 in 2.4.0),
and from 2.3.4 that default also gives unencrypted copies=2 blocks a
three-DVA header BP. Encryption does not avoid the mismatch at
copies=1: the header BP still carries two counted DVAs (the salt/IV
DVA is separate). For such a block the validation checked
the wrong slot, concluded the entry had been pruned, and

    [56 lines not shown]
DeltaFile
+177-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_legacy_gang.ksh
+30-35sys/contrib/openzfs/module/zfs/ddt.c
+21-7sys/contrib/openzfs/module/zfs/zio.c
+6-3sys/contrib/openzfs/include/sys/ddt.h
+4-0sys/contrib/openzfs/tests/runfiles/linux.run
+1-0sys/contrib/openzfs/tests/zfs-tests/tests/Makefile.am
+239-456 files

FreeBSD/src b65f638 — release/tools ec2-desktop.conf

EC2: Explicitly block root login via RDP

Approved by:    re (cperciva)
MFC after:      0 days
Security:       GHSA-3rww-h298-82rx
Sponsored by:   Amazon

(cherry picked from commit 2112d90be7a855d4c9f598409850d54583089de2)
(cherry picked from commit ae6b73db4ff63e3dadfc397972e57714f0fc3552)
DeltaFile
+3-0release/tools/ec2-desktop.conf
+3-01 files

FreeBSD/src 059107e — release/tools gce.conf

GCE: Switch to using kvmclock timecounter on GCE VMs

Currently, GCE VMs are configured to use the "ACPI-safe" timecounter,
which does not exist on modern VM hardware. The system then falls back
to TSC-low because it has a higher quality rating than kvmclock.
However, TSC-low may report incorrect time after a VM migrates to a
different host system.

Instruct GCE VMs to use the kvmclock timecounter so that timekeeping
remains accurate across live migrations.

Approved by:    re (cperciva)
Reported by:    delphij
Reviewed by:    delphij
Approved by:    delphij (mentor)
Approved by:    re (cperciva)
Differential Revision:  https://reviews.freebsd.org/D62121

(cherry picked from commit 141e74291075785c7898763d33288b7fd8b9f06d)
(cherry picked from commit a61ec24c11d052ecbe5cfb9d5bfd11e18d352139)
DeltaFile
+1-1release/tools/gce.conf
+1-11 files

FreeBSD/src 86eb741 — sys/contrib/zlib gzwrite.c inflate.c

MFC: MFV: zlib 1.4

Approved by:    re (cperciva)

(cherry picked from commit 724bb39e83e369209d8e42a52370684b82e26350)
(cherry picked from commit a0e97829173660733f28a510ea35dbc7aa3d766e)
DeltaFile
+100-41sys/contrib/zlib/gzread.c
+73-37sys/contrib/zlib/deflate.c
+44-33sys/contrib/zlib/zlib.h
+37-37sys/contrib/zlib/gzlib.c
+43-13sys/contrib/zlib/inflate.c
+40-8sys/contrib/zlib/gzwrite.c
+337-16917 files not shown
+452-19723 files

FreeBSD/src c96b480 — sys/contrib/zstd/lib zstd.h, sys/contrib/zstd/lib/compress zstd_compress.c

MFV: zstd 1.6.0

Approved by:    re (cperciva)
Security:       CVE-2026-124851
MFC after:      3 days

(cherry picked from commit 0412a4034e277629245c8bd87978680216bb06b5)
(cherry picked from commit 4e033451cba2795a152d17caed8b88d71db28012)
DeltaFile
+775-214sys/contrib/zstd/lib/compress/zstd_compress.c
+713-235sys/contrib/zstd/programs/fileio.c
+439-105sys/contrib/zstd/programs/util.c
+5-364sys/contrib/zstd/lib/legacy/zstd_v02.c
+209-112sys/contrib/zstd/lib/zstd.h
+253-65sys/contrib/zstd/programs/zstd.1
+2,394-1,09577 files not shown
+4,703-2,09683 files

FreeBSD/src 43d4a4b — stand defs.mk, stand/efi/gptboot Makefile

loader: Add defines for ZLIB_CFLAGS, BZIP2_CFLAGS and ZSTD_CFLAGS

These are scattered in several places, so centralize the setting of
these flags.

Approved by:    re (cperciva)
Sponsored by:           Netflix
Differential Revision:  https://reviews.freebsd.org/D57861

(cherry picked from commit 53811ed6237972f92a80627ea2c17ece212315a7)
(cherry picked from commit eca31f2d9e6ec5b1ed6abf89584b962d58601f16)
DeltaFile
+9-0stand/defs.mk
+1-2stand/libsa/Makefile
+2-1stand/efi/loader/Makefile
+1-1stand/i386/gptzfsboot/Makefile
+1-1stand/i386/gptboot/Makefile
+1-1stand/efi/gptboot/Makefile
+15-63 files not shown
+18-99 files

FreeBSD/src c932de9 — sys/powerpc/aim mmu_radix.c mmu_oea64.h

powerpc64: Fix disappearing low memory on radix MMU systems (POWER9)

The FreeBSD radix implementation piggybacks on the physical memory
allocation function from the HPT implementation, but did not share
the same state information for number of physical memory ranges.
This led to a situation where the HPT physical memory allocator
would attempt to shift the physical memory ranges in the shared
range table, but would use the wrong number of entries, thus
overwriting the large segment of low memory that should have been
available for e.g. 32-bit DMA.

Incorrect physical memory map:

real memory  = 33997058048 (32422 MB)
available KVA = 34359619583 (32767 MB)
Physical memory chunk(s):
0x0000000000003000 - 0x0000000000002fff, 0 bytes (0 pages)
0x000000000000e000 - 0x000000000000ffff, 8192 bytes (2 pages)
0x0000000000094000 - 0x0000000000ffffff, 16171008 bytes (3948 pages)

    [30 lines not shown]
DeltaFile
+2-1sys/powerpc/aim/mmu_oea64.c
+0-1sys/powerpc/aim/mmu_radix.c
+1-0sys/powerpc/aim/mmu_oea64.h
+3-23 files

FreeBSD/src ebaa1f1 — sys/dev/acpica/Osd OsdDebug.c

acpi: OsdDebug.c: Include 'acdebug.h' on ACPI_DEBUGGER

On ACPI_DEBUGGER (defined by 'acfreebsd.h' on ACPI_DEBUG_OUTPUT and DDB
defined), OsdDebug.c defines acpi_EnterDebugger() which uses
AcpiDbUserCommands().  Include 'acdebug.h' to provide a declaration for
it.

Reported by:    llm-postcr
Fixes:          d6fd89254a91 ("acpi: acpivar.h: Include ACPICA's acpi.h, remove the latter in consumers")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+4-0sys/dev/acpica/Osd/OsdDebug.c
+4-01 files