Repository navigation
test(dmabuf): enforce sync_file fence ordering stress test across concurrent GPU <-> TPU handoffs (#15) - #31
Merged
Conversation
…refcount and rollback clamp
Contributor
Author
Adversarial Hardening & Public-Roads Audit Receipt (
|
# Conflicts: # tests/test_freesched.cpp
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.
Closes #15.
Summary
sync_filefence ordering hardening (src/fs_dmabuf.cpp): enforces strict monotonic fence sequence ordering on handoffs, rejects duplicate/stale/errored fence signals (FS_ERR_FENCE), and rolls backowner,generation, andlast_fenceatomically ifensure_mappedfails.tests/test_freesched.cpp): addstest_dmabuf_fence_ordering_stress(Test 8) exercising 1,000 sequentialFS_DEV_GPU_VK -> FS_DEV_TPU -> FS_DEV_CPU_NEONhandoffs + 4-thread × 250 concurrent handoffs (2,003 total zero-copy transitions), assertingfallback_copies == 0, strictFS_ERR_OWNERSHIPon stale generation tokens/owners, and strictFS_ERR_FENCEon replayed/out-of-order/errored fences.Verification
make clean && make verify: PASS (0 warnings under-std=c11/-std=c++17 -Wall -Wextra -Werror, all 8 suites, clean-room audit 0 errors).-fsanitize=address,undefined): 8/8 suites PASS.-fsanitize=thread): 8/8 suites PASS (0 races).