FreeBSD/src 967186fcontrib/libcbor CMakeLists.txt, contrib/libcbor/doc/source using.rst

libcbor: Update to 0.13.0

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit b5b9517bfe394e55088f5a05882eabae7e9b7b29)
DeltaFile
+377-34contrib/libcbor/test/copy_test.c
+225-114contrib/libcbor/CMakeLists.txt
+135-137contrib/libcbor/test/cbor_serialize_test.c
+170-26contrib/libcbor/src/cbor.c
+183-0contrib/libcbor/examples/crash_course.c
+0-174contrib/libcbor/doc/source/using.rst
+1,090-485122 files not shown
+3,665-2,450128 files

FreeBSD/src a544288contrib/libfido2/fuzz functions.txt fuzz_attobj.c, contrib/libfido2/regress cred.c dev.c

libfido2: Update to 1.16.0

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit febb0da5bf4bc99828ebede7abcb039514ac367a)
DeltaFile
+553-543contrib/libfido2/fuzz/functions.txt
+972-94contrib/libfido2/regress/cred.c
+333-0contrib/libfido2/fuzz/fuzz_attobj.c
+14-220contrib/libfido2/regress/dev.c
+182-0contrib/libfido2/regress/mock.c
+75-70contrib/libfido2/tools/test.sh
+2,129-92776 files not shown
+3,140-1,40682 files

FreeBSD/src 9b8f4cftools/build/options INIT_ALL

INIT_ALL: Fix typo in option description

From GitHub pull request #2035; the change needs to be applied to the
source file for the option description, not the generated src.conf.5.

(cherry picked from commit c9f3de0ba95b8da31d35fa92e0a54cf6f3d3f1dd)
DeltaFile
+1-1tools/build/options/INIT_ALL
+1-11 files

FreeBSD/src 51b65c6usr.sbin/ctladm/tests port.sh

ctladm tests: Only use allowed chars in IQN

_ isn't part of the allowed IQN format, but - is.

None functional change.

Reviewed by:            asomers, ngie
Approved by:            asomers (mentor)
MFC after:              1 week
Sponsored by:           ConnectWise
Differential Revision:  https://reviews.freebsd.org/D56557
DeltaFile
+5-5usr.sbin/ctladm/tests/port.sh
+5-51 files

FreeBSD/src 19213b8tests/sys/cam/ctl opcodes.sh

ctl: require ctladm in addition to sg_opcodes

Each test case in opcodes.sh uses ctladm to create and remove the LUN it
exercises, but only sg_opcodes was listed in require.progs.
On systems where ctladm is not builded the tests would fail at setup instead of
being skipped cleanly.

Approved by:    asomers
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D56568
DeltaFile
+9-9tests/sys/cam/ctl/opcodes.sh
+9-91 files

FreeBSD/src 6395bf5release/packages/ucl clang.ucl

pkgbase: remove incorrect clang shlib requires

The FreeBSD-clang package contains a 32-bit shared object at
/usr/lib/clang/19/lib/freebsd/libclang_rt.asan-i386.so

This is expected, since clang uses this object when compiling for i386
targets with asan enabled.

What is not expected is that the FreeBSD-clang package currently depends
on 32-bit libc packages due to pkg's shared library analysis, making it
impossible to install pkgbase on x86_64 without any lib32 packages.

This commit leverages a new pkg feature implemented in [1], but could
be landed before a pkg version including that feature is released
without any ill effects. Unknown keys in package manifests are ignored.

[1]: https://github.com/freebsd/pkg/pull/2594

Reviewed by:    ivy

    [4 lines not shown]
DeltaFile
+5-0release/packages/ucl/clang.ucl
+5-01 files

FreeBSD/src f2ce8d6contrib/libarchive/test_utils test_main.c

libarchive: Staticize some variables

This code was not being built due to errors in our libarchive
configuration.  Now that those have been addressed, staticize some
variables that trip a “no previous extern declaration” error.  This
is a subset of upstream PR 2962.

MFC after:      1 week
Reviewed by:    mm
Differential Revision:  https://reviews.freebsd.org/D56471

(cherry picked from commit 7e9d974bc023755161742f66c8c77546bab88586)
DeltaFile
+3-3contrib/libarchive/test_utils/test_main.c
+3-31 files

