Skip to content

docs: align the upstream reference to rsync 3.5.0 and report peak RSS - #7279

Merged
oferchen merged 1 commit into
masterfrom
docs/align-upstream-3.5.0
Aug 13, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/align-upstream-3.5.0

Conversation

@oferchen

Copy link
Copy Markdown
Owner

What

Moves the tracked upstream reference from rsync 3.4.4 to 3.5.0 (released 13 Aug 2026) across README, SECURITY, CHANGELOG and the upstream comparison, and reworks the release benchmark to compare against 3.5.0 while publishing peak RSS alongside elapsed time for every mode.

Why the version move is safe, and what it does not claim

3.5.0 declares the same PROTOCOL_VERSION 32 and SUBPROTOCOL_VERSION 0 as 3.4.4 and ships a byte-identical errcode.h, with no new MSG_*, XMIT_* or compat-flag constants. Wire compatibility therefore carries over unchanged, which is what the "wire-compatible with 3.5.0" claim rests on.

Everything else in 3.5.0 is behavioural — 33 CVEs in path handling and the daemon, a rewritten path resolver, three new options, three new daemon directives — and oc-rsync is not aligned to that yet. Rather than let a version bump imply parity, the docs state the gap:

  • README reports the measured 133 divergences against the 3.5.0 suite and links the nightly tracker.
  • The two upstream-testsuite badges stay on 3.4.4, because that is the version the gating workflow actually runs.
  • SECURITY.md's new 3.5.0 section marks the cohort triage in progress and lists the high-severity CVEs with oc-rsync's actual bearing on each. It deliberately does not assert per-CVE non-applicability that has not been established, and it notes that Rust removes the memory-corruption half of several of these but not the logic half — a fail-open access check or an unconfined path is equally reachable in safe Rust.
  • UPSTREAM_COMPARISON.md carries a retarget note separating what the repoint covers (all protocol-level claims, constants unchanged) from what it does not (behavioural sections still describe 3.4.4; line citations still point at 3.4.4 offsets).

Benchmark: the metric that was already being measured

benchmark_rss() records peak_rss_kb on every run, but MODE_UNITS surfaced bytes for the memory mode alone — so thirteen modes measured memory and threw it away. A mode could get 3x faster on 3x the memory and the release notes would show only the win. This surfaces the existing measurement; no new benchmark run is added.

Two things fell out of doing it properly:

  • Unit wording. ratio_indicator() says faster/slower, which is meaningless for bytes. Reusing it would have reintroduced in the report the exact conflation benchmark_chart.py already had to fix. Memory now reads lower/~same/higher against the same 5% noise band.
  • Missing data. A timed-out run, or a platform whose /usr/bin/time output the parser does not recognise, renders as a dash and keeps its row — it must not invent a number, and must not silently drop a valid timing row.

The report reuses the chart's byte formatter rather than growing a second copy; both scripts are pure stdlib and share a directory.

Tests

Adds tools/ci/tests/test_benchmark_report.py — the first tests for the report renderer — wired into benchmark.yml and benchmark-tooling.yml next to the existing chart tests.

They pin the byte wording, the missing-measurement fallback, the version label coming from the measured binary rather than a constant, and that RSS magnitudes derive from peak_rss_kb rather than mean. That last one matters: a report that still read mean but formatted it as bytes would satisfy a suffix-only check while being exactly as wrong as the bug the chart tests were written for.

Verification

  • test_benchmark_report.py 7/7 pass; existing test_benchmark_chart.py 26/26 still pass.
  • All three benchmark workflows parse as valid YAML.
  • Report rendered end-to-end against synthetic results, including the missing-RSS path, exiting 0.
  • Remaining 3.4.4 references audited individually — all deliberate: the two badges for the still-3.4.4 gate, the factual protocol comparison, the interop matrix, and historical CHANGELOG entries. docs/audits/ is untouched, since those record what was measured against 3.4.4 at a point in time.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 13, 2026
Upstream released rsync 3.5.0 on 13 Aug 2026. It declares the same
PROTOCOL_VERSION 32 and SUBPROTOCOL_VERSION 0 as 3.4.4 and ships a
byte-identical errcode.h, so wire compatibility carries over unchanged.
The release is behavioural: 33 CVEs in path handling and the daemon, a
rewritten path resolver, three new options, three new daemon directives.

Docs now name 3.5.0 as the tracked upstream, and say plainly what is not
yet done. The 3.5.0 test suite reports 133 divergences against oc-rsync,
so the README states that count and links the nightly tracker rather than
implying parity, and the gating upstream-testsuite badge stays on 3.4.4
because that is the version it actually runs. SECURITY.md gains a 3.5.0
section that lists the high-severity CVEs and marks the cohort as triage
in progress; it does not claim per-CVE non-applicability that has not
been established. UPSTREAM_COMPARISON.md carries a retarget note
separating what the repoint does cover - every protocol-level claim, all
constants unchanged - from what it does not: the behavioural sections
still describe 3.4.4, and their line citations still point at 3.4.4.

Benchmarks now compare against 3.5.0 and publish peak RSS next to elapsed
time for every mode. benchmark_rss() already recorded peak_rss_kb on
every run and the report used it for the memory mode alone, so thirteen
modes measured memory and discarded it - a mode could get three times
faster on three times the memory and the release notes showed only the
win. No new measurement is taken; the existing one is surfaced.

The RSS ratio gets its own wording. ratio_indicator() says faster/slower,
which is meaningless for bytes, and reusing it would reintroduce in the
report the unit conflation benchmark_chart.py already had to fix. Memory
reads lower/~same/higher against the same 5% noise band, and the report
reuses the chart's byte formatter rather than growing a second copy.

Missing RSS renders as a dash and keeps its row: a run that timed out or
a platform whose /usr/bin/time output the parser does not recognise must
not invent a number, and must not silently drop a valid timing row.

Adds tools/ci/tests/test_benchmark_report.py, the first tests for the
report renderer, wired into both benchmark workflows. They pin the byte
wording, the missing-measurement fallback, the version label coming from
the measured binary, and that RSS magnitudes derive from peak_rss_kb
rather than mean - a report that still read mean but formatted it as
bytes would pass a suffix-only check while being just as wrong.
@oferchen
oferchen force-pushed the docs/align-upstream-3.5.0 branch from ab473df to 9da4a02 Compare August 13, 2026 10:30
@oferchen
oferchen merged commit dc29672 into master Aug 13, 2026
15 checks passed
@oferchen
oferchen deleted the docs/align-upstream-3.5.0 branch August 13, 2026 10:32
oferchen added a commit that referenced this pull request Aug 21, 2026
…te (#7423)

The changelog had not been touched since 2026-08-13 (#7279) while ~140 PRs
merged, and several factual claims in README/SECURITY had drifted far enough
to mislead an operator. Each correction below was verified against the tree,
not inferred.

CHANGELOG: fill in Unreleased for everything merged since #7279, grouped by
Security / Added / Changed / Fixed / Testing and CI / Documentation.

SECURITY:
- The 3.5.0 divergence figure said 133. The committed expect manifests say
  43 + 62 on the two full-corpus legs (64 distinct) and 89 across all four.
  Replaced the estimate with the per-leg table and the manifest mechanism.
- The CI paragraph described the 3.5.0 suite as a separate nightly job. It
  is now the required gate, four legs, on every pull request.
- CVE-2026-53791: the placeholder-peer-address prerequisite is fixed
  (#7303), not pending. CVE-2026-70452, -70463 and -70453 are fixed
  (#7314, #7345, #7293) and were still listed as under audit.
- The new-defensive-surface paragraph listed all eight 3.5.0 additions as
  being adopted; four have shipped and two directives have not.
- The fuzz list named 24 targets including "rsyncd_conf", which does not
  exist in fuzz/fuzz_targets. There are 26; added the three real ones that
  were missing.
- The buffer-pool hardening note claimed recycle_buffer guards buf_id with
  a debug assertion and warned against exposing io_uring to untrusted
  input. The check is a real release-mode bound returning
  BufferIdOutOfRange before any state is mutated, so the warning was false.

README:
- Status and interop sections listed 3.5.0 as built-and-cached ahead of
  gating; run_interop.sh has it in the gating version list, and the
  protocol table row still said "not yet gating".
- Added the current 3.5.0 testsuite outcomes rather than only describing
  the mechanism, so the 64 open divergences are stated plainly.
- The CVE line stopped at the 2024 batch; the 3.4.3 batch is closed and
  3.5.0 is partially closed and tracked.
- The spill CLI flags were described as planned for STN-11; both exist.
- The OC_RSYNC_BUFFER_POOL variables were attributed to the io_uring
  registered pool. All three live in crates/engine/src/local_copy/
  buffer_pool/ and tune the engine pool; the io_uring pool is a
  different, static one.
- The bgid note advised monitoring for exhaustion that measurement shows
  does not occur.
- Fixed a broken link: compressed_token/zstd_codec is a directory.
- Listed the shipped 3.5.0 option surface in the feature table.
oferchen added a commit that referenced this pull request Aug 24, 2026
…#7279)

Upstream released rsync 3.5.0 on 13 Aug 2026. It declares the same
PROTOCOL_VERSION 32 and SUBPROTOCOL_VERSION 0 as 3.4.4 and ships a
byte-identical errcode.h, so wire compatibility carries over unchanged.
The release is behavioural: 33 CVEs in path handling and the daemon, a
rewritten path resolver, three new options, three new daemon directives.

Docs now name 3.5.0 as the tracked upstream, and say plainly what is not
yet done. The 3.5.0 test suite reports 133 divergences against oc-rsync,
so the README states that count and links the nightly tracker rather than
implying parity, and the gating upstream-testsuite badge stays on 3.4.4
because that is the version it actually runs. SECURITY.md gains a 3.5.0
section that lists the high-severity CVEs and marks the cohort as triage
in progress; it does not claim per-CVE non-applicability that has not
been established. UPSTREAM_COMPARISON.md carries a retarget note
separating what the repoint does cover - every protocol-level claim, all
constants unchanged - from what it does not: the behavioural sections
still describe 3.4.4, and their line citations still point at 3.4.4.

Benchmarks now compare against 3.5.0 and publish peak RSS next to elapsed
time for every mode. benchmark_rss() already recorded peak_rss_kb on
every run and the report used it for the memory mode alone, so thirteen
modes measured memory and discarded it - a mode could get three times
faster on three times the memory and the release notes showed only the
win. No new measurement is taken; the existing one is surfaced.

The RSS ratio gets its own wording. ratio_indicator() says faster/slower,
which is meaningless for bytes, and reusing it would reintroduce in the
report the unit conflation benchmark_chart.py already had to fix. Memory
reads lower/~same/higher against the same 5% noise band, and the report
reuses the chart's byte formatter rather than growing a second copy.

Missing RSS renders as a dash and keeps its row: a run that timed out or
a platform whose /usr/bin/time output the parser does not recognise must
not invent a number, and must not silently drop a valid timing row.

Adds tools/ci/tests/test_benchmark_report.py, the first tests for the
report renderer, wired into both benchmark workflows. They pin the byte
wording, the missing-measurement fallback, the version label coming from
the measured binary, and that RSS magnitudes derive from peak_rss_kb
rather than mean - a report that still read mean but formatted it as
bytes would pass a suffix-only check while being just as wrong.
oferchen added a commit that referenced this pull request Aug 24, 2026
…te (#7423)

The changelog had not been touched since 2026-08-13 (#7279) while ~140 PRs
merged, and several factual claims in README/SECURITY had drifted far enough
to mislead an operator. Each correction below was verified against the tree,
not inferred.

CHANGELOG: fill in Unreleased for everything merged since #7279, grouped by
Security / Added / Changed / Fixed / Testing and CI / Documentation.

SECURITY:
- The 3.5.0 divergence figure said 133. The committed expect manifests say
  43 + 62 on the two full-corpus legs (64 distinct) and 89 across all four.
  Replaced the estimate with the per-leg table and the manifest mechanism.
- The CI paragraph described the 3.5.0 suite as a separate nightly job. It
  is now the required gate, four legs, on every pull request.
- CVE-2026-53791: the placeholder-peer-address prerequisite is fixed
  (#7303), not pending. CVE-2026-70452, -70463 and -70453 are fixed
  (#7314, #7345, #7293) and were still listed as under audit.
- The new-defensive-surface paragraph listed all eight 3.5.0 additions as
  being adopted; four have shipped and two directives have not.
- The fuzz list named 24 targets including "rsyncd_conf", which does not
  exist in fuzz/fuzz_targets. There are 26; added the three real ones that
  were missing.
- The buffer-pool hardening note claimed recycle_buffer guards buf_id with
  a debug assertion and warned against exposing io_uring to untrusted
  input. The check is a real release-mode bound returning
  BufferIdOutOfRange before any state is mutated, so the warning was false.

README:
- Status and interop sections listed 3.5.0 as built-and-cached ahead of
  gating; run_interop.sh has it in the gating version list, and the
  protocol table row still said "not yet gating".
- Added the current 3.5.0 testsuite outcomes rather than only describing
  the mechanism, so the 64 open divergences are stated plainly.
- The CVE line stopped at the 2024 batch; the 3.4.3 batch is closed and
  3.5.0 is partially closed and tracked.
- The spill CLI flags were described as planned for STN-11; both exist.
- The OC_RSYNC_BUFFER_POOL variables were attributed to the io_uring
  registered pool. All three live in crates/engine/src/local_copy/
  buffer_pool/ and tune the engine pool; the io_uring pool is a
  different, static one.
- The bgid note advised monitoring for exhaustion that measurement shows
  does not occur.
- Fixed a broken link: compressed_token/zstd_codec is a directory.
- Listed the shipped 3.5.0 option surface in the feature table.
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