FreeBSD/src 65e0c7finclude unistd.h, lib/libc/gen freadlink.c Makefile.inc

libc: add freadlink(3)

(cherry picked from commit a2e0822543e93a8d815acd2d1c3d51ef73d6e262)
DeltaFile
+16-0lib/libc/gen/freadlink.c
+1-0include/unistd.h
+1-0lib/libc/gen/Makefile.inc
+1-0lib/libc/gen/Symbol.map
+19-04 files

FreeBSD/src 6646f95sys/ufs/ufs ufs_bmap.c

ufs: support unmapped bufs for indirect blocks in bmap

(cherry picked from commit bab04ddf1fd4b7a77d1cfae4a67ededf1f35ee0d)
DeltaFile
+134-9sys/ufs/ufs/ufs_bmap.c
+134-91 files

FreeBSD/src 5246249sys/compat/linux linux_common.h

linux/linux_common.h: make header self-contained

(cherry picked from commit f6f5eb3190165cea4470048809413b1fdbd97e04)
DeltaFile
+6-0sys/compat/linux/linux_common.h
+6-01 files

FreeBSD/src c1d05b8sys/sys fcntl.h

Add O_SYMLINK emulation

(cherry picked from commit 428da7d65b1c41c81a8786f66c1ce2f4242ac8bb)
DeltaFile
+7-0sys/sys/fcntl.h
+7-01 files

FreeBSD/src b393aa8sys/fs/nullfs null_vfsops.c

nullfs: do not allow to mount a vnode over itself

PR:     275570

(cherry picked from commit 7bdf2b5d5fbabfc8749c4ff6e618c3e843b14de0)
DeltaFile
+8-0sys/fs/nullfs/null_vfsops.c
+8-01 files

FreeBSD/src a0fb45esys/kern kern_umtx.c

kern_umtx.c: remove dead code

(cherry picked from commit d9c31658df8492a5666e799c2b267c425cb8f468)
DeltaFile
+6-11sys/kern/kern_umtx.c
+6-111 files

FreeBSD/src 3564e33sys/ufs/ufs ufs_bmap.c

ufs: ufs_bmap_seekdata() needs mapped buffer for scan

PR:     295348

(cherry picked from commit 8ad8643a66735d28dac53a772856c94ca65b2bf3)
DeltaFile
+7-4sys/ufs/ufs/ufs_bmap.c
+7-41 files

FreeBSD/src 50caa0econtrib/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
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 5fa84c6contrib/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
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 b133353sys/amd64/vmm/io ppt.c

amd64/vmm: Fix ppt_unmap_mmio() after commit 36b855f18925

Fixes:          36b855f18925 ("amd64/vmm: Lock global PCI passthrough structures")
MFC after:      3 days
Reported by:    bz
DeltaFile
+1-1sys/amd64/vmm/io/ppt.c
+1-11 files

FreeBSD/src c783d71usr.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
Tested by:      dch
DeltaFile
+6-8usr.sbin/syslogd/syslogd_cap_log.c
+6-81 files

FreeBSD/src 22fa41bcontrib/unbound configure config.h.in, contrib/unbound/doc unbound-host.1 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
+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