FreeBSD/src b9e1990lib/libarchive config_freebsd.h

libarchive: Update configuration

PR:             294577
MFC after:      1 week
Reviewed by:    mm
Differential Revision:  https://reviews.freebsd.org/D56468

(cherry picked from commit 05bbe5e3883492dd2afa52039da1fac45c5059a0)
DeltaFile
+89-37lib/libarchive/config_freebsd.h
+89-371 files

FreeBSD/src 57db556share/man/man5 src.conf.5

src.conf(5): rebuild after introduction of WITHOUT_PKGCONF

Sponsored by:   The FreeBSD Foundation
Reviewed by:    bapt, philip
Approved by:    philip (mentor)
DeltaFile
+3-1share/man/man5/src.conf.5
+3-11 files

FreeBSD/src e60d2d5contrib/libarchive/cpio cpio.c, contrib/libarchive/libarchive/test test_read_format_iso_zisofs_overflow.iso.uu test_read_format_rar5_loop_bug.rar.uu

libarchive: merge from vendor branch

libarchive 3.8.7

Important bugfixes:
 #2871 libarchive: fix handling of option failures
 #2897 iso9660: fix undefined behavior
 #2898 RAR: fix LZSS window size mismatch after PPMd block
 #2900 CAB: fix NULL pointer dereference during skip
 #2911 libarchive: do not continue with truncated numbers
 #2919 CAB: Fix Heap OOB Write in CAB LZX decoder
 #2934 iso9660: fix posibble heap buffer overflow on 32-bit systems
 #2939 cpio: Fix -R memory leak
 #2947 libarchive: lzop and grzip filter support

Important bugfixes between 3.8.5 and 3.8.6:
 #2860 bsdunzip: fix ISO week year and Gregorian year confusion
 #2864 7zip: ix SEGV in check_7zip_header_in_sfx via ELF offset validation
 #2875 7zip: fix out-of-bounds access on ELF 64-bit header

    [14 lines not shown]
DeltaFile
+1,096-0contrib/libarchive/libarchive/test/test_read_format_iso_zisofs_overflow.iso.uu
+189-0contrib/libarchive/libarchive/test/test_read_format_rar5_loop_bug.rar.uu
+135-0contrib/libarchive/libarchive/test/test_archive_string_conversion.c
+67-56contrib/libarchive/cpio/cpio.c
+104-0contrib/libarchive/libarchive/test/test_read_format_iso_zisofs_overflow.c
+95-0contrib/libarchive/libarchive/test/test_read_format_cab_skip_malformed.cab.uu
+1,686-5691 files not shown
+3,107-46097 files

FreeBSD/src b8352dalib/libpkgconf Makefile, lib/libpkgconf/libpkgconf config.h

pkgconf: import into the base system

This introduces the following option:

* MK_PKGCONF: determines if pkgconf and bomtool should be built

The objective is to allow the creation of SBOM information while
building FreeBSD's src tree. The build system cannot rely on the
presence of bomtool (and eventually also spdxtool) in the build
environment, except for having it as part of the src tree directly.

The framework implementing the generation of SBOM files is under review
in D56474.

This will also help simplifying the build, with the introduction of
another framework relying on the availability of pkgconf.

Sponsored by:           Alpha-Omega, The FreeBSD Foundation
Reviewed by:            bapt, philip

    [2 lines not shown]
DeltaFile
+77-0lib/libpkgconf/libpkgconf/config.h
+27-0lib/libpkgconf/Makefile
+23-0usr.bin/pkgconf/Makefile
+20-0usr.bin/bomtool/Makefile
+18-0tools/build/mk/OptionalObsoleteFiles.inc
+5-0tools/build/options/WITH_PKGCONF
+170-07 files not shown
+179-013 files

FreeBSD/src edcfb3dusr.bin/less lesspipe.sh

lesspipe: Use zstdcat

zstdcat is equivalent to zstd -dcf, and matches our intention.

Suggested by:   delphij (in D55101)
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 34d7f100c1d9e6f21d2f79097e891f7a17749d1b)
DeltaFile
+1-1usr.bin/less/lesspipe.sh
+1-11 files

FreeBSD/src a3cefe7contrib/pkgconf NEWS, contrib/pkgconf/cli main.c

