Conversation
Pulls four merged commits forward into a patch release because the first is a live vulnerability in a shipped version: #959 ARM --safety-bounds mask emitted an IDENTITY mask on (memory 0) #961 thumb-2 branch target could land mid-instruction (#930) #962 I64Const/I64Ldr/I64Str unpriced in the WCET model (#936) #958 synth verify covers i32.const + reports the decline denominator The ARM mask bug is the headline. The mask path exempted `bytes == 0` from its power-of-two gate, so `(memory 0)` compiled with exit 0 and `movw r10, #0x0`. The guard computes `R10 - 1`, and `0 - 1` is `0xFFFFFFFF` — a mask that masks nothing, in the mode whose whole purpose is to bound accesses. Unbounded OOB read AND write. It is the same sentinel/value collision as #953 one release earlier, running the other way: there `0` meant "unset" and INVENTED a 64 KiB bound, here `0` meant "no bound needed" and ERASED the real one. That is why the fix landed as a sweep of the collision class (54 sites, 4 converted, 3 latent defects) and not another point patch — the v0.53 finding was that we keep fixing instances rather than mechanisms. Release surfaces, all four swept to 0.56.2 and checker-confirmed: Cargo.toml [workspace.package] + 10 path-dep version= pins MODULE.bazel, npm/package.json, Cargo.lock (cargo metadata) scripts/check_version_pins.py: OK on all four Derived artifacts regenerated (--emit-status): artifacts/status.json, docs/status/FEATURE_MATRIX.md. Claim gate: 43/43. SCOPE MOVE, logged not silent: RQ-57-SENTINEL, RQ-57-BRTARGET, RQ-57-WCET2OPS, RQ-57-I32CONST and RQ-57-RULEINV were planned for v0.57 and are re-tagged release: v0.56.2 / status: implemented. SENTINEL carried the security fix and the other four were already merged on main, so a tag excluding them did not exist. rivet error/warning counts are unchanged by the move (50/164 before and after — pre-existing, unrelated to these artifacts). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Patch release. The headline is a live vulnerability in a shipped version, which is why this is cut now rather than waiting for the v0.57 hub.
ARM
--safety-bounds maskemitted an identity mask (#959, SECURITY)The mask path exempted
bytes == 0from its power-of-two gate. A module declaring(memory 0)compiled with exit 0 andmovw r10, #0x0in the reset handler. The runtime guard computesR10 - 1— and0 - 1is0xFFFFFFFF, a mask that masks nothing. Every access then executed unmasked at[R11 + addr]: unbounded out-of-bounds read and write, in the mode whose entire purpose is to bound them.This is the same disease as #953 one release earlier, on the other backend and running the other direction:
0= "unset"0= "no bound needed"Both are a numeric
0serving as sentinel and legitimate value. That is why the fix arrived as a sweep of the collision class — 54 sites examined, 4 converted, 3 latent defects found — rather than a third point patch. The v0.53 retrospective finding was that we fix instances and not mechanisms; this is the correction. The sweep also caught a regression the #953 patch itself introduced on the rv32--func-indexpath, and a #932 attestation defect.Also fixed
ifis not taken when its value operand is a block that branches (labels.wast) — silent wrong value, exit 0 #930, fix(#930): branch target lands mid-instruction — End-in-if misattribution + SC-5 branch-target boundary gate #961) — anEnd-in-ifmisattribution let a branch resolve inside a 32-bit instruction, so execution resumed on the second halfword of a wide encoding: arbitrary decode, not a trap. Fixed, plus an SC-5 gate checking every emitted branch target against the instruction-start set so the class cannot regrow silently.I64Const/I64Ldr/I64Strwere unpriced in the WCET model (wcet: two opcodes (I64Const, I64Str) account for all 9 unmodeled-op declines on a whole OS — and 11 cascades behind them #936, fix(#936): price I64Const/I64Ldr/I64Str in the WCET cycle model #962) — two opcodes accounted for all nine unmodeled-op declines. An unpriced op contributes zero cycles to a bound that is only useful as an over-estimate, so this was an unsound-bound risk rather than a coverage gap.synth verifynow coversi32.constand reports the decline denominator (coq: i32_const_correct is Admitted (false as stated) — and BIN-VERIFY defers Const to it, so nothing covers i32.const #933/verify: emit the full rule inventory (applied / verified / declined-with-reason) — today a consumer cannot compute coverage #935, verify coverage: close the i32.const hole (#933) + report the decline denominator (#935) #958) —i32.constwas covered by neither verification half:Admittedon the Rocq side,Constdeclined on the SMT side, so a reader of either could reasonably assume the other had it. Now a realQed(592 total), andverifyreports what it declined — a 100 % pass rate over an unstated denominator is not a coverage claim.Release surfaces — all four swept and checker-confirmed
Cargo.toml [workspace.package]+ 10 path-dep pins ·MODULE.bazel·npm/package.json·Cargo.lock→
scripts/check_version_pins.py: OK on all four. Derived artifacts regenerated via--emit-status. Claim gate 43/43.Scope move — logged, not silent
RQ-57-SENTINEL,RQ-57-BRTARGET,RQ-57-WCET2OPS,RQ-57-I32CONST,RQ-57-RULEINVwere planned for v0.57 and are re-taggedrelease: v0.56.2/status: implemented. SENTINEL carried the security fix and the other four were already merged onmain, so a tag excluding them did not exist. rivet error/warning counts are unchanged by the move (50/164 before and after — pre-existing and unrelated).🤖 Generated with Claude Code
https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L