FreeNAS/freenas 758cc1bsrc/middlewared/middlewared/utils/filesystem directory.py

Address more review

(cherry picked from commit ea26bd10b2494e11e5f350d712bae9e91b28b0e8)
DeltaFile
+7-2src/middlewared/middlewared/utils/filesystem/directory.py
+7-21 files

FreeNAS/freenas c7d6f8dsrc/middlewared/middlewared/plugins filesystem.py, src/middlewared/middlewared/utils io.py

Address review

(cherry picked from commit 2a202dde8b0cd7c10cdb6c6df226af465f79be3c)
DeltaFile
+13-13src/middlewared/middlewared/utils/io.py
+10-0src/middlewared/middlewared/plugins/filesystem.py
+23-132 files

FreeNAS/freenas 1401a39src/middlewared/middlewared/plugins filesystem.py, src/middlewared/middlewared/utils io.py

add safe_open

(cherry picked from commit 3163a4baa878ff0ca78492bc0fd6fe5f29cefdab)
DeltaFile
+27-1src/middlewared/middlewared/utils/io.py
+5-4src/middlewared/middlewared/plugins/filesystem.py
+32-52 files

FreeNAS/freenas 4a1690csrc/middlewared/middlewared/plugins filesystem.py

Address review

* Use CallError to explicitly state that symlinks aren't
  permitted in paths.

(cherry picked from commit 00371e5d9292f1c36d9479ee5f15107d56c45987)
DeltaFile
+16-2src/middlewared/middlewared/plugins/filesystem.py
+16-21 files

FreeNAS/freenas 7da52ccsrc/middlewared/middlewared/plugins filesystem.py, src/middlewared/middlewared/utils/filesystem attrs.py

protect some more against TOCTOU in fs plugins/utils

This commit adds a few more usages of RESOLVE_NO_SYMLINKS and
fixes a TOCTOU concern in attrs utils.

(cherry picked from commit d0730f443ff88d9f612fe692a1ce70036747ede7)
DeltaFile
+6-6src/middlewared/middlewared/utils/filesystem/attrs.py
+3-2src/middlewared/middlewared/plugins/filesystem.py
+9-82 files

FreeNAS/freenas 67a71d6tests/unit test_io.py

Add explicit safe_open tests

(cherry picked from commit 549a58eddcd7511f02ec01bcead23b5d6c0baa6f)
DeltaFile
+80-0tests/unit/test_io.py
+80-01 files

FreeNAS/freenas 09104c0src/middlewared/middlewared/plugins filesystem.py

Address more review

(cherry picked from commit 241d719f32e3909345dd26ceba1d30300a03cdcd)
DeltaFile
+2-0src/middlewared/middlewared/plugins/filesystem.py
+2-01 files

FreeNAS/freenas ca6f6d0src/middlewared/middlewared/plugins filesystem.py, src/middlewared/middlewared/utils io.py

