Repository navigation
[26.3] Disable croaring AVX-512 kernels in MSan builds (clang-21 false positive) - #121979
Merged
Merged
Conversation
`croaring` v5.1.1 was backported to release branches that are still built with clang-21. clang-21 MemorySanitizer checks the value instead of the shadow of the index operand of AVX-512 `vpermi2var` intrinsics (llvm/llvm-project#148785, fixed in clang-22), so `avx512_emit_unique16` (reached from `MergeTextIndexesTask::executeStep`) triggers `use-of-uninitialized-value` on runners with AVX-512 VBMI2, and the server dies in every MSan stateless job. Define `CROARING_COMPILER_SUPPORTS_AVX512=0` for MSan builds; croaring's `isadetection.h` honours a predefined value. Non-MSan builds are unchanged. Related: ClickHouse/clickhouse-private#76949 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
Workflow [BackportPR], commit [9be7935] Summary: ✅ |
evillique
approved these changes
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #118917
Related: llvm/llvm-project#148785
croaringv5.1.1 (#118917) was backported to release branches that still build with clang-21. clang-21 MemorySanitizer checks the value of the index operand of the AVX-512vpermi2var/vpermt2varintrinsics instead of its shadow (fixed upstream in llvm/llvm-project#148785, included in clang-22 but not in 21.x). As a result,avx512_emit_unique16incroaring(reached fromMergeTextIndexesTask::executeStep) reportsuse-of-uninitialized-valueon fully initialized data on runners with AVX-512 VBMI2, and the server dies in MSan stateless jobs.This PR defines
CROARING_COMPILER_SUPPORTS_AVX512=0for MSan builds only.croaring'sisadetection.hrespects a predefined value, the same way upstream'sROARING_DISABLE_AVX512CMake option does. MSan still covers the AVX2 and scalar code paths, and non-MSan builds are unchanged.masterand26.8build with clang-22 and don't need this change.Changelog category (leave one):
🤖 Generated with Claude Code
Version info
26.3.33.141