OpenZFS/src 60fa372module/nvpair nvpair.c

nvpair: Improve native handling of unterminated strings

This continues the work done in 59dc88602e23a436440e4164c6d9401da8f0dff2
and parallels what is already done for XDR encoding.

Reported-by: Grok 4.5 Build Beta
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alek Pinchuk <Alek.Pinchuk at connectwise.com>
Signed-off-by: Richard Yao <richard at ryao.dev>
Closes #18876
DeltaFile
+20-3module/nvpair/nvpair.c
+20-31 files

LLVM/project cb1ebd0lldb/include/lldb/Target Platform.h, lldb/source/Plugins/Platform/MacOSX PlatformDarwinKernel.h PlatformDarwin.h

[lldb] Pass a Target to Platform::GetSharedModule (#214633)

PlatformDarwinKernel::GetSharedModuleKernel unconditionally dereferenced
the process to reach the target's debug file search paths. The Process *
is the wrong thing to be threading through Platform::GetSharedModule.
Refactor Platform::GetSharedModule to take a `Target &` and get the
process from the target if we really need it.
DeltaFile
+35-0lldb/test/API/macosx/load-kext/TestLoadKext.py
+12-19lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+14-13lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
+11-12lldb/include/lldb/Target/Platform.h
+5-8lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
+5-7lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h
+82-5911 files not shown
+106-8417 files

LLVM/project a8108e0llvm/unittests/CAS CASTestConfig.cpp PluginCASTest.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+9-0llvm/unittests/CAS/PluginCASTest.cpp
+7-0llvm/unittests/CAS/CASTestConfig.cpp
+16-02 files

LLVM/project 44448d6utils/bazel/llvm-project-overlay/clang BUILD.bazel

[Bazel] Fixes de8c11a (#214854)

This fixes de8c11a669810b7043462a94fe34dfdbe5a1c8bf (#208380).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=de8c11a669810b7043462a94fe34dfdbe5a1c8bf

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+19-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+19-01 files

LLVM/project 6f13fe0llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer non-power-of-2-buildvector.ll

[SLP] Allow non-power-of-2 VF in tryToVectorizeList (#206259)

Non-power-of-2 VF support (-slp-vectorize-non-power-of-2) was wired into
the `load/store/reduction` paths but not into `tryToVectorizeList`, so
`buildvector/insertelement` seeds like <15 x half> were split into
power-of-2 pieces instead of a single vector op.

Consult `isAllowedNonPowerOf2VF()` when computing `MaxVF` and in the
inner
full-vector guard so supported widths are tried. No change unless
`-slp-vectorize-non-power-of-2` is enabled.

https://godbolt.org/z/1b8GebPEW
DeltaFile
+42-23llvm/test/Transforms/SLPVectorizer/X86/odd_store.ll
+3-23llvm/test/Transforms/SLPVectorizer/non-power-of-2-buildvector.ll
+6-2llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+51-483 files

LLVM/project 2692e14llvm/lib/CodeGen LiveRegUnits.cpp

[LiveRegUnits] Avoid accidentally O(n^2) loop in addCalleeSavedRegs (NFC) (#214740)

This is a small improvement for `stage1-aarch64-O3`:
https://llvm-compile-time-tracker.com/compare.php?from=94af8651da4a1b907a8ea2acb698d72aad3df722&to=ce67ef155e8fc7945a6ec930a12e5762a45fa00b&stat=instructions:u
DeltaFile
+9-12llvm/lib/CodeGen/LiveRegUnits.cpp
+9-121 files

FreeBSD/src 4c4bad4sys/kern kern_event.c

kqueue: avoid closing a file under the knlist lock

Killing a knote releases its file reference, and releasing the last one
runs the close path inline.
 panic: _mtx_lock_sleep: recursed on non-recursive mutex ttymtx

Revoking a controlling tty during exit reaches this whenever a knote is
still registered on it.

Released the knlist lock around the drop and restart the walk.
The knote stays valid while the lock is released.

MFC: 1 week

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D58681
DeltaFile
+8-0sys/kern/kern_event.c
+8-01 files

LLVM/project 43d0613offload/plugins-nextgen/level_zero/include L0Compat.h

[offload] Fix extra semicolon after API_HELPER_OPTIONAL macro in L0Compat.h (#214569)

Remove extra semicolon after API_HELPER_OPTIONAL macro invocation which
is flagged as incompatible with C++98 [-Wc++98-compat-extra-semi].
DeltaFile
+1-1offload/plugins-nextgen/level_zero/include/L0Compat.h
+1-11 files

Linux/linux bcc44b6drivers/accel/amdxdna amdxdna_gem.c, drivers/gpu/drm/amd/amdgpu amdgpu_cs.c amdgpu_ttm.c

Merge tag 'drm-fixes-2026-08-08' of https://gitlab.freedesktop.org/drm/kernel

Pull drm fixes from Dave Airlie:
 "Weekly fixes for drm, feels relatively quiet for the post-AI world,
  mostly amdgpu and xe with a few fixes across the board:

  shmem:
   - check VMA boundaries for PMD mappings

  xe:
   - Fix memory leak in exec_queue_set_hang_replay_state
   - Apply RCS/CCS yield policy to SR-IOV VFs

  amdgpu:
   - JPEG queue reset fixes
   - GC 12 fix
   - GMC 12.1 fixes
   - Lockdep false positive fix
   - Userq fix

    [45 lines not shown]
DeltaFile
+30-24drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c
+47-1drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
+26-21drivers/accel/amdxdna/amdxdna_gem.c
+13-16drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+21-6drivers/gpu/drm/bridge/parade-ps8640.c
+26-1drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+163-6919 files not shown
+298-9625 files

LLVM/project 24109f1llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV/rvv masked-load-vl-predicatable.ll

[RISCV] Canonicalize vector SETCC for easier conversion to VL-predicate
DeltaFile
+85-0llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+34-27llvm/test/CodeGen/RISCV/rvv/masked-load-vl-predicatable.ll
+119-272 files

FreeBSD/ports e8cb2c0databases/qdrant Makefile Makefile.crates

databases/qdrant: update 1.18.3 → 1.19.0
DeltaFile
+259-241databases/qdrant/distinfo
+128-119databases/qdrant/Makefile.crates
+1-2databases/qdrant/Makefile
+388-3623 files

FreeBSD/ports 22860e2devel/py-ruff Makefile distinfo, devel/ruff Makefile Makefile.crates

devel/{,py-}ruff: update 0.16.1 → 0.16.2
DeltaFile
+27-27devel/ruff/distinfo
+27-27devel/py-ruff/distinfo
+13-13devel/py-ruff/Makefile
+12-12devel/ruff/Makefile.crates
+1-1devel/ruff/Makefile
+80-805 files

FreeNAS/freenas 764e73fsrc/middlewared/middlewared/plugins/container dataset.py, src/middlewared/middlewared/pytest/unit/plugins test_zfs_internal_paths.py

Protect the container dataset from user deletion

## Problem
`<pool>/.truenas_containers` was destroyable through the public API. The destroy and rollback guards test the second path component against `INTERNAL_PATHS`, and the container dataset was not in that tuple, so a recursive `zfs.resource.destroy` wiped the whole tree, container rootfs snapshots deleted cleanly, and the image snapshot went away with `defer` set. `pool.dataset.delete` only failed by accident and reported a misleading "does not exist".

Adding the entry is not enough on its own. `pool.reset_mountpoint_recursively` reads the container dataset out of a pool-level query, which filters internal paths out, so the custom mountpoint would silently stop being repaired and containers would come up on an empty directory.

## Solution
Move the mountpoint repair into the container plugin as `container.ensure_pool_mountpoint`, which names the dataset explicitly - naming an internal path opts out of the filter, the same thing `docker.fs_manage.ensure_ix_apps_mount_point` relies on for `ix-apps`. It also refuses to overmount, which matters more here than for `ix-apps` because the container dataset exists on every pool and two pools can end up claiming the same path after a rename.

- **`pool.reset_mountpoint_recursively`** delegates to it, after the inherit walk rather than inside the first-level loop.
- **`ensure_datasets`** repairs a drifted mountpoint instead of raising, so it is no longer a dead end.
- **`container.repair_pool_mountpoints`** runs on boot between the legacy migration and autostart, covering `pool.import_on_boot` and the failover import, neither of which resets mountpoints at all.

With that in place `.truenas_containers` joins `INTERNAL_PATHS`. It is spelled out there rather than imported so the zfs layer does not reach into a plugin package, and a unit test keeps the two in sync.

`pool.filesystem_choices` no longer lists container datasets, so any existing periodic snapshot or VMware task pointed at one will fail revalidation - worth a release note. Renaming remains unguarded: `zfs.resource.rename` has no internal-path check, and the same hole applies to `ix-apps` and `.system` today.
DeltaFile
+123-0src/middlewared/middlewared/pytest/unit/plugins/container/test_ensure_pool_mountpoint.py
+109-0tests/api2/test_container_internal_path.py
+83-0tests/api2/test_container_mountpoint_repair.py
+64-10src/middlewared/middlewared/plugins/container/dataset.py
+61-0src/middlewared/middlewared/pytest/unit/plugins/container/test_repair_pool_mountpoints.py
+38-0src/middlewared/middlewared/pytest/unit/plugins/test_zfs_internal_paths.py
+478-104 files not shown
+529-3110 files

FreeBSD/ports 1c117eadeskutils/skim Makefile distinfo

deskutils/skim: update 5.6.1 → 5.6.3
DeltaFile
+53-53deskutils/skim/distinfo
+26-26deskutils/skim/Makefile
+79-792 files

FreeBSD/ports 50b465fdevel/git-repo-manager Makefile distinfo

devel/git-repo-manager: update 0.10.0 → 0.11.0
DeltaFile
+103-41devel/git-repo-manager/distinfo
+51-21devel/git-repo-manager/Makefile
+154-622 files

FreeBSD/ports dd5aeffdatabases/diesel Makefile distinfo

databases/diesel: update 2.3.11 → 2.3.12
DeltaFile
+89-87databases/diesel/distinfo
+45-44databases/diesel/Makefile
+134-1312 files

LLVM/project 9fb7dd7clang/docs Toolchain.md ReleaseNotes.md, clang/docs/analyzer checkers.rst

[clang][docs] Remove page-local contents directives
DeltaFile
+0-10clang/docs/DriverInternals.md
+0-4clang/include/clang/Basic/BuiltinsAMDGPUDocs.td
+0-4clang/docs/analyzer/checkers.rst
+0-4clang/docs/Toolchain.md
+0-4clang/docs/ReleaseNotes.md
+0-4clang/docs/LanguageExtensions.md
+0-3074 files not shown
+0-24980 files

LLVM/project b43e0a9clang/docs/analyzer conf.py, libc/docs/_static copybutton.js

[clang][docs] Prototype Furo theme setup
DeltaFile
+140-0utils/docs/llvm_sphinx/_static/furo-common.css
+0-71llvm/docs/_static/custom.css
+0-56llvm/docs/_static/copybutton.js
+0-56libc/docs/_static/copybutton.js
+56-0utils/docs/llvm_sphinx/_static/copybutton.js
+10-34clang/docs/analyzer/conf.py
+206-2179 files not shown
+335-39215 files

LLVM/project 8462169utils/docs remove_page_tocs.py

[clang][docs] Add page TOC removal helper
DeltaFile
+129-0utils/docs/remove_page_tocs.py
+129-01 files

FreeBSD/src e79f6aasys/contrib/dev/ath/ath_hal/ar9300 ar9300_paprd.c

ath: return error code of HAL_STATUS type

Found with:     clang -Werror=assign-enum
DeltaFile
+1-1sys/contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c
+1-11 files

FreeBSD/src 2ae8976sys/dev/ocs_fc ocs_hw.c

ocs_fc: return correct error code from ocs_hw_set_persistent_topology()

No functional change, as current callers either don't check the return
value or check it against OCS_HW_RTN_SUCCESS only.

Found with:     clang -Werror=assign-enum
DeltaFile
+3-3sys/dev/ocs_fc/ocs_hw.c
+3-31 files

LLVM/project 05c12f1llvm/utils/gn/secondary/compiler-rt/lib BUILD.gn, llvm/utils/gn/secondary/llvm/include/llvm/TargetParser BUILD.gn

[gn build] Format files (#214858)

`$ git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`
DeltaFile
+4-5llvm/utils/gn/secondary/llvm/tools/llvm-calc-occupancy/BUILD.gn
+1-3llvm/utils/gn/secondary/llvm/unittests/CAS/BUILD.gn
+1-3llvm/utils/gn/secondary/llvm/tools/libCASPluginTest/BUILD.gn
+2-2llvm/utils/gn/secondary/llvm/include/llvm/TargetParser/BUILD.gn
+1-1llvm/utils/gn/secondary/llvm/lib/Target/WebAssembly/BUILD.gn
+1-1llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
+10-151 files not shown
+11-167 files

LLVM/project 056ecfdllvm/utils/gn/secondary/llvm/include/llvm/Config config.gni, llvm/utils/gn/secondary/llvm/tools/libCASPluginTest BUILD.gn

[gn build] Port CASPluginTest (#214856)
DeltaFile
+26-0llvm/utils/gn/secondary/llvm/tools/libCASPluginTest/BUILD.gn
+4-1llvm/utils/gn/secondary/llvm/unittests/CAS/BUILD.gn
+2-2llvm/utils/gn/secondary/llvm/include/llvm/Config/config.gni
+32-33 files

LLVM/project b4bf7bfllvm/test/CodeGen/RISCV/rvv masked-load-vl-predicatable.ll

Pre-commit Tests
DeltaFile
+236-0llvm/test/CodeGen/RISCV/rvv/masked-load-vl-predicatable.ll
+236-01 files

LLVM/project b5a7bb2clang/docs HardwareAssistedAddressSanitizerDesign.md AutomaticReferenceCounting.md, clang/docs/CIR CleanupAndEHDesign.md

Fix defects after reviewing HTML
DeltaFile
+98-34clang/docs/CommandGuide/clang.md
+38-38clang/docs/CIR/CleanupAndEHDesign.md
+6-9clang/docs/ControlFlowIntegrityDesign.md
+3-3clang/docs/AutomaticReferenceCounting.md
+2-2clang/docs/HardwareAssistedAddressSanitizerDesign.md
+147-865 files

LLVM/project e4d19d7clang/lib/Driver/ToolChains Clang.cpp

[NVPTX] Forward the `--ptxas-path` flag correctly (#213352)

Summary:
This wasn't included in the list of flags to forward.
DeltaFile
+1-0clang/lib/Driver/ToolChains/Clang.cpp
+1-01 files

LLVM/project b542602clang/lib/StaticAnalyzer/Checkers BuiltinFunctionChecker.cpp, clang/test/Analysis builtin_overflow.c

[clang][StaticAnalysis] Fix an false negative bug in handling '__builtin*overflow' (#214553)

For a binary operation 'A op B' and a result type 'T', these builtins
return true/false for whether the operation's result is a value 'T'
cannot hold. CSA models this by computing the operation's result in a
temporary type and comparing it against the bounds of 'T'. However, the
temporary type is only twice as wide as 'T', not the operands. When
either operand is wider than 'T's doubled width, the result of 'A op B'
can silently wrap around before the comparison, producing a false
negative.

The solution is to find the proper type to temporarily hold the result
of 'A op B' from types of 'A' and 'B'.

rdar://184263112

---------

Co-authored-by: Balázs Benics <benicsbalazs at gmail.com>
DeltaFile
+26-6clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp
+8-0clang/test/Analysis/builtin_overflow.c
+34-62 files

LLVM/project 8320bcbflang/lib/Semantics mod-file.cpp resolve-names.cpp, flang/test/Semantics unparse-explicit-array-bounds.f90 modfile-explicit-shape-bounds.f90

[flang][semantic] Implement semantic checks and new data structure for explicit-shape-bounds-spec (#203030)

Since Lower and large parts of Semantics depend on ShapeSpec being a scalar bound, implement a class RankOneBoundElement that does just this. Since there is no syntactic representation for this node kind, have both unparse.cpp and mod-file.cpp emit the original rank-1 integer array expression instead of scalarized versions.

Analyze does semantic checks, then repackages into an array of scalarized ShapeSpec pairs instead of a pair of arrays.

Lower implementation in follow-up stack PR.

Also, fix pre-existing bug where overriding dimension spec in entity-decl throws away and fails to type check the array-spec provided in dimension spec.
DeltaFile
+199-30flang/test/Semantics/declaration-explicit-array-bounds.f90
+210-8flang/lib/Semantics/resolve-names-utils.cpp
+99-9flang/lib/Semantics/resolve-names.cpp
+63-0flang/test/Semantics/modfile-explicit-shape-bounds.f90
+53-7flang/lib/Semantics/mod-file.cpp
+42-0flang/test/Semantics/unparse-explicit-array-bounds.f90
+666-5419 files not shown
+825-5825 files

LLVM/project 1b2e2ebllvm/lib/Transforms/Vectorize SLPVectorizer.cpp

Update
DeltaFile
+1-1llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+1-11 files

LLVM/project a6cf1a0clang/include/clang/CIR/Interfaces CIROpInterfaces.td, clang/lib/CIR/CodeGen CIRGenStmt.cpp CIRGenCall.cpp

[CIR] Implement alwaysinline/noinline on call sites (#214789)

When these appear in an AttributedStmt, we have to annotate the call
with these attributes. This patch implements them for all of the
CallOpInterface types.
DeltaFile
+55-0clang/test/CIR/CodeGen/callsite-inline-attributes.cpp
+18-2clang/include/clang/CIR/Interfaces/CIROpInterfaces.td
+18-0clang/lib/CIR/CodeGen/TargetInfo.h
+15-0clang/lib/CIR/CodeGen/CIRGenCall.cpp
+12-2clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+7-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+125-42 files not shown
+132-48 files