FreeBSD/src 22fa41bcontrib/unbound configure config.h.in, contrib/unbound/doc unbound-host.1.in libunbound.3

unbound: Update to 1.24.2

Merge commit 'ec5b94f552d7cb2a9d456c67e9941bcf5e3698bf'

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

MFC after:      1 week
DeltaFile
+2,692-1,909contrib/unbound/configure
+8-8lib/libunbound/config.h
+5-5contrib/unbound/config.h.in
+2-2contrib/unbound/doc/unbound-host.1.in
+2-2contrib/unbound/doc/libunbound.3
+2-2contrib/unbound/doc/libunbound.3.in
+2,711-1,92815 files not shown
+2,738-1,95421 files

FreeBSD/src 290190bcontrib/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")
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 cd69bc0contrib/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.
DeltaFile
+1-1contrib/unbound/freebsd-configure.sh
+1-11 files

FreeBSD/src dd64155contrib/ldns sha2.c

ldns: Fix unused variable on big-endian

MFC after:      1 week
Fixes:          9ed998a81bab ("ldns: Update to 1.9.0")
DeltaFile
+2-0contrib/ldns/sha2.c
+2-01 files

FreeBSD/src eff5f22sys/netlink/route iface.c

netlink: Fix interface type match

Reviewed by: bz, glebius, pouria
Fixes: 7e5bf68495cc ("netlink: add netlink support")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57167
DeltaFile
+1-1sys/netlink/route/iface.c
+1-11 files

FreeBSD/src fd9af1esys/kern kern_sendfile.c

sendfile: Fix bug when using headers with SW KTLS offload

When using SW KTLS, we must account for the headers in sf_iodone()
in terms of either freeing or enqueuing them for TLS work.
Not doing so can lead to a situation where we enqueue only
the payload, and not the header, for encryption. Rather than
leaking the header, the socket is left "hung" with the header marked
M_NOTREADY.

Sponsored by: Netflix
Reviewed by: glebius, kib
Differential Revision: https://reviews.freebsd.org/D57134
MFC After: 14 days
DeltaFile
+21-2sys/kern/kern_sendfile.c
+21-21 files

FreeBSD/src 4e2bf6econtrib/mandoc mdoc.7

mdoc.7: Revert upstream changes to Lb/LIBRARY

Since this manual describes the mdoc syntax throughout the ecosystem,
I had to blend what we had before with what upstream is doing now.

Thanks:         adrian
MFC after:      3 days (we shipped this doc in 15.0/14.4)
Reviewed by:    ivy, mhorne, des, adrian
Discussed with: arch@
Differential Revision:  https://reviews.freebsd.org/D56153
DeltaFile
+33-4contrib/mandoc/mdoc.7
+33-41 files

FreeBSD/src 70739f3contrib/ldns/ldns config.h util.h

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")
DeltaFile
+38-9contrib/ldns/ldns/config.h
+24-2contrib/ldns/ldns/util.h
+1-2contrib/ldns/ldns/net.h
+63-133 files

FreeBSD/src af7e160share/man/man4 crypto.4 qat_c2xxx.4

crypto driver manuals: Add crypto to search index

While here, tag spdx and sync the drivers in crypto(4)/SEE ALSO.

MFC after:              2 days (added back hifn)
Differential Revision:  https://reviews.freebsd.org/D57060

(cherry picked from commit 9096a8b1c89c7e98df0d5a27cf1a5f4c6e8ddf19)
DeltaFile
+10-1share/man/man4/crypto.4
+5-3share/man/man4/qat_c2xxx.4
+5-2share/man/man4/padlock.4
+5-2share/man/man4/aesni.4
+3-3share/man/man4/qat.4
+28-115 files

FreeBSD/src 9b21cf7share/man/man5 style.mdoc.5

style.mdoc: Explain why not to abuse Nm

MFC after:              3 days
Reviewed by:            0mp
Differential Revision:  https://reviews.freebsd.org/D55299

(cherry picked from commit bcd50fe5c3c6e70c710e13378999814e9df43d3c)
DeltaFile
+6-0share/man/man5/style.mdoc.5
+6-01 files

FreeBSD/src 76c3387libexec/tftpd tftp-io.c

tftpd: Simplify packet drop macro

The first argument is always the function name, for which we can simply
use __func__.  This leaves only the optional return value, so we can use
a single variadic macro instead of two nearly-identical copies.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57076
DeltaFile
+23-28libexec/tftpd/tftp-io.c
+23-281 files

FreeBSD/src 9338937libexec/tftpd tftp-io.c

tftpd: Add missing bounds checks

In send_[rw]rq(), we were using strlcpy() to avoid overflowing our
packet buffer, then failing to check the result and blithely advancing
our pointer by the full length.

Luckily, this code is only ever used by tftp(1), not tftpd(8).

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57075
DeltaFile
+32-26libexec/tftpd/tftp-io.c
+32-261 files

FreeBSD/src b94689dusr.bin/tftp/tests tftp_test.sh

tftp: Add test case with over-long URL

This adds a test case that passes a very long URL on the command line,
which would previously have resulted in a benign buffer overflow in
urihandling(), detectable only by compiling tftp with ASAN enabled.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57074
DeltaFile
+24-0usr.bin/tftp/tests/tftp_test.sh
+24-01 files

FreeBSD/src 29aaaa5usr.bin/tftp main.c tftp.c

tftp: Style cleanup

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57073
DeltaFile
+20-36usr.bin/tftp/main.c
+20-20usr.bin/tftp/tftp.c
+40-562 files

FreeBSD/src 5fd928cusr.bin/tftp main.c

tftp: Replace fgets with getline

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57072
DeltaFile
+45-45usr.bin/tftp/main.c
+45-451 files

FreeBSD/src 47e4571usr.bin/tftp tftp.c main.c

tftp: Fix handling of port name or number

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57105
DeltaFile
+22-18usr.bin/tftp/tftp.c
+4-3usr.bin/tftp/main.c
+26-212 files

FreeBSD/src 2935133usr.bin/tftp main.c

tftp: Close files when we're done with them

Also, delete the file we created if receiving it failed.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57071
DeltaFile
+8-2usr.bin/tftp/main.c
+8-21 files

FreeBSD/src a4b1759usr.bin/tftp main.c

tftp: Simplify URI handling

* No need to copy our argument into a new buffer; it is writeable and
  will not be reused after we return.

* Instead of constructing the string "get path" and then splitting it
  into an argument vector, just construct the vector directly.  This
  avoid potentially overrunning the buffer.

* Call settftpmode() just once, with either the default mode or the
  user-provided value we already validated.

* Use errx() instead of fprintf(stderr) + exit().

Reported by:    Moyao, Minghao Fu
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57070
DeltaFile
+12-20usr.bin/tftp/main.c
+12-201 files

FreeBSD/src 9ed998acontrib/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
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-23930 files not shown
+1,265-30036 files

FreeBSD/src d44c954contrib/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
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,06338 files not shown
+2,267-1,29244 files

FreeBSD/src 399f9cacontrib/ldns config.sub rr.c

Revert "import ldns 1.9.0"

Pre-push rebase bungled the metadata

This reverts commit 597a090ff2ab868242e4ec1cdec7469edbe41c50.
DeltaFile
+179-572contrib/ldns/config.sub
+18-111contrib/ldns/rr.c
+12-82contrib/ldns/configure
+2-66contrib/ldns/str2host.c
+0-60contrib/ldns/host2str.c
+29-29contrib/ldns/Makefile.in
+240-92030 files not shown
+301-1,26636 files

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

Revert "import ldns 1.8.3"

Pre-push rebase bungled the metadata

This reverts commit 2bc6aa3c41d0dc330fefa6363a23d2cfa0253f73.
DeltaFile
+208-670contrib/ldns/configure
+337-522contrib/ldns/ltmain.sh
+274-0contrib/ldns/README-Travis.md
+79-160contrib/ldns/config.sub
+98-131contrib/ldns/m4/libtool.m4
+69-154contrib/ldns/acx_nlnetlabs.m4
+1,065-1,63738 files not shown
+1,294-2,26944 files

FreeBSD/src e624417lib/libc/tests/gen fts_children_test.c Makefile

lib/libc/tests/gen: add fts_children() tests

Add ATF test cases covering fts_children() behaviour:

- before fts_read returns root entry list
- empty directory returns NULL with errno 0
- non-empty directory returns all children in order
- called twice returns equivalent results
- FTS_NAMEONLY fills only fts_name, fts_info is FTS_NSOK
- non-directory node returns NULL with errno 0
- invalid options returns NULL with EINVAL

Sponsored by:   Google LLC (GSoC 2026)
Reviewed by:    asomers
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2218
DeltaFile
+323-0lib/libc/tests/gen/fts_children_test.c
+1-0lib/libc/tests/gen/Makefile
+324-02 files

FreeBSD/src 113c262lib/libc/tests/gen fts_open_test.c Makefile

lib/libc/tests/gen: add fts_open() error and edge case tests

Add ATF test cases covering fts_open() error conditions and
edge cases:

- invalid option bits (outside FTS_OPTIONMASK) yield EINVAL
- empty argv yields EINVAL
- empty path string yields FTS_NS with ENOENT
- nonexistent path yields FTS_NS, not open failure
- trailing slash does not crash (SVN r49851 regression)
- unreadable directory yields FTS_D then FTS_DNR, never FTS_DP
- multiple root paths are all visited left to right

Sponsored by: Google LLC (GSoC 2026)
Reviewed by:    asomers
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2217
DeltaFile
+230-0lib/libc/tests/gen/fts_open_test.c
+1-0lib/libc/tests/gen/Makefile
+231-02 files

FreeBSD/src 597a090contrib/ldns config.sub rr.c

import ldns 1.9.0

MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D57170
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-23930 files not shown
+1,265-30036 files

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

import ldns 1.8.3

MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D57169
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,06338 files not shown
+2,267-1,29244 files

FreeBSD/src cbe037ccontrib/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
DeltaFile
+1-1contrib/ldns/ldns/config.h
+1-11 files

FreeBSD/src e030e4elib/libc/gen fts.3

lib/libc/gen/fts.3: use 'options' consistently in fts_set() description

The RETURN VALUES section used "instr" to describe the fts_set()
argument, while the SYNOPSIS and all other references use "options".
Fix the inconsistency.

MFC after:      1 week
Sponsored by:   Google LLC (GSoC 2026)
Reviewed by:    asomers
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2213
DeltaFile
+2-2lib/libc/gen/fts.3
+2-21 files

FreeBSD/src bed77cfsys/conf files.arm64, sys/modules/vmm Makefile

vmm/arm64: Compile vmm_nvhe.c without SSP

This file implements a set of EL2 hypercall handlers and is used to
switch between guests and the host kernel when VHE is not in use.  There
is no SSP runtime available there.

Reported by:    Jenkins
Fixes:          8deebce931fa ("kernel: Enable -fstack-protector-strong by default")
DeltaFile
+1-1sys/modules/vmm/Makefile
+1-1sys/conf/files.arm64
+2-22 files

FreeBSD/src c9546bbtests/sys/kern procdesc.c Makefile

tests/procdesc: Use a more efficient mechanism to block

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D57149
DeltaFile
+37-4tests/sys/kern/procdesc.c
+1-1tests/sys/kern/Makefile
+38-52 files