FreeBSD/src 7c375afsys/dev/tpm tpm_crb.c

tpm: crb: check the error bit only after taking locality

tpmcrb_transmit() read CRB_CTRL_STS before requesting locality 0.
An AMD Pluton fTPM (like FrameWork Desktop) using the plain CRB start method
reads the control area as all-ones until locality is assigned, so bit 0 looks
like a stuck tpmSts and every command failed with EIO.

With RANDOM_ENABLE_TPM the harvester retries every 10 seconds, so this printed
"Device has Error bit set" forever.

Reviewed by:    kbowling
Approved by:    kbowling
MFC after:      2 weeks
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D59661
DeltaFile
+13-5sys/dev/tpm/tpm_crb.c
+13-51 files

FreeBSD/src bdc2409sys/net iflib.c

iflib: remove unused variables

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    gallatin
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59544

(cherry picked from commit d1ef616302f185ca9c217a9bfa70509b19136016)
DeltaFile
+3-3sys/net/iflib.c
+3-31 files

FreeBSD/src a102063sbin/fsck_msdosfs dir.c

fsck_msdosfs: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    delphij
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59543

(cherry picked from commit fead44b3ed61a09c2a0c4f79537462e837067fce)
DeltaFile
+3-3sbin/fsck_msdosfs/dir.c
+3-31 files

FreeBSD/src 4852256tests/sys/netpfil/common rdr.sh

tests/netpfil: xfail ipfnat_local_redirect testcase

PR:             296944
Reviewed by:    cy
MFC after:      3 days
MFC to:         stable/15
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 8fab8b3ae35d2388adfedbfc7ef6f3c93d34ce1c)
DeltaFile
+2-0tests/sys/netpfil/common/rdr.sh
+2-01 files

FreeBSD/src 462b252sys/netpfil/ipfilter/netinet ip_nat.c

ipfilter: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    cy
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 94f7019668f8a02416c5b32ba8a9c32a68edd261)
DeltaFile
+3-4sys/netpfil/ipfilter/netinet/ip_nat.c
+3-41 files

FreeBSD/src dd9ecc8tests/sys/fs/fusefs utils.cc Makefile

tests/fusefs: fix the build with gcc 16

Reviewed by:    asomers
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 0e3dae1ca8fc371eb5c451032adc5e0813b00db6)
DeltaFile
+7-0tests/sys/fs/fusefs/Makefile
+1-1tests/sys/fs/fusefs/utils.cc
+8-12 files

FreeBSD/src f7f589csbin/camcontrol persist.c

camcontrol: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    ken, imp
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59540

(cherry picked from commit 076c9db51f95291f73c25b39a8c9c4206c050bc1)
DeltaFile
+2-3sbin/camcontrol/persist.c
+2-31 files

FreeBSD/src ce69b97sbin/ifconfig ifieee80211.c

sbin/ifconfig: remove unused static function parameter

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    glebius
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59541

(cherry picked from commit e1a1206245be0db252d52f4b090c62a002fc1cc5)
DeltaFile
+3-3sbin/ifconfig/ifieee80211.c
+3-31 files

FreeBSD/src 0ac3b94sys/netinet sctp_usrreq.c

sctp: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    tuexen
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59590

(cherry picked from commit b7e91f238c2f70e8432f56762499aebd0ab9960b)
DeltaFile
+2-5sys/netinet/sctp_usrreq.c
+2-51 files

FreeBSD/src 17f3aaetests/sys/kqueue/libkqueue timer.c

tests/kqueue: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    markj
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59542

(cherry picked from commit c65c63cf5104bff198854fd1d8fe277dfc1c1956)
DeltaFile
+1-5tests/sys/kqueue/libkqueue/timer.c
+1-51 files

FreeBSD/src 81d40d7cddl/usr.sbin/dtrace/tests dtrace.test.mk, cddl/usr.sbin/dtrace/tests/i386/funcs Makefile

dtrace/tests: compile D sources at runtime on test target

Previously, we would precompile D test dependencies using the
host's dtrace, which unconditionally outputs ELF files in the
host's format. This breaks the cross-compile build with errors
like the following:

dtrace: failed to link script: incorrect ELF machine type for
object file: tst.usdt.pieo
--- usdt.o ---
*** Failed target: usdt.o

This patch moves compilation to runtime for all C-based testcases
that have a dependent D source file.

Reviewed by:    markj
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59030

    [2 lines not shown]
DeltaFile
+23-1cddl/usr.sbin/dtrace/tests/tools/dtest.sh
+10-8cddl/usr.sbin/dtrace/tests/dtrace.test.mk
+3-1cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh
+3-1cddl/usr.sbin/dtrace/tests/i386/ustack/Makefile
+3-1cddl/usr.sbin/dtrace/tests/i386/pid/Makefile
+3-1cddl/usr.sbin/dtrace/tests/i386/funcs/Makefile
+45-1387 files not shown
+306-10093 files

FreeBSD/src fc6f350cddl/contrib/opensolaris/common/ctf ctf_hash.c

libctf: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    markj
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59537

