FreeBSD/src abda442contrib/libucl/include ucl.h ucl++.h, contrib/libucl/src ucl_util.c ucl_parser.c

contrib/libucl:  Import libucl 0.9.3

Differential Revision: https://reviews.freebsd.org/D54583
Approved by: bapt
MFC after:  3 days

Changelog: https://github.com/vstakhov/libucl/releases/tag/0.9.3
DeltaFile
+1,012-999contrib/libucl/src/ucl_util.c
+701-690contrib/libucl/src/ucl_parser.c
+556-620contrib/libucl/src/ucl_msgpack.c
+346-349contrib/libucl/src/ucl_schema.c
+347-334contrib/libucl/include/ucl.h
+301-264contrib/libucl/include/ucl++.h
+3,263-3,25626 files not shown
+4,731-4,57932 files

FreeBSD/src e56858fcontrib/netbsd-tests/lib/libc/gen/posix_spawn t_fileactions.c

posix_spawn test: switch to POSIX spelling for addchdir and addfchdir

Reviewed by:    dim
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56222
DeltaFile
+2-2contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c
+2-21 files

FreeBSD/src b7b485elib/libc/gen posix_spawn.3

posix_spawn_file_action_addopen.3: ignoring close failure is now approved

Reviewed by:    dim
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Differential revision:  https://reviews.freebsd.org/D56222
DeltaFile
+4-2lib/libc/gen/posix_spawn.3
+4-21 files

FreeBSD/src 7caa711. ObsoleteFiles.inc, include spawn.h

posix_spawn: actions chdir and fchdir are now required by POSIX

Drop the _np suffix.

Reviewed by:    dim
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56222
DeltaFile
+17-12lib/libc/gen/posix_spawn_file_actions_addopen.3
+5-0lib/libc/gen/posix_spawn.c
+4-0include/spawn.h
+2-2lib/libc/gen/Makefile.inc
+2-2lib/libc/gen/posix_spawn.3
+4-0ObsoleteFiles.inc
+34-161 files not shown
+36-167 files

FreeBSD/src 4b862c7share/man/man4 splash.4, stand/common gfx_fb.c bootstrap.h

splash: add shutdown splash

This commit adds a shutdown splash to the existing kernel startup splash(4)
screen feature. It can be customized by providing a PNG image to the
shutdown_splash directive loader.conf(5).

Sponsored by:   Defenso
MFC after:      2 weeks
Reviewed by:    vexeduxr, ziaee, manu
Differential Revision:  https://reviews.freebsd.org/D55140
DeltaFile
+16-4stand/common/gfx_fb.c
+19-1sys/dev/vt/vt_core.c
+11-3share/man/man4/splash.4
+6-1stand/efi/loader/bootinfo.c
+5-0sys/kern/subr_module.c
+3-1stand/common/bootstrap.h
+60-102 files not shown
+64-118 files

FreeBSD/src b3d6829sys/kern subr_module.c

subr_module: account for MODINFOMD_EFI_ARCH

Fixes:          b538d4911004ca541507166b8ec9689d2e87d1aa
MFC after:      2 weeks
DeltaFile
+8-0sys/kern/subr_module.c
+8-01 files

FreeBSD/src 8ef0093lib/libsysdecode netlink.c Makefile, usr.bin/truss syscalls.c

truss: add support for decoding Netlink messages

Netlink usage is growing in FreeBSD. This patch adds support to
`truss(1)` to decode Netlink headers in sendmsg/recvmsg calls, making
debugging network configuration tools significantly easier.

Changes:

libsysdecode: Add `sysdecode_netlink()` to parse struct `nlmsghdr`.
truss: Detect `AF_NETLINK` sockets and decode the message payload.

Reviewed by:    kp
Signed-off-by:  Ishan Agrawal <iagrawal9990 at gmail.com>
Github PR:      https://github.com/freebsd/freebsd-src/pull/1950
DeltaFile
+94-0lib/libsysdecode/netlink.c
+66-1usr.bin/truss/syscalls.c
+1-1lib/libsysdecode/Makefile
+1-0lib/libsysdecode/sysdecode.h
+162-24 files

FreeBSD/src 0ae28e5sys/dev/ena ena.c ena_rss.h

ena: Minor changes

1. Move parenthesis to correct place in switch and fix include order
2. Add comment at the end of an ifdef for clarity
3. Change include order.

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55696
Sponsored by: Amazon, Inc.