Add 'contrib/pkgconf/' from commit '6294b6ab217a2d5f1d2bc23a64505a228294c508'

git-subtree-dir: contrib/pkgconf
git-subtree-mainline: 45827f9ad2e32ec8e4cdde62cbf722a48fb1b396
git-subtree-split: 6294b6ab217a2d5f1d2bc23a64505a228294c508
DeltaFile
+1,935-0contrib/pkgconf/libpkgconf/pkg.c
+1,823-0contrib/pkgconf/cli/main.c
+1,028-0contrib/pkgconf/libpkgconf/win-dirent.h
+943-0contrib/pkgconf/NEWS
+817-0contrib/pkgconf/libpkgconf/client.c
+803-0contrib/pkgconf/libpkgconf/fragment.c
+7,349-0178 files not shown
+19,696-0184 files

FreeBSD/src 6294b6a. NEWS, cli main.c

Vendor import of pkgconf 2.5.1

Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-2.5.1.tar.gz

SHA1: c5d6a0e62f293b2c9078c815b2343b0f208c9879  -
SHA256: 79721badcad1987dead9c3609eb4877ab9b58821c06bdacb824f2c8897c11f2a  -
SHA512: 53244f372ea21125a1d97c5b89a84299740b55a66165782e807ed23adab3a07408a1547f1f40156e3060359660d07f49846c8b4893beef10ac9440ab7e8611cc  -
DeltaFile
+1,935-0libpkgconf/pkg.c
+1,823-0cli/main.c
+1,028-0libpkgconf/win-dirent.h
+943-0NEWS
+817-0libpkgconf/client.c
+803-0libpkgconf/fragment.c
+7,349-0178 files not shown
+19,696-0184 files

FreeBSD/src 8fe3978sys/compat/linuxkpi/common/include/linux kfifo.h

linuxkpi: Fix an off-by-one error in the kfifo implementation

"total" is the number of slots in the array, so wraparound needs to be
done when "first" or "last" is greater than or equal to the number of
slots.

Note that no consumers of the code are currently connected to the kernel
build.

Reported by:    Stanislav Fort <stanislav.fort at aisle.com>
Reviewed by:    bz, emaste
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56371

(cherry picked from commit 52d2fc702b85d56b35f8828fe7efca3cde0d25b7)
DeltaFile
+2-2sys/compat/linuxkpi/common/include/linux/kfifo.h
+2-21 files

FreeBSD/src 12e6143sys/netinet in_mcast.c

in_mcast: Fix a lock leak in inp_set_source_filters()

MFC after:      3 days
Reported by:    Claude Opus 4.6

(cherry picked from commit bebc1a5b09e358b420077a1b5c0f85f8e7f0812f)
DeltaFile
+1-0sys/netinet/in_mcast.c
+1-01 files

FreeBSD/src 827dccfsys/compat/linuxkpi/common/include/linux kfifo.h

linuxkpi: Fix an off-by-one error in the kfifo implementation

"total" is the number of slots in the array, so wraparound needs to be
done when "first" or "last" is greater than or equal to the number of
slots.

Note that no consumers of the code are currently connected to the kernel
build.

Reported by:    Stanislav Fort <stanislav.fort at aisle.com>
Reviewed by:    bz, emaste
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56371

(cherry picked from commit 52d2fc702b85d56b35f8828fe7efca3cde0d25b7)
DeltaFile
+2-2sys/compat/linuxkpi/common/include/linux/kfifo.h
+2-21 files

FreeBSD/src a9309a3sys/netinet in_mcast.c

in_mcast: Fix a lock leak in inp_set_source_filters()

MFC after:      3 days
Reported by:    Claude Opus 4.6

(cherry picked from commit bebc1a5b09e358b420077a1b5c0f85f8e7f0812f)
DeltaFile
+1-0sys/netinet/in_mcast.c
+1-01 files

FreeBSD/src 848ae23usr.bin/lorder/tests lorder_test.sh Makefile

tests/lorder_test: Add require.progs for nm and cc

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1858

(cherry picked from commit 66d2816407c32a0da0f039c4edb4f19b280f9bb5)
DeltaFile
+4-0usr.bin/lorder/tests/lorder_test.sh
+2-0usr.bin/lorder/tests/Makefile
+6-02 files

