Repository navigation
Conversation
Extend shm_io with an atomic abort_slot descriptor, AbortSlotState (supporting 0-byte payloads without reserving payload space), wait-free ShmWriter::claim_abort / AbortFrameMut::finish with Release/Acquire synchronization (rule 4), and zero-copy AbortFrame<M> returned on SealError::Aborted. Update shm_io's README (including the abort-path soundness argument) and add Miri-verified concurrent abort and abort/seal race tests that read the payload bytes before joining writer threads. Co-authored-by: Gemini 4 Neon <noreply@google.com>
wan9chi
force-pushed
the
fspy-loss/6-shm-io-abort-payload
branch
from
December 2, 2026 10:20
ba9811a to
d25463a
Compare
fspy benchmarklinuxmacoswindows |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d25463a. Configure here.
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.

Motivation
Carrying structured diagnostic reasons (such as why a traced process fell back to running untracked) through the shared-memory channel requires
shm_ioto transport an opaque abort payload without allocating, blocking, or scanning the frame descriptor table at seal time.Changes
abort_slotdescriptor toshm_io's header counters (AbortSlotState, with a dedicated sentinel for 0-byte payloads so empty aborts reserve no payload bytes).ShmWriter::abortwithShmWriter::claim_abort(len)andAbortFrameMut::finish(), publishing the winning payload via Release/Acquire synchronization (rule 4) and falling back toGATE_OVERFLOWif the region has no space left.AbortFrame<M>insideSealError::AbortedonShmReader::seal.shm_io/README.mdwith the abort-path soundness argument and add unit and concurrent tests covering abort payloads, 0-byte aborts, gate precedence, and abort/seal races.Stack created with GitHub Stacks CLI • Give Feedback 💬