Repository navigation
docs(design): protocol fuzzing harness against upstream rsync - #3654
Merged
Merged
Conversation
Design note for TODO #1193. Adds docs/design/protocol-fuzzing-harness.md covering a behavioural differential fuzz harness that drives both oc-rsync and upstream rsync 3.4.1 through randomized end-to-end transfer scenarios and asserts equivalence on exit code, destination tree bytes, wire payload (tcpdump), and stderr structure. Sister to the wire-byte fuzz at crates/protocol/fuzz/ (#1194) and the wire-format differential fuzzer at #1303. Documents only. Zero impact on production code paths; the harness lives in a new fuzz-harness crate outside the production dependency graph.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Design note for TODO #1193. Adds docs/design/protocol-fuzzing-harness.md covering a behavioural differential fuzz harness that drives both oc-rsync and upstream rsync 3.4.1 through randomized end-to-end transfer scenarios and asserts equivalence on exit code, destination tree bytes, wire payload (tcpdump), and stderr structure. Sister to the wire-byte fuzz at crates/protocol/fuzz/ (#1194) and the wire-format differential fuzzer at #1303. Documents only. Zero impact on production code paths; the harness lives in a new fuzz-harness crate outside the production dependency graph.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Design note for TODO #1193. Adds docs/design/protocol-fuzzing-harness.md covering a behavioural differential fuzz harness that drives both oc-rsync and upstream rsync 3.4.1 through randomized end-to-end transfer scenarios and asserts equivalence on exit code, destination tree bytes, wire payload (tcpdump), and stderr structure. Sister to the wire-byte fuzz at crates/protocol/fuzz/ (#1194) and the wire-format differential fuzzer at #1303. Documents only. Zero impact on production code paths; the harness lives in a new fuzz-harness crate outside the production dependency graph.
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.
Design note for TODO #1193 covering a behavioural differential fuzz harness that drives both oc-rsync and upstream rsync 3.4.1 through randomized end-to-end transfer scenarios and asserts equivalence on exit code, destination tree bytes, wire payload, and stderr structure.
Key sections
crates/protocol/fuzz/(Accept comma-separated skip-compress patterns #1194) catches malformed-input crashes; this harness catches behavioural divergence on well-formed inputs (e.g. file-list ordering at N>1000 files).crates/protocol/src/version/constants.rs), all transports (local, daemon push/pull, SSH push/pull, batch), all compression codecs (none, zlib, zstd, lz4), filter rules, metadata flags (-a, -A, -X, --hard-links, --sparse).crates/fuzz-harness/crate with cargo-fuzz integration,tools/fuzz/run_protocol_diff.shrunner, extension of thersync-profilecontainer.tools/ci/run_interop.shmatrix and the golden tests atcrates/protocol/tests/golden_*.rs; reduce viacargo fuzz tmin; promote to permanent regressions undertests/protocol_fuzz_regressions/.tempfile::TempDircleanup contract per Support filter clear directives #1306-Guard filter compilation against stray clear directives #1307.workflow_dispatchmodeled on theRegenerate Golden Files (Manual)job in.github/workflows/interop-validation.yml; nightly cron; per-PR label-gated.--modify-window=1and explicit sort; memory blowup capped viaulimit -v; environment dependencies handled via the container.Scenariorepresentation.Wire-compat invariants confirmed
Zero impact on production code paths. The harness lives in a new
crates/fuzz-harness/crate outside the production dependency graph (cli -> core -> ...). No new flag incrates/cli/, no new module in any production crate, no#[cfg(fuzz)]guards. Aligns with the wire-compat discipline already documented indocs/design/zsync-inspired-matching.mdlines 21-34.Test plan
tools/ci/run_interop.sh,crates/protocol/tests/golden_*.rs, andcrates/protocol/src/version/constants.rsfor citation accuracy.git diff origin/master -- crates/ | wc -lshould be 0.