Skip to content

docs: reground the README and SECURITY claims that no longer match the tree - #7626

Merged
oferchen merged 1 commit into
masterfrom
docs/reground-readme-security-benchmark-claims
Sep 2, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/reground-readme-security-benchmark-claims

Conversation

@oferchen

@oferchen oferchen commented Sep 2, 2026

Copy link
Copy Markdown
Owner

An accuracy audit of every performance, coverage and security claim in README.md and SECURITY.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:

leg published committed manifest
non-root, pipe 254 pass / 6 fail 257 pass / 3 fail
root, pipe 282 pass / 7 fail 286 pass / 3 fail
distinct fails, pipe legs 7 3
distinct fails, all four legs 32 29

Re-derived with the awk one-liner both files already publish:

$ awk '!/^#/ && NF {c[$NF]++; t++} END {print t, c["pass"], c["fail"], c["skip"]}' \
    tools/ci/upstream-3.5.0-expect.nonroot.txt
345 257 3 85
$ awk '!/^#/ && $NF=="fail" {print $1}' tools/ci/upstream-3.5.0-expect.*.txt | sort -u | wc -l
29

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.md section 5 records that BufferRing and BgidAllocator are constructed only inside fast_io and its tests, and a grep over crates/{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 published benchmark_results.json:

baselines: None          upstream_version: 3.4.4
environment: None        series keys: ['max', 'mean', 'min']

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:198 sets UPSTREAM_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). 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; its cap is 1 << 28, exactly upstream's rsync.h:187 value (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:119 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 on 6.2+" while crates/fast_io/src/landlock.rs:150 requests AccessFs::from_all(ABI::V5).

Benchmark metric changes

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 published median rests on 2 samples and rendered identically to a 6-run cell's median over 5. One Runs column 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-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.

Both self-test modules pass (test_benchmark_report.py 22, test_benchmark_chart.py 32, test_benchmark_harness.py 35), with two new tests pinning the column and its absent-value degradation.

The spread_pct population - 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_median pins 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's SECURITY FIXES section); the five new options and three new daemon directives (present in 3.5.0's options.c / rsyncd.conf.5.md, absent from 3.4.4's); 13 Aug 2026; PROTOCOL_VERSION 32, SUBPROTOCOL_VERSION 0 and byte-identical errcode.h (diff -q against the pinned sources); the 345/155 corpus sizes and both tcp manifest rows; the interop version lists against run_interop.sh; the 26 fuzz targets against fuzz/Cargo.toml, name for name with no extras on either side; the known-failures roster, already correctly described as an empty historical record; daemon-seccomp absent from the default feature set and from the release build; incremental-flist genuinely not forwarded into the default binary (core takes transfer with default-features = false); the crate layout list; and every deliberate 3.4.4 reference.

Note for reviewers

tools/ci/run_tools_tests.sh discovers only under tools/tests/. The benchmark self-tests live in tools/ci/tests/ and run from benchmark.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 blocking tools unit tests job is worth considering separately.

…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
oferchen merged commit 20db28f into master Sep 2, 2026
11 checks passed
@oferchen
oferchen deleted the docs/reground-readme-security-benchmark-claims branch September 2, 2026 13:10
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 2, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant