Repository navigation
docs: reground the README and SECURITY claims that no longer match the tree - #7626
Merged
Merged
Conversation
…e tree An accuracy audit of every performance, coverage and security claim in README.md and SECURITY.md against a workflow file, a committed manifest, a test or a measured number. Most of the 3.5.0 alignment already checked out; what follows is what did not. Stale testsuite outcomes. Both files carried 254/6 and 282/7 for the two full-corpus legs, "7 of 345 tests currently diverge", and "32 across all four". The committed manifests say 257/3 and 286/3, with 3 distinct divergences on the pipe legs and 29 across all four; #7596, #7598 and #7599 each fixed a divergence and flipped its manifest rows without refreshing the prose. Re-derived with the awk one-liner both files already publish. An unmeasured measurement. Both files said "a measured run of 100,000 sessions consumed a single bgid" as the evidence that the u16 bgid namespace cannot be exhausted. No such run exists in the tree, and it could not: per docs/audits/bgid-lifecycle.md section 5, BufferRing and BgidAllocator are constructed only inside fast_io and its tests, so an accepted connection consumes no bgid at all. The conclusion holds; the evidence for it is now the structural fact rather than an invented number. A benchmark shape no published release carries. The Performance section described the dual-baseline, peak-RSS, corpus-rate, spread-carrying report as what is "attached to every GitHub release", and the image alt text named both baselines. The linked image is served from the latest release, v0.6.4, whose benchmark_results.json has one baseline (3.4.4), a 148 MB corpus, and only mean/min/max per series. The paragraph now describes the harness and says plainly which releases predate it. MAX_WIRE_DEL_STAT. SECURITY cited crates/protocol/src/flist/delete_stats.rs, which does not exist, and claimed a cap "well below the upstream lowered ceiling". The reader is crates/protocol/src/stats/delete.rs and its cap is 1 << 28 - exactly upstream's rsync.h:187 value, unchanged in 3.4.4 and 3.5.0 - and it rejects rather than clamps. Parity is the right answer; "well below" was not. Landlock framing. README presented the daemon's Landlock layer as "cargo feature landlock", which reads as opt-in. crates/daemon pins fast_io with that feature under cfg(target_os = "linux"), so it is on in every Linux build including the released binaries. SECURITY's ABI enumeration stopped at v3 while the helper requests AccessFs::from_all(ABI::V5). Benchmark report: publish the sample size. stats() records `runs` with the stated intent that "a reader can tell a three-run cell from a six-run one", but the report left it in the JSON. A reset cell is timed 3 times with the warm-up discarded, so its median rests on 2 samples, and it rendered identically to a 6-run cell's median over 5. One `Runs` column per row states it - compare() hands every series in a row the same count - and the footnote now names which population the median and the spread each describe. benchmark_chart.py's no-baselines fallback said "3.4.4" while benchmark_report.py's said "3.5.0"; two renderers of one file would have named different upstream releases for the same run. Verified and left alone: the 33-CVE count, the five new options and three new daemon directives, the 13 Aug 2026 date, PROTOCOL_VERSION 32 / SUBPROTOCOL_VERSION 0 and byte-identical errcode.h (checked against the pinned 3.5.0 source); the 345/155 corpus sizes and the two tcp manifest rows; the interop version lists against run_interop.sh; the 26 fuzz targets against fuzz/Cargo.toml, name for name; the empty known-failures roster already described as historical; daemon-seccomp absent from the default set and from the release build; and every 3.4.4 mention that is deliberately about 3.4.4.
oferchen
added a commit
that referenced
this pull request
Sep 2, 2026
… merged PRs (#7634) * docs(rustdoc): reach the public items rustdoc could not see, and gate the class Two halves of the same question - is what a public item says actually reachable from `cargo doc`? Half 1: seven `//` comment blocks documented a `pub` item, so their text never reached the generated docs. Found positionally, not by content: a `//` run whose next non-attribute line declares a `pub` item. A census keyed on comment CONTENT is false-positive dominated; this one is mechanical. Nine sites matched; two are DELIBERATELY left as `//`, because they document the `#[cfg_attr]` / `#[allow]` attribute directly beneath them rather than the item - `local_copy/overrides.rs` and `local_copy/plan/report.rs`. Promoting those would attach a lint rationale to a public surface as if it described the surface. Text is preserved verbatim, upstream citations included (`generator.c:2149` on the obstacle module). The only rewrite is `socket_options/consts.rs`, where one group note covered two constants: split per item, matching the file's own house style where every other const already carries `///`. Half 2: five intra-doc links could not resolve in a DEFAULT build, and the existing gate is structurally unable to see them. crates/fast_io/src/lib.rs, ewma.rs (x4) -> `adaptive_dispatch`, gated by the off-by-default `adaptive-basis-dispatch` feature crates/rsync_io/.../sync_bridge.rs -> `crate::channel_adapter`, gated by the off-by-default `async-ssh` feature crates/fast_io/src/confinement.rs -> `PinnedRoot`, a PRIVATE struct plus one already on the branch in `module_list/types.rs`, where the link was `Transport::Quic` (the `quic` feature) and its surrounding prose still described the variant as unbuilt. Every crate denies `rustdoc::broken_intra_doc_links`, so each of these is a hard `cargo doc` failure, not a warning. MEASURED on the pristine base: cargo doc --no-deps --workspace -> 7 errors, `fast_io` and `rsync_io` could not be documented cargo doc --no-deps --workspace --all-features -> clean That gap is the whole point. Under `--all-features` the gated items EXIST, so the link resolves and the gate is green; in a default build the item is not compiled at all. `ci.yml`'s `rustdoc-links` job runs only `--all-features`, deliberately mirroring `pages.yml` - which is right for the question Pages asks and cannot ask this one. So the fix is paired with a SECOND step on default features, and neither subsumes the other: `crates/fast_io/src/io_uring` is `cfg(all(target_os = "linux", feature = "io_uring"))` and only the all-features run compiles it. The names stay in backticks with the reason stated at each site, rather than being deleted or the links made conditional - the prose still says what it said, and the next reader learns why it is not a link. After: both invocations document all 25 crates cleanly, 0 errors. fmt clean; clippy on the five touched crates reports no new diagnostics. * docs(changelog): record the ten pull requests merged since the last sweep #7624 brought the Unreleased section up to #7620 and then stopped being true: #7621-#7632 landed after it, of which #7624 is itself that changelog pass and #7628 was never merged. Ten entries were missing. Each is placed in the subsection its change belongs to rather than appended in number order, and #7625 is SPLIT across two, because it is two changes: wiring `--force` is a receiver fix, and the synthetic-transfer-root guard that wiring made necessary is a peer-supplied input bound. Filing it once under either heading would have hidden whichever half the reader was looking for. Security / peer-supplied input bounds #7625 (guard half), #7630 Fixed / transfer and receiver #7622, #7625 (--force half), #7627 Fixed / daemon #7629 Testing and CI #7621, #7623, #7632 Documentation #7626, #7631 Wording is taken from each merge commit's own body, not from its title - the titles compress away the part a reader needs. #7629's title says "keep a dead name converter apart from an unknown name"; what makes it worth an entry is that five outcomes collapsed into one `None` and the merge failed OPEN on exactly the mechanism an operator installs to take ownership decisions away from the peer.
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.
An accuracy audit of every performance, coverage and security claim in
README.mdandSECURITY.md, each checked against a workflow file, a committed manifest, a test, or a measured number. The 3.5.0 retarget work was already done and largely correct; this fixes what was not.Claims found FALSE
Stale testsuite outcomes (README + SECURITY). Both files carried the same table and the same two counts:
Re-derived with the awk one-liner both files already publish:
The counts were last refreshed in #7533; #7596, #7598 and #7599 each fixed a divergence and flipped its manifest rows without touching the prose. The two tcp rows were correct and are unchanged.
A number presented as a live measurement that never existed. Both files justified the io_uring bgid namespace bound with "a measured run of 100,000 sessions consumed a single bgid". There is no such run in the tree, and there could not be:
docs/audits/bgid-lifecycle.mdsection 5 records thatBufferRingandBgidAllocatorare constructed only insidefast_ioand its tests, and a grep overcrates/{daemon,transfer,engine,core}returns nothing, so an accepted connection consumes no bgid at all. The conclusion (exhaustion is not an operational condition) survives and is in fact stronger; the evidence is now the structural fact instead of an invented figure.A benchmark shape no published release carries. The Performance section stated that the dual-baseline, peak-RSS, corpus-rate, spread-carrying report is "attached to every GitHub release", and the image alt text named both baselines. That image is served from
releases/latest, which is v0.6.4. Its publishedbenchmark_results.json:One baseline, a 148 MB corpus, and no RSS, rate, spread or environment. The workflow does implement everything the paragraph claims (
.github/workflows/benchmark.yml:198setsUPSTREAM_RSYNC: 3.5.0=...,3.4.4=...with 3.5.0 primary), so the paragraph now describes the harness and says which releases predate it.MAX_WIRE_DEL_STAT(SECURITY). Citedcrates/protocol/src/flist/delete_stats.rs, which does not exist, and claimed a cap "well below the upstream lowered ceiling". The reader iscrates/protocol/src/stats/delete.rs; its cap is1 << 28, exactly upstream'srsync.h:187value (identical in 3.4.4 and 3.5.0), and it rejects rather than clamps. Parity is the correct outcome - "well below" was not.Landlock framing. README described the daemon's Landlock layer as "cargo feature
landlock", which reads as opt-in.crates/daemon/Cargo.toml:119pinsfast_iowith that feature undercfg(target_os = "linux"), so it is on in every Linux build including the released binaries. SECURITY's ABI enumeration stopped at "v3 on 6.2+" whilecrates/fast_io/src/landlock.rs:150requestsAccessFs::from_all(ABI::V5).Benchmark metric changes
stats()recordsrunswith the stated intent that "a reader can tell a three-run cell from a six-run one", but the report left it in the JSON. A reset cell is timed 3 times with the warm-up discarded, so its published median rests on 2 samples and rendered identically to a 6-run cell's median over 5. OneRunscolumn per row now states it -compare()hands every series in a row the same count - and the footnote names which population the median and the±N%spread each describe.benchmark_chart.py's no-baselinesfallback said3.4.4whilebenchmark_report.py's said3.5.0; two renderers of one file would have named different upstream releases for the same run.Both self-test modules pass (
test_benchmark_report.py22,test_benchmark_chart.py32,test_benchmark_harness.py35), with two new tests pinning the column and its absent-value degradation.The
spread_pctpopulation - min/max over every run while the median drops the warm-up - was left alone:test_spread_is_the_min_to_max_range_over_the_medianpins it deliberately so a cold first run stays visible. The footnote now says so instead of leaving it ambiguous.Verified TRUE and left alone
The 33-CVE count (33 headline
- CVE-bullets in 3.5.0'sSECURITY FIXESsection); the five new options and three new daemon directives (present in 3.5.0'soptions.c/rsyncd.conf.5.md, absent from 3.4.4's); 13 Aug 2026;PROTOCOL_VERSION32,SUBPROTOCOL_VERSION0 and byte-identicalerrcode.h(diff -qagainst the pinned sources); the 345/155 corpus sizes and both tcp manifest rows; the interop version lists againstrun_interop.sh; the 26 fuzz targets againstfuzz/Cargo.toml, name for name with no extras on either side; the known-failures roster, already correctly described as an empty historical record;daemon-seccompabsent from the default feature set and from the release build;incremental-flistgenuinely not forwarded into the default binary (coretakestransferwithdefault-features = false); the crate layout list; and every deliberate 3.4.4 reference.Note for reviewers
tools/ci/run_tools_tests.shdiscovers only undertools/tests/. The benchmark self-tests live intools/ci/tests/and run frombenchmark.yml, which triggers on tags, a weekly cron and dispatch - so the two script changes here are not exercised by any pull-request job. They were run locally; wiring that directory into the blockingtools unit testsjob is worth considering separately.