FreeBSD/src b9a6888usr.bin/diff/tests diff_test.sh

diff: Tweak recursion tests

The -r flag is not required to compare two directories; it is only
required to compare them recursively, i.e. descend into their common
subdirectories.  Adjust tests that use -r needlessly, and adjust the
dirloop test to verify that these two cases remain distinct.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55262

(cherry picked from commit b2532432971fbd9339a9a49eca1b532978bb6d48)
DeltaFile
+9-7usr.bin/diff/tests/diff_test.sh
+9-71 files

FreeBSD/src c603843usr.bin/diff diff.c, usr.bin/diff/tests diff_test.sh

diff: Tweak range of -C and -U arguments

POSIX uses the terms “positive decimal integer” for -C and “non-negative
decimal integer” for -U, which translates into lower bounds of 1 for -C
and 0 for -U.

POSIX does not specify a minimum upper bound for either mode, but as of
5fc739eb5949 both our backends support context sizes up to and including
INT_MAX, so use that.

Having had the opportunity to consult the Unix System Test Suite, the
diff test cases found therein happen to precisely match these bounds.

While here, switch to using strtonum() to parse numerical arguments, and
try to be more consistent in how we report usage errors.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans

    [3 lines not shown]
DeltaFile
+32-20usr.bin/diff/tests/diff_test.sh
+19-14usr.bin/diff/diff.c
+51-342 files

FreeBSD/src f10da15usr.bin/diff/tests diff_test.sh

diff: Tweak recursion tests

The -r flag is not required to compare two directories; it is only
required to compare them recursively, i.e. descend into their common
subdirectories.  Adjust tests that use -r needlessly, and adjust the
dirloop test to verify that these two cases remain distinct.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55262

(cherry picked from commit b2532432971fbd9339a9a49eca1b532978bb6d48)
DeltaFile
+16-14usr.bin/diff/tests/diff_test.sh
+16-141 files

FreeBSD/src ce4f512usr.bin/diff diff.c, usr.bin/diff/tests diff_test.sh

diff: Tweak range of -C and -U arguments

POSIX uses the terms “positive decimal integer” for -C and “non-negative
decimal integer” for -U, which translates into lower bounds of 1 for -C
and 0 for -U.

POSIX does not specify a minimum upper bound for either mode, but as of
5fc739eb5949 both our backends support context sizes up to and including
INT_MAX, so use that.

Having had the opportunity to consult the Unix System Test Suite, the
diff test cases found therein happen to precisely match these bounds.

While here, switch to using strtonum() to parse numerical arguments, and
try to be more consistent in how we report usage errors.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans

    [3 lines not shown]
DeltaFile
+32-20usr.bin/diff/tests/diff_test.sh
+29-17usr.bin/diff/diff.c
+61-372 files

FreeBSD/src 6458b1asys/dev/nvme nvme_qpair.c

nvme: Use __diagused instead of __unused

Reviewed by:    imp
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.

(cherry picked from commit 1c09ae2be059da0b945a2543ac7dd0bd5198d0e3)
DeltaFile
+1-1sys/dev/nvme/nvme_qpair.c
+1-11 files

FreeBSD/src 3bfe51cbin/timeout timeout.c timeout.1

timeout: Clean up

* Annotate logv() and fix format string bug.

* Don't reinvent str2sig(3).

* Reorganize kill_self() so we unblock signals as late as possible, and
  use raise(2) instead of kill(2).

* Explicitly close unused pipe descriptors.

* Use correct type to collect result of read(2) and write(2).

* Compare return values to 0, not -1.

* Sort local variables according to style(9).

* Reduce unnecessary nesting.


    [10 lines not shown]
DeltaFile
+73-85bin/timeout/timeout.c
+1-1bin/timeout/timeout.1
+74-862 files

FreeBSD/src 608d3c7usr.bin/diff/tests diff_test.sh

diff: Tweak recursion tests

The -r flag is not required to compare two directories; it is only
required to compare them recursively, i.e. descend into their common
subdirectories.  Adjust tests that use -r needlessly, and adjust the
dirloop test to verify that these two cases remain distinct.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55262

(cherry picked from commit b2532432971fbd9339a9a49eca1b532978bb6d48)
DeltaFile
+16-14usr.bin/diff/tests/diff_test.sh
+16-141 files

FreeBSD/src 23a8479usr.bin/diff diff.c, usr.bin/diff/tests diff_test.sh

diff: Tweak range of -C and -U arguments

POSIX uses the terms “positive decimal integer” for -C and “non-negative
decimal integer” for -U, which translates into lower bounds of 1 for -C
and 0 for -U.

POSIX does not specify a minimum upper bound for either mode, but as of
5fc739eb5949 both our backends support context sizes up to and including
INT_MAX, so use that.

Having had the opportunity to consult the Unix System Test Suite, the
diff test cases found therein happen to precisely match these bounds.

While here, switch to using strtonum() to parse numerical arguments, and
try to be more consistent in how we report usage errors.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    kevans

    [3 lines not shown]
DeltaFile
+38-24usr.bin/diff/tests/diff_test.sh
+26-18usr.bin/diff/diff.c
+64-422 files

FreeBSD/src 3562c80sys/dev/nvme nvme_private.h

nvme: Use size_t for payload size

Using uint32_t here can cause spurious compiler warnings.  I assume it
was done to constrain the range; use a KASSERT instead.

Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55279

(cherry picked from commit be7e4dc878eab090cd411c9ef28880e4f62116f5)
DeltaFile
+3-1sys/dev/nvme/nvme_private.h
+3-11 files

FreeBSD/ports 0eea2f2net/cloudflared Makefile distinfo

net/cloudflared: Update to 2026.2.0

While here, pet portclippy.

A number of people were involved in this update, especially Xiaodi Ma.
This committed patch, however, was created by Paavo-Einari Kaipila, and
I'm really sorry in advance if I accidentally butchered the spelling of
either of those names.

Changes: https://github.com/cloudflare/cloudflared/blob/master/CHANGES.md

PR:             290847
Approved by:    maintainer timeout (3 months, plus multiple emails)
DeltaFile
+3-4net/cloudflared/Makefile
+3-3net/cloudflared/distinfo
+6-72 files

FreeBSD/ports b50b446ports-mgmt/poudriere-devel distinfo Makefile

ports-mgmt/poudriere-devel: Update to 3.3.0-2515-g919be9ac1

Changes:
 - testport: Fix deleting existing packages (regression from Sep 2025)
 - testport: Default to not forcing TRYBROKEN; require -T.
 - destroyfs: Cleanup tmpfs mountpoints. (such as image cleanup)
DeltaFile
+3-3ports-mgmt/poudriere-devel/distinfo
+2-2ports-mgmt/poudriere-devel/Makefile
+5-52 files

FreeBSD/src cff16d6usr.sbin/ngctl write.c

ngctl: Check hook name length

Check the length of the hook name when copying it into the sockaddr.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55258

(cherry picked from commit 585190dff436eeea3be97300e36c82559028d3dd)
DeltaFile
+14-4usr.sbin/ngctl/write.c
+14-41 files

FreeBSD/src 2b11bbdusr.sbin/ngctl config.c

ngctl: Fix buffer overflow in config command

Keep track of our buffer length when assembling the argument list.

PR:             293075
MFC after:      1 week
Reviewed by:    zlei, markj
Differential Revision:  https://reviews.freebsd.org/D55259

(cherry picked from commit 59906a163e474c8d00bdebe226c4d47332b91bad)
DeltaFile
+14-8usr.sbin/ngctl/config.c
+14-81 files

FreeBSD/src 71c0f48usr.sbin/ngctl write.c

ngctl: Check hook name length

Check the length of the hook name when copying it into the sockaddr.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55258

(cherry picked from commit 585190dff436eeea3be97300e36c82559028d3dd)
DeltaFile
+14-4usr.sbin/ngctl/write.c
+14-41 files

FreeBSD/src e5bf728usr.sbin/ngctl config.c

ngctl: Fix buffer overflow in config command

Keep track of our buffer length when assembling the argument list.

PR:             293075
MFC after:      1 week
Reviewed by:    zlei, markj
Differential Revision:  https://reviews.freebsd.org/D55259

(cherry picked from commit 59906a163e474c8d00bdebe226c4d47332b91bad)
DeltaFile
+14-8usr.sbin/ngctl/config.c
+14-81 files

FreeBSD/src c8d2ac7usr.sbin/ngctl main.c msg.c

ngctl: Modernize code somewhat

* Replace fgets(3) with getline(3)

* Replace select(2) with poll(2)

* Avoid needlessly copying text around

* Correct use of getopt(3)

* Pick some style and whitespace nits

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55257

(cherry picked from commit 3cbdcabf714d5187e22d8ff1cbfbc261dc8622eb)
DeltaFile
+110-125usr.sbin/ngctl/main.c
+16-23usr.sbin/ngctl/msg.c
+6-8usr.sbin/ngctl/list.c
+4-6usr.sbin/ngctl/write.c
+4-6usr.sbin/ngctl/status.c
+4-5usr.sbin/ngctl/config.c
+144-1739 files not shown
+164-21215 files

FreeBSD/src 221c09cusr.sbin/ngctl write.c

ngctl: Check hook name length

Check the length of the hook name when copying it into the sockaddr.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55258

(cherry picked from commit 585190dff436eeea3be97300e36c82559028d3dd)
DeltaFile
+14-4usr.sbin/ngctl/write.c
+14-41 files

FreeBSD/src 669347fusr.sbin/ngctl config.c

ngctl: Fix buffer overflow in config command

Keep track of our buffer length when assembling the argument list.

PR:             293075
MFC after:      1 week
Reviewed by:    zlei, markj
Differential Revision:  https://reviews.freebsd.org/D55259

(cherry picked from commit 59906a163e474c8d00bdebe226c4d47332b91bad)
DeltaFile
+14-8usr.sbin/ngctl/config.c
+14-81 files

FreeBSD/src 05f0dcdlib/libarchive/tests functional_test.sh, usr.bin/bsdcat/tests functional_test.sh

tests: Simplify libarchive tests

The ATF tests work by first running the test program with an invalid
flag, which causes it to print an error message, a summary of options,
and a list of available test cases.  Switch to the new -l option which
simply prints the list, and simplify the awk script used to parse the
output.  No functional change.

MFC after:      1 week

(cherry picked from commit 394201ce5b4e2f84f1e39a7ce8bdc3f5a5ef8390)
DeltaFile
+2-2usr.bin/tar/tests/functional_test.sh
+1-1lib/libarchive/tests/functional_test.sh
+1-1usr.bin/bsdcat/tests/functional_test.sh
+1-1usr.bin/cpio/tests/functional_test.sh
+1-1usr.bin/unzip/tests/functional_test.sh
+6-65 files

FreeBSD/src 935cf32sys/kern vfs_mount.c

vfs_mount.c: Don't call VFS_MOUNT() if only exports are being updated

PR#293198 reports a hang within ZFS when exports
are being updated concurrently with a VOP_SETEXTATTR().
The hang appears to be caused by mishandling of the
z_teardown_lock, but fixing handling of this lock appears
to be a major effort. Since the hang occurs when
VFS_MOUNT() acquires a write/exclusive z_teardown_lock,
which rarely occurs, except when exports are being updated,
this patch avoids the VFS_MOUNT() call for this case.

Avoiding a VFS_MOUNT() call fixes the hang for the case
reported by PR#293198 and is also an optimization.
As such, this patch avoids the VFS_MOUNT() call when only exports
are being updated similar to what was already being done
within vnet prisons.

PR:     293198
Reviewed by:    kib, markj

    [2 lines not shown]
DeltaFile
+31-21sys/kern/vfs_mount.c
+31-211 files

FreeBSD/src bc6c827tools/build/mk OptionalObsoleteFiles.inc

OptionalObsoleteFiles: Add figpar to dialog section

MFC after:      3 days
Fixes:          15d781b53233 ("lib: Gate libfigpar under MK_DIALOG")
Reviewed by:    jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D55330
DeltaFile
+4-0tools/build/mk/OptionalObsoleteFiles.inc
+4-01 files

FreeBSD/src f9f4a02. ObsoleteFiles.inc, tools/build/mk OptionalObsoleteFiles.inc

ObsoleteFiles: Deduplicate

Since we dropped support for profile libraries, all optional entries for
them are now non-optional.  Most of them were already duplicated there,
a few were not.

MFC after:      3 days
Reviewed by:    jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D55329
DeltaFile
+0-38tools/build/mk/OptionalObsoleteFiles.inc
+3-2ObsoleteFiles.inc
+3-402 files

FreeBSD/src b66993bsys/dev/evdev input-event-codes.h

evdev: Drop comments from input-event-codes.h

They were copied intact from the Linux GPL-only file.

Requested by:   imp, glebius
MFC after:      1 week

(cherry picked from commit 89aa8a94053fdd22ed716fdf424a2d10e70b3188)
DeltaFile
+174-305sys/dev/evdev/input-event-codes.h
+174-3051 files

FreeBSD/src 262ea9dsys/dev/evdev input.h input-event-codes.h

evdev: Sync event codes with Linux kernel 6.18

MFC after:      1 month

(cherry picked from commit 8d9a5d44b155af7123893a6948ad7e86b48c57b3)
DeltaFile
+44-29sys/dev/evdev/input.h
+27-1sys/dev/evdev/input-event-codes.h
+71-302 files

FreeBSD/ports 17fd9cfaudio/subtui distinfo Makefile

audio/subtui: Update to 2.4.0

Changelog: https://github.com/MattiaPun/SubTUI/releases/tag/v2.4.0
DeltaFile
+5-5audio/subtui/distinfo
+1-1audio/subtui/Makefile
+6-62 files

FreeBSD/src 5a02f00sys/sys sdt.h

sdt: Disable SDT probes in kernel modules for GCC on aarch64

For PIC code, the existing assembly constraints do compile on aarch64.
Some kernel modules build ok using the 'p' constraint with the 'a'
operand modifier, but not all.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55166
DeltaFile
+7-0sys/sys/sdt.h
+7-01 files

FreeBSD/src 1101292sys/contrib/vchiq/interface/vchiq_arm vchiq_2835_arm.c

vchiq: Fix return type of vchiq_copy_from_user

Change the function definition to map the declaration and consistently
return an enum value.  This fixes the following error reported by GCC:

sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c:322:1: error: conflicting types for 'vchiq_copy_from_user' due to enum/integer mismatch; have 'int(void *, const void *, int)' [-Werror=enum-int-mismatch]
  322 | vchiq_copy_from_user(void *dst, const void *src, int size)
      | ^~~~~~~~~~~~~~~~~~~~
In file included from sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.h:38,
                 from sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c:61:
sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.h:647:1: note: previous declaration of 'vchiq_copy_from_user' with type 'VCHIQ_STATUS_T(void *, const void *, int)'
  647 | vchiq_copy_from_user(void *dst, const void *src, int size);
      | ^~~~~~~~~~~~~~~~~~~~

Differential Revision:  https://reviews.freebsd.org/D55163
DeltaFile
+2-2sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c
+2-21 files

FreeBSD/src c7f7b67sys/arm/broadcom/bcm2835 vc_vchi_audioserv_defs.h

arm bcm2835: Appease a warning from GCC

No code currently uses the vc_audio_msg_type_names array of strings.

Reported by:    -Wunused-variable
Differential Revision:  https://reviews.freebsd.org/D55162
DeltaFile
+1-1sys/arm/broadcom/bcm2835/vc_vchi_audioserv_defs.h
+1-11 files

FreeBSD/src 4092df8sys/arm64/arm64 locore.S

arm64: Explicitly use movz

This appeases GNU as which doesn't map the mov alias to movz.

Reviewed by:    andrew
Differential Revision:  https://reviews.freebsd.org/D55160
DeltaFile
+1-1sys/arm64/arm64/locore.S
+1-11 files

FreeBSD/src 87984edsys/sys bus.h

bus: Renumber global IVAR ranges

Use a more consistent scheme for allocating shared IVAR index ranges.

Differential Revision:  https://reviews.freebsd.org/D54161
DeltaFile
+3-3sys/sys/bus.h
+3-31 files