FreeNAS/freenas 475cb83src/middlewared/middlewared/plugins service.py

NAS-139468 / 26.04 / dont reload service that is inactive (#18100)

Again, our CI has been sporadically crashing on the setup routines for
VMs. After my changes to try and remedy this in the most recent PR:
https://github.com/truenas/middleware/pull/18096, the CI immediately
failed again. However, I'm able to see the issue clearly.

The logs show this:
```
[2026/01/26 06:13:27] (WARNING) middlewared.plugins.service_.services.base.call_unit_action_and_wait():309 - ssh.service Reload job finished with result: invalid
[2026/01/26 06:13:27] (WARNING) middlewared.plugins.service_.services.base._verify_service_running():150 - ssh.service Reload completed but service is inactive
[2026/01/26 06:13:27] (ERROR) ServiceService.reload():356 - Service 'ssh' not running after reload
```
Systemd returns "invalid" when attempting to reload an inactive service.
Journal shows the service was inactive at reload time, then started by
something else ~229ms later:
```
Jan 26 06:13:27.461312 truenas systemd[1]: ssh.service: Unit cannot be reloaded because it is inactive.
Jan 26 06:13:27.690777 truenas systemd[1]: Starting ssh.service - OpenBSD Secure Shell server...

    [5 lines not shown]
DeltaFile
+7-0src/middlewared/middlewared/plugins/service.py
+7-01 files

FreeNAS/freenas a3cbd46src/middlewared/middlewared/api/base/server/ws_handler rpc.py

NAS-139467 / 26.04 / fix asyncio.Task leak potentiality (#18099)

While diagnosing this issue
https://github.com/truenas/middleware/pull/18096, the following logs
were found 3 seconds after the logs in that PR.

```
[2026/01/26 00:13:50] (ERROR) asyncio.default_exception_handler():1871 - Task was destroyed but it is pending! task: <Task pending name='Task-3273' coro=<RpcWebSocketHandler.process_method_call() done, ...> wait_for=<Future pending cb=[Task.task_wakeup()]>>
[2026/01/26 00:13:50] (ERROR) asyncio.default_exception_handler():1871 - Task was destroyed but it is pending! task: <Task cancelling name='Task-3346' coro=<DBusRouter._receiver() done, ...> wait_for=<Future cancelled>>
```

During our CI runs, this exposed the fact that RPC method calls were
spawned with `asyncio.ensure_future()` (fire-and-forget) and never
tracked. When WebSocket connections closed, pending tasks were not
cancelled or awaited, leaving them orphaned until garbage collection.

Fixes employed:
- Added `pending_tasks: set[asyncio.Task]` to `RpcWebSocketApp`
- Replaced `asyncio.ensure_future()` with `asyncio.create_task()` +

    [2 lines not shown]
DeltaFile
+11-1src/middlewared/middlewared/api/base/server/ws_handler/rpc.py
+11-11 files

FreeBSD/ports 2145a70sysutils/opensbi distinfo Makefile, sysutils/opensbi/files patch-platform_generic_sifive_fu540.c patch-lib_sbi_sbi__hart.c

sysutils/opensbi: update to v1.8.1

In this update, drop the PMP workaround patch for FU540. This will be
fixed in the src tree.

As usual, bump dependent u-boot ports.

Tested by:      Klaus Küchemann <maciphone2 at googlemail.com>
Reviewed by:    lwhsu
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D54421
DeltaFile
+0-26sysutils/opensbi/files/patch-platform_generic_sifive_fu540.c
+0-19sysutils/opensbi/files/patch-lib_sbi_sbi__hart.c
+0-11sysutils/opensbi/files/patch-platform_generic_platform.c
+3-3sysutils/opensbi/distinfo
+1-1sysutils/opensbi/Makefile
+2-0sysutils/u-boot-sifive-fu540/Makefile
+6-602 files not shown
+10-608 files

LLVM/project 10ef135llvm/lib/CodeGen/SelectionDAG LegalizeFloatTypes.cpp LegalizeTypes.h

Delete the implementation functions
DeltaFile
+0-655llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+0-37llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
+0-6922 files

LLVM/project 0498d87llvm/include/llvm/CodeGen TargetLowering.h, llvm/lib/CodeGen TargetLoweringBase.cpp

DAG: Remove softPromoteHalfType

Remove the now unimplemented target hook and associated DAG machinery
for the old half legalization path.

Really fixes #97975
DeltaFile
+7-22llvm/include/llvm/CodeGen/TargetLowering.h
+0-20llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+0-11llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+2-7llvm/lib/CodeGen/TargetLoweringBase.cpp
+0-8llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
+0-2llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+9-701 files not shown
+9-717 files

LLVM/project c91ea57llvm/lib/Target/AMDGPU R600ISelLowering.cpp R600ISelLowering.h, llvm/test/CodeGen/AMDGPU kernel-args.ll

R600: Remove softPromoteHalfType

Also includes a kind of hacky, minimal change to avoid assertions
when softPromoteHalfType is removed to fix kernel arguments
lowered as f16. Half support was never really implemented
for r600, and there just happened to be a few incidental tests
which included a half argument (which were also not even meaningful,
since the function body just folded to nothing due to no callable
function support).
DeltaFile
+164-0llvm/test/CodeGen/AMDGPU/kernel-args.ll
+3-0llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
+0-2llvm/lib/Target/AMDGPU/R600ISelLowering.h
+167-23 files

LLVM/project 34cfc39llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.960bit.ll

AMDGPU: Move softPromoteHalfType override to R600 only

As expected the code is much worse, but more correct.
We could do a better job with source modifier management around
fp16_to_fp/fp_to_fp16.
DeltaFile
+19,051-23,588llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+7,381-11,318llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+6,645-10,108llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+6,103-9,009llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.832bit.ll
+7,004-7,821llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+5,419-8,032llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.768bit.ll
+51,603-69,876117 files not shown
+97,569-126,034123 files

FreeBSD/src 27595besys/riscv/riscv pmap.c

riscv: smarter DMAP construction (again)

Extend pmap_bootstrap_dmap() to build the DMAP with 4K-page granularity.

Recently we have been approximating it with 2MB mappings. The motivation
again is the problematic FU540 hardware, which seems to require more
accurate mappings still to avoid triggering its PMP errata.

Although this hardware alone is of little consequence, constructing the
DMAP accurately/correctly may help avoid future surprises.

The implementation contains some repetitive code. This could be
expressed differently, but my guiding principle for these early routines
is that being simple and explicit about what we are doing makes them
easier to comprehend.

See also 762a3224cde6 ("riscv: smarter DMAP construction).

Tested by:      Klaus Küchemann <maciphone2 at googlemail.com>

    [3 lines not shown]
DeltaFile
+83-15sys/riscv/riscv/pmap.c
+83-151 files

HardenedBSD/src c1f5f72lib/libc/gen posix_spawn.c

HBSD: Fix build error caused by mismerge

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+2-0lib/libc/gen/posix_spawn.c
+2-01 files

FreeBSD/src bcd6bb8sys/arm64/arm64 exec_machdep.c

arm64: Correctly align the SVE signal context

The SVE signal context needs to be correctly aligned. Fix this by
creating a new macro to calculate the needed size to provide this
alignment, and use it when setting and checking the saved SVE signal
context.

Reported by:    cperciva
Reviewed by:    cperciva, markj
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D54396

(cherry picked from commit a9e77eb7016df70723c208fc09fbd01ec23a732d)
DeltaFile
+9-5sys/arm64/arm64/exec_machdep.c
+9-51 files

OPNSense/core 99f0ee6src/opnsense/scripts/kea kea_prefix_watcher.py

Style
DeltaFile
+1-0src/opnsense/scripts/kea/kea_prefix_watcher.py
+1-01 files

OPNSense/core 7c27da4src/opnsense/scripts/kea kea_prefix_watcher.py

Use list_hosts.py directly, only request IPv6 addresses, actually fall back to ndp, trust output completely since it is strict
DeltaFile
+11-18src/opnsense/scripts/kea/kea_prefix_watcher.py
+11-181 files

LLVM/project 535ec2ellvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 sve-fixed-length-frame-offests.ll sve-fixed-length-masked-gather.ll

AArch64: Use poison more in legalization (#177919)

Convert many, but not all contexts creating new undefs
to use poison instead.
DeltaFile
+86-87llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+4-4llvm/test/CodeGen/AArch64/sve-fixed-length-frame-offests.ll
+1-5llvm/test/CodeGen/AArch64/sve-fixed-length-masked-gather.ll
+91-963 files

FreeBSD/src 277539atests/sys/kern pdwait.c Makefile

Add tests for pdwait

MFC With:       4d707825bf62ee73a32b615846eff9c4a9bda538
Sponsored by:   ConnectWise
DeltaFile
+295-0tests/sys/kern/pdwait.c
+1-0tests/sys/kern/Makefile
+296-02 files

FreeBSD/src d1e6057tests/sys/kern pdrfork.c Makefile

Add tests for pdrfork

MFC With:       5c2ee618d5ec21f110c4da40e9f17833b2ab8b76
Sponsored by:   ConnectWise
DeltaFile
+187-0tests/sys/kern/pdrfork.c
+1-0tests/sys/kern/Makefile
+188-02 files

FreeBSD/src e35df41tests/sys/kern procdesc.c Makefile

procdesc: Add a test for pid recycling behavior

MFC With:       09984871d8caff9263b955a94bb9fb5354af1b4c
Sponsored by:   ConnectWise
DeltaFile
+98-0tests/sys/kern/procdesc.c
+1-0tests/sys/kern/Makefile
+99-02 files

pkgng/pkgng 2e556ef. auto.def, external/sqlite sqlite_cfg.h

compat: stop dynamically checking more standard functions
DeltaFile
+9-0external/sqlite/sqlite_cfg.h
+1-2auto.def
+10-22 files

FreeBSD/ports e9188a0sysutils/skopeo pkg-descr

sysutils/skopeo: Improve pkg-descr

Submitted by:   Robert Gogolok <gogolok at gmail.com>
DeltaFile
+4-2sysutils/skopeo/pkg-descr
+4-21 files

OPNSense/core 8493f8dsrc/www firewall_rules_edit.php

firewall: rule association edits part 2
DeltaFile
+28-50src/www/firewall_rules_edit.php
+28-501 files

LLVM/project 5821b32mlir/lib/Dialect/Tosa/IR TosaOps.cpp, mlir/test/Dialect/Tosa tosa-infer-shapes.mlir

[mlir][tosa] Fix shape inference for broadcast bias in transpose_conv2d and depthwise_conv2d (#177739)

Fix part of #175765 

Correct shape inference for `tosa.transpose_conv2d` and
`tosa.depthwise_conv2d` when the bias tensor has `BC == 1` based on the
specification.
Fix getting the bias shape in `transpose_conv2d` (it uses the shape of
the input tensor before).
DeltaFile
+22-0mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir
+9-9mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
+31-92 files

FreeNAS/freenas 4563b87src/middlewared/middlewared/etc_files/sssd sssd.conf.mako

remove services lines from sssd.conf
DeltaFile
+0-2src/middlewared/middlewared/etc_files/sssd/sssd.conf.mako
+0-21 files

FreeNAS/freenas 925c40dsrc/middlewared/middlewared/api/base/server/ws_handler rpc.py

fix asyncio.Task leak potentiality
DeltaFile
+11-1src/middlewared/middlewared/api/base/server/ws_handler/rpc.py
+11-11 files

NetBSD/pkgsrc-wip cce1bb8webkit-gtk Makefile options.mk

webkit-gtk: move currently unused setting

comment out some files which I suspect will now be more
portable, after the ruby path fixes
DeltaFile
+4-7webkit-gtk/Makefile
+2-0webkit-gtk/options.mk
+6-72 files

NetBSD/pkgsrc-wip 5f76bf5webkit-gtk options.mk Makefile

webkit-gtk: remove some obsolete cmake options
DeltaFile
+2-11webkit-gtk/options.mk
+0-1webkit-gtk/Makefile
+2-122 files

FreeBSD/ports 87fbd7adevel/sbt distinfo Makefile

devel/sbt: update to 1.12.1 release.
DeltaFile
+3-3devel/sbt/distinfo
+1-1devel/sbt/Makefile
+4-42 files

LLVM/project 8f64d44clang/include/clang/CIR/Dialect/IR CIRAttrs.td CIROps.td, clang/lib/CIR/CodeGen CIRGenModule.cpp

[CIR] Apply 'side-effect' attribute logic to the function as well. (#177242)

Previous efforts in both the incubator and upstreamed added the 'pure'
and 'const' attribute lowering to calls. This patch completes that
effort by making it also appear on functions with this attribute.
DeltaFile
+43-0clang/test/CIR/CodeGen/side-effect.cpp
+34-0clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+2-30clang/include/clang/CIR/Dialect/IR/CIROps.td
+32-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+19-0clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+3-2clang/lib/CIR/CodeGen/CIRGenModule.cpp
+133-326 files

LLVM/project 9be7c10flang/lib/Lower Bridge.cpp

[flang][Lower] Fix UB in location handling (#177944)

Previously `prov` received the address of a variable allocated in stack
memory (the contents of `include`). `prov` would then access that memory
outside of the lifetime of that stack allocation: leading to UB.

This only manifested on thinLTO builds. No added test because
flang/test/Lower/location.f90 covers it (when thinLTO is enabled) and
there are bots guarding the thin-lto configuration.

Fixes #156629
Fixes #176404
DeltaFile
+3-3flang/lib/Lower/Bridge.cpp
+3-31 files

LLVM/project ad207cclldb/tools/lldb-dap ProgressEvent.cpp

[lldb-dap] Join the ProgressEventReporter thread if possible (#176984)

It is not easily noticeable because it mostly happens when ending the
debug session.
DeltaFile
+2-1lldb/tools/lldb-dap/ProgressEvent.cpp
+2-11 files

FreeBSD/ports d70d01ddevel/nextpnr Makefile

devel/nextpnr: Fix building of GUI

PR:     292673
DeltaFile
+5-5devel/nextpnr/Makefile
+5-51 files

LLVM/project fcdc6b4cmake/Modules GetToolchainDirs.cmake, compiler-rt/cmake/Modules CompilerRTUtils.cmake

Add include for standalone build
DeltaFile
+3-1cmake/Modules/GetToolchainDirs.cmake
+1-3compiler-rt/cmake/Modules/CompilerRTUtils.cmake
+4-42 files