(cherry picked from commit 8e75ea59b085fb6dedfe5911481e6673a60b48fe)
DeltaFile
+1-2cddl/contrib/opensolaris/common/ctf/ctf_hash.c
+1-21 files

FreeBSD/src 292e92bsys/dev/cxgb cxgb_sge.c

cxgb(4): remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    np
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59545

(cherry picked from commit d5047ddeddab45923ff4870cf9a0e158619e3a30)
DeltaFile
+2-2sys/dev/cxgb/cxgb_sge.c
+2-21 files

FreeBSD/src cf509d8lib/googletest/tests Makefile.inc

lib/googletest: also use -O0 for internal tests with GCC

This fixes the build with gcc 16's aggressive inlining.

Reviewed by:    ngie
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59538

(cherry picked from commit 243bdaff75853606ce477807e87e4fbcc1decfb1)
DeltaFile
+3-3lib/googletest/tests/Makefile.inc
+3-31 files

FreeBSD/src eaeb5f2. UPDATING, packages/bsdconfig bsdconfig.ucl

sysrc: make independant from bsdconfig(8)

MFC After:      1 week
Approved by:    dteske
Reviewed by:    dteske
Differential Revision:  https://reviews.freebsd.org/D59658
DeltaFile
+898-0usr.sbin/sysrc/sysrc.subr
+5-714usr.sbin/bsdconfig/share/sysrc.subr
+3-9usr.sbin/sysrc/sysrc
+4-1usr.sbin/sysrc/Makefile
+5-0UPDATING
+0-3packages/bsdconfig/bsdconfig.ucl
+915-7271 files not shown
+916-7287 files

FreeBSD/src 42c6944sys/powerpc/aim mmu_radix.c

powerpc/radix: acquire the pmap lock in mmu_radix_extract()

mmu_radix_extract() walks the page tables without holding the pmap lock,
unlike its hash MMU counterpart moea64_extract(). A concurrent unmap can
free and recycle the page table page being walked, so the read returns
whatever now occupies that memory and the caller gets a physical address
that never existed.

That is how mmu_radix_sync_icache() came to hand a bogus address to
__syncicache() and panic the machine. Commit 1574ca1955f5 worked around
it by taking the pmap lock in mmu_radix_sync_icache(), but the machine
independent callers of pmap_extract() - vm_sync_icache(), proc_rwmem()
and the vslock() paths - remain exposed to the same failure.

Rename the existing body to mmu_radix_extract_locked(), which asserts the
lock, and make mmu_radix_extract() a thin wrapper that acquires it.
mmu_radix_sync_icache() already holds the pmap lock, so it calls the
locked variant directly and neither recurses nor reacquires the lock once
per page.

    [5 lines not shown]
DeltaFile
+15-5sys/powerpc/aim/mmu_radix.c
+15-51 files

FreeBSD/src 2f10ffcsys/contrib/openzfs/cmd ztest.c zhack.c, sys/contrib/openzfs/cmd/zstream zstream_queue.c

zfs: merge openzfs/zfs at 02b5baf13

Notable upstream pull request merges:

 #18808 6d4ff3b4f Pool split leaks DTL spacemap objects
 #18844 0833cfd64 Decline Direct I/O reads on a file handle after a benign
                  verify failure
 #18853 39764eb06 Fix double free when cloning a block with a pending free
 #18901 51fe1fb84 dmu_send: a meta-dnode range does not start where an
                  object does
 #18903 904d4327f dmu_objset_open_impl: unregister prop callbacks on error
 #18906 e45640415 zdb: add detailed diagnostics for MOS leaks and spacemap
                  refs
 #18909 1b7143557 Keep a grown vdev from adopting an older pool's labels
 #18912 -multiple Defer destruction of a snapshot that a mount is holding
                  open
 #18921 33ae06bb6 ZIO: Batch vdev children completions
 #18940 7853c27eb ZIO: Batch lightweight ZIOs
 #18967 -multiple Speed up pool rewind and allow it to tolerate minor damage

    [33 lines not shown]
DeltaFile
+1,829-0sys/contrib/openzfs/tests/unit/test_nvpair.c
+654-1sys/contrib/openzfs/cmd/zhack.c
+425-68sys/contrib/openzfs/module/zfs/zio.c
+356-75sys/contrib/openzfs/module/zfs/spa.c
+248-85sys/contrib/openzfs/cmd/ztest.c
+200-97sys/contrib/openzfs/cmd/zstream/zstream_queue.c
+3,712-326159 files not shown
+8,227-1,054165 files

FreeBSD/src cbd730esys/dev/sound/pci emu10kx-pcm.c

snd_emu10kx: Make sure the block count and size cover the whole buffer

The playback voices always loop over the whole EMU_PLAY_BUFSZ buffer,
but emupchan_setblocksize() only recorded the new block size and left
the block count as it was set up by emu_vinit(). The blocks then no
longer covered the whole buffer, and the part they left out was played
without ever being written to, which became audible as distortion once
playback started going through a virtual channel.

Resize the buffer, so that the block count and size always cover it.

