FreeBSD/src aba599ainclude paths.h, usr.sbin/zzz zzz.8 zzz.c

zzz: Rewrite to use new power device

Previous script called acpiconf(8) (or apm(8) if ACPI wasn't supported,
although this was anyway redundant because APMIO just uses ACPI now).

Since a new generic power management interface was introduced, this isn't
sufficient, as this would only work for ACPI systems and for ACPI S3 suspend
(so no way to select suspend-to-idle). Rewrite in C to take advantage of the
new power interface.

We may want to add a switch to manually override the kern.power.suspend sysctl,
which is otherwise what the power device uses to decide which suspend type to
switch to (suspend-to-idle or firmware suspend), but this will require us to
amend the power interface.

Reviewed by:    olce, imp, mhorne, ziaee
Tested by:      mhorne
Approved by:    olce, imp, mhorne, ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56918
DeltaFile
+41-45usr.sbin/zzz/zzz.8
+47-0usr.sbin/zzz/zzz.c
+0-41usr.sbin/zzz/zzz.sh
+3-1usr.sbin/zzz/Makefile
+1-0include/paths.h
+92-875 files

FreeBSD/src 7669a18etc/mtree BSD.usr.dist

mtree: usr: Add missing pkg/triggers entry

Reviewed by:    ivy
Fixes:          ea5e50c2985b ("packages: Add a mandoc package")
Differential Revision:  https://reviews.freebsd.org/D54682

(cherry picked from commit b8480379adcefaff0553aed1df67b249a0b194c8)
DeltaFile
+4-0etc/mtree/BSD.usr.dist
+4-01 files

FreeBSD/src 14b8531share/man/man4 Makefile, sys/amd64/conf MINIMAL

padlock: Restore padlock_rng to the amd64 build

Revert 88a53301e19 and d1ca01059d5 .  They removed padlock_rng from the
amd64 build under the mistaken belief that this device was available on
32-bit processors only.  But it's also available on the 64-bit Via Nano,
Nano X2, and some Zhaoxin CPUs.

PR:             295517
Fixes:          88a53301e19 ("padlock.4: only install on i386")
Fixes:          d1ca01059d5 ("padlock(4)/nehemiah: move i386-only entropy")
MFC after:      1 week
Reviewed by:    kib
Differential Revision: https://reviews.freebsd.org/D57215
DeltaFile
+0-7sys/i386/conf/NOTES
+1-4share/man/man4/Makefile
+1-3sys/modules/Makefile
+0-1sys/conf/files.i386
+1-0sys/conf/files.x86
+1-0sys/amd64/conf/MINIMAL
+4-152 files not shown
+6-158 files

FreeBSD/src be03b0fusr.sbin/syslogd syslogd_cap_log.c

syslogd: fix memory leak in casper_ttymsg()

nvlist_take_string_array(9) takes ownership of the array and its
strings. casper_ttymsg() freed neither, leaking memory on every
F_CONSOLE and F_TTY message. On long-running systems with high
error-rate syslog traffic routed to /dev/console, syslogd.casper grew
to hundreds of MB.

Use nvlist_get_string_array(9) to borrow the array instead. Update
casper_wallmsg() similarly.

Approved by:    src (des)
Closes:         https://github.com/freebsd/freebsd-src/pull/2222
Fixes:          61a29eca550b ("syslogd: Log messages using libcasper")
MFC after:      3 days
MFC to:         stable/15
PR:             295488
Reported by:    Pat Maddox <pat at patmaddox.com>
Reviewed by:    markj

    [3 lines not shown]
DeltaFile
+6-8usr.sbin/syslogd/syslogd_cap_log.c
+6-81 files

FreeBSD/src 3525c61lib/clang/libllvm Makefile

Fix building with LLVM_BINUTILS_BOOSTRAP but without CLANG_BOOTSTRAP

Without this change I get various undefined symbol errors when trying to
link llvm-nm and llvm-objcopy during the cross-tools stage.

Test Plan: builds now
Reviewed by:    dim, emaste
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D56873
DeltaFile
+35-35lib/clang/libllvm/Makefile
+35-351 files

