NAS-140310 / 27.0.0-BETA.1 / Also handle dicts in `get_mock_return_model` (#18468)
This fixes test_update.py::test_update failing with
```
AttributeError: 'dict' object has no attribute 'available'
```
Because `update.profile_choices` is expected to be a dict of objects,
but a dict of dicts is returned due to mocking.
NAS-140296 / 27.0.0-BETA.1 / Fix mock infrastructure to coerce dict results to Pydantic models for generic services (#18457)
This commit fixes an issue where the mock infrastructure (test.set_mock)
returns plain dicts for methods that internally return Pydantic models.
Generic services (those with Config.generic = True) like DockerService
return Pydantic model instances from their methods (e.g. docker.config
returns a DockerEntry, docker.status returns a DockerStatusInfo). When
internal callers use attribute access (e.g. .pool) on the result, mocks
returning plain dicts would fail with "'dict' object has no attribute
'pool'".
The fix detects at mock registration time whether the mocked method
belongs to a generic service and returns any Pydantic model. If so, the
mock's dict results are automatically wrapped via model_construct()
before being returned to callers. Non-generic services and
primitive-returning methods are unaffected.
STIG tests:
http://jenkins.eng.ixsystems.net:8080/job/tests/job/stig_tests/1812/ (
[5 lines not shown]
[z/OS] Mark shtest-ulimit-nondarwin.py unsupported on zos. (#194016)
This PR marks llvm/utils/lit/tests/shtest-ulimit-nondarwin.py
unsupported on z/OS.
[Attributor] Support SPIR-V address spaces (#192725)
Right now Attributor assumes that if the the target is a GPU is can use
a single set of address space numerical values to determine the local
address space, but that's not true in general, so add SPIR-V support,
which uses different values.
This fixes an instruction incorrectly being marked as dead and optimized
out for an OpenMP SPIR-V offloading example.
---------
Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
[SystemZ] z/OS only accept C initialization (#194023)
The TLS support only accept compile constant expressions (both C and
C++) on z/OS. Add #if to skip these tests on z/OS.
Add middleware support for LIO ALUA HA
Wire up the middleware side of LIO ALUA high-availability: load
lio_ha.ko with per-node addresses on service start, manage the
4-row ALUA state table (MASTER/BACKUP × synced/not-synced) across
failover events, clean up STANDBY configfs on pool export, and
add pre-flight validation that targets have static initiator ACLs
before ALUA can be enabled.
[LiveDebugValues] Use std::sort for register sorting in collectIDsForRegs (#194339)
VarLocBasedLDV::collectIDsForRegs sorts a SmallVector<Register> using
array_pod_sort which is a thin wrapper around qsort. That shows up as a hotspot
in compile-time profiles under __GI___qsort_r.
Switching this to an explicit-comparator llvm::sort call, which takes the
std::sort path instead improves compile-time with no change to code-size.
CTMark geomean:
- stage1-O0-g: -0.41%
- stage1-aarch64-O0-g: -0.58%
- stage2-O0-g: -0.40%
http://llvm-compile-time-tracker.com/compare.php?from=347aa3f6fbcc48cd752d02aa581b74c33d18dd41&to=cca8df56a576682510733c4c1b6fc12556e2dd7c&stat=instructions%3Au
[Clang][HLSL] Fix -Wunused-variable (#194374)
Inline the variable definition into the assert given it is side effect
free and the variable name does not make the code much more clear.
[offload] Fix use of AsyncInfoWrapper's finalize function (#194098)
The expected use is to forward the error from the asynchronous
operation's issuing (e.g., launchImpl) directly into the
AsyncInfoWrapper::finalize(). The check of the error is already
performed inside that function. No need to forward a dummy success error
code.
[llvm][lli] fix lli crash when run variable arguments function as a interpret (#173719)
Run `lli` comand with the flag `-force-interpreter=true` to execute LLVM
bitcode, if `lli` run `variable arguments` function in the bitcode, it
will crash.
Fix #173718
[AMDGPU][MC] Permit unneeded VOPD mov operands to be non-zero (#194060)
Use ? instead of 0 in the tablegen definitions for VOPD containing
v_mov. This enables the instruction to be disassembled regardless of
what bits are in those fields, which helps diagnose broken code.
Previously, the disassembler would reject these.
net-mgmt/iprange: Mark as IGNORE on i386
IPv6 support was added on version 2.0 and requires __uint128_t. There
is no configure option to disable IPv6 so lets stop building on that
platform.
Sponsored by: Rubicon Communications, LLC ("Netgate")
xwayland: update to 24.1.11.
This release addresses a number of regressions found in Xwayland 24.1.10:
* Avoids spurious focus changes with KDE when listening for mouse buttons
is enabled for legacy X11 application support
* Fix tablet tools not working anymore as "slave" devices
* Fix a crash when running some XTS tests
* Fix a crash in window damage handling caused a NULL pointer dereference
NAS-140805 / 26.0.0-BETA.2 / Fix test regression after libzfs -> truenas_pylibzfs (by anodos325) (#18814)
This commit fixes a regression in SMB share unit tests after switching
to truenas_pylibzfs from py-libzfs (old).
Original PR: https://github.com/truenas/middleware/pull/18813
Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
Services: Kea DHCPv6: Allow customizing mac_sources and change default to ipv6-link-local since it seems to align best with the expectations of our setup, especially taking PD route installation via kea_prefix_watcher.py into account.
Per default KEA would derive MAC addresses of clients from the DUID, but these do not take multiple interfaces into account. This means, the route target could be the wrong MAC address. The new default ipv6-link-local takes the EUI-64 assumption of the link-local address, this seems to be better suited as our default.
Two methods have been skipped since they are not implemented by KEA upstream, raw and subscriber-id.
uriparser: update to 1.0.1.
2026-04-27 -- 1.0.1
>>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Fixed: [CVE-2026-42371]
Protect from integer overflow in text range comparison.
Thanks for the report and pull request to Joshua W. Windle! (GitHub #298)
>>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Fixed: Fix `reallocarray` preprocessor handling for Illumos (GitHub #289)
* Improved: Fix an in-code comment typo in src/UriCommon.c;
Thanks for the report and pull request to Tim Düsterhus! (GitHub #290)
* Improved: CMake: Start enforcing supported C++ standard (GitHub #295)
* Improved: Allow use of C++11 to future unit tests (GitHub #296)
* Infrastructure: Cover compilation with Visual Studio 18 2026 (GitHub #301)
* Infrastructure: Address warning on CMake <3.10 in CI (GitHub #297)
* Soname: 3:1:2 — see https://verbump.de/ for what these numbers do
(liburiparser.so.1.2.1)
[Clang] prevent crash in delayed default-argument lambda captures (#176749)
Fixes #176534
---
This patch resolves a crash when parsing delayed default arguments that
contain lambda expressions.
```cpp
struct S {
void f(int x, int = sizeof([x] { return x; }()));
};
```
When late-parsing default arguments that contain lambdas, `Sema` builds
a `FunctionScopes` stack containing only the lambda scope
(`FunctionScopes.size()` equals 1), however, `tryCaptureVariable`
expects an enclosing function scope outside the lambda scope
[19 lines not shown]
[MemRef] Fix -Wunused-function (#194366)
areIndicesInBounds is only used within an assert statement, so mark it
[[maybe_unused]] so that the compiler does not otherwise warn in
non-assertion builds.
Fix test regression after libzfs -> truenas_pylibzfs
This commit fixes a regression in SMB share unit tests after
switching to truenas_pylibzfs from py-libzfs (old).
(cherry picked from commit 36134c0f0eac8f2a09045807bcda71672ea4448f)
NAS-140805 / 27.0.0-BETA.1 / Fix test regression after libzfs -> truenas_pylibzfs (#18813)
This commit fixes a regression in SMB share unit tests after switching
to truenas_pylibzfs from py-libzfs (old).