Fixes:          02d4eeabfd73 ("sound: Allocate vchans on-demand")
PR:             287687
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D59444

(cherry picked from commit a7258157e1a20957af23332814197ea723f5778d)
DeltaFile
+19-2sys/dev/sound/pci/emu10kx-pcm.c
+19-21 files

FreeBSD/src 9315ab3sys/dev/video video.c

video(4): wake the kqueue knote when a buffer completes

selwakeup() only wakes select/poll waiters; it does not notify the kqueue
knote registered on the device, so EVFILT_READ never fired when a frame
became available.
DeltaFile
+2-0sys/dev/video/video.c
+2-01 files

FreeBSD/src bae0845sys/dev/video video.c

video(4): add missing V4L2_CAP_EXT_PIX_FORMAT feature

this fixes, 2 failed v4l2-compliances tests
DeltaFile
+3-2sys/dev/video/video.c
+3-21 files

FreeBSD/src 4161e83sys/kern kern_sysctl.c

sys/kern: Fix a typo in a source code comment

- s/untill/until/

(cherry picked from commit 8255ae9a750f6de312f9b445c25b1c8caf3d95b7)
DeltaFile
+1-1sys/kern/kern_sysctl.c
+1-11 files

FreeBSD/src 3d8b783include/arpa telnet.h

arpa/telnet: Fix a typo in a source code comment

- s/ascic/ASCII/

(cherry picked from commit 16246209d25ac437494ebe92b9819a65f1336594)
DeltaFile
+1-1include/arpa/telnet.h
+1-11 files

FreeBSD/src 9f8836fsys/kern kern_sysctl.c

sys/kern: Fix a typo in a source code comment

- s/untill/until/

(cherry picked from commit 8255ae9a750f6de312f9b445c25b1c8caf3d95b7)
DeltaFile
+1-1sys/kern/kern_sysctl.c
+1-11 files

FreeBSD/src 2150c4cinclude/arpa telnet.h

arpa/telnet: Fix a typo in a source code comment

- s/ascic/ASCII/

(cherry picked from commit 16246209d25ac437494ebe92b9819a65f1336594)
DeltaFile
+1-1include/arpa/telnet.h
+1-11 files

FreeBSD/src 7a03960share/man/man4 asmc.4

asmc.4: clean up/modernize manpage

- sysutils/ataidle is no more: it was superseded by camcontrol(8).
- Sort the models table alphabetically.
- Use the SPDX License ID instead of the longhand licensing tort in the
  manpage header.
- Note that the driver has been heavily modified in 15.1 and later to
  support additional platforms and functionality.
- Trim down SYNOPSIS.

MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D59470
DeltaFile
+46-70share/man/man4/asmc.4
+46-701 files

FreeBSD/src 8f478e4share/man/man4 Makefile apple_bce.4

apple_bce.4: add a basic manpage describing the driver

This new manpage describes what the apple_bce driver services, how the
driver is configured, and what Apple models the driver claims to
support.

Reviewed by:    seuros
Differential Revision:  https://reviews.freebsd.org/D59467
DeltaFile
+53-0share/man/man4/apple_bce.4
+5-0share/man/man4/Makefile
+58-02 files

FreeBSD/src 7ffc4eccontrib/xz ChangeLog, contrib/xz/src/common my_landlock.h

MFV: xz 5.8.4.

MFC after:      3 days
DeltaFile
+1,488-0contrib/xz/ChangeLog
+172-92contrib/xz/src/liblzma/common/index.c
+76-82contrib/xz/src/xz/xz.1
+49-10contrib/xz/src/liblzma/common/index_decoder.c
+29-12contrib/xz/src/common/my_landlock.h
+20-16contrib/xz/src/liblzma/check/crc32_arm64.h
+1,834-21224 files not shown
+2,016-28730 files

FreeBSD/src 4564e1flib/msun/src s_fmaf.c

lib/msun: use the same algorithm for sw fmaf(3) as for fma(3)

PR:     298260

(cherry picked from commit b08e6a3882b44a09fbda84dd315a431c7a585219)
DeltaFile
+230-24lib/msun/src/s_fmaf.c
+230-241 files

FreeBSD/src 3825e6blib/msun/tests fma_test.c

lib/msun: add tests for fmaf(3) subnormals

PR:     298260

(cherry picked from commit cb82cc9f0e3bdf2b39734851c74b9a13edb0cbdc)
DeltaFile
+27-1lib/msun/tests/fma_test.c
+27-11 files

FreeBSD/src cf46693lib/msun/amd64 Makefile.inc s_fma_avx.S, lib/msun/src s_fmaf.c s_fma.c

lib/msun amd64: use AVX FMA instructions for fma(3) and fmaf(3) when available

(cherry picked from commit 18a5549bcb81ec084f284a98046631db277ad47c)
DeltaFile
+24-0lib/msun/amd64/s_fma_avx.S
+24-0lib/msun/amd64/s_fmaf_avx.S
+10-1lib/msun/src/s_fmaf.c
+10-1lib/msun/src/s_fma.c
+8-1lib/msun/amd64/Makefile.inc
+76-35 files