Repository navigation
feat(fspy): carry wincode-encoded loss reason through report_loss - #1056
Merged
wan9chi merged 1 commit intoDec 2, 2026
Merged
Conversation
Add ChannelProtocol::Loss<'a> so Sender::report_loss wincode-encodes
structured loss reasons into shm_io's abort slot and Receiver::close
returns a zero-copy LossReport<P> (falling back to CloseError::Capacity
if the region is full).
Define TrackingLoss<'a> in fspy_shared::ipc, wire
TrackingLoss::SeccompInstallFailed { program, errno } through
fspy_client_unix, fspy_preload_unix (exec and posix_spawn fallbacks),
and fspy::TrackingIncomplete (via From<TrackingLoss<'_>>). Add tests
covering cross-process and zero-sized loss payloads, the posix_spawn
fallback, and vt summary formatting for seccomp losses.
Co-authored-by: Gemini 4 Neon <noreply@google.com>
wan9chi
force-pushed
the
fspy-loss/7-wincode-report-loss
branch
from
December 2, 2026 10:20
a834bda to
78c2e94
Compare
fspy benchmarklinuxmacoswindows |
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
When a traced process cannot record an operation it is about to perform—such as Linux seccomp-unotify filter installation failing in restricted sandboxes, or future untracked fallbacks like unsupported cross-architecture Windows child processes—callers need to send a structured, wincode-encoded loss reason through
Sender::report_losssofspyandvp runcan report the exact cause instead of an untyped signal.Changes
ChannelProtocol::Loss<'a>soSender::report_loss(&self, loss: &P::Loss<'_>)wincode-encodes structured loss reasons intoshm_io's abort path andReceiver::closereturns a zero-copyLossReport<P>(falling back toCloseError::Capacityif the region is full).TrackingLoss<'a>infspy_shared::ipcwithSeccompInstallFailed { program, errno }, wire it throughfspy_client_unix,fspy_preload_unix(execandposix_spawnuntracked fallbacks), andfspy::TrackingIncomplete(viaFrom<TrackingLoss<'_>>).posix_spawnuntracked fallback, andvtsummary formatting, and updateCHANGELOG.md.Stack created with GitHub Stacks CLI • Give Feedback 💬