mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 09:38:38 +00:00
[30.x] Finalise 30.4 #36664
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36664
Loading…
Reference in a new issue
No description provided.
Delete branch "finalise_30_4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Backports:
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.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Base:
c76924a4042ddf4e6faeb481bd994248bcfbae6eHead:
4186320bb3fa98f60c7e6f26683bf628fcbfb591Backport verdict: Defective
The four resolved Rebased-From changes substantially match their supplied upstream patches, but the socket change removes documented ERR reporting for reachable SEND-only select waits. Source-PR completeness also remains unverified.
Evidence:
d4a065bf0fnames upstream commit1e0c407377; the substantiveWaitManychange matches that upstream patch, with target-branch event-name adaptations.96b5372176names upstream commitcc2534cdf7; the pause timestamp and inactivity timeout correspond, adapted to the target'sGetTime<std::chrono::seconds>()clock usage.adb363c753names upstream commit17556cb1f5; the position fields and file-size interfaces are widened in the target branch's corresponding files.a9e7b35d06names upstream commit48092a9042; the Windows 64-bit file-position calls and wrappers correspond to the upstream patch.doc/release-notes.mdto v30.4 with entries for #36665, #36667, and #36669.src/util/sock.cppchange places the socket inerronly for RECV requests, while the poll backend still sets ERR for POLLERR or POLLHUP; the target connection loop can create SEND-only requests and consumes ERR in its receive/error path.Required fixes:
Limitations:
d4a065bf0f: source PR membership is unverified96b5372176: source PR membership is unverifiedadb363c753: source PR membership is unverifieda9e7b35d06: source PR membership is unverified1e0c407377: HTTPErrorcc2534cdf7: HTTPError17556cb1f5: HTTPError48092a9042: HTTPErrorFindings
Minor
Preserve error monitoring for SEND-only waits (src/util/sock.cpp:213, head)
When receiving is paused but output remains,
GenerateWaitSockets()can request SEND without RECV. The select backend then omits the socket from its exception set, while the poll backend reportsERRforPOLLERRorPOLLHUPandWait()documents that exceptional events may be returned even when not requested. BecauseSocketHandlerConnected()usesERRto enter its receive and error-handling path, SEND-only waits lose that indication on the select backend. Preserve exception monitoring for SEND-only sockets or make the backend behavior and API contract consistent.Suggestions
Use large-file POSIX seek and tell APIs (src/util/fs_helpers.h:59, head)
On the supported 32-bit Linux configuration,
_FILE_OFFSET_BITS=64enables 64-bitoff_t, but this non-Windows branch still passes offsets throughstd::fseekandstd::ftell, whose interfaces uselong. Offsets aboveLONG_MAXtherefore cannot be reliably sought or reported.AutoFile::seek()is used by legacy wallet migration'sSeekToPage(), which computes offsets from BDB page numbers; a database requiring a page beyond that limit cannot be reliably positioned. Usefseeko/ftellowith the configured 64-bitoff_t, or explicitly reject unsupported offsets. The caller exists, but no actual legacy wallet input above the limit was identified, so production impact is unconfirmed.Previously reported concerns remain unresolved: 3 minor, 2 suggestion. Author deferral or disagreement does not resolve a finding.
Previous findings and author responses
minor · Select waits omit ERR for SEND-only sockets
Status: unclear. Author position: none.
src/util/sock.cpp:213 at
8bb07b5f21The previous finding has not been resolved against this revision.
minor · SEND-only waits no longer monitor select exceptions
Status: unclear. Author position: none.
src/util/sock.cpp:213 at
8bb07b5f21The previous finding has not been resolved against this revision.
suggestion · Add regression coverage for sustained send pauses
Status: unclear. Author position: none.
src/net.cpp:2050 at
4186320bb3The previous finding has not been resolved against this revision.
suggestion · Use large-file POSIX seek and tell APIs
Status: unclear. Author position: none.
src/util/fs_helpers.h:59 at
4186320bb3The previous finding has not been resolved against this revision.
minor · Preserve ERR monitoring for send-only sockets
Status: unclear. Author position: none.
src/util/sock.cpp:213 at
4186320bb3The previous finding has not been resolved against this revision.
Review coverage was incomplete.
Review limitations
1e0c407377,cc2534cdf7,17556cb1f5, and48092a9042were available for comparison. However, metadata for bitcoin/bitcoin#36665, #36667, and #36669 does not provide verified original PR commit lists. It remains unknown whether those PRs contain additional commits omitted from this backport; that could change the completeness assessment.d4a065bf0f: source PR membership is unverified96b5372176: source PR membership is unverifiedadb363c753: source PR membership is unverifieda9e7b35d06: source PR membership is unverified1e0c407377: HTTPErrorcc2534cdf7: HTTPError17556cb1f5: HTTPError48092a9042: HTTPErrorFull review report
ACK
4186320bb3Reviewed cherry-picks manually and checked the remaining commits automatically - similar to the v31 backport, except the the file-position fields are in different headers here
ACK
4186320bb3Backports are faithful.
Reproduced ACK
4186320bb3ACK
4186320bb3