Interleavings: the BUGS list in full
Name: provisional.
An appendix to notes/interleaving.md, whose BUGS section lists each entry in one line.
- Loom models C11, not aarch64 and not riscv64. Said three times in the parent note on purpose. A failure it reports is real; a clean run is not a proof about the silicon. Milestone 81's HVF leg is the complementary evidence, and it is a sample rather than a search.
- Not in
script/testorscript/ci-build's table, and not ascript/*table entry. A loom model's search cost is exponential in threads and protocol length, so a harness added later can take minutes unintended. Theinterleavingsjob inci.yml(milestone 746 (Loom runs in CI), provisional) runs it per pull request as a required status (calef, 2026-10-04 UTC), with a 20-minute budget tripwire. - It cannot see the reschedule interrupt.
work_steal_slot's liveness claim is that a poked victim eventually reaches a scheduler entry and clears its slot, and until it does, every other idle core is locked out of that victim. That is outside the model in both directions: loom does not know about the SGI, and it does not know about the timer tick that makes the thief retry. - The harnesses are small on purpose, and small is a bound. Two thieves, one victim, two polls;
two writers, one reader, one publish each; one waker, one victim core, one thief in the
block/wake models; two destroyers, or one destroyer against one retype, split or parent, in the
region models. The protocols are symmetric enough that a third
participant explores no new state in these cases, and that is an argument, not a proof. Every
harness carries reachability flags (the
Reachedtype) so a bound that quietly empties the interesting branch fails loudly, which iskani::cover!'s job done by hand. - The region model checks the claim, not the free loop. What loom searches in
crates/memory_regionsis who wins the right to reclaim a region. That the winner then frees the right pages, exactly once, isdestroy_outcome's Kani proof plus the kernel's own tests, and the two arguments meet only in the reader's head. Covering both would need the frame allocator lifted too. - The region model's lock is not the kernel's lock.
InterruptSafeMutualExclusionLockmasks interrupts and carries a rank for the deadlock order;loom::sync::Mutexhas neither. So the model says the protocol is correct given mutual exclusion, and says nothing about whetherInterruptSafeMutualExclusionLockprovides it or whether the rank is right. That isscript/lint's rank check and locking.md, and it is the same divisionthread_wake_handshakerecords forSCHED. - The gate on
untyped.rsis narrower than the property it protects. Milestone 136 (one decision path) closes the wider hole (see lift-is-only-worth-what-its-caller-does.md), and what it buys is bounded. The free-site pin coverskernel/src/memory_region.rsonly, so region pages freed from another module are not caught. The warrant is line order rather than dataflow. And nothing checks that a newly pinned public method is modeled at all, so a lane can widen the surface, pin it, and never write a harness. That last one is the same gap one level up, and it is rung four: the failure message asks in words. crates/user_mode_runtime's spin lock and the interrupt-routing lottery are unmodelled. Both are named in the parent's survey with the reason: one does not compile for the host, and the other lives underarch/where rule 1 keeps it. Neither is a small retrofit.- The
#[cfg(loom)]code is invisible toscript/lint, exactly as the Kani harnesses were before milestone 113 built a shim for them. Here it costs one flag instead of a shim:script/interleaving-checkcompiles the harnesses with-D warnings, so it lints them itself. If a third tool ever gets its own cfg, the shim question comes back.