Repository navigation
spark-runtime: make the kernel-audit dedupe exact, not hash-only (#73 follow-up) - #92
Merged
Merged
Conversation
Follow-up to the #82 dedupe, prompted by a review. seen was a HashSet<u64> of DefaultHasher keys, so a collision between two distinct (module, func, loaded) triples would silently drop the second from the audit, and the boot kernel gate reads that audit. seen now maps each hash to the row indices carrying it, and a hit requires an exact triple match. A collision appends, and hits stay allocation-free. The hash is now computed before taking the mutex that audit_rows also holds. insert_row takes the hash as a parameter, so a test can stage a collision. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
Merged. CI |
AzeezIsh
added a commit
that referenced
this pull request
Sep 26, 2026
qsa_score_tc / qsa_attn_tc{,2,3} / moe_persist_marker are lazy
try_kernel probes introduced by main's #90/#92 campaign; none is built
for gfx1151. Without declarations the new boot kernel gate fails the
serve with '5 unresolved kernel lookup(s)'.
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Stacked on #82 (base
fix/host-heap-growth-73). Retarget tomainonce #82 merges.A review of #82 pointed out that its kernel-audit dedupe keyed on a bare u64
DefaultHashervalue. A collision between two distinct(module, func, loaded)triples would silently drop a row from the audit, and the boot kernel gate reads that audit. The chance is negligible, but the gate is a correctness guard, so this change makes the dedupe exact:seennow maps each hash to the indices of the rows that carry it;audit_rows()andlate_missbehave as before.clippy -p spark-runtime --tests, typos. The new pure testhash_collision_keeps_distinct_triples_and_dedupes_exact_hitscompiles here.cargo test -p spark-runtime kernel_auditon the CUDA host.