[32.x] Finalise 32.1 #36658

Manually merged
fanquake merged 10 commits from finalise_32_1 into 32.x 2026-10-26 18:00:55 +00:00 AGit
fanquake commented 2026-10-26 12:09:23 +00:00 (Migrated from github.com)

Backports:

Backports: * #36665 * #36667 * #36669
DrahtBot commented 2026-10-26 12:09:41 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK instagibbs, willcl-ark, sedited, l0rinc

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36658 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36658.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36658#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [instagibbs](https://github.com/bitcoin/bitcoin/pull/36658#pullrequestreview-5656131638), [willcl-ark](https://github.com/bitcoin/bitcoin/pull/36658#pullrequestreview-5656211994), [sedited](https://github.com/bitcoin/bitcoin/pull/36658#pullrequestreview-5656266855), [l0rinc](https://github.com/bitcoin/bitcoin/pull/36658#pullrequestreview-5656617651) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

Base: ed601f001b01e0b12bb3c2a4c168418ec3f4baa8
Head: 09a3519e3b981fe39fa13df3f1907e442e4f0831

Findings

Minor

Preserve exception monitoring for send-only waits (src/util/sock.cpp:222, head)

When a wait requests only SendEvent, this branch does not add the socket to err, so the select backend cannot report exceptional conditions as ErrorEvent. That differs from the documented Wait contract and the poll backend, which reports POLLERR and POLLHUP regardless of requested events. CConnman can make send-only waits while receiving is paused and output is pending, and its error path uses ErrorEvent to enter receive-side error handling. Some failures may still appear through send readiness, but no current caller producing an exception-set-only condition in this state was identified, so production impact is unconfirmed.

Use wide-offset POSIX positioning functions (src/util/fs_helpers.h:60, head)

On 32-bit POSIX builds, long remains 32 bits, so std::fseek cannot represent offsets above LONG_MAX; FileTell64 likewise uses std::ftell, which cannot report positions above that limit. CMake enables _FILE_OFFSET_BITS=64 for 32-bit Linux, but that widens off_t-based interfaces, not the long arguments to fseek and ftell. Use wide-offset POSIX interfaces such as fseeko and ftello with the configured 64-bit off_t. No current production caller passing an absolute seek greater than 2 GiB was identified, so production impact is unconfirmed.

Suggestions

Add regression coverage for the paused-send deadline (src/net.cpp:2086, head)

Please add deterministic coverage for the new paused-send timeout. A peer that stays paused past TIMEOUT_INTERVAL should be disconnected, while draining below the threshold and then entering a later paused interval should start a fresh deadline. The patch updates timestamps at both pause-transition paths but adds no corresponding tests. A mock-clock test would make this behavior inexpensive to exercise and help prevent regressions.

Review coverage was incomplete.

Review limitations
  • verifier: The concept brief cites the current and linked backport discussions, but those discussions were not checked; whether they contain a decisive unresolved release concern remains unverified.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:61069f0ded2b37aeee28d0416237ff18ab62386bb6fcdafc637bca25f525aaef:86b9a0e22bd2eb7ab1b7eb621b9854197174a699ec1bc40495f2801bb5137d33 --> Base: `ed601f001b01e0b12bb3c2a4c168418ec3f4baa8` Head: `09a3519e3b981fe39fa13df3f1907e442e4f0831` ##### Findings **Minor** **Preserve exception monitoring for send-only waits** (src/util/sock.cpp:222, head) When a wait requests only `SendEvent`, this branch does not add the socket to `err`, so the select backend cannot report exceptional conditions as `ErrorEvent`. That differs from the documented `Wait` contract and the poll backend, which reports `POLLERR` and `POLLHUP` regardless of requested events. CConnman can make send-only waits while receiving is paused and output is pending, and its error path uses `ErrorEvent` to enter receive-side error handling. Some failures may still appear through send readiness, but no current caller producing an exception-set-only condition in this state was identified, so production impact is unconfirmed. **Use wide-offset POSIX positioning functions** (src/util/fs_helpers.h:60, head) On 32-bit POSIX builds, `long` remains 32 bits, so `std::fseek` cannot represent offsets above `LONG_MAX`; `FileTell64` likewise uses `std::ftell`, which cannot report positions above that limit. CMake enables `_FILE_OFFSET_BITS=64` for 32-bit Linux, but that widens `off_t`-based interfaces, not the `long` arguments to `fseek` and `ftell`. Use wide-offset POSIX interfaces such as `fseeko` and `ftello` with the configured 64-bit `off_t`. No current production caller passing an absolute seek greater than 2 GiB was identified, so production impact is unconfirmed. **Suggestions** **Add regression coverage for the paused-send deadline** (src/net.cpp:2086, head) Please add deterministic coverage for the new paused-send timeout. A peer that stays paused past `TIMEOUT_INTERVAL` should be disconnected, while draining below the threshold and then entering a later paused interval should start a fresh deadline. The patch updates timestamps at both pause-transition paths but adds no corresponding tests. A mock-clock test would make this behavior inexpensive to exercise and help prevent regressions. Review coverage was incomplete. <details> <summary>Review limitations</summary> - verifier: The concept brief cites the current and linked backport discussions, but those discussions were not checked; whether they contain a decisive unresolved release concern remains unverified. </details> [Full review report](<https://review.fish.foo/traces/36658-09a3519e3b981fe39fa13df3f1907e442e4f0831-1389-4.html>)