(cherry picked from commit 2667a8454cff5896c7b467c78cd4ace5ad40f5eb)
DeltaFile
+2-3sys/dev/ena/ena.c
+1-2sys/dev/ena/ena_rss.h
+3-52 files

FreeBSD/src f5370d1sys/dev/ena ena_netmap.c

ena: Verify that an ENA ring is in netmap only in native mode

netmap operates in two modes:
1) Emulated - netmap handling is done by the network stack, the
NIC driver operates transparently to netmap.
2) Native - netmap management is done by the NIC driver.

When checking whether a specific ENA ring is running in netmap
mode, only the following checks were done:
1. IFCAP_NETMAP - Check whether netmap capability is enabled on
the device.
2. NKR_NETMAP_ON - Check whether netmap is actively using this
ring.

The above checks implied that the netmap mode is native and the
ENA driver needs to handle the netmap logic.
The code was missing an explicit check on whether native mode
is actually on (NAF_NATIVE).
This led to a case where though emulated mode was used and

    [19 lines not shown]
DeltaFile
+5-3sys/dev/ena/ena_netmap.c
+5-31 files

FreeBSD/src 5fdb633sys/dev/ena ena.h

ena: Update driver version to v2.8.2

Bug Fixes:
* Verify that an ENA ring is in netmap only in native mode

Minor Changes:
* Move parenthesis to correct place in switch
* Add comment
* Reorder define

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55698
Sponsored by: Amazon, Inc.

(cherry picked from commit 96c5eaf0ac6b98d0832e1037d672064de43a7e00)
DeltaFile
+1-1sys/dev/ena/ena.h
+1-11 files

FreeBSD/src 3e9f4fdlib/libsys mq_open.2

mq_open(2): document sysctl limit EINVAL and ENFILE conditions

Document two missing error conditions for mq_open(2):

- EINVAL: returned when mq_maxmsg exceeds kern.mqueue.maxmsg or
  mq_msgsize exceeds kern.mqueue.maxmsgsize.
- ENFILE: add kern.mqueue.maxmq sysctl name to the existing entry.

PR:             243209
Reviewed by:    mhorne
MFC after:      1 week
Signed-off-by:  Kit Dallege <xaum.io at gmail.com>
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2098
DeltaFile
+22-1lib/libsys/mq_open.2
+22-11 files

FreeBSD/src b345e18sys/dev/ena ena_netmap.c

ena: Verify that an ENA ring is in netmap only in native mode

netmap operates in two modes:
1) Emulated - netmap handling is done by the network stack, the
NIC driver operates transparently to netmap.
2) Native - netmap management is done by the NIC driver.

When checking whether a specific ENA ring is running in netmap
mode, only the following checks were done:
1. IFCAP_NETMAP - Check whether netmap capability is enabled on
the device.
2. NKR_NETMAP_ON - Check whether netmap is actively using this
ring.

The above checks implied that the netmap mode is native and the
ENA driver needs to handle the netmap logic.
The code was missing an explicit check on whether native mode
is actually on (NAF_NATIVE).
This led to a case where though emulated mode was used and

    [19 lines not shown]
DeltaFile
+5-3sys/dev/ena/ena_netmap.c
+5-31 files

FreeBSD/src 4fa6c1fsys/dev/ena ena.c ena_rss.h

ena: Minor changes

1. Move parenthesis to correct place in switch and fix include order
2. Add comment at the end of an ifdef for clarity
3. Change include order.

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55696
Sponsored by: Amazon, Inc.

(cherry picked from commit 2667a8454cff5896c7b467c78cd4ace5ad40f5eb)
DeltaFile
+2-3sys/dev/ena/ena.c
+1-2sys/dev/ena/ena_rss.h
+3-52 files

FreeBSD/src 9292351sys/dev/ena ena.h

ena: Update driver version to v2.8.2

Bug Fixes:
* Verify that an ENA ring is in netmap only in native mode

Minor Changes:
* Move parenthesis to correct place in switch
* Add comment
* Reorder define

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55698
Sponsored by: Amazon, Inc.

(cherry picked from commit 96c5eaf0ac6b98d0832e1037d672064de43a7e00)
DeltaFile
+1-1sys/dev/ena/ena.h
+1-11 files

FreeBSD/src 3a01651sys/dev/ena ena.c ena_rss.h

ena: Minor changes

1. Move parenthesis to correct place in switch and fix include order
2. Add comment at the end of an ifdef for clarity
3. Change include order.

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55696
Sponsored by: Amazon, Inc.