FreeBSD/src 45827f9sys/compat/linux linux_misc.h

linux: Fix a typo in a header comment

PR:             294651
Reported by:    Dmitry Lukhtionov <dmitryluhtionov at gmail.com>
Fixes:          50ff71e956b6 ("linux: Support PR_GET_CHILD_SUBREAPER prctl(2)")
Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2151
DeltaFile
+2-2sys/compat/linux/linux_misc.h
+2-21 files

FreeBSD/src 0fda88fsys/geom/label g_label.c

glabel(8): Fix debug message for already existing labels

Remove the duplicate (incorrect) name.

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

(cherry picked from commit 92c69c791c436eb966fab806393b70e53cde6874)
DeltaFile
+2-2sys/geom/label/g_label.c
+2-21 files

FreeBSD/src 5131d20sys/geom/label g_label.c

glabel(8): Fix debug message for already existing labels

Remove the duplicate (incorrect) name.

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

(cherry picked from commit 92c69c791c436eb966fab806393b70e53cde6874)
DeltaFile
+2-2sys/geom/label/g_label.c
+2-21 files

FreeBSD/src c93e8b6sys/geom/label g_label.c

glabel(8): Fix debug message for already existing labels

Remove the duplicate (incorrect) name.

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

(cherry picked from commit 92c69c791c436eb966fab806393b70e53cde6874)
DeltaFile
+2-2sys/geom/label/g_label.c
+2-21 files

FreeBSD/src 98a868csys/compat/linux linux_misc.c linux_misc.h

linux: Support LINUX_PR_GET_NO_NEW_PRIVS prctl(2)

PR: 294651
Signed-off-by: Ricardo Branco <rbranco at suse.de>
Reviewed by: kib, pouria
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2151
DeltaFile
+8-0sys/compat/linux/linux_misc.c
+2-1sys/compat/linux/linux_misc.h
+10-12 files

FreeBSD/src 50ff71esys/compat/linux linux_misc.c linux_misc.h

linux: Support PR_GET_CHILD_SUBREAPER prctl(2)

PR: 294651
Signed-off-by: Ricardo Branco <rbranco at suse.de>
Reviewed by: kib, pouria
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2151
DeltaFile
+12-0sys/compat/linux/linux_misc.c
+2-1sys/compat/linux/linux_misc.h
+14-12 files

FreeBSD/src 5f71481sys/rpc/rpcsec_gss rpcsec_gss.c

rpcsec_gss(3): Fix a typo in a source code comment

- s/verfier/verifier/

(cherry picked from commit 6323e2be6102e2a152b4420db272f7e880017cf0)
DeltaFile
+1-1sys/rpc/rpcsec_gss/rpcsec_gss.c
+1-11 files

FreeBSD/src 3911c2asys/fs/msdosfs msdosfs_fat.c

msdosfs(4): Fix two typos in source code comments

- s/unititialized/uninitialized/

(cherry picked from commit 96246330c1c47ea06b7e781ddd87de45d541494f)
DeltaFile
+2-2sys/fs/msdosfs/msdosfs_fat.c
+2-21 files

FreeBSD/src 393ac01stand/powerpc/boot1.chrp Makefile

stand/powerpc: Fix a typo in a source code comment

- s/limitiations/limitations/

(cherry picked from commit 4177af3b0e2db36238bbd6f973943f830d1ff46f)
DeltaFile
+1-1stand/powerpc/boot1.chrp/Makefile
+1-11 files

FreeBSD/src 4b73f0alib/librpcsec_gss rpcsec_gss.c

librpcsec_gss: Fix a typo in a source code comment

- s/verfier/verifier/

(cherry picked from commit 59dacd7f008f54a335ec49e747bb8ddac67b0a83)
DeltaFile
+1-1lib/librpcsec_gss/rpcsec_gss.c
+1-11 files

FreeBSD/src 1914750sys/rpc/rpcsec_gss rpcsec_gss.c

rpcsec_gss(3): Fix a typo in a source code comment

- s/verfier/verifier/

(cherry picked from commit 6323e2be6102e2a152b4420db272f7e880017cf0)
DeltaFile
+1-1sys/rpc/rpcsec_gss/rpcsec_gss.c
+1-11 files