[CIR] Emit !type metadata on vtables (#245837)
Attach type metadata to complete-object and construction vtables under
the same conditions as classic codegen, and keep available_externally
vtables alive through llvm.compiler.used. This is a prerequisite for
whole-program and speculative devirtualization. The metadata is carried
on cir.global by a new #cir.type_metadata attribute and attached during
LLVM IR translation, with non-externally-visible type ids becoming one
distinct node per id in the module. addCompilerUsedGlobal's assert is
aligned with classic codegen, which allows available_externally
definitions.
[lldb][Windows] Also check _M_ARM64 in HandleSingleStepException() (#248091)
`HandleSingleStepException()` only looks for a watchpoint hit when
`__aarch64__` is not defined, because:
- on `x86` and `x64`, hardware watchpoints raise single-step exceptions.
- on ARM64 they raise breakpoint exceptions.
MSVC does not define `__aarch64__`, only `_M_ARM64`, so on MSVC builds
of lldb-server, it checks the wrong thing.
This patch checks `_M_ARM64` too, like
`NativeRegisterContextWindows_arm64.cpp` does.
[SPIRV] Turn off vectorization for logical SPIR-V (#248143)
The vectorizers can turn scalar loads from a constant buffer into vector
loads spanning multiple struct members (e.g., `float4(CB.a, CB.b, CB.c,
CB.d)` becomes `load <4 x float>`). Logical SPIR-V can only load a
member through its own type, so the backend fails with "Cannot lower a
pointer cast without equal-width numeric types for Logical SPIR-V".
This change implements @MrSidims's [suggestion in
#244388](https://github.com/llvm/llvm-project/pull/244388#issuecomment-7291575561):
`getNumberOfRegisters` returns 0 for the vector register class in
logical SPIR-V, which stops VectorCombine, the SLP vectorizer, the loop
vectorizer and the SandboxVectorizer. I have not measured the effect on
shader performance, though I suspect it won't be significant since
drivers have their own vectorizers and DXC does not even bother with
vectorization.
This fixes every case we have seen, since the vectorizers created all of
them. It complements @pow2clk's
[14 lines not shown]
netipsec: Set the IPv6 payload length before the enc(4) input hook
ipsec6_common_input_cb() corrects ip6_plen for the removed IPsec header
only after it has run the IPSEC_ENC_BEFORE hook, so enc(4) hands the
packet to bpf and pfil with the payload length of the packet as it was
received. Since cb43e97aea11 ("pf: add missing IPv6 length check") pf
drops such a packet as short, so with pf enabled on enc0 and the default
net.enc.in.ipsec_filter_mask every inbound IPv6 packet protected by IPsec
was dropped. The IPv4 path already fixes ip_len before its hook.
Set the payload length before running the hook.
Fixes: fcf596178b5f ("Merge projects/ipsec into head/.")
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
[mlir][acc] Read 128-bit values in `acc.atomic.read` with `cmpxchg`
`acc.atomic.read` reads `x` with an `atomicrmw or` of zero on an integer
of the size of `x`. For a `complex<f64>`, that is an `i128`, which
the LLVM dialect verifier does not accept for integer operations of
`atomicrmw` ([LLVMMemoryOps.cpp#L509-L511][verifier]):
```mlir
acc.atomic.read %v = %x : !fir.ref<complex<f64>>, !fir.ref<complex<f64>>, complex<f64>
```
failed with:
```
'llvm.atomicrmw' op expected LLVM IR integer type
```
Read values wider than 64 bits with a `cmpxchg` of zero with zero
instead, and take the loaded value. It only stores zero where the value
[11 lines not shown]
[mlir][acc] Fix `acc.atomic.capture` lowering when `v` and `x` differ in type (#248016)
The `acc.atomic.read` in an `acc.atomic.capture` allows `v` and `x` of
different types, like a standalone `acc.atomic.read`, and the captured
value is converted to the type of `v`. The LLVM lowering stored the
captured value into `v` without converting it. For example:
```mlir
acc.atomic.capture {
acc.atomic.read %v = %x : !fir.ref<i32>, !fir.ref<f64>, f64
acc.atomic.write %x = %val : !fir.ref<f64>, f64
}
```
stored the `f64` value into the 4 bytes of `v`:
```mlir
llvm.store %old, %v : f64, !llvm.ptr
```
[10 lines not shown]
[AMDGPU] Prevent WWM register clobber across divergent if-else (#246696)
`si-pre-allocate-wwm-regs` assigns registers using per-thread liveness.
This is only sound if every def of a WWM register writes all lanes. Defs
under the normal `EXEC` mask write only the active lanes, and
`IMPLICIT_DEF` writes none, yet both end the live range. Two WWM
registers can then share a physical register even though one of them
still holds live values in lanes inactive under `EXEC`, which strict
defs of the other overwrite.
The first case is a strict def of a sub-register of a wider register.
After `si-wqm`:
```
bb.0:
%425.sub2:vreg_192 = V_MBCNT_HI_U32_B32_e64 -1, %31 ; in WWM
...
bb.1: ; EXEC = then lanes
%464 = ENTER_STRICT_WWM -1
[35 lines not shown]
[lldb][OpenBSD] Read AArch64 PAC mask from OpenBSD core files (#235795)
OpenBSD/arm64 core files record the pointer authentication masks in
an NT_PACMASK (24) note. Add the note type to the OPENBSD namespace
and an AARCH64_PAC_Desc entry for it so the elf-core plugin picks up
the PAC masks and can strip PAC bits when unwinding OpenBSD cores.
[lldb] Add an XML parser (#245306)
This patch ddds a non-validating XML 1.0 parser to lldb `Host`. It
reports elements, attributes and character data through a `Handler`, and
checks the constraints for document content: names, attribute
normalization and duplicates, character and predefined entity
references, comments, processing instructions, CDATA and end-tag
matching. Elements are parsed iteratively, so nesting depth isn't
limited by the stack.
This is the first step towards removing lldb's libxml2 dependency,
following this [RFC](https://discourse.llvm.org/t/92913).
The parser isn't used yet. The XML declaration and DOCTYPE are handled
in the next PR.
The parser was written with the help of an LLM (Claude) and tested
against the W3C XML conformance suite, with libFuzzer, and
differentially against libxml2.
converters/p5-Encode-Punycode: Mark DEPRECATED
- Thin wrapper around Net::IDN::Punycode, use textproc/p5-Net-IDN-Encode
instead
- Set EXPIRATION_DATE 2027-01-02
- No consumers in the tree
(cherry picked from commit 1207c4be4d557aed098c997432a0610c96c12bb5)
www/p5-CGI-Application-Plugin-DebugScreen: Mark DEPRECATED
- Non-functional as required www/p5-CGI-Application-Plugin-ViewCode no
longer compiles
- Set EXPIRATION_DATE 2027-01-02
- Upstream unmaintained as last update was in 2011
(cherry picked from commit d2e61c87d621cb032fe051240472dca095fea72e)
[SandboxVec][LoadStoreVec] Vectorize store chains whose loads have external uses (#245737)
Loads that feed a store chain blocked vectorization whenever they had
more than one use. Now the store chain can be vectorized even if the
loads have external uses. Once the scalar stores are erased, each
original load is rebuilt from the lanes it occupies in the new vector
load, and reinterpreted back to its original type if needed, using
canUnpackLoads() and unpackLoads().
Stacked on top of #245732
Assisted by Cursor
Co-authored-by: Cursor <cursoragent at cursor.com>
[mlir][acc] Read 128-bit values in `acc.atomic.read` with `cmpxchg`
`acc.atomic.read` reads `x` with an `atomicrmw or` of zero on an integer
of the size of `x`. For a `complex<f64>`, that is an `i128`, which
the LLVM dialect verifier does not accept for integer operations of
`atomicrmw` ([LLVMMemoryOps.cpp#L509-L511][verifier]):
```mlir
acc.atomic.read %v = %x : !fir.ref<complex<f64>>, !fir.ref<complex<f64>>, complex<f64>
```
failed with:
```
'llvm.atomicrmw' op expected LLVM IR integer type
```
Read values wider than 64 bits with a `cmpxchg` of zero with zero
instead, and take the loaded value. It only stores zero where the value
[11 lines not shown]
[mlir][acc] Assert that the `acc.atomic.capture` value converts to `v`
Both capture lowerings modify the IR before they convert the captured
value to the type of `v`, so they cannot fail cleanly afterwards. The
conversion only fails for types Fortran cannot assign to each other,
e.g. `real` and `logical`, so assert instead of returning a failure.
Assisted-by: Claude Code
[mlir][acc] Fix `acc.atomic.capture` lowering when `v` and `x` differ in type
The `acc.atomic.read` in an `acc.atomic.capture` allows `v` and `x` of
different types, like a standalone `acc.atomic.read`, and the captured
value is converted to the type of `v`. The LLVM lowering stored the
captured value into `v` without converting it. For example:
```mlir
acc.atomic.capture {
acc.atomic.read %v = %x : !fir.ref<i32>, !fir.ref<f64>, f64
acc.atomic.write %x = %val : !fir.ref<f64>, f64
}
```
stored the `f64` value into the 4 bytes of `v`:
```mlir
llvm.store %old, %v : f64, !llvm.ptr
```
[6 lines not shown]
[MLIR][MemRefToLLVM] Fixing the type conversion of alloca_scope results (#247907)
This PR addresses an issue in the lowering of `memref.alloca_scope` to
the LLVM dialect, where the original result types and return operands
are used to create the continuation block and the `llvm.br` operation,
respectively.
This creates invalid IR when the returned values require type
conversion, as is the case with `index`.
The current fix converts the result types using the LLVM type converter
and retrieves the remapped operands before creating the branch.
Fixes #246572.
py-authlib: updated to 1.9.11
1.9.11
Security
JsonWebSignature.deserialize_json() rejects a JWS JSON Serialization with more than 16 signatures. Set JsonWebSignature.MAX_SIGNATURES to change the limit. Each signature used to hash the whole payload again, so one message could cost seconds of CPU. GHSA-7j7q-pr24-2r3f
A validate hook in a shared claims_options dict, such as the one given to authorize_access_token(), runs for every token. It used to run only for the first token, because the claims classes removed it from the dict. In the OpenID Connect provider, a shared dict returned by get_client_claims no longer carries claims from one ID token to the next. GHSA-j9px-qhmf-w8c3
fetch_token(authorization_response=...) raises MissingCodeException when the callback URL has no code. It used to skip the state check and fetch a token with the client_credentials grant. GHSA-2c3j-qwxw-7hg9
The client registration and configuration endpoints reject a client_uri, logo_uri, tos_uri or policy_uri whose scheme is not http or https, per RFC 7591 §2. A javascript: URL used to be accepted, and could run a script on a consent page that shows these links. Clients registered before keep their values: check them, as an update with the same value is now rejected. GHSA-vg67-6p2g-mfhc
py-fakeredis: updated to 2.41.0
2.41.0
Features
feat(geo): GEOSEARCH/GEOSEARCHSTORE support BYBOX
feat(streams): XREAD/XREADGROUP support MAXCOUNT and MAXSIZE (Redis 8.10)
Bug Fixes
fix: support redis-py 8.2: client creation no longer crashes or emits deprecation warnings, and FakeAsyncRedis sends commands again
fix: EXPIRE/PEXPIRE/EXPIREAT reject expire times that overflow a 64-bit ms timestamp, like Redis
fix(json): JSON.DEL on array index/slice paths no longer deletes extra elements or over-counts
fix(geo): GEOSEARCH/GEOSEARCHSTORE validate their options and return Redis' errors
fix(streams): blocking XREADGROUP returns already-available entries, and with COUNT waits for new ones instead of returning at once
fix(streams): XREADGROUP with COUNT ≤ 0 reads everything, like Redis and Valkey
fix(streams): on Valkey 9.1.4+, XINFO GROUPS reports lag for emptied or over-trimmed streams like Valkey/Redis 7.4
fix(transactions): on Valkey 9.2, EXEC outside MULTI with arguments and invalid IFEQ/IFNE/NX/XX conditions fail like Valkey; valid conditions are not supported yet