NAS-140151 / 27.0.0-BETA.1 / protect some more against symlink races (#18379)

This commit adds a few more usages of RESOLVE_NO_SYMLINKS and fixes a
TOCTOU concern in attrs utils.
DeltaFile
+80-0tests/unit/test_io.py
+35-7src/middlewared/middlewared/plugins/filesystem.py
+27-1src/middlewared/middlewared/utils/io.py
+6-6src/middlewared/middlewared/utils/filesystem/attrs.py
+7-2src/middlewared/middlewared/utils/filesystem/directory.py
+155-165 files

FreeBSD/src 2a3d650. Makefile.inc1

packages: Don't create empty packages

If a package plist only contains directories, but no files, do not
create the package.

This fixes an issue where setting "package=foo" in mtree causes the
"foo" package to always be created, even if nothing else installs in
that package, because the mtree entry is always added to the plist.

This most often happens:

* With architecture-specific directories, because mtree can't install
  a directory conditionally based on architecture, and

* With packages that are completely empty when a particular src.conf
  knob is disabled, because mtree will still create the directories.

Although it's theoretically possible that we might want to create a
package that only contains directories, there are no such packages

    [8 lines not shown]
DeltaFile
+18-11Makefile.inc1
+18-111 files

FreeBSD/src 1346ffb. Makefile.inc1

Makefile.inc1: Remove svn support

We don't need this, and we don't use this. It's left over from the svn
days. We stopped supporting svn as a project entirely when 12.x went
EOL. And VCS_REVSION isn't in any current ucl file or anywhere else in
the tree.

Sponsored by:           Netflix
Reviewed by     :       kevans, brd
Differential Revision:  https://reviews.freebsd.org/D52912

(cherry picked from commit 28b858f5059c8b25fa08be494699997000fce58c)

Makefile.inc1: Add back missing if

The .if defined(_MKSHOWCONFIG) covered an unusually large area, so it
should have not been removed in the last commit. I must have tested in
the wrong tree before pushing...


    [4 lines not shown]
DeltaFile
+1-22Makefile.inc1
+1-221 files

LLVM/project b72a812clang-tools-extra/clang-tidy/modernize UseTrailingReturnTypeCheck.cpp, clang-tools-extra/docs ReleaseNotes.rst

[clang-tidy] Fix spurious errors from builtin macros in modernize-use-trailing-return-type (#184022)

## Summary

I hit the same issue as in #168360 when upgrading to LLVM 21 with
clang-tidy reporting cryptic:

`error: missing '(' after '__has_feature'`

Further investigation confirmed that the issue is localized to
`modernize-use-trailing-return-type` and only happens with C++20+ and llvm
21 system headers (where `__has_feature` started to be used by libc++).
Initial non-localized repro had this error firing 7k+ on LLVM 21, but
when I switched to HEAD the incidence dropped to just 5 'check()' calls
firing. The drop in incidence is likely to be related to 
https://github.com/llvm/llvm-project/pull/151035 as there are no other 
plausibly relevant changes.

However, as I was still hitting the issue with HEAD, this helped develop

    [20 lines not shown]
DeltaFile
+11-0clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type.cpp
+5-0clang-tools-extra/docs/ReleaseNotes.rst
+1-3clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
+17-33 files

LLVM/project da3efc7clang/lib/AST RecordLayoutBuilder.cpp, clang/test/CodeGen ms_struct-packed.c ms_struct-bitfield.c

Fix packed being ignored on ms_struct bitfields (#182792)

For ms_struct structs on Itanium layout targets, the packed attribute is
ignored on bit-fields (2014 commit
76e1818a2b1248579557de2927c135c322577c82), mismatching the GCC behavior.
Remove the `!IsMsStruct` guard to fix it.
DeltaFile
+18-0clang/test/CodeGen/ms_struct-packed.c
+2-2clang/test/CodeGen/ms_struct-bitfield.c
+1-1clang/lib/AST/RecordLayoutBuilder.cpp
+21-33 files

FreeBSD/ports 41efe83comms/conserver-com Makefile distinfo, comms/conserver-com/files patch-conserver_readcfg.c

comms/conserver-com: update to 8.3.0

Changes: https://github.com/bstansell/conserver/releases/tag/v8.3.0

While here: add an option to enable IPv6 support (default: on).
DeltaFile
+0-14comms/conserver-com/files/patch-conserver_readcfg.c
+5-4comms/conserver-com/Makefile
+3-3comms/conserver-com/distinfo
+8-213 files

FreeNAS/freenas 104aecesrc/middlewared/middlewared/plugins cache.py, src/middlewared/middlewared/plugins/directoryservices_ connection.py

NAS-139425 / 26.0.0-BETA.2 / Add support for different cache types to cache plugin (by anodos325) (#18443)

This commit adds ability to specify that cache entries
should be clustered. As a side-effect of common library
for clustered and local caches, the normal cache will
also persist across middleware restarts.
    
In basic benchmarking there wasn't that much perf difference
between implementations and so this reduces overall complexity
    
CLUSTERED:
    * Persists across reboots
    * Persists across middleware restarts
    * Does not persist across upgrades
    
VOLATILE:
    * Persists across middleware restarts



    [4 lines not shown]
DeltaFile
+200-34src/middlewared/middlewared/plugins/cache.py
+126-0tests/unit/test_cache.py
+13-2src/middlewared/middlewared/utils/tdb.py
+2-2src/middlewared/middlewared/plugins/directoryservices_/connection.py
+341-384 files

FreeNAS/freenas 2f1ee59src/middlewared/middlewared/plugins cache.py, src/middlewared/middlewared/plugins/directoryservices_ connection.py

Add persistent option to cache plugin

This commit adds ability to specify that cache entries
should be clustered. As a side-effect of common library
for clustered and local caches, the normal cache will
also persist across middleware restarts.

In basic benchmarking there wasn't that much perf difference
between implementations and so this reduces overall complexity

CLUSTERED:
* Persists across reboots
* Persists across middleware restarts
* Does not persist across upgrades

VOLATILE:
* Persists across middleware restarts

(cherry picked from commit 189532e12d56bb6d383e7df11f6a25210f191d1e)
DeltaFile
+201-34src/middlewared/middlewared/plugins/cache.py
+126-0tests/unit/test_cache.py
+13-2src/middlewared/middlewared/utils/tdb.py
+2-2src/middlewared/middlewared/plugins/directoryservices_/connection.py
+342-384 files

FreeNAS/freenas b31504csrc/middlewared/middlewared/plugins cache.py

Cleanup comment

(cherry picked from commit 44c828aad3b2e9206148429dd79c57933329086c)
DeltaFile
+1-1src/middlewared/middlewared/plugins/cache.py
+1-11 files

FreeNAS/freenas 84bfd32src/middlewared/middlewared/plugins cache.py

flake8 fix

(cherry picked from commit 06e0777311352e4a946aa70f062e3d95371f51df)
DeltaFile
+0-1src/middlewared/middlewared/plugins/cache.py
+0-11 files

FreeNAS/freenas 62e41cfsrc/middlewared/middlewared/plugins cache.py, src/middlewared/middlewared/plugins/directoryservices_ connection.py

NAS-139425 / 27.0.0-BETA.1 / Add support for different cache types to cache plugin (#18081)

This commit adds ability to specify that cache entries
should be clustered. As a side-effect of common library
for clustered and local caches, the normal cache will
also persist across middleware restarts.
    
In basic benchmarking there wasn't that much perf difference
between implementations and so this reduces overall complexity
    
CLUSTERED:
    * Persists across reboots
    * Persists across middleware restarts
    * Does not persist across upgrades
    
VOLATILE:
    * Persists across middleware restarts
DeltaFile
+200-34src/middlewared/middlewared/plugins/cache.py
+126-0tests/unit/test_cache.py
+13-2src/middlewared/middlewared/utils/tdb.py
+2-2src/middlewared/middlewared/plugins/directoryservices_/connection.py
+341-384 files

FreeBSD/ports 25240aceditors/vim distinfo Makefile

editors/vim: Update to 9.2.0140

Contains a fix for a null pointer dereferencing vulnerability in the
regex engine. Vim assigned it a MODERATE risk score. See the below
disclosure report.

Security:       https://github.com/vim/vim/security/advisories/GHSA-9phh-423r-778r
(cherry picked from commit e71b9fe51b2dce20d35006bc0fe751f735583845)
DeltaFile
+3-3editors/vim/distinfo
+2-2editors/vim/Makefile
+5-52 files

LLVM/project 26f9bf5llvm/lib/Target/LoongArch LoongArchISelLowering.cpp

fixes according reviews
DeltaFile
+12-14llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+12-141 files

FreeBSD/ports e71b9feeditors/vim distinfo Makefile

editors/vim: Update to 9.2.0140

Contains a fix for a null pointer dereferencing vulnerability in the
regex engine. Vim assigned it a MODERATE risk score. See the below
disclosure report.

Security:       https://github.com/vim/vim/security/advisories/GHSA-9phh-423r-778r
DeltaFile
+3-3editors/vim/distinfo
+2-2editors/vim/Makefile
+5-52 files

NetBSD/pkgsrc j5dTbiddoc TODO CHANGES-2026

   doc: Updated graphics/zxing-cpp to 3.0.2
VersionDeltaFile
1.26927+1-2doc/TODO
1.1695+2-1doc/CHANGES-2026
+3-32 files

NetBSD/pkgsrc nRtKJ1pgraphics/zxing-cpp Makefile PLIST

   graphics/zxing-cpp: Update to 3.0.2

   * Packaged by wiz@ in pkgsrc-wip/zxing-cpp.

   Changelog:
   3.0.2:
   Patch release

   This is a patch release, fixing three issues:

       Workaround for missing <format> C++20 header in GCC 11 and GCC 12
       This is required to make Homebrew and older distros happy.

       Zint Header Detection Fix
       Fixed an issue that caused a <zint.h> not found error when building the library with -DZXING_USE_BUNDLED_ZINT=OFF and libzint was installed in a non-standard install prefix (e.g., /opt/homebrew).

       Typo Fix in ReaderOptions API
       Fixed a typo in the newly added ReaderOptions::validateOptionalCheckSum, now correctly named validateOptionalChecksum. If anyone is angry at me for breaking their brand new code, let me know and I’ll consider adding a compatibility symbol with the "one week old" name.

    [62 lines not shown]
VersionDeltaFile
1.16+25-14graphics/zxing-cpp/Makefile
1.9+6-12graphics/zxing-cpp/PLIST
1.10+7-4graphics/zxing-cpp/distinfo
1.6+2-2graphics/zxing-cpp/buildlink3.mk
+40-324 files

OpenBSD/ports meaANZ4sysutils/grafana distinfo Makefile, sysutils/grafana/pkg PLIST

   sysutils/grafana: update to 12.4.1
VersionDeltaFile
1.44+20-18sysutils/grafana/pkg/PLIST
1.44+4-4sysutils/grafana/distinfo
1.61+1-1sysutils/grafana/Makefile
+25-233 files

OpenBSD/ports TA8wRG9lang/php/8.4 Makefile, lang/php/8.4/patches patch-ext_openssl_openssl_c

   fix patch in previous, from tb@. the stack members also need to be
   freed, not just the stack itself.
VersionDeltaFile
1.2.2.3+1-1lang/php/8.4/patches/patch-ext_openssl_openssl_c
1.21.2.10+1-0lang/php/8.4/Makefile
+2-12 files

OpenBSD/ports sqEtyKvlang/php/8.4 Makefile, lang/php/8.4/patches patch-ext_openssl_openssl_c

   fix patch in previous, from tb@. the stack members also need to be
   freed, not just the stack itself.
VersionDeltaFile
1.5+1-1lang/php/8.4/patches/patch-ext_openssl_openssl_c
1.4+1-1lang/php/8.5/patches/patch-ext_openssl_openssl_backend_common_c
1.8+1-0lang/php/8.5/Makefile
1.35+1-0lang/php/8.4/Makefile
+4-24 files

FreeBSD/ports 0af72ffgraphics/nvidia-drm-latest-kmod distinfo, x11/linux-nvidia-libs Makefile distinfo

x11/nvidia-driver, x11/nvidia-kmod, x11/linux-nvidia-libs, graphics/nvidia-drm*-kmod, x11/nvidia-settings, x11/nvidia-xconfig: Update to 580.142

Update to latest Production Branch of drivers 580.142:
https://www.nvidia.com/en-us/drivers/details/265444/

Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/265443/

Add graphics/egl-wayland2 as a dependency for non-legacy branches.
This library can be installed alongside the previous egl-wayland
implementation (graphics/egl-wayland) and has a higher selection
priority by default, but doesn't support legacy branches.

PR:             293738
Differential Revision:  https://reviews.freebsd.org/D55813
DeltaFile
+10-2x11/linux-nvidia-libs/Makefile
+3-3x11/nvidia-xconfig/distinfo
+3-3x11/nvidia-settings/distinfo
+3-3x11/nvidia-driver/distinfo
+3-3x11/linux-nvidia-libs/distinfo
+3-3graphics/nvidia-drm-latest-kmod/distinfo
+25-179 files not shown
+42-3215 files

LLVM/project c56410fllvm/test/Transforms/SLPVectorizer/RISCV basic-strided-stores.ll

[SLP] Pre-commit tests for constant strided stores (#185990)

Tests for #185964
DeltaFile
+879-0llvm/test/Transforms/SLPVectorizer/RISCV/basic-strided-stores.ll
+879-01 files

FreeNAS/freenas 34f1b2bsrc/middlewared/middlewared/plugins/directoryservices_ connection.py ipa_join_mixin.py, src/middlewared/middlewared/plugins/network_ dns.py

Fix the join and leave.  Avoid nsupdate using 'localhost' for the PTR record.
Make the join and leave process safe for servers that are multi-homed.
DeltaFile
+74-30src/middlewared/middlewared/plugins/directoryservices_/connection.py
+26-0src/middlewared/middlewared/plugins/network_/dns.py
+12-1src/middlewared/middlewared/plugins/directoryservices_/ipa_join_mixin.py
+112-313 files

HardenedBSD/src f9a4771sys/cam cam_xpt.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+4-0sys/cam/cam_xpt.c
+4-01 files