• Sources: primary
  • Summary: The Griotte project proved compartment isolation and no-capture for the CHERIoT switcher with separation logic and a logical relation for unknown code, in Iris on Rocq. Extending the model found that a malicious caller could push the stack high watermark below the stack base, fault the return path and read the callee's stack frame, fixed in PR 799, and that a malicious scheduler could revive an exited thread with stale capabilities, fixed in PR 769. The proofs now run against the full cheriot-sail ISA, with the loader still trusted.
  • Why it matters: It shows formal proofs catching real exploitable bugs in the optimisations and exception paths that tests and reviewers tend to skip.
  • Background: CHERI hardware replaces raw pointers with capabilities that carry bounds and permissions, and CHERIoT applies it to microcontrollers. Compartments call each other through a trusted switcher that must clear state so one compartment cannot keep another's capabilities. The stack high watermark is a hardware register that lets the switcher clear only the part of the stack that was used.