FreeBSD/src 882181bsys/fs/p9fs p9_client.c p9_client.h

p9fs: Implement msize mount option and bump default to 128 KiB

QEMU warns when msize is <= 8192 due to degraded performance.
This change bumps our default msize to 128 KiB, matching the
Linux Kernel v5.15 and newer default. Linux supports even larger values,
but 128 KiB is a sensible default.

We also add a new 'msize' mount option to allow users to override
this value, and we validate it against our maximum supported MTU
(currently fixed by the UMA zone size).

Reviewed by:    markj
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D56496
DeltaFile
+8-1sys/fs/p9fs/p9_client.c
+5-2sys/fs/p9fs/p9_client.h
+1-1sys/fs/p9fs/p9fs_vfsops.c
+14-43 files

FreeBSD/src 675382fsys/dev/virtio/p9fs virtio_p9fs.c, sys/fs/p9fs p9_client.c p9_client.h

p9fs: Refactor buffer allocations to avoid zeroing large payloads

Allocating large buffers with M_ZERO adds unnecessary overhead since
the data is immediately overwritten. This change embeds the tc and rc
p9_buffer structs directly into p9_req_t so we only zero the small
metadata headers. The actual data payload is allocated with M_NOWAIT.

Embedding the metadata headers by value also allows the p9fs_buf_zone
UMA items to be sized exactly to P9FS_MTU, ensuring they are nicely
aligned.

This also adds proper error handling to p9_get_request() to handle
UMA allocation failures.

Reviewed by:    markj
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D56495
DeltaFile
+42-53sys/fs/p9fs/p9_client.c
+5-5sys/dev/virtio/p9fs/virtio_p9fs.c
+2-2sys/fs/p9fs/p9_client.h
+49-603 files

FreeBSD/src 004b593share/mk bsd.sys.mk

bsd.sys.mk: suppress some clang warnings for C++ for >= 19

I just tried building with system clang on one of my Linux systems which
happens to be version 19, and these warning suppressions are needed for
that version too: same errors as in the original commit.

Reviewed by:    imp
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D56874
DeltaFile
+0-2share/mk/bsd.sys.mk
+0-21 files

FreeBSD/src 77fd9e0crypto/openssh sshconnect2.c

upstream: fix hard-to-reach NULL deref during pubkey auth

To hit this, the user must be using a PEM style private key with no
corresponding .pub key adjacent to it.

OpenBSD-Commit-ID: b7150acc5322fa33f21491834d9471fbe3d30f20
(cherry picked from commit cf6c0b3b94cdc223f1b8be1ef2d93e993af5d976)

Reviewed by:    emaste
DeltaFile
+2-2crypto/openssh/sshconnect2.c
+2-21 files

FreeBSD/src b9d16b7sys/kern kern_sig.c, tests/sys/capsicum capmode.cc

sigqueue: In capability mode, only allow signalling self

This is copied from the check in kern_kill.

Reviewed by:    markj, oshogbo
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57244
DeltaFile
+9-3tests/sys/capsicum/capmode.cc
+10-0sys/kern/kern_sig.c
+19-32 files

FreeBSD/src c564074sys/netinet ip_divert.c

divert: Avoid using atomic_(load|store)_(acq|rel)_16

It's not implemented on some arches.  Use a plain int to count the
number of sockets in a divert lbgroup.

Reported by:    Jenkins
Fixes:          895a0ae67fe2 ("divert: Define semantics for SO_REUSEPORT_LB on divert sockets")
DeltaFile
+7-5sys/netinet/ip_divert.c
+7-51 files

FreeBSD/src 00b96a7sys/amd64/amd64 trap.c

amd64: Drop segment descriptor details from trap messsages

Segment descriptor contents are fixed on amd64 and not very interesting
compared to the other values that are displayed.

While here, include both the thread and process details of the current
thread and drop redundant output of the trap number.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56989
DeltaFile
+3-13sys/amd64/amd64/trap.c
+3-131 files

FreeBSD/src 2750d95sys/netinet tcp_log_buf.c

tcp: fix TCP_ACCOUNTING build

