omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / evidence / SECURITY-673 / dispatch-locked-read / REVIEW.md
| 1 | # Dispatcher protected-read correction: source-only candidate |
| 2 | |
| 3 | Base: `a35697e94b5eeb72efadfee6edab7f14344aea43`, branch `fix/security673-qualified`. |
| 4 | Issue scope: #649 / #670, #673 tracker. Review date: 2026-10-24. |
| 5 | |
| 6 | ## Finding |
| 7 | |
| 8 | `seed/authority/dispatch.om` loaded the record before acquiring `lacq`. Two callers can load |
| 9 | ready state, then acquire the lock in turn and independently pass `actstart` using stale copies. |
| 10 | Even if the lock implementation supplies mutual exclusion, serializing only check/write does |
| 11 | not serialize the read-check-write transaction. README and store comments promised the latter. |
| 12 | This is a source-level schedule argument, not a runtime reproduction or exploitation claim. |
| 13 | |
| 14 | ## Change |
| 15 | |
| 16 | Acquire first, then read. On read failure, call the existing release operation and retain the |
| 17 | existing read-failure result 70. No compiler/runtime ABI, lock protocol, release owner, or |
| 18 | production consumer is replaced. Refresh the existing committed dispatch concatenation. |
| 19 | |
| 20 | A new seeded `.om` test uses the actual store/action/dispatch code and a lock-acquisition double |
| 21 | that writes a performed record before acquisition completes. Three named checks cover the |
| 22 | stale-read refusal, read-error release, and acquisition-error refusal. The double is test-only; |
| 23 | it is not a second authority or production lock. The gate is a committed source concatenation. |
| 24 | See `seed/authority/README.md` for qualification and negative-control commands/expectations. |
| 25 | |
| 26 | ## Verification and limits |
| 27 | |
| 28 | - PASS: `git diff --check` (text/whitespace check only). |
| 29 | - PASS: committed gate sources equal the declared concatenation of component source bytes. |
| 30 | - NOT_RUN: compiler reconstruction, compilation of either gate, regression execution, |
| 31 | pre-fix negative control, existing dispatch gate, full security gate, and independent replay. |
| 32 | - The editing host is x86_64; bundled compiler programs identify as Linux AArch64 ELF. |
| 33 | No bundled compiler or executable was run, and no toolchain was installed. |
| 34 | - NOT_RUN: native concurrent-process reproduction and physical qualification. |
| 35 | |
| 36 | Residual findings are not silently fixed: stale-pid reclaim uses a read/check/unlink sequence |
| 37 | that can unlink a replacement lock; outcome reconciliation reads generation before reacquisition; |
| 38 | lock release currently suppresses unlink errors; store readers do not check for trailing bytes. |
| 39 | The patch makes no general atomic-dispatch, robust-lock, crash durability, or sandbox claim. |
| 40 | Existing required review, repository judges, compiler integration and release holds remain. |