(cherry picked from commit 2667a8454cff5896c7b467c78cd4ace5ad40f5eb)
DeltaFile
+2-3sys/dev/ena/ena.c
+1-2sys/dev/ena/ena_rss.h
+3-52 files

FreeBSD/src 332708asys/dev/ena ena.h

ena: Update driver version to v2.8.2

Bug Fixes:
* Verify that an ENA ring is in netmap only in native mode

Minor Changes:
* Move parenthesis to correct place in switch
* Add comment
* Reorder define

Reviewed by: cperciva
Differential Revision: https://reviews.freebsd.org/D55698
Sponsored by: Amazon, Inc.

(cherry picked from commit 96c5eaf0ac6b98d0832e1037d672064de43a7e00)
DeltaFile
+1-1sys/dev/ena/ena.h
+1-11 files

FreeBSD/src 1059899sys/dev/ena ena_netmap.c

ena: Verify that an ENA ring is in netmap only in native mode

netmap operates in two modes:
1) Emulated - netmap handling is done by the network stack, the
NIC driver operates transparently to netmap.
2) Native - netmap management is done by the NIC driver.

When checking whether a specific ENA ring is running in netmap
mode, only the following checks were done:
1. IFCAP_NETMAP - Check whether netmap capability is enabled on
the device.
2. NKR_NETMAP_ON - Check whether netmap is actively using this
ring.

The above checks implied that the netmap mode is native and the
ENA driver needs to handle the netmap logic.
The code was missing an explicit check on whether native mode
is actually on (NAF_NATIVE).
This led to a case where though emulated mode was used and

    [19 lines not shown]
DeltaFile
+5-3sys/dev/ena/ena_netmap.c
+5-31 files

FreeBSD/src bee397aetc/mtree BSD.usr.dist

mtree: stop creating /usr/share/doc/ncurses

In base 68ad2b0d7af2a the ncurses html documentation was removed, and
entries added to ObsoleteFiles.inc to get rid of /usr/share/doc/ncurses,
but the directory was still being re-created via BSD.usr.dist. Remove it
from there too.

Fixes:          68ad2b0d7af2a
MFC after:      1 month

(cherry picked from commit 212272a43767c3d7be3ddb87605612f6164774c1)
DeltaFile
+0-2etc/mtree/BSD.usr.dist
+0-21 files

FreeBSD/src d725929release/packages/ucl kyua-all.ucl ncurses-all.ucl

release: Restore licenses for kyua and ncurses

These were modified to avoid triggering a libucl bug which is now fixed.

MFC after:      1 week
Reviewed by:    ivy, kevans
Differential Revision:  https://reviews.freebsd.org/D52824
DeltaFile
+29-31release/packages/ucl/kyua-all.ucl
+24-2release/packages/ucl/ncurses-all.ucl
+53-332 files

FreeBSD/src 616f47fsbin/tunefs tunefs.c

tunefs: Fix alignment warning on arm64

MFC after:      1 week
Fixes:          c5e79c7e93dd ("tunefs: Don't lower WARNS")
Reviewed by:    bakul
Differential Revision:  https://reviews.freebsd.org/D56229
DeltaFile
+1-1sbin/tunefs/tunefs.c
+1-11 files

FreeBSD/src aab1ef4sys/kern kern_event.c

kqueue_fork_copy_knote(): zero kn_knlist for the copy before calling knlist_add()

Reported by:    pho, dhw
Fixes:  306c9049c642da6a59a5dc088589605a9aa38b87
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-0sys/kern/kern_event.c
+1-01 files

FreeBSD/src 8f34b6bshare/man/man5 src.conf.5

src.conf.5: Regen after MK_CROSS_COMPILER=no change
DeltaFile
+3-1share/man/man5/src.conf.5
+3-11 files

FreeBSD/src 7d82731share/mk src.opts.mk

src.opts.mk: !CROSS_COMPILER implies !LLVM_BINUTILS_BOOTSTRAP

This fixes the build when WITHOUT_CROSS_COMPILER is set.

Reported by: fuz, vishwin
Fixes: 17494c6e6b7d ("build: Boostrap LLVM_BINUTILS for cross-tools")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56219
DeltaFile
+1-0share/mk/src.opts.mk
+1-01 files

FreeBSD/src 6630c3aetc/mtree BSD.tests.dist, sbin/tunefs Makefile

tunefs: Add tests