The uninitialized timeval was discovered by the new clang.
DeltaFile
+1-0sys/netinet/tcp_log_buf.c
+1-01 files

FreeBSD/src 2ca9d92lib/libc/gen nlist.3

nlist.3: Add discouraged use notice

It is a relic from a.out days and is poorly specified. Although ELF
support was added to nlist, there are better ways to access ELF data.

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57078

(cherry picked from commit 94b7a335683abcbcd76e8b67d37e21271d81590c)
(cherry picked from commit be2da08e0b5b82329e36a6cf3b98f9099c6184ce)
DeltaFile
+4-0lib/libc/gen/nlist.3
+4-01 files

FreeBSD/src 5083252lib/libc/gen nlist.3

nlist.3: Clarify which symbol table is used

nlist() requires section headers, and currently fetches symbol names
only from SHT_SYMTAB,

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57065

(cherry picked from commit cd6bf930eafe850dc631feeaf8332832601f4225)
(cherry picked from commit e25366d46bf5cdd840d2827524f9ed29e2fcbc66)
DeltaFile
+5-3lib/libc/gen/nlist.3
+5-31 files

FreeBSD/src fea07b7lib/libc/gen nlist.3

nlist.3: Replace a.out(5) Xref with elf(5)

ELF support was added to nlist() in 1997, and a.out support was removed
in 2020.  The man page was not updated for either of these changes.

Fixes: 77909f597881 ("Initial elf nlist support, ...")
Fixes: 86cfa7e70b2b ("nlist: retire long-obsolete aout support")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 876a17321c896427d70de94101df4d888a19189b)

struct nlist is documented in both a.out(5) and stab(5), so add an Xref
to the latter.

(cherry picked from commit 762e451b318c8cbfddbcaaa92a218e8b45306eb9)
(cherry picked from commit 9d9651c49575e27f2873c10bb7fe855be29ff48a)
DeltaFile
+4-5lib/libc/gen/nlist.3
+4-51 files

FreeBSD/src 9d9651clib/libc/gen nlist.3

nlist.3: Replace a.out(5) Xref with elf(5)

ELF support was added to nlist() in 1997, and a.out support was removed
in 2020.  The man page was not updated for either of these changes.

Fixes: 77909f597881 ("Initial elf nlist support, ...")
Fixes: 86cfa7e70b2b ("nlist: retire long-obsolete aout support")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 876a17321c896427d70de94101df4d888a19189b)

struct nlist is documented in both a.out(5) and stab(5), so add an Xref
to the latter.

(cherry picked from commit 762e451b318c8cbfddbcaaa92a218e8b45306eb9)
DeltaFile
+4-3lib/libc/gen/nlist.3
+4-31 files

FreeBSD/src e25366dlib/libc/gen nlist.3

nlist.3: Clarify which symbol table is used

nlist() requires section headers, and currently fetches symbol names
only from SHT_SYMTAB,

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57065

(cherry picked from commit cd6bf930eafe850dc631feeaf8332832601f4225)
DeltaFile
+5-3lib/libc/gen/nlist.3
+5-31 files

FreeBSD/src be2da08lib/libc/gen nlist.3

nlist.3: Add discouraged use notice

It is a relic from a.out days and is poorly specified. Although ELF
support was added to nlist, there are better ways to access ELF data.

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57078

(cherry picked from commit 94b7a335683abcbcd76e8b67d37e21271d81590c)
DeltaFile
+4-0lib/libc/gen/nlist.3
+4-01 files

FreeBSD/src f3a50f7contrib/unbound configure config.h.in, contrib/unbound/doc unbound-checkconf.8.in unbound.8

unbound: Update to 1.24.2

Merge commit 'ec5b94f552d7cb2a9d456c67e9941bcf5e3698bf'

This is purely cosmetic as we already had the functional changes.

MFC after:      1 week

(cherry picked from commit 22fa41b4e81ad91d11e28f1837764730d744d4e4)
DeltaFile
+2,692-1,909contrib/unbound/configure
+8-8lib/libunbound/config.h
+5-5contrib/unbound/config.h.in
+2-2contrib/unbound/doc/unbound-checkconf.8.in
+2-2contrib/unbound/doc/unbound.8
+2-2contrib/unbound/doc/unbound.8.in
+2,711-1,92815 files not shown
+2,738-1,95421 files

