Update SimSIMD to fix MSan false positive with SVE predicated loads#98966
Merged
alexey-milovidov merged 1 commit intomasterfrom Mar 8, 2026
Merged
Update SimSIMD to fix MSan false positive with SVE predicated loads#98966alexey-milovidov merged 1 commit intomasterfrom
alexey-milovidov merged 1 commit intomasterfrom
Conversation
`simsimd_capabilities` probes SIMD functions with `n=0` using a tiny
8-byte dummy buffer. SVE functions use `do { } while (i < n)` loops
that execute once even with n=0, and MSan instruments predicated loads
as full-width vector reads. Enlarged the buffer to 256 bytes to cover
the widest SVE vector (2048 bits).
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=98677&sha=a1b9d7f6170c510431fce962a869aa617d88d888&name_0=PR&name_1=Stress%20test%20%28arm_msan%29
Changelog category: CI Fix or Improvement
Changelog entry: Fix MSan false positive in SimSIMD SVE predicated loads.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
Member
Author
|
Merged into #98677 instead. |
1 task
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Summary
simsimd_capabilitiesprobes SIMD functions withn=0using a tiny 8-byte dummy buffer. SVE functions usedo { } while (i < n)loops that execute once even withn=0, and MSan instruments predicated loads as full-width vector reads. Enlarged the buffer to 256 bytes to cover the widest SVE vector (2048 bits).Note
Medium Risk
Updates the
contrib/SimSIMDsubmodule, which changes low-level SIMD code paths on ARM and could impact correctness/performance if upstream behavior changed beyond the intended MSan fix.Overview
Fixes an ARM MSan false positive triggered by SVE predicated loads during SimSIMD capability probing.
This bumps the
contrib/SimSIMDdependency to an upstream change that enlarges the dummy probe buffer (from a tiny placeholder to a size that covers the widest SVE vectors), preventing out-of-bounds reads reported by MSan when probing withn=0.Written by Cursor Bugbot for commit ddbd9c3. This will update automatically on new commits. Configure here.