Update SimSIMD to fix MSan false positives from SIMD intrinsics#98807
Merged
alexey-milovidov merged 1 commit intomasterfrom Mar 6, 2026
Merged
Update SimSIMD to fix MSan false positives from SIMD intrinsics#98807alexey-milovidov merged 1 commit intomasterfrom
alexey-milovidov merged 1 commit intomasterfrom
Conversation
MSan cannot track initialization through SIMD intrinsics (SVE, NEON, SSE, AVX), causing false-positive "use-of-uninitialized-value" reports in `simsimd_cos_f32_sve`. Added `__msan_unpoison` calls after every dispatch macro to mark results as initialized. https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=98677&sha=7d4c987f3c650a78b950b264d2676b8b7bc0979e&name_0=PR&name_1=Stress%20test%20%28arm_msan%29 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
|
Workflow [PR], commit [1e59133] Summary: ❌
|
Algunenano
approved these changes
Mar 5, 2026
rienath
added a commit
that referenced
this pull request
Mar 6, 2026
As we now have conflict with #98807
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.
Summary
__msan_unpoisoncalls after every SIMD dispatch macrosimsimd_cos_f32_sve__msan_unpoison; compiles to no-op in non-MSan buildsCI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=98677&sha=7d4c987f3c650a78b950b264d2676b8b7bc0979e&name_0=PR&name_1=Stress%20test%20%28arm_msan%29
Upstream PR: ashvardanian/NumKong#304
Changelog category
Changelog entry
...
Note
Medium Risk
Submodule bump in a performance-critical SIMD dependency could subtly affect numerical behavior or performance, though the intended change is MSan-only
__msan_unpoisonannotations that should be a no-op in normal builds.Overview
Updates the
contrib/SimSIMDsubmodule to an upstream revision that adds MSan-specific__msan_unpoisoncalls after SIMD dispatch macros, reducing false-positive "use-of-uninitialized-value" reports (notably on SVE/NEON/SSE/AVX intrinsics).In non-MSan builds these annotations compile away, so functional impact should be limited to sanitizer behavior while keeping existing SIMD codepaths unchanged.
Written by Cursor Bugbot for commit 1e59133. This will update automatically on new commits. Configure here.