FreeBSD/src a267928contrib/unbound configure, contrib/unbound/pythonmod interface.i

unbound: Update to 1.25.0

Release notes at
        https://nlnetlabs.nl/news/2026/Apr/29/unbound-1.25.0-released/

Merge commit '4dd0a17edce60370304a45f2c40251e09e193bd6'

MFC after:      1 week

(cherry picked from commit 5fa84c6ec176d186ddad25d31f8760e50f48157f)
DeltaFile
+3,982-3,941contrib/unbound/util/configlexer.c
+2,504-3,790contrib/unbound/configure
+2,396-2,294contrib/unbound/util/configparser.c
+0-2,764contrib/unbound/testcode/doqclient.c
+0-2,044contrib/unbound/testcode/fake_event.c
+0-1,857contrib/unbound/pythonmod/interface.i
+8,882-16,690132 files not shown
+15,803-27,136138 files

FreeBSD/src de9d7a2contrib/unbound ltmain.sh configure, contrib/unbound/util configparser.c

unbound: Update to 1.25.1

Release notes at
        https://nlnetlabs.nl/news/2026/May/20/unbound-1.25.1-released/

Merge commit '22e58f330a151944c24e010d23ec3881df6681b6'

Security:       CVE-2026-33278
Security:       CVE-2026-42944
Security:       CVE-2026-42959
Security:       CVE-2026-32792
Security:       CVE-2026-40622
Security:       CVE-2026-41292
Security:       CVE-2026-42534
Security:       CVE-2026-42923
Security:       CVE-2026-42960
Security:       CVE-2026-44390
Security:       CVE-2026-44608
MFC after:      1 week

    [2 lines not shown]
DeltaFile
+969-601contrib/unbound/ltmain.sh
+1,129-366contrib/unbound/configure
+425-471contrib/unbound/util/configparser.c
+509-348contrib/unbound/aclocal.m4
+108-68contrib/unbound/install-sh
+71-5contrib/unbound/validator/val_nsec3.c
+3,211-1,85934 files not shown
+3,403-1,93140 files

FreeBSD/src f8ad4dfcontrib/ldns config.sub rr.c

ldns: Update to 1.9.0

Merge commit '5eb18e8576462f5bb33fbd60fcbd752fe5791f33'

MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D57170

(cherry picked from commit 9ed998a81bab54203604d08293089db875758686)

ldns: Regenerate configuration after update

MFC after:      1 week
Fixes:          d44c9549ef31 ("ldns: Update to 1.8.4")
Fixes:          9ed998a81bab ("ldns: Update to 1.9.0")

(cherry picked from commit 70739f3499b03cfff6bdd985db0d81cde76be15a)

ldns: Fix unused variable on big-endian

    [5 lines not shown]
DeltaFile
+571-178contrib/ldns/config.sub
+111-18contrib/ldns/rr.c
+82-12contrib/ldns/configure
+66-2contrib/ldns/str2host.c
+60-0contrib/ldns/host2str.c
+29-29contrib/ldns/Makefile.in
+919-23932 files not shown
+1,303-30538 files

FreeBSD/src d61b19bcontrib/unbound/doc unbound.conf.5 unbound-control.8

unbound: Regenerate for 1.24.1

No functional changes intended.

Fixes:          8b29c373e6ab ("unbound: Vendor import 1.24.1")
(cherry picked from commit 290190b26c09c307a9cd70703fa20ad2b2b600a6)
DeltaFile
+5,042-2,546contrib/unbound/doc/unbound.conf.5
+1,203-637contrib/unbound/doc/unbound-control.8
+330-343contrib/unbound/doc/libunbound.3
+245-134contrib/unbound/doc/unbound-anchor.8
+157-85contrib/unbound/doc/unbound-host.1
+102-67contrib/unbound/doc/unbound.8
+7,079-3,8123 files not shown
+7,184-3,8669 files

FreeBSD/src 22f95b6contrib/unbound freebsd-configure.sh

