FreeNAS/freenas 7c3c22asrc/middlewared/middlewared/plugins/init_shutdown_script task.py

NAS-142566 / 26.0.0 / Stop passing middlewared's environment to init/shutdown scripts (by Qubad786) (#19678)

## Problem
User scripts were spawned with middlewared's entire environment,
including `NOTIFY_SOCKET`. Since our unit sets `NotifyAccess=all`, a
daemon a script leaves behind can send `MAINPID=` and be adopted as the
unit's main process, so systemd tears middlewared down when that daemon
later exits. A user hit this with a POSTINIT script starting a NUT
driver: the driver was killed as a duplicate on every boot, middlewared
went down with it.

## Solution
Pass a curated set of names instead of inheriting: `PATH`, `TZ`, `LANG`,
`USER`, the proxy variables and `REQUESTS_CA_BUNDLE`, all of which
existing scripts may reasonably depend on. Allowlisted rather than
denylisted so that whatever systemd or a plugin sets next stays out of
user scripts too.

Original PR: https://github.com/truenas/middleware/pull/19676

Co-authored-by: M. Rehan <mrehanlm93 at gmail.com>
DeltaFile
+13-1src/middlewared/middlewared/plugins/init_shutdown_script/task.py
+13-11 files

LLVM/project a4cff75llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer VecUtils.h, llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes BundleVec.h

