HardenedBSD/src 9629944lib/libcuse cuse_lib.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+1-1lib/libcuse/cuse_lib.c
+1-11 files

HardenedBSD/src 3288a8elib/libcuse cuse_lib.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+1-1lib/libcuse/cuse_lib.c
+1-11 files

HardenedBSD/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

HardenedBSD/src 4faf12csbin/camcontrol camcontrol.8, share/man/man4 udl.4 cdce.4

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+149-202sbin/camcontrol/camcontrol.8
+54-27share/man/man4/udl.4
+34-33usr.sbin/bhyve/bhyve.8
+60-2usr.sbin/nfsd/nfsd.8
+23-16share/man/man4/cdce.4
+10-10sys/vm/vnode_pager.c
+330-2902 files not shown
+332-2928 files

HardenedBSD/src b49ac18sys/compat/linuxkpi/common/src linux_page.c linux_compat.c, sys/contrib/openzfs/cmd/zpool zpool_main.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+265-211sys/contrib/openzfs/cmd/zpool/zpool_main.c
+128-64sys/contrib/openzfs/module/os/linux/zfs/zfs_ctldir.c
+190-0sys/compat/linuxkpi/common/src/linux_page.c
+97-40sys/contrib/openzfs/module/zfs/zio.c
+0-111sys/compat/linuxkpi/common/src/linux_compat.c
+86-8sys/contrib/openzfs/module/zfs/ddt.c
+766-43446 files not shown
+1,294-61852 files

HardenedBSD/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

HardenedBSD/src 198ef2asys/sys param.h

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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/src e93d9f1sbin/camcontrol camcontrol.8, share/man/man4 udl.4 cdce.4

Merge branch 'freebsd/current/main-merge-2025-12-24' into hardened/current/master
DeltaFile
+149-202sbin/camcontrol/camcontrol.8
+54-27share/man/man4/udl.4
+34-33usr.sbin/bhyve/bhyve.8
+60-2usr.sbin/nfsd/nfsd.8
+23-16share/man/man4/cdce.4
+10-10sys/vm/vnode_pager.c
+330-2902 files not shown
+332-2928 files

HardenedBSD/src 9fc3cbclib/clang/libclang Makefile, lib/clang/liblldb Makefile

Revert "src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob"

This reverts commit 8d5a11cd0137d3ad70f6b06e063ea91a776d510a. We only
support statically-built llvm in HardenedBSD base.

Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+1-12lib/clang/liblldb/Makefile
+3-8tools/build/mk/OptionalObsoleteFiles.inc
+5-4lib/clang/libllvm/Makefile
+1-8share/man/man5/src.conf.5
+4-4lib/clang/libclang/Makefile
+0-6tools/build/options/WITH_LLVM_LINK_STATIC_LIBRARIES
+14-427 files not shown
+17-6113 files

HardenedBSD/src c5a709ftools/build/mk OptionalObsoleteFiles.inc

Revert "OptionalObsoleteFiles.inc: fix up WITH_LLVM_LINK_STATIC_LIBRARIES cases"

This reverts commit 160077a4d75186a979f28f0778259c66d8cac8be. We only
support statically-built llvm in HardenedBSD base.

Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+6-6tools/build/mk/OptionalObsoleteFiles.inc
+6-61 files

HardenedBSD/src ed4d30cshare/misc bsd-family-tree

Merge branch 'freebsd/14-stable/main' into hardened/14-stable/master
DeltaFile
+408-401share/misc/bsd-family-tree
+408-4011 files

HardenedBSD/src e7fba12share/misc bsd-family-tree

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+408-401share/misc/bsd-family-tree
+408-4011 files

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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

HardenedBSD/src 2ce6ccaetc/mtree BSD.tests.dist, sys/fs/unionfs union_subr.c union_vnops.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
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

HardenedBSD/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

HardenedBSD/src 52c2636sys/fs/devfs devfs_vnops.c devfs_int.h, sys/kern kern_conf.c

Merge branch 'freebsd/14-stable/main' into hardened/14-stable/master
DeltaFile
+14-3sys/fs/devfs/devfs_vnops.c
+6-6sys/vm/vm_fault.c
+3-0sys/kern/kern_conf.c
+1-0sys/fs/devfs/devfs_int.h
+24-94 files

HardenedBSD/src 9d015dasys/fs/tmpfs tmpfs_vnops.c, sys/vm vm_object.c vm_fault.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+17-0sys/vm/vm_object.c
+6-6sys/vm/vm_fault.c
+2-3sys/vm/swap_pager.c
+2-0sys/fs/tmpfs/tmpfs_vnops.c
+27-94 files

HardenedBSD/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

HardenedBSD/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

HardenedBSD/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
+0-2sys/vm/swap_pager.c
+2-0sys/fs/tmpfs/tmpfs_vnops.c
+2-22 files

HardenedBSD/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