Metraipolis › archive › dc_313d9e5a40dd

Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents — arXiv:2609.04043

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.04043
License (as archived)
CC0-1.0
Archived
2026-10-17T03:02:09.968Z
SHA-256 of the archived text
3e2e7d5729a101f37aab832eada1ce3b05b55b33f0e489c2f458d1f104bd8ab3
Stable URL of this page
https://metraipolis.com/documento/dc_313d9e5a40dd

How to cite

Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents — arXiv:2609.04043 — arXiv (en), https://arxiv.org/abs/2609.04043 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_313d9e5a40dd (Metraipolis archive dc_313d9e5a40dd, sha256 3e2e7d5729a101f37aab832eada1ce3b05b55b33f0e489c2f458d1f104bd8ab3)
BibTeX
@misc{dc313d9e5a40dd,
  title = {Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents — arXiv:2609.04043},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.04043},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_313d9e5a40dd; sha256 3e2e7d5729a101f37aab832eada1ce3b05b55b33f0e489c2f458d1f104bd8ab3},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.04043. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

MachCSL is a framework for verifying system software, such as an OS kernel, on top of low-level semantics of a RISC-V computer, based on the Sail RISC-V semantics. The key idea behind MachCSL is to adapt concurrent separation logic, based on Iris, to reasoning about low-level hardware execution at the sub-instruction level: page-table translation, TLB, privilege levels, configuration registers, instruction fetch/decode/execute, traps and interrupts, DMA, shared memory, power failures, etc. Reasoning at this level of detail ensures that the system software correctly manages all of the hardware details. Verifying software at this low level of abstraction is tedious, but LLM-based agents are capable of reasoning about such low-level details. As a case study, we verify the xv6 OS kernel (6,657 lines of C and assembly code), which provides a traditional Unix system call interface (processes, file system, file descriptors, and preemptive scheduling) and has substantial internal concurrency (multi-core support with fine-grained locking, shared memory, interrupts, DMA, etc.). In the verification process, we uncovered 11 bugs in the xv6 implementation, as well as one bug in the Sail RISC-V semantics, and one bug in Sail's Lean extraction. The verification effort took us 102 days, including the time to develop the MachCSL framework. On top of the verified xv6 kernel, we prove a theorem about console-level behavior: e.g., if the user types echo hello world as input on the UART console, the only output the system can produce is hello world (if there are no crashes or other errors). This theorem covers both the kernel and the init, sh, echo, cat, grep, sync, and seccomp binaries in the initial file system image.

Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-09-04 in cs.LO).
Categorie arXiv: Logic in Computer Science (cs.LO) ; Operating Systems (cs.OS).
Pagina del lavoro: https://arxiv.org/abs/2609.04043 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-17T02:39:28.938Z dalla pagina https://arxiv.org/catchup/cs.LO/2026-09-04?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).