[SandboxVec][VecUtils] Introduce DeadInstrMorgue (#221482)

Move dead instructions collector and erasor into VecUtils, so that
it is usable by both, BundleVec and LoadStoreVec, vectorizers. NFC
DeltaFile
+140-0llvm/unittests/Transforms/Vectorize/SandboxVectorizer/VecUtilsTest.cpp
+2-48llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/BundleVec.cpp
+49-0llvm/lib/Transforms/Vectorize/SandboxVectorizer/VecUtils.cpp
+32-0llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h
+3-10llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/BundleVec.h
+226-585 files

LLVM/project d5c0de9libc/src/sys/stat CMakeLists.txt futimens.h, libc/src/sys/stat/linux CMakeLists.txt futimens.cpp

[libc] Implement futimens (#222251)

futimens(fd, times) is implemented on Linux by delegating to
the utimensat system call.

Fixes #220764
DeltaFile
+133-0libc/test/src/sys/stat/futimens_test.cpp
+31-0libc/src/sys/stat/linux/futimens.cpp
+24-0libc/src/sys/stat/futimens.h
+23-0libc/test/src/sys/stat/CMakeLists.txt
+13-0libc/src/sys/stat/linux/CMakeLists.txt
+7-0libc/src/sys/stat/CMakeLists.txt
+231-04 files not shown
+239-010 files

LLVM/project fff83ecllvm/lib/Target/AMDGPU AMDGPU.td VOPInstructions.td, llvm/test/MC/AMDGPU gfx13_asm_vop3-fake16.s gfx13_asm_vop3.s

[AMDGPU] Add gfx13 MC support for v_cvt_scale_pk32_* instructions (#222616)
DeltaFile
+220-0llvm/test/MC/AMDGPU/gfx13_asm_vop3_err.s
+121-0llvm/test/MC/AMDGPU/gfx13_asm_vop3.s
+120-0llvm/test/MC/AMDGPU/gfx13_asm_vop3-fake16.s
+18-0llvm/lib/Target/AMDGPU/VOP3Instructions.td
+7-0llvm/lib/Target/AMDGPU/VOPInstructions.td
+5-0llvm/lib/Target/AMDGPU/AMDGPU.td
+491-01 files not shown
+494-07 files

LLVM/project c47af05llvm/lib/Target/AMDGPU AMDGPU.td, llvm/test/CodeGen/AMDGPU occupancy-levels.ll

[AMDGPU] Change physical VGPRs to 1024 for gfx13 (#222615)

GFX13 has 1024 physical VGPRs per SIMD in wave32 (512 in wave64)
DeltaFile
+34-30llvm/test/CodeGen/AMDGPU/occupancy-levels.ll
+0-1llvm/lib/Target/AMDGPU/AMDGPU.td
+34-312 files

FreeBSD/ports 01acca7www/py-djangorestframework Makefile distinfo

www/py-djangorestframework: Update to 3.18.1

Changelog:

https://github.com/encode/django-rest-framework/releases/tag/3.18.1
DeltaFile
+3-3www/py-djangorestframework/distinfo
+1-1www/py-djangorestframework/Makefile
+4-42 files

FreeBSD/ports 6768079www/py-django-tree-queries Makefile distinfo

www/py-django-tree-queries: Update to 0.26.1

Changelog since 0.25.1:

https://github.com/feincms/django-tree-queries/blob/0.26.1/CHANGELOG.rst
DeltaFile
+3-3www/py-django-tree-queries/distinfo
+1-1www/py-django-tree-queries/Makefile
+4-42 files

FreeBSD/ports 0219b6etextproc/py-ttp-templates Makefile distinfo

textproc/py-ttp-templates: Update to 0.6.4

Changelogs since 0.6.1:

https://github.com/dmulyalin/ttp_templates/releases/tag/0.6.4
https://github.com/dmulyalin/ttp_templates/releases/tag/0.6.3
https://github.com/dmulyalin/ttp_templates/releases/tag/0.6.2
DeltaFile
+3-3textproc/py-ttp-templates/distinfo
+1-1textproc/py-ttp-templates/Makefile
+4-42 files

FreeBSD/ports 4e95130net-mgmt/py-netutils Makefile distinfo, net-mgmt/py-netutils/files patch-pyproject.toml

net-mgmt/py-netutils: Update to 1.19.1

Changelogs since 1.18.0:

https://github.com/networktocode/netutils/releases/tag/v1.19.1
https://github.com/networktocode/netutils/releases/tag/v1.19.0
DeltaFile
+16-3net-mgmt/py-netutils/files/patch-pyproject.toml
+3-3net-mgmt/py-netutils/distinfo
+1-1net-mgmt/py-netutils/Makefile
+20-73 files

FreeBSD/ports 205799fdevel/py-javaproperties Makefile

devel/py-javaproperties: Add a remark regarding newer versions

* The only consumer, sysutils/py-azure-cli, at present has set the upper
  bound for this port at <0.6.  The same applies in the upstream repo
  for the dev/main branches.

* Don't set PORTSCOUT so that it's still possible to check the status
  via Portscout from time to time (and compare it against Repology).
DeltaFile
+2-0devel/py-javaproperties/Makefile
+2-01 files

FreeBSD/ports 8786a91devel/py-funcy distinfo Makefile

devel/py-funcy: Update to 2.1

* Switch to the PEP517 build framework to make the port future-proof.

Changelog:

https://github.com/Suor/funcy/compare/2.0...04aafae9
DeltaFile
+5-3devel/py-funcy/Makefile
+3-3devel/py-funcy/distinfo
+8-62 files

NetBSD/pkgsrc-wip d11ad2ffresh Makefile distinfo

Update editors/fresh to v.0.5.1
DeltaFile
+0-12fresh/cargo-depends.mk
+3-3fresh/distinfo
+1-1fresh/Makefile
+4-163 files

LLVM/project 3c3c3d8llvm/lib/Transforms/Vectorize LoopVectorizationPlanner.h VPlanRecipes.cpp

[LV] Strip unnecessary cl::opts from headers (NFC) (#221891)

Mark the ones which are static as such, strip declarations in headers to
avoid unnecessary dependencies, and nest the non-static ones under the
llvm namespace.
DeltaFile
+21-19llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+9-6llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.cpp
+2-4llvm/lib/Transforms/Vectorize/VPlan.cpp
+0-4llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
+4-0llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+36-335 files

LLVM/project 5777c75llvm/test/Transforms/SLPVectorizer/AMDGPU slp-v2f16.ll

[SLP][AMDGPU] Fix load-address typo in v4f16 combine tests (#222112)

Patch addresses issue where tests are not performing 4 contiguous
elements load/store chain as intended.

- Correcting both typos (`%tmp6` vs. `%tmp10`) so each function
represents a contiguous 4-element chain.
- `copysign_combine_v4f16` and `canonicalize_combine_v4f16` now
vectorize identically on `GFX8` and `GFX9`.
- Adding `canonicalize_combine_v4f16_noncontiguous`, to preserve
existing test coverage, so the non-contiguous-gather path isn't silently
dropped.
DeltaFile
+171-27llvm/test/Transforms/SLPVectorizer/AMDGPU/slp-v2f16.ll
+171-271 files

FreeBSD/src d55eb2b. MAINTAINERS, .github CODEOWNERS

MAINTAINERS/CODEOWNERS: Scheduling/Priorities: Add a bit more files

These files are not about scheduling per se but about priority
management, mostly from user space.
DeltaFile
+4-0MAINTAINERS
+4-0.github/CODEOWNERS
+8-02 files

LLVM/project 8f100d2llvm/test/Transforms/SLPVectorizer/AMDGPU inst-count-heuristic.ll

[SLP][AMDGPU] Fix test to actually exercise count-check condition (#222022)

The gfx906 RUN lines in `inst-count-heuristic.ll` never exercised the
`SLPInstCountCheck` heuristic they were meant to test.
This patch converts the test kernel from `i32` to `i16` elements so the
heuristic's `getVectorFactor() == 2` gate is actually reachable on
gfx906, and adds a `-slp-inst-count-check=false` RUN line to cover the
non-default behavior.
DeltaFile
+67-56llvm/test/Transforms/SLPVectorizer/AMDGPU/inst-count-heuristic.ll
+67-561 files

LLVM/project 1b071d0clang/test/CIR/CodeGenHIP amdgcnspirv-kernel.hip

fix: Check HIP SPIR-V version metadata after lowering
DeltaFile
+3-0clang/test/CIR/CodeGenHIP/amdgcnspirv-kernel.hip
+3-01 files

LLVM/project 02b425bclang/lib/CIR/CodeGen CIRGenModule.cpp, clang/lib/CodeGen CodeGenModule.cpp

fix: Supply the HIP SPIR-V version only for metadata emission

Fix the assertion exposed by PR #214246 under the version invariant from PR #219687. Supply OpenCL 2.0 in classic CodeGen and CIRGen without changing HIP language options or enabling OpenCL-only Sema restrictions.

Assisted-by: Codex / GPT-6
DeltaFile
+8-0clang/test/CodeGenHIP/hipspv-kernel.cpp
+8-0clang/test/SemaHIP/atomic-init.hip
+4-2clang/lib/CIR/CodeGen/CIRGenModule.cpp
+3-1clang/lib/CodeGen/CodeGenModule.cpp
+2-0clang/test/CIR/CodeGenHIP/amdgcnspirv-kernel.hip
+25-35 files

LLVM/project b38ef5dclang/lib/CIR/Lowering/DirectToLLVM LowerToLLVMOpenCLMetadata.h LowerToLLVM.cpp, clang/test/CIR/CodeGenOpenCL version.cl

[CIR][OpenCL] Lower OpenCL language version metadata to LLVM dialect

Propagate CIR OpenCL language version module attributes as LLVM dialect named metadata before LLVM IR translation.

Assisted-by: Codex / GPT-5.6 Sol
DeltaFile
+43-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMOpenCLMetadata.cpp
+16-0clang/test/CIR/CodeGenOpenCL/version.cl
+16-0clang/test/CIR/Lowering/opencl-version-metadata.cir
+2-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMOpenCLMetadata.h
+2-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+79-05 files

LLVM/project f10cf12clang/lib/CIR/CodeGen CIRGenModule.h CIRGenModule.cpp, clang/test/CIR/CodeGenOpenCL version.cl

[CIR][OpenCL] Emit OpenCL language version metadata in CIR

Emit OpenCL and C++ for OpenCL language version attributes from CIRGen. Preserve the compatible OpenCL version and the C++ for OpenCL version separately so later lowering does not infer one from the other.

Assisted-by: Codex / GPT-5.6 Sol
DeltaFile
+15-0clang/test/CIR/CodeGenOpenCL/version.cl
+13-0clang/lib/CIR/CodeGen/CIRGenModule.cpp
+4-0clang/test/CodeGenCUDASPIRV/kernel-cc.cu
+1-0clang/lib/CIR/CodeGen/CIRGenModule.h
+33-04 files

LLVM/project 501095bclang/include/clang/CIR/Dialect/IR CIRDialect.td, clang/lib/CIR/Dialect/IR CIRDialect.cpp

fix: remove duplicate CIR operation attribute verifier

Related: e32ffd8b546f4a743812756efe11a7424cf9de5f
DeltaFile
+6-12clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+1-2clang/include/clang/CIR/Dialect/IR/CIRDialect.td
+7-142 files

LLVM/project 4d09d06llvm/include/llvm/DebugInfo/CodeView SymbolRecord.h, llvm/lib/DebugInfo/CodeView SymbolDumper.cpp EnumTables.cpp

[CodeView] Read and dump `S_ASSOCIATION` (#221034)

`S_ASSOCIATION` associates one symbol with another one. Right now, it's
only used for coroutines. The `get_associatedSymbol*` functions from
[`IDiaSymbol8`](https://learn.microsoft.com/en-us/visualstudio/debugger/debug-interface-access/idiasymbol8)
use this record. I'm not sure if the VS debugger uses this at all.

The symbol value was added earlier, but we weren't able to read/write
it. Also, lld would remove it when linking, as it didn't know if it
contained type indices.

This PR adds support for that. It's only visible in llvm-pdbutil where
we can dump it and roundtrip through yaml. I checked that it uses the
correct format when used with the DIA dump sample.

The coroutine kind is still missing. It's contained in the flags of an
`S_FRAMEPROC`. But it'd like to wait for #215887 which touches the flags
in YAML.
DeltaFile
+77-0llvm/test/tools/llvm-pdbutil/s-association.yaml
+20-0llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h
+16-0llvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp
+16-0llvm/lib/ObjectYAML/CodeViewYAMLSymbols.cpp
+10-0llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
+10-0llvm/lib/DebugInfo/CodeView/EnumTables.cpp
+149-05 files not shown
+171-111 files

LLVM/project 3dfd0f8llvm/include/llvm/IR IRBuilder.h, llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp

[IRBuilder] Remove unused AllocTy argument (#222667)

This argument is not used at all. The size is explicitly passed in a
separate argument.
DeltaFile
+6-8llvm/include/llvm/IR/IRBuilder.h
+6-7llvm/lib/IR/IRBuilder.cpp
+3-4llvm/lib/IR/Core.cpp
+3-3mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+2-2llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+1-2polly/lib/CodeGen/IslNodeBuilder.cpp
+21-261 files not shown
+22-287 files

FreeBSD/ports d94cd8fsysutils/sylve pkg-descr distinfo, sysutils/sylve/files pkg-message.in

sysutils/sylve: Update to 0.3.1

Changelog:      https://github.com/AlchemillaHQ/Sylve/releases/tag/v0.3.1
Sponsored by:   The FreeBSD Foundation

Differential Revision:  https://reviews.freebsd.org/D59480

(cherry picked from commit 458dbcf55b55c6f387272c5d47f4f6c8d4962ca5)

Approved by:    maintainer
Event:          EuroBSDcon Devsummit 2026
DeltaFile
+33-13sysutils/sylve/files/pkg-message.in
+11-9sysutils/sylve/Makefile
+7-7sysutils/sylve/distinfo
+5-5sysutils/sylve/pkg-descr
+56-344 files

FreeBSD/src 755b9d5sys/netgraph/bluetooth/hci ng_hci_main.c

ng_hci: build the devd notification in a stack buffer

sbuf_new_auto() sleeps, and ng_hci_default_rcvmsg() can run under the
raw HCI socket pcb mutex held across NG_SEND_MSG_PATH().

Reported by:    WITNESS
Fixes:          ad91d47db306

Reviewed by:    glebius, adrian
Differential Revision:  https://reviews.freebsd.org/D59550
DeltaFile
+26-51sys/netgraph/bluetooth/hci/ng_hci_main.c
+26-511 files

FreeBSD/ports f42b37fgraphics/converseen pkg-plist Makefile

graphics/converseen: Update to 0.15.2.8

ChangeLog: https://converseen.fasterland.net/changelog/

 * Added Georgian translation
 * Various Bugfixes
DeltaFile
+3-3graphics/converseen/distinfo
+1-1graphics/converseen/Makefile
+1-0graphics/converseen/pkg-plist
+5-43 files

LLVM/project f80d1b7clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVMOpenCLMetadata.h LowerToLLVM.cpp, clang/test/CIR/CodeGenOpenCL version.cl

[CIR][OpenCL] Lower OpenCL language version metadata to LLVM dialect

Propagate CIR OpenCL language version module attributes as LLVM dialect named metadata before LLVM IR translation.

Assisted-by: Codex / GPT-5.6 Sol
DeltaFile
+43-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMOpenCLMetadata.cpp
+16-0clang/test/CIR/CodeGenOpenCL/version.cl
+16-0clang/test/CIR/Lowering/opencl-version-metadata.cir
+2-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMOpenCLMetadata.h
+2-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+79-05 files

LLVM/project acbaea9clang/test/CIR/CodeGenHIP amdgcnspirv-kernel.hip

fix: Check HIP SPIR-V version metadata after lowering
DeltaFile
+3-0clang/test/CIR/CodeGenHIP/amdgcnspirv-kernel.hip
+3-01 files

LLVM/project 7bbf450clang/lib/CIR/CodeGen CIRGenModule.h CIRGenModule.cpp, clang/test/CIR/CodeGenOpenCL version.cl

[CIR][OpenCL] Emit OpenCL language version metadata in CIR

Emit OpenCL and C++ for OpenCL language version attributes from CIRGen. Preserve the compatible OpenCL version and the C++ for OpenCL version separately so later lowering does not infer one from the other.

Assisted-by: Codex / GPT-5.6 Sol
DeltaFile
+15-0clang/test/CIR/CodeGenOpenCL/version.cl
+13-0clang/lib/CIR/CodeGen/CIRGenModule.cpp
+4-0clang/test/CodeGenCUDASPIRV/kernel-cc.cu
+1-0clang/lib/CIR/CodeGen/CIRGenModule.h
+33-04 files

LLVM/project b36b41eclang/lib/CIR/CodeGen CIRGenModule.cpp, clang/lib/CodeGen CodeGenModule.cpp

fix: Supply the HIP SPIR-V version only for metadata emission

Fix the assertion exposed by PR #214246 under the version invariant from PR #219687. Supply OpenCL 2.0 in classic CodeGen and CIRGen without changing HIP language options or enabling OpenCL-only Sema restrictions.

Assisted-by: Codex / GPT-6
DeltaFile
+8-0clang/test/CodeGenHIP/hipspv-kernel.cpp
+8-0clang/test/SemaHIP/atomic-init.hip
+4-2clang/lib/CIR/CodeGen/CIRGenModule.cpp
+3-1clang/lib/CodeGen/CodeGenModule.cpp
+2-0clang/test/CIR/CodeGenHIP/amdgcnspirv-kernel.hip
+25-35 files