HackerPapers

arXiv:2506.03876cs.OS

Asterinas: A Linux ABI-Compatible, Rust-Based Framekernel OS with a Small and Sound TCB

Yuke Peng, Hongliang Tian, Zhang Junyang, Ruihan Li, Chengjun Chen, Jianfeng Jiang, Jinyi Xian, Xiaolin Wang, Chenren Xu, Diyu Zhou, Yingwei Luo, Shoumeng Yan, Yinqian Zhang

Abstract

How can one build a feature-rich, general-purpose, Rust-based operating system (OS) with a minimal and sound Trusted Computing Base (TCB) for memory safety? Existing Rust-based OSes fall short due to their improper use of unsafe Rust in kernel development. To address this challenge, we propose a novel OS architecture called framekernel that realizes Rust's full potential to achieve intra-kernel privilege separation, ensuring TCB minimality and soundness. We present OSTD, a streamlined framework for safe Rust OS development, and Asterinas, a Linux ABI-compatible framekernel OS implemented entirely in safe Rust using OSTD. Supporting over 210 Linux system calls, Asterinas delivers performance on par with Linux, while maintaining a minimized, memory-safety TCB of only about 14.0% of the codebase. These results underscore the practicality and benefits of the framekernel architecture in building safe and efficient OSes.

arXiv comments
Journal reference
USENIX ATC 2025
DOI
Subjects
cs.OSOperating Systems

On Hacker News

Linked by 2 identifiable commenters in 2 comments across 2 threads, from Jun 2025 to Jun 2025.

Comments linking this paper, per year.

Discussed in comments2 threads

    • There are projects that make more sense: https://arxiv.org/abs/2506.03876 https://github.com/asterinas/asterinas The reasons we encounter pattern issues forcing Linux into a polyglot is not a new phenomena: https://en.wikipedia.org/wiki/Second-system_effect Best regards =3

      Joel_MckayView on HNParent context

    • I had the same reaction that this sounded all very backwards, but reading the introduction in the paper[1] made it more clear: The kernel is logically divided into two parts: the privileged OS framework (akin to a microkernel) and the de-privileged OS services. Only the…

      magicalhippoView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.