unbound: Tweak freebsd-configure script

Regenerating the configure script is optional and can introduce noise
if the installed versions of autoconf, automake, and libtool do not
match those used upstream.  Tweak our script slightly so it will skip
this step if libtoolize is not found.

(cherry picked from commit cd69bc03cf67b958e08206d49562903c57b5bd28)
DeltaFile
+1-1contrib/unbound/freebsd-configure.sh
+1-11 files

FreeBSD/src c81fa81contrib/ldns configure ltmain.sh, contrib/ldns/m4 libtool.m4

ldns: Update to 1.8.4

Merge commit '3dcfa5af412125cd1bad1d383ff7c18c5effbd77'

MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D57169

(cherry picked from commit d44c9549ef31884ac069b0306bad248a74bb2825)
DeltaFile
+670-208contrib/ldns/configure
+520-335contrib/ldns/ltmain.sh
+0-274contrib/ldns/README-Travis.md
+160-79contrib/ldns/config.sub
+131-98contrib/ldns/m4/libtool.m4
+154-69contrib/ldns/acx_nlnetlabs.m4
+1,635-1,06341 files not shown
+2,298-1,30447 files

FreeBSD/src 944bd28contrib/ldns/ldns config.h

ldns: Belatedly update for OpenSSL 3.0.0

MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D57168

(cherry picked from commit cbe037c970580efc40eeca4715ac51e4d0fea082)

ldns: Mark these commits as merged

(cherry picked from commit 2bc6aa3c41d0dc330fefa6363a23d2cfa0253f73)
(cherry picked from commit 597a090ff2ab868242e4ec1cdec7469edbe41c50)
(cherry picked from commit 399f9ca49b6ecc7fc9bd8b2a0fd487fea4570a65)
(cherry picked from commit f103898935e1b709adbdaed5e0b10f99a17b9a4a)
DeltaFile
+1-1contrib/ldns/ldns/config.h
+1-11 files

FreeBSD/src 64cdd79contrib/unbound configure, contrib/unbound/pythonmod interface.i

unbound: Update to 1.25.0

Release notes at
        https://nlnetlabs.nl/news/2026/Apr/29/unbound-1.25.0-released/

Merge commit '4dd0a17edce60370304a45f2c40251e09e193bd6'

MFC after:      1 week

(cherry picked from commit 5fa84c6ec176d186ddad25d31f8760e50f48157f)
DeltaFile
+3,982-3,941contrib/unbound/util/configlexer.c
+2,504-3,790contrib/unbound/configure
+2,396-2,294contrib/unbound/util/configparser.c
+0-2,764contrib/unbound/testcode/doqclient.c
+0-2,044contrib/unbound/testcode/fake_event.c
+0-1,857contrib/unbound/pythonmod/interface.i
+8,882-16,690132 files not shown
+15,803-27,136138 files

FreeBSD/src d8a5915contrib/unbound/doc unbound.conf.5 unbound-control.8

unbound: Regenerate for 1.24.1

No functional changes intended.

Fixes:          8b29c373e6ab ("unbound: Vendor import 1.24.1")
(cherry picked from commit 290190b26c09c307a9cd70703fa20ad2b2b600a6)
DeltaFile
+5,042-2,546contrib/unbound/doc/unbound.conf.5
+1,203-637contrib/unbound/doc/unbound-control.8
+330-343contrib/unbound/doc/libunbound.3
+245-134contrib/unbound/doc/unbound-anchor.8
+157-85contrib/unbound/doc/unbound-host.1
+102-67contrib/unbound/doc/unbound.8
+7,079-3,8123 files not shown
+7,184-3,8669 files

FreeBSD/src caae890contrib/unbound freebsd-configure.sh

unbound: Tweak freebsd-configure script

Regenerating the configure script is optional and can introduce noise
if the installed versions of autoconf, automake, and libtool do not
match those used upstream.  Tweak our script slightly so it will skip
this step if libtoolize is not found.

(cherry picked from commit cd69bc03cf67b958e08206d49562903c57b5bd28)
DeltaFile
+1-1contrib/unbound/freebsd-configure.sh
+1-11 files