willcl-ark commented 2026-10-26 12:37:20 +00:00 (Migrated from github.com)

One nit from ralph here

One nit from ralph here
instagibbs (Migrated from github.com) approved these changes 2026-10-26 17:17:10 +00:00
instagibbs (Migrated from github.com) left a comment
ACK https://github.com/bitcoin/bitcoin/pull/36658/commits/09a3519e3b981fe39fa13df3f1907e442e4f0831 The four commits are faithful backports
willcl-ark (Migrated from github.com) approved these changes 2026-10-26 17:23:49 +00:00
willcl-ark (Migrated from github.com) left a comment

ACK 09a3519e3b

Release notes restored, additional commits backported faithfully, and manpages/versions bumped; looking good to me here.

ACK 09a3519e3b9 Release notes restored, additional commits backported faithfully, and manpages/versions bumped; looking good to me here.
sedited (Migrated from github.com) approved these changes 2026-10-26 17:28:11 +00:00
sedited (Migrated from github.com) left a comment

Reproduced ACK 09a3519e3b

Reproduced ACK 09a3519e3b981fe39fa13df3f1907e442e4f0831
l0rinc (Migrated from github.com) approved these changes 2026-10-26 17:55:43 +00:00
l0rinc (Migrated from github.com) left a comment

ACK 09a3519e3b

Reviewed every cherry-pick manually and the rest automatically: all four backports match upstream exactly, and the release preparation looks correct.

ACK 09a3519e3b981fe39fa13df3f1907e442e4f0831 Reviewed every cherry-pick manually and the rest automatically: all four backports match upstream exactly, and the release preparation looks correct.
l0rinc (Migrated from github.com) reviewed 2026-10-26 18:19:40 +00:00
l0rinc (Migrated from github.com) commented 2026-10-26 18:19:40 +00:00

nit: this may deserve its own bullet - unless you're deliberately grouping it with the previous one

nit: this may deserve its own bullet - unless you're deliberately grouping it with the previous one
l0rinc (Migrated from github.com) reviewed 2026-10-26 18:21:09 +00:00
l0rinc (Migrated from github.com) commented 2026-10-26 18:21:09 +00:00
this may need some nuance because of https://github.com/bitcoin/bitcoin/pull/36666
fanquake (Migrated from github.com) reviewed 2026-10-26 18:25:03 +00:00
fanquake (Migrated from github.com) commented 2026-10-26 18:25:03 +00:00

I think this is still ok, as the releases are happening at the same time, and we don't expect 29.x to receive more updates in the future.

I think this is still ok, as the releases are happening at the same time, and we don't expect `29.x` to receive more updates in the future.
Sjors commented 2026-10-27 11:37:41 +00:00 (Migrated from github.com)
ACK 09a3519e3b981fe39fa13df3f1907e442e4f0831
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36658
No description provided.