Repository navigation
Description
Summary
The 1.1.0 release line does not carry them, so upgrading v1.0.1 → v1.1.0 would regress policy and DoS hardening.
Severity: medium. Found in the 2026-11-04 review of the v1.0.1 change set (all 1.x.x merges since v1.0.0 plus the open PRs that target it), against 1.x.x 21fee6ee8e; area: #263, #265, #252, #264.
Observed
Confidence: confirmed (from refs); the impact depends on how v1.1.0 is cut.
- Location:
origin/1.1.0=1b6e6b677d("release: prepare v1.1.0-rc1 (release: prepare v1.1.0-rc1 #256)").src/policy/policy.hthere has noSCRIPT_VERIFY_P2MR_STACK_BYTES.src/script/sigcache.cppthere has the'P'domain (script: cache successful P2MR PQC signature checks #162) but no'D'domain (script: cache verified P2MR data-signature checks (v1.0.1) #265). - Scenario:
git log origin/1.x.x ^origin/1.1.0lists 9 commits. They are the post-freeze merges doc: fix pipe rendering and tighten P2MR v1 consensus profile #252, doc: document bounded30 usage-dependent security margin and raw-key counter limits #264, script: cache verified P2MR data-signature checks (v1.0.1) #265, policy: bound P2MR runtime stack bytes #263, net: bound the size of headers messages we send #266, subtree: import libbitcoinpqc v0.3.2 signer stack scrub #268, crypto: clear stack released by PQC secret-key operations #270, wallet: take descriptor locks before EncryptWallet's transaction #277 and mining: reset cached block checks in IPC submitSolution (backport bitcoin/bitcoin#33745) #289;1.1.0last merged1.x.xat qt: answer address labels from the table model during wallet encryption #182 (45e9e72c2d). If v1.1.0 is tagged fromorigin/1.1.0as it stands, then on upgrade:- The 1 MiB P2MR stack-byte standardness rule (policy: bound P2MR runtime stack bytes #263) disappears. A v1.1.0 node relays and mines spends that v1.0.1 nodes reject, which reopens the mempool memory amplification (Review finding: P2MR runtime stack counts items, not bytes #257) that policy: bound P2MR runtime stack bytes #263 closed for relay.
- Replays of a valid
OP_CHECKDATASIGPQCsignature cost a full SLH-DSA verification again (Review finding: OP_CHECKDATASIGPQC failures bypass the PQC signature cache #259/script: cache verified P2MR data-signature checks (v1.0.1) #265). - The 1.1.0 spec blob lacks the §10/§11 policy rows and the §9 caller-supplied-key wording.
- Evidence:
git log --oneline origin/1.x.x ^origin/1.1.0(9 commits, listed above);git show origin/1.1.0:src/policy/policy.h | grep P2MR_STACK_BYTES(no match);git show origin/1.1.0:src/script/sigcache.cpp | grep PADDING_PQC(only'P'). Nogh pr list --base 1.1.0entry ports them.
Impact
This is a silent, user-visible policy regression on the next feature release, and relay diverges between nodes that run v1.0.1 and v1.1.0. #276 tracks only the libbitcoinpqc subtree; nothing tracks the script/policy/spec PRs for 1.1.0 or main.
Suggested fix
Merge 1.x.x into 1.1.0 (and later main) before tagging v1.1.0. Add a release-gate item to #174 or the v1.1.0 tracker requiring git log origin/1.x.x ^<release-branch> to be empty, or each listed commit to be explicitly waived. Re-run the P2MR conformance evidence on 1.1.0 afterwards, because the spec blob changes.
Related: extends #276 (which covers only #268/#270's library scrub). New: the same gap applies to #263, #265, #264 and #252.
Activity