Retrieved article excerpt
Open article · Retrieved 2026-11-17T04:21:20.369580+00:00
# Computer Science > Logic in Computer Science
**arXiv:2609.04043** (cs)
[Submitted on 3 Sep 2026 ([v1](https://arxiv.org/abs/2609.04043v1)), last revised 12 Oct 2026 (this version, v3)]
# Title:Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents
Authors:[M. Frans Kaashoek](https://arxiv.org/search/cs?searchtype=author&query=Kaashoek,+M+F), [Nickolai Zeldovich](https://arxiv.org/search/cs?searchtype=author&query=Zeldovich,+N)
View a PDF of the paper titled Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents, by M. Frans Kaashoek and Nickolai Zeldovich
[View PDF](https://arxiv.org/pdf/2609.04043)
[HTML (experimental)](https://arxiv.org/html/2609.04043v3)
> Abstract: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.
| | |
| --- | --- |
| Subjects: | Logic in Computer Science (cs.LO); Operating Systems (cs.OS) |
| Cite as: | [arXiv:2609.04043](https://arxiv.org/abs/2609.04043) [cs.LO] |
| | (or [arXiv:2609.04043v3](https://arxiv.org/abs/2609.04043v3) [cs.LO] for this version) |
| | <https://doi.org/10.48550/arXiv.2609.04043> Focus to learn more arXiv-issued DOI via DataCite |
## Submission history
From: Nickolai Zeldovich [[view email](https://arxiv.org/show-email/a54cf0b4/2609.04043)]
Full-text links:
## Access Paper:
View a PDF of the paper titled Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents, by M. Frans Kaashoek and Nickolai Zeldovich
- [View PDF](https://arxiv.org/pdf/2609.04043)
- [HTML (experimental)](https://arxiv.org/html/2609.04043v3)
- [TeX Source](https://arxiv.org/src/2609.04043)
[license icon](http://creativecommons.org/licenses/by/4.0/ "Rights to this article")
### Additional Features
- [Audio Summary](https://arxiv.org/audio/2609.04043)
### Current browse context:
cs.LO
[< prev](https://arxiv.org/prevnext?id=2609.04043&function=prev&context=cs.LO "previous in cs.LO (accesskey p)")
|
[next >](https://arxiv.org/prevnext?id=2609.04043&function=next&context=cs.LO "next in cs.LO (accesskey n)")
[new](https://arxiv.org/list/cs.LO/new)
|
[recent](https://arxiv.org/list/cs.LO/recent)
| [2026-09](https://arxiv.org/list/cs.LO/2026-09)
Change to browse by:
[cs](https://arxiv.org/abs/2609.04043?context=cs)
[cs.OS](https://arxiv.org/abs/2609.04043?context=cs.OS)
### References & Citations
- [SciX](https://scixplorer.org/abs/arXiv:2609.04043)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2609.04043)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2609.04043)
export BibTeX citation
Loading...
## BibTeX formatted citation
×
loading...
Data provided by:
### Bookmark
[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2609.04043&description=Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2609.04043&title=Extending concurrent separation logic to the hardware level to verify the xv6 OS kernel on RISC-V with AI agents "Bookmark on Reddit")
Bibliographic Tools
# Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*
Connected Papers Toggle
Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*
Litmaps Toggle
Litmaps *([What is Litmaps?](https://www.litmaps.co/))*
scite.ai Toggle
scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*
Code, Data, Media
# Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*
Links to Code Toggle
CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*
DagsHub Toggle
DagsHub *([What is DagsHub?](https://dagshub.com/))*
GotitPub Toggle
Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*
Huggingface Toggle
Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*
ScienceCast Toggle
ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*
Demos
# Demos
Replicate Toggle
Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*
Spaces Toggle
Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*
Spaces Toggle
TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*
Related Papers
# Recommenders and Search Tools
Link to Influence Flower
Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*
Core recommender toggle
CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*
- Author
- Venue
- Institution
- Topic
About arXivLabs
# arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).
[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2609.04043) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))