MFC after:      1 week
Reviewed by:    ngie
Differential Revision:  https://reviews.freebsd.org/D56034
DeltaFile
+189-0sbin/tunefs/tests/tunefs_test.sh
+5-0sbin/tunefs/Makefile
+4-0sbin/tunefs/tests/Makefile
+2-0etc/mtree/BSD.tests.dist
+200-04 files

FreeBSD/src c5e79c7sbin/tunefs tunefs.c Makefile

tunefs: Don't lower WARNS

Use casts to silence the alignment warnings instead of potentially
suppressing other legitimate warnings.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56033
DeltaFile
+3-3sbin/tunefs/tunefs.c
+0-2sbin/tunefs/Makefile
+3-52 files

FreeBSD/src 1a03631contrib/tzcode localtime.c zic.c

tzcode: Update to 2026a

Many thanks to Paul Eggert for adopting most of our adaptations as
optional features upstream in the previous release (2025c).

MFC after:      1 week
Reviewed by:    philip
Differential Revision:  https://reviews.freebsd.org/D55741

(cherry picked from commit ff2c98b30b57b9763e2a6575f729bab676e6c025)
DeltaFile
+1,044-709contrib/tzcode/localtime.c
+470-313contrib/tzcode/zic.c
+224-199contrib/tzcode/tz-art.html
+206-192contrib/tzcode/tz-link.html
+195-188contrib/tzcode/theory.html
+224-156contrib/tzcode/private.h
+2,363-1,75722 files not shown
+3,153-2,23028 files

FreeBSD/src f792f3dcontrib/tzcode localtime.c, lib/libc/gen sysconf.c

tzcode: Fix issues when TZ is an absolute path

* If TZ starts with TZDIR, strip any additional slashes so relname
  does not end up looking like an absolute path.  For instance,
  TZ=/usr/share/zoneinfo//UTC should result in UTC, not /UTC.

* In the setugid case, we were incorrectly passing name rather than
  relname to fstatat().

* Modify the tz_env and tz_env_setugid test cases to exercise both
  of these scenarios.

* Also add test cases for invalid values of TZ, which I wrote
  earlier but forgot to include in a5f14e4f9069.

Reported by:    Paul Eggert <eggert at cs.ucla.edu>
MFC after:      3 days
Fixes:          967a49a21a27 ("Update tzcode to 2025b")
Fixes:          a5f14e4f9069 ("tzcode: Use -00 only for invalid time zones")

    [24 lines not shown]
DeltaFile
+82-8lib/libc/tests/stdtime/detect_tz_changes_test.c
+8-5contrib/tzcode/localtime.c
+1-1lib/libc/gen/sysconf.c
+1-0lib/libc/tests/stdtime/Makefile
+92-144 files

FreeBSD/src ea27af6contrib/tzcode localtime.c

tzcode: Fix early tz change detection

Assume tzdata is not fresh if last_checked is zero, as comparing the
current time to last_checked less than __tz_change_interval after boot
may produce a false negative.

While here, invert the return value from tzdata_is_fresh() to better
match its new name (it was previously called recheck_tzdata(), so zero
for fresh and non-zero for stale made sense, but it doesn't now).

PR:             269207
MFC after:      3 days
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D53502

(cherry picked from commit a38c2f99f81c2fc35c8ca209931c1c46e3e81023)
DeltaFile
+7-7contrib/tzcode/localtime.c
+7-71 files

FreeBSD/src 58d09e1lib/libc/tests/stdtime detect_tz_changes_test.c

tzcode: Test escape from TZDIR

Test a value of TZ that temporarily escapes from TZDIR (which is not
permitted when setugid) then reenters it.

MFC after:      3 days

(cherry picked from commit cf76bfbb235116702ea1689bf984f200a72d2790)
DeltaFile
+26-13lib/libc/tests/stdtime/detect_tz_changes_test.c
+26-131 files

FreeBSD/src 08d1a7acontrib/tzcode localtime.c asctime.c

tzcode: Drop libc namespace

This hasn't been needed in years and is a maintenance headache.

MFC after:      1 week
Reviewed by:    philip
Differential Revision:  https://reviews.freebsd.org/D52694

(cherry picked from commit d58339f398748b50ff84421e9d81f8f6d94cb949)
DeltaFile
+25-27contrib/tzcode/localtime.c
+0-2contrib/tzcode/asctime.c
+0-2contrib/tzcode/difftime.c
+25-313 files