Repository navigation
backport: bitcoin/bitcoin#30824: cmake: decouple FORTIFY_SOURCE check from Debug build type - #7696
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…rom `Debug` build type BACKPORT marked as partial to be sure that it would be backported again after cmake migration ----- 30803a3 cmake: decouple FORTIFY_SOURCE check from Debug build type (fanquake) Pull request description: `FORTIFY_SOURCE` should be used if `ENABLE_HARDENING=ON` and optimisations are being used. This should not be coupled to any particular build type, because even if the build type is `Debug`, optimisations might still be in use. Fixes: bitcoin#30800. Also somewhat of a followup to bitcoin#30778 (comment). ACKs for top commit: ryanofsky: Code review ACK 30803a3 TheCharlatan: ACK 30803a3 Tree-SHA512: 298f8805a5bb2f1ff54e51ea31324d712c2070cc3eba26561c31001ace4bfa37ae6d18531cbd45e2faf610a0a1b83b420fcde6e329e17f02b021d26563583913 Co-authored-by: merge-script <[email protected]>
57c5af4 to
f1f64f7
Compare
|
Guix Automation has started building this PR as |
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review. WalkthroughThe autoconf configuration no longer skips the Priority: ⬆️ High Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The configuration now applies Fortify flags when optimization is active, including supported debug configurations, without an established build or runtime regression. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
FORTIFY_SOURCE check from Debug build typeFORTIFY_SOURCE check from Debug build type
thepastaclaw
left a comment
There was a problem hiding this comment.
⚠️ DEGRADED — Final validation — Phase 1 + Phase 2
⚠️ DEGRADED review. The primary review models were unavailable (gpt-6-astraunavailable: All credentials for model gpt-6-astra are cooling down (last error: usage_limit_reached: The usage limit has been reache), so this review ran on stand-in models:gpt-5.6-luna→muse-spark-1.3-contributor,gpt-5.6-sol→muse-spark-1.3-contributor,gpt-5.6-terra→muse-spark-1.3-contributor,gpt-6-astra→muse-spark-1.3-contributor. Both review phases and the independent verifiers still ran, but on weaker models, with Phase 1 capped athigheffort. Treat the verdict as provisional; a full-strength re-review will run on the next push once the primary models are back.
Backport correctly adapts upstream cmake FORTIFY decoupling to Dash's autotools build: the enable_debug gate is replaced by an OPTIMIZE probe with flags in compile-line order. Verified AX_CHECK_PREPROC_FLAG supports the extra-flags/input args and Dash's CMakeLists.txt has no hardening landing site, so the declared-partial CMake omission is intentional. No in-scope defects.
Review provenance
Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: muse-spark-1.3-contributor (agent: phase1-reviewer, role: backport-reviewer); reviewer 3: muse-spark-1.3-contributor (agent: phase1-reviewer, role: dash-core-commit-history); reviewer 4: muse-spark-1.3-contributor (standing in for gpt-6-astra) (agent: phase2-reviewer, role: general); reviewer 5: muse-spark-1.3-contributor (standing in for gpt-6-astra) (agent: phase2-reviewer, role: backport-reviewer); reviewer 6: muse-spark-1.3-contributor (standing in for gpt-6-astra) (agent: phase2-reviewer, role: dash-core-commit-history); final verifier: muse-spark-1.3-contributor (standing in for gpt-6-astra) (agent: astra-verifier, role: final-verifier)
- Degraded mode:
gpt-6-astraunavailable: All credentials for model gpt-6-astra are cooling down (last error: usage_limit_reached: The usage limit has been reache (detected by probe, since 2026-09-18T05:22:01Z); stand-insgpt-5.6-luna→muse-spark-1.3-contributor,gpt-5.6-sol→muse-spark-1.3-contributor,gpt-5.6-terra→muse-spark-1.3-contributor,gpt-6-astra→muse-spark-1.3-contributor; Phase 1 effort capped athigh - Triage:
lowbymuse-spark-1.3-contributor(standing in forgpt-6-astra) (effort low) — Small contained build-hardening fix in configure.ac decoupling FORTIFY_SOURCE from Debug build type whose correctness is easy to confirm. - Phase 1 reviewers:
muse-spark-1.3-contributor— general (completed, effort high); agentphase1-reviewer,muse-spark-1.3-contributor— backport-reviewer (completed, effort high); agentphase1-reviewer,muse-spark-1.3-contributor— dash-core-commit-history (completed, effort high); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-3.8-flash-high(lane failed),glm-5.3-flash(zai below 15% reserve: 5h 99% left, weekly 14% left) - Fresh verifier:
muse-spark-1.3-contributor(standing in forgpt-6-astra) — final-verifier; agentastra-verifier - Phase 2 reviewers:
muse-spark-1.3-contributor(standing in forgpt-6-astra) — general (completed, effort medium); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6-astra) — backport-reviewer (completed, effort medium); agentphase2-reviewer,muse-spark-1.3-contributor(standing in forgpt-6-astra) — dash-core-commit-history (completed, effort medium); agentphase2-reviewer
Issue being fixed or feature implemented
Every --enable-debug guix build has failed make -C src check-security since 2026-08-29, which is why there has been no nightly release on dash-dev-branches since v23.1.8-nightly.2026.07.30:
What was done?
Backport bitcoin#30824
FORTIFY_SOURCEshould be used ifENABLE_HARDENING=ONand optimisations are being used. This should not be coupled to any particular build type, because even if the build type isDebug, optimisations might still be in use.Fixes: bitcoin#30800.
Also somewhat of a followup to bitcoin#30778 (comment).
How Has This Been Tested?
To-be-defined
Breaking Changes
Guix builds with debug enabled actually fortified.
Checklist: