boot: bootutil: Don't fail direct-xip boot on one slot read error #2940
All Vouch review confidence checks passed
Residual risk 0.11 = Change Risk (0.29) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.29 · 77 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.261
Real PR Conversation Timeline
1 comments
"Review active on #2940"
general
weight: 0.35
d3zd3z
Fixes #2932.
In direct-xip and RAM-load either slot can hold the image that boots, but
boot_read_image_headers()returned the primary slot's read error, soboot_get_slot_usage()failed and nothing booted even with a valid image in the secondary slot.In these modes a header read error now only makes that slot unavailable: it is logged, the header is cleared (so
boot_check_header_valid()rejects it) and the other slot is still considered. Swap modes are unchanged. Added a release note.The simulator flash can't inject read errors, so there is no new sim test. The default, direct-xip and ram-load rows pass.