[IR] Add ConstantExpr::getGetElementPtr() accepting DataLayout (#224652)
This overload takes GEP indices but produces a canonical i8 GEP in
ptradd representation. This is intended as a simple migration path for
places currently using `ConstantExpr::getGetElementPtr()` which cannot
be trivially replaced by `ConstantExpr::getPtrAdd()`.
This method is fallible, because something like `(getelementptr i32, ptr
@p, i64 CONST_EXPR)` can't be represented in ptradd form, because there
is no multiply constant expression. Not supporting this for constant
expressions is intentional, as we would not be able to emit a
relocatable expression for this anyway.
I have migrated a couple of sample usages in this PR. These are all
simple usages where the fallibility is not relevant.
The further plan here is to migrate everything (including IRBuilder) to
this new API, and then deprecated the one without the DataLayout
argument.
Firewall: Migrate Miscellaneous advanced settings to new settings page
Move the automatic rule and remaining advanced firewall settings, then
remove the legacy advanced firewall page.
interfaces: dhclient handles keywords case-insensitive so properly match all 'media' invokes
Reported by: @Alice-Sabrina-Ivy
(cherry picked from commit b837f60234482f65d31dad46b5fd48490d918ec4)
system: clear password change session flag only after password was changed
PR: GHSA-x3q7-cc7h-gj3v
(cherry picked from commit c2bbd69954d1631ac52bc66a220d0b669feb75c6)
routing: fix ACL patterns for gateway groups (#10909)
Since the conversion in f10505148 the page lives at ui/routing/gateway_groups
and its API at api/routing/group_settings/*, so a user holding only this privilege
sees no Group entry under System: Gateways and receives 403 on every
group_settings call.
(cherry picked from commit cc6419c7fa3891c879730831df3004b8ac52311e)
[AMDGPU][InstCombine] Fold zero dot operands to accumulator
Fold AMDGPU dot intrinsics when either operand is zero.
`dot(a, 0) = 0` and `dot(0, b) = 0`, so replace the intrinsic with its accumulator.
This avoids unrelated clamp and add/sub reassociation cases.
[AMDGPU][InstCombine] Canonicalize dot constant operands
Move constant dot product source operands to the right hand side
and add tests for signed and unsigned dot intrinsics.
[AMDGPU][InstCombine] Fold constant add/sub into the dot accumulator
`amdgcn.{s,u}dot{2,4,8}(a, b, C) +/- K -> dot(a, b, C +/- K)` when both the
accumulator C and K are constants. The new constant is computed with
wrapping APInt arithmetic to match the non-clamping accumulate.
Only applies when clamp is false (the saturating accumulate does not
reassociate) and the dot has a single use. K - dot is left alone since it
would need the dot product negated.
py-ldap: updated to 3.4.8
3.4.8 (2026-09-16)
Fixes:
* Plugged memory and reference leaks at error-handling time
* VLV control now honours contextID passed in
* ldapurl now correctly escapes when emitting a HTML anchor
* _ldap.str2dn now handles empty string correctly
* handle server-sent invalid UTF-8 correctly (by throwing an error)
* corrected ldap.functions export list to remove long gone items
Doc:
* fd ownership has now been clarified - if providing an fd to set up a new
LDAPObject, it is now owned and managed by the module, do not close it
yourself
* clarifications on handling EINTR -> use OPT_RESTART
* clarified build dependencies
* clarified OPT_CLIENT_CONTROLS/OPT_SERVER_CONTROLS
Make the S3 bucket recursive permissions errors terse
State what the path is, the rule, and where to apply the change
instead. The clauses about undefined behavior and security risks said
nothing the rule does not.
NAS-144023 / 26.0.0 / fix SNMP zvol test (by yocalebo) (#19832)
The agent only refreshes its tables after it has served a request or on
the 15 second AgentX ping, so the first walk right after a service
restart is answered from empty tables and prints No Such Instance for
the zvolDescr column. The test walked once immediately after creating
its zvols and failed on that line.
Poll the walk until every created zvol is listed instead. This also
turns the assertion around. It used to accept an empty result and reject
any zvol the test did not create, neither of which reflects what the
agent is expected to do.
Original PR: https://github.com/truenas/middleware/pull/19830
Co-authored-by: caleb <yocalebo at gmail.com>
NAS-144023 / 27.0.0-BETA.1 / fix SNMP zvol test (#19830)
The agent only refreshes its tables after it has served a request or on
the 15 second AgentX ping, so the first walk right after a service
restart is answered from empty tables and prints No Such Instance for
the zvolDescr column. The test walked once immediately after creating
its zvols and failed on that line.
Poll the walk until every created zvol is listed instead. This also
turns the assertion around. It used to accept an empty result and reject
any zvol the test did not create, neither of which reflects what the
agent is expected to do.