error if get_unused_fd_flags() is called without O_CLOEXEC set
Previously this was a KASSERT. landry saw it trigger on inteldrm
(Kaby Lake). Caller is unclear, likely DRM_IOCTL_PRIME_HANDLE_TO_FD.
[RISCV][P-ext] Fix crash selecting WADDA[U]/WSUBA[U] with a zero accumulator (#244093)
`WADDA`, `WADDAU`, `WSUBA` and `WSUBAU` tie the accumulator to the
result, so it must be a virtual register. `Select()` treated them like
`ADDD/SUBD` and used `X0_Pair` for a (0, 0) accumulator, which hits an
assertion.
This commit selects them with the other widening accumulate nodes so the
accumulator is always built with `buildGPRPair`. `X0_Pair` is now only
used for `ADDD/SUBD`.
Closes #244092
[Clang] Fix crash on a block capturing this in an aggregate's default member initializer (#243509)
Fixes #229323
`computeBlockInfo` typed a block's captured `this` from `CurFuncDecl`,
assuming the literal is emitted in a member function of that class. A
default member initializer is emitted wherever the object is
initialized, which for an aggregate can be a free function, so the
`cast<CXXMethodDecl>` asserted. Closures nested in such an initializer
have no `CurFuncDecl` at all and failed the same way even inside a
constructor.
`BlockDecl` now records the type of the captured `this`, which Sema
knows at the capture, serialized like the other captures;
`computeBlockInfo` and the block debug info read it instead of inferring
it. An enclosing block or captured region is no longer marked as
capturing `*this` by copy when a nested lambda does, so the recorded
type is always the pointer.
AI Assisted!
[mlir][ODS]: add constraints for variadic type matching (#243982)
This change adds ODS traits for asserting consistency of variadic
operands or results.
This follows the pattern of `AllMatchSameOperatorTrait` and the traits
derived from it (`AllTypesMatch`, `AllShapesMatch`, ...). New traits
make more sense than modifying those traits, because they take one value
from each name they are given.
Adds `VariadicAllMatchSameOperatorPred` and
`VariadicAllMatchSameOperatorTrait`, which check that an operator
evaluates to the same value for every element of one variadic field,
together with concrete `VariadicAllElementTypesMatch`,
`VariadicAllRanksMatch`, `VariadicAllShapesMatch` and
`VariadicAllTypesMatch`.
Adds one upstream use in `gpu.subgroup_mma_elementwise` which fixes a
bug in the verifier for that op.
[orc-rt] Rename 'sys' directories & namespaces to 'host'. NFC. (#244075)
The sys directories and namespaces in the ORC runtime hold wrappers
around host system services (e.g. page-based memory allocation, target
triple detection, sockets). These are primarily for internal use by the
ORC runtime.
Upcoming patches will add ORC runtime APIs that implement
system-specific functionality for clients (e.g. alternatives to the
POSIX dlfcn.h APIs for "dlopen"-ing JIT'd code). The short 'sys' name is
a better fit for these new APIs.
This commit renames the existing 'sys' directories, namespaces, and
include guards to 'host' (meaning the executor's host system), and
updates the comments that describe them, freeing up 'sys' for the
upcoming work.
gnutls: update to 3.8.14.
* Version 3.8.14 (released 2026-11-18)
** libgnutls: Fix crash on certificate list memory allocation failure
On allocation failure, the certificate list pointer and count could
get out of sync, causing a NULL deref or double-free during session cleanup.
Both fields are now zeroized before the allocation.
Reported by Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-11-18-1, severity: low] [CVE-2026-127039]
** libgnutls: Fix crash in RSA-PSK username copy memory allocation failure
A missing return on a failed username copy could crash the handshake
when memory allocation fails.
The error is now propagated, aborting the handshake.
Reported by Joshua Rogers of AISLE Research Team.
[GNUTLS-SA-2026-11-18-2, severity: low] [CVE-2026-127040]
** libgnutls: Make name constraints deinitialization idempotent
[115 lines not shown]
Revert " [KnownFPClass] add applyInputSemantics to handle NSZ and the input denormal mode" (#244087)
Reverts https://github.com/llvm/llvm-project/pull/242439, which I
committed without approval.
There are no in-tree users, so this revert is NFC.
netipsec: Set the outer IPv6 flow label from the SA
Tunnel mode encapsulation leaves the flow label of the outer IPv6 header
zero. ESP and AH have no transport ports (UDP-encapsulated ESP has them, but
the same pair for every SA), so devices that hash IPv6 headers to spread
traffic, link aggregates and ECMP routers alike, see no difference between
the security associations of two gateways and put all of their tunnels on
one path. lagg(4)'s own header hash does the same: for IPv6 its layer 4
input is the flow label.
Set the label to the low 20 bits of the SA's flow ID, the hash of its SPI
that the previous change introduced. Each SA then carries one label for its
lifetime; SPIs are unique within the SADB, so distinct SAs carry distinct
labels unless the 20-bit hashes collide. A hasher that includes the flow
label then spreads SAs over its paths while keeping the packets of each SA
on one, which avoids reordering their sequence numbers across paths. A rekey
starts a new SA and a new label. The label is set whether or not
net.inet.ipsec.sa_flowid is enabled: that sysctl governs the local transmit
queue selection, this label what the network sees. In a bundle whose tunnel
[29 lines not shown]
nss: update to 3.134.
Changes:
Bug 2094753 - set bundled NSPR version to 4.41.
Bug 2090488 - Bind server session cache cert slots to their session by cert hash.
Bug 2090403 - Select the write cipher spec per record and keep xmitBufLock during the KeyUpdate key change.
Bug 350261 - softoken should set CKF_WRITE_PROTECTED when NSS is initialized in read-only mode.
Bug 2093682 - Don't call rmdir inside assert in ScopedUniqueDirectory.
Bug 2079584 - ML-KEM certificates can only assert keyEncipherment.
Bug 2093802 - set CKF_USER_PIN_INITIALIZED as appropriate from NSC_GetTokenInfo, not NSC_GetSlotInfo.
Bug 2090359 - Reject Edwards and Montgomery keys whose CKA_EC_PARAMS name another curve.
Bug 2090359 - Validate Ed25519 and X25519 private key lengths and defer caching derived public keys.
Bug 2079584 - support ML-KEM end-entity keys in certutil.
Bug 2090489 - release cached cert references in the callers of transfer_x_certs_to_collection.
Bug 2086988 - Free ephemeral key pairs during SSL_ResetHandshake (TLS).
Bug 2084643 - Add review-context.toml and review guidance for LLM-assisted code review.
Bug 1592984 - Don't fail a password change on attributes with unverifiable MACs.
Bug 2087611 - NSS smime: decode the RC2 capability parameter with QuickDER.
[40 lines not shown]
security/clamav: update to 1.4.7
1.4.7 (2026-11-18)
This is security release.
* CVE-2026-76422: Fixed Rust-to-C logging so rendered messages are passed as
data rather than as C format strings. Crafted input could otherwise cause
a crash, disclose process memory, or corrupt memory when
attacker-controlled text was logged. This issue affects ClamAV 0.105.0
through 1.5.4. The fix is included in 1.4.7 and 1.5.5. Thank you to Feng
Xue for identifying this issue.
* CVE-2026-76411: Fixed URL canonicalization length accounting that could
write beyond a stack buffer while scanning crafted email with full-hash
phishing database entries loaded. This issue affects ClamAV 0.94 through
1.5.4. The fix is included in 1.4.7 and 1.5.5. Thank you to Feng Xue for
identifying this issue.
[65 lines not shown]
RegisterCoalescer: Drop unused value numbers after joining
Erasing a pruned IMPLICIT_DEF marks its value number unused but leaves
it in NewVNInfo, and LiveRange::join only skipped null entries, so the
joined range kept a dead value number. Skip unused entries in join and
size valnos to the number actually kept. pruneSubRegValues similarly
only marked the pruned subrange value unused, so remove it instead.
The resulting live intervals now will have the same value numbers as a
fresh LiveIntervals computation.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
ARM: Expand atomic load/store orderings without barriers in IR (#243135)
Targets without native atomics or barriers marked i32 ATOMIC_LOAD and
ATOMIC_STORE as Custom so it could change the lowering based on the
ordering. Orderings stronger than monotonic would use the legalizer's
expansion to ATOMIC_CMP_SWAP/ATOMIC_SWAP libcalls.
Make this ordering decision in the IR expansion hooks instead since
those are expressive enough to represent the ordering constraint. This
moves the handling to AtomicExpand instead of the DAG legalizer. This
is kind of a workaround, ideally the same hook would be used by both
paths. This allows setting accurate LibCall actions on
ATOMIC_LOAD/ATOMIC_STORE.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[libc][GPU] Add target-specific folder for SPIR-V to use pure float versions (#243024)
Follow math functions' approach to add target-specific folder in
libc/src/complex/. Currently, only SPIR-V targets use it but it works
for all GPU targets once they want to add some specific versions for
c99-complex math functions such as relying on some hardware instructions
in the implementation for better performance.
The reason providing SPIR-V specific version for cabsf and cargf is the
generic versions used for all GPUs for these 2 functions use 'double'
type in the implementation but 'double' is not guaranteed to be
available in core SPIR-V specs, so these 2 function will fail on any
GPUs without 'double' support, one example is Intel DG2 GPU which
exposed this issue in our pre-ci. So, we use float version atan2f and
hypotf based on integer in SPIR-V specific implementation, these 2
functions are already available in libc.
---------
Signed-off-by: jinge90 <ge.jin at intel.com>
[win][aarch64] Permit shrink-wrapping for realigned stack frames (#244060)
Removes the restriction and adds tests, no additional changes were
required.
Assisted-by: GPT-6.2 Sol
[Clang][LifetimeSafety] Avoid typed Allocate<FactType> before new (#238333)
FactManager::createFact allocated storage for polymorphic Fact
subclasses via FactAllocator.Allocate<FactType>() before constructing
the FactType object with placement new.
AllocatorBase::Allocate<T> casts the raw void * buffer returned by
Allocate(sizeof(T), alignof(T)) to T * using static_cast<T *>. Because
FactType derives from the polymorphic Fact class, compiling with Control
Flow Integrity (-fsanitize=cfi-unrelated-cast) instruments
static_cast<FactType *> to verify the vtable pointer at the returned
address before placement new has initialized the object's vtable,
causing a runtime CFI failure on uninitialized BumpPtrAllocator memory.
Use the untyped FactAllocator.Allocate(sizeof(FactType),
alignof(FactType)) overload and pass the resulting void * directly to
placement new so the FactType * pointer is only formed by the placement
new expression after the vtable pointer is initialized.
[4 lines not shown]
[Analysis] Avoid typed Allocate<T> before new in ConstructionContext (#238330)
ConstructionContext::create<T> allocated storage for ConstructionContext
subclasses via C.getAllocator().Allocate<T>() before constructing the T
instance with placement new.
AllocatorBase::Allocate<T> casts the newly allocated raw void * buffer
to T * via static_cast<T *>. Because ConstructionContext is a
polymorphic class hierarchy, building with Control Flow Integrity
(-fsanitize=cfi-unrelated-cast) instruments static_cast<T *> to check
the vtable pointer in the uninitialized BumpPtrAllocator memory before
placement new has run the constructor, trapping at runtime.
Allocate raw storage with C.getAllocator().Allocate(sizeof(T),
alignof(T)) and pass the void * buffer directly to placement new so the
typed T * pointer is produced only after construction.
Ref #238329
[2 lines not shown]
editors/openoffice-devel: address sanitizer
Add ASAN option to build with address sanitizer, for real this time.
Commit 606fcd8f5c267140316de3355fafc3601bc1ec3a missed Makefile.
Mark the ASAN option broken because the makedepend build tool has an
ASAN failure early in the build.
No PORTREVISON bump because the package is unchanged.
Fixes: 606fcd8f5c26