FreeBSD/src ecb58f9contrib/kyua/cli cmd_debug.cpp

kyua: Fix prompt of "debug -p" command
DeltaFile
+2-2contrib/kyua/cli/cmd_debug.cpp
+2-21 files

FreeBSD/src 98c3d86sbin/fsck_msdosfs dir.c

fsck_msdosfs: avoid warnings about too-long initializer strings

Mark `dot_name` and `dotdot_name` as as `__non_string`, to avoid
warnings from clang 21 similar to:

    sbin/fsck_msdosfs/dir.c:466:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
      466 | static const u_char dot_name[11]    = ".          ";
          |                                       ^~~~~~~~~~~~~
    sbin/fsck_msdosfs/dir.c:467:39: error: initializer-string for character array is too long, array size is 11 but initializer has size 12 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
      467 | static const u_char dotdot_name[11] = "..         ";
          |                                       ^~~~~~~~~~~~~

MFC after:      3 days
DeltaFile
+2-2sbin/fsck_msdosfs/dir.c
+2-21 files

FreeBSD/src 5629b5clib/libcuse cuse_lib.c

cuse(3): annotate cuse_init() to suppress thread safety analysis

This avoids warnings from clang 21, similar to:

    /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis]
      111 |         TAILQ_INIT(&h_cuse);
          |                     ^
    /usr/src/lib/libcuse/cuse_lib.c:111:14: error: writing variable 'h_cuse' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis]
    /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis]
      112 |         TAILQ_INIT(&h_cuse_entered);
          |                     ^
    /usr/src/lib/libcuse/cuse_lib.c:112:14: error: writing variable 'h_cuse_entered' requires holding mutex 'm_cuse' exclusively [-Werror,-Wthread-safety-analysis]

MFC after:      3 days
DeltaFile
+1-1lib/libcuse/cuse_lib.c
+1-11 files

FreeBSD/src d673ddasys/contrib/openzfs/cmd/zpool zpool_main.c, sys/contrib/openzfs/module/os/linux/zfs zfs_ctldir.c

zfs: merge openzfs/zfs at 743334913 (zfs-2.4-release) into stable/15

OpenZFS 2.4.0

Notable upstream pull request merges:
 #17932 c8ecd63ac zpool: fix special vdev -v -o conflict
 #17941 74bbdda1e Fix snapshot automount expiry cancellation deadlock
 #17946 f45622ff4 chksum: run 256K benchmark on demand, preserve
                  chksum_stat_data
 #17960 a41ef3685 DDT: Reduce global DDT lock scope during writes
 #17961 2aad3dee2 DDT: Make children writes inherit allocator
 #17975 2e09f166f FreeBSD: Fix uninitialized variable error
 #17980 a785ddc5f DDT: Switch to using wmsums for lookup stats
 #17983 028d66b9d Fix ddtprune causing space leak
 #18004 e1f0baa54 FreeBSD: Remove HAVE_INLINE_FLSL use
 #18015 a2f768f61 FreeBSD: Fix a potential null dereference in
                  zfs_freebsd_fsync() (already merged)

Obtained from:  OpenZFS

    [2 lines not shown]
DeltaFile
+265-211sys/contrib/openzfs/cmd/zpool/zpool_main.c
+128-64sys/contrib/openzfs/module/os/linux/zfs/zfs_ctldir.c
+97-40sys/contrib/openzfs/module/zfs/zio.c
+86-8sys/contrib/openzfs/module/zfs/ddt.c
+86-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_prune_leak.ksh
+82-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/snapshot_019_pos.ksh
+744-32342 files not shown
+1,100-50648 files

FreeBSD/src 198ef2asys/sys param.h

LinuxKPI: bump __FreeBSD_version for vmap_pfn implementation
DeltaFile
+1-1sys/sys/param.h
+1-11 files

FreeBSD/src 304c24dsys/compat/linuxkpi/common/include/linux vmalloc.h, sys/compat/linuxkpi/common/src linux_page.c

LinuxKPI: Implement vmap_pfn

Required by i915kms to support recent discrete graphics cards.

MFC after:      1 week
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D54225

(cherry picked from commit df49fd8efa1a885089488458df0e7e88c9649c90)
DeltaFile
+65-0sys/compat/linuxkpi/common/src/linux_page.c
+3-0sys/compat/linuxkpi/common/include/linux/vmalloc.h
+68-02 files

FreeBSD/src bbc5f54sys/compat/linuxkpi/common/src linux_page.c linux_compat.c

LinuxKPI: Move vmap-related code from linux_compat.c to linux_page.c

Coming vmap_pfn() implementation requires is_vmalloc_addr() to be in
the same file with other vmap-related code. Move code out from the
overcrowded file. No functional changes intended.

MFC after:      1 week
Reviewed by:    bz
Differential Revision:  https://reviews.freebsd.org/D54223

(cherry picked from commit 20ce906157dfc9ae6ee834f56f2bba154f37d653)
DeltaFile
+125-0sys/compat/linuxkpi/common/src/linux_page.c
+0-111sys/compat/linuxkpi/common/src/linux_compat.c
+125-1112 files

FreeBSD/src fff399dshare/misc bsd-family-tree

bsd-family-tree: add FreeBSD 15.0

(cherry picked from commit 7b44ab1c6abe106a44604a8504edca0e57ec1c42)

Sponsored by:   tipi.work
DeltaFile
+4-1share/misc/bsd-family-tree
+4-11 files

FreeBSD/src 5b428bbshare/misc bsd-family-tree

bsd-family-tree: Re-center OpenBSD line

Commit 09aeca28dd75 ("BSD family tree: reduce OpenBSD-NetBSD crowding")
moved OpenBSD releases over 2 spaces.  Move the line through OpenBSD
releases over as well.

Reviewed by:    obrien
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53635

(cherry picked from commit 1821cf482ff128b08bd65807e1f7aad7eb873e0b)
DeltaFile
+404-404share/misc/bsd-family-tree
+404-4041 files

FreeBSD/src 36b9d60share/misc bsd-family-tree

bsd-family-tree: add macOS 26

Sponsored by:   tipi.work

(cherry picked from commit c6e02892bbca1237546e3943c0971768822e1745)
DeltaFile
+5-1share/misc/bsd-family-tree
+5-11 files

FreeBSD/src 1c7c315share/misc bsd-family-tree

bsd-family-tree: add FreeBSD 15.0

(cherry picked from commit 7b44ab1c6abe106a44604a8504edca0e57ec1c42)

Sponsored by:   tipi.work
DeltaFile
+4-1share/misc/bsd-family-tree
+4-11 files

FreeBSD/src d8ff327share/misc bsd-family-tree

bsd-family-tree: Re-center OpenBSD line

Commit 09aeca28dd75 ("BSD family tree: reduce OpenBSD-NetBSD crowding")
moved OpenBSD releases over 2 spaces.  Move the line through OpenBSD
releases over as well.

Reviewed by:    obrien
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53635

(cherry picked from commit 1821cf482ff128b08bd65807e1f7aad7eb873e0b)
DeltaFile
+404-404share/misc/bsd-family-tree
+404-4041 files

FreeBSD/src 4f184fdusr.sbin/nfsd nfsd.8

nfsd.8: Add a short paragraph w.r.t. NFSv3 vs NFSv4 setup

The nfsd can be configured to support NFSv3, NFSv4 or both
of them.

This patch adds a short paragraph to nfsd.8 to explain this.

This is a content change.

Reviewed by:    kib, zaiee (manpages)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54279
DeltaFile
+60-2usr.sbin/nfsd/nfsd.8
+60-21 files

FreeBSD/src 2cf7b7ashare/misc bsd-family-tree

bsd-family-tree: add macOS 26

Sponsored by:   tipi.work

(cherry picked from commit c6e02892bbca1237546e3943c0971768822e1745)
DeltaFile
+5-1share/misc/bsd-family-tree
+5-11 files

FreeBSD/src 160077atools/build/mk OptionalObsoleteFiles.inc

OptionalObsoleteFiles.inc: fix up WITH_LLVM_LINK_STATIC_LIBRARIES cases

In commit cf1eaaf41cef I added the WITH_LLVM_LINK_STATIC_LIBRARIES
src.conf(5) build knob, which also affects OptionalObsoleteFiles.inc.

However, the checks were incorrect: when WITH_LLVM_LINK_STATIC_LIBRARIES
is active, the OLD_LIBS libprivatellvm.so.19, libprivateclang.so.19 and
libprivatelldb.so.19 should always be cleaned up.

Fixes:          cf1eaaf41cef
MFC after:      1 week
DeltaFile
+6-6tools/build/mk/OptionalObsoleteFiles.inc
+6-61 files

FreeBSD/src 5fa23c5etc/mtree BSD.tests.dist, sys/fs/unionfs union_subr.c union_vnops.c

unionfs: Support renaming symbolic links

This adds support for renaming a symbolic link found on the lower fs,
which necessitates copying it to the upper fs, as well as basic tests.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    olce, siderop1_netapp.com, jah
Differential Revision:  https://reviews.freebsd.org/D54229

(cherry picked from commit a678e87f5533521f6dec1a4e85c3decb1c3b6584)
DeltaFile
+168-0sys/fs/unionfs/union_subr.c
+165-0tests/sys/fs/unionfs/unionfs_test.sh
+10-0sys/fs/unionfs/union_vnops.c
+8-0tests/sys/fs/unionfs/Makefile
+2-0etc/mtree/BSD.tests.dist
+1-0sys/fs/unionfs/union.h
+354-01 files not shown
+355-07 files

FreeBSD/src b29fb0bsys/fs/devfs devfs_vnops.c devfs_int.h, sys/kern kern_conf.c

devfs: make destroy_dev() a release barrier for cdevpriv destructors runs

(cherry picked from commit 4dbe6628179d8e6bf400bfdb4bfa869bdc102a56)
DeltaFile
+14-3sys/fs/devfs/devfs_vnops.c
+3-0sys/kern/kern_conf.c
+1-0sys/fs/devfs/devfs_int.h
+18-33 files

FreeBSD/src e6bdbc1sys/vm vm_fault.c

vm_fault_trap(): fix comments grammar

(cherry picked from commit 95788a851deb33242c18beb47f8a79eec320dfa5)
DeltaFile
+6-6sys/vm/vm_fault.c
+6-61 files

FreeBSD/src 6397c14sys/vm swap_pager.c

swap_pager_seek_data(): improve assertions

(cherry picked from commit bdfd695037a95b076aeffd04ed9fdf042b6ce218)
DeltaFile
+2-1sys/vm/swap_pager.c
+2-11 files

FreeBSD/src 7dc87eesys/fs/tmpfs tmpfs_vnops.c, sys/vm swap_pager.c

swap_pager_seek_data(): move the clipping at the object size to consumers

(cherry picked from commit 30ae88e3b217b12476dba665d163ab0d8dd6a8a7)
DeltaFile
+2-0sys/fs/tmpfs/tmpfs_vnops.c
+0-2sys/vm/swap_pager.c
+2-22 files

FreeBSD/src d7bc2eesys/vm vm_object.c

vm_object_coalesce(): check that coalescing does not revive stale pages

(cherry picked from commit f94bfc469df9a2bc78ed15cc42525d09e3413e0b)
DeltaFile
+17-0sys/vm/vm_object.c
+17-01 files

FreeBSD/src 4780985sys/vm vm_fault.c

vm_fault_trap(): fix comments grammar

(cherry picked from commit 95788a851deb33242c18beb47f8a79eec320dfa5)
DeltaFile
+6-6sys/vm/vm_fault.c
+6-61 files

FreeBSD/src 8d5a11clib/clang/libclang Makefile, lib/clang/liblldb Makefile

src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob

In commit 2e47f35be5dc libllvm, libclang and liblldb were converted into
private shared libraries. This allowed clang, lld, lldb, and other llvm
tools to be linked against these shared libraries, which makes them
smaller and avoids duplication.

However, this also comes at the cost of some performance, since the
dynamic libraries are quite large, and contain lots of long symbols
(mangled C++ identifiers).

Add a WITH_LLVM_LINK_STATIC_LIBRARIES build knob that can be used to go
back to the previous behavior: libllvm, libclang and liblldb are built
as internal static libraries, i.e. only available during buildworld, and
fully linked into the various executables such as clang, lld, etc.

PR:             287447
Reviewed by:    emaste
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D50956
DeltaFile
+12-1lib/clang/liblldb/Makefile
+8-3tools/build/mk/OptionalObsoleteFiles.inc
+4-5lib/clang/libllvm/Makefile
+8-1share/man/man5/src.conf.5
+4-4lib/clang/libclang/Makefile
+6-0tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES
+42-147 files not shown
+61-1713 files

FreeBSD/src 5819f8busr.sbin/bhyve bhyve.8

bhyve.8: Fix consistency and terms in manpage

Correct inconsistent spelling of terms and duplication.

Reviewed by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D54332
DeltaFile
+34-33usr.sbin/bhyve/bhyve.8
+34-331 files

FreeBSD/src 1e8c2cbsys/vm vnode_pager.c

vnode_pager: use ptoa(), atop()

In vnode_pager.c, use ptoa() or atop() instead of arithmetic with
PAGE_SIZE or PAGE_SHIFT.

Reviewed by:    alc, kib
Differential Revision:  https://reviews.freebsd.org/D49330
DeltaFile
+10-10sys/vm/vnode_pager.c
+10-101 files

FreeBSD/src 1aea5b0sys/conf files

nvme: make the interface standard file

This makes nvme.ko and nvd.ko loadable.

Fixes:  aed44717a1606e4c5c79f7c8831de49cba64d7e6
DeltaFile
+1-1sys/conf/files
+1-11 files

FreeBSD/src a7e0f6asys/dev/usb/quirk usb_quirk.c

Specialize the REALTEK RTL8153 quirk to just rev=0x31fd
DeltaFile
+1-1sys/dev/usb/quirk/usb_quirk.c
+1-11 files

FreeBSD/src 3c83b5dshare/man/man4 udl.4

udl.4: Tweak HARDWARE for hardware release note

Fixes:  97fa62708f67 (udl.4: Consolidate HARDWARE and add HISTORY)
DeltaFile
+40-21share/man/man4/udl.4
+40-211 files

FreeBSD/src 97fa627share/man/man4 udl.4

udl.4: Consolidate HARDWARE and add HISTORY

Some of the information needed for the HARDWARE section was the entire
DESCRIPTION section, so merge the two. While here, add the HISTORY of
this driver, add "driver" to the document description matching other
drivers, and tag the SPDX license identifier for mechanical parsing.

MFC after:      3 days
DeltaFile
+15-7share/man/man4/udl.4
+15-71 files

FreeBSD/src 7eb5a5blibexec/atrun atrun.man

at cron file is now in /etc/cron.d

PR: 243380
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1106

(cherry picked from commit 783baf00128f6cf6fc08404eaad6a11b29d4025d)
DeltaFile
+1-1libexec/atrun/atrun.man
+1-11 files