Add regression test for
O_PATHnotification suppressionVerify that opening a file with
O_PATHdoes not generate inotify events (IN_OPEN/IN_CLOSE_NOWRITE), matching the Linux behavior whereFMODE_NONOTIFYis set onO_PATHfile descriptors. A sanity check confirms that normal opens still produce events.Register the test in
run_test.shso it runs alongside the other inotify regression tests.Signed-off-by: Zhenchen Wang m202372036@hust.edu.cn Signed-off-by: Zhihang Shao dio_ro@outlook.com
Asterinas aims to be a production-grade Linux alternative—memory safe, high-performance, and more.
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Toward a production-grade Linux alternative—memory safe, high-performance, and more
https://github.com/user-attachments/assets/eabf8674-8503-44f7-abcc-52395d2ca4a3
News:
Congratulations to the Asterinas community🎉🎉🎉
Introducing Asterinas
The future of operating systems (OSes) belongs to Rust—a modern systems programming language (PL) that delivers safety, efficiency, and productivity at once. The open question is not whether OS kernels should transition from C to Rust, but how we get there.
Linux follows an incremental path. While the Rust for Linux project has successfully integrated Rust as an official second PL, this approach faces inherent friction. As a newcomer within a massive C codebase, Rust must often compromise on safety, efficiency, clarity, and ergonomics to maintain compatibility with legacy structures. And while new Rust code can improve what it touches, it cannot retroactively eliminate vulnerabilities in decades of existing C code.
Asterinas takes a clean-slate approach. By building a Linux-compatible, general-purpose OS kernel from the ground up in Rust, we are liberated from the constraints of a legacy C codebase—its interfaces, designs, and assumptions—and from the need to preserve historical compatibility for outdated platforms. Languages—including PLs—shape our way of thinking. Through the lens of a modern PL, Asterinas rethinks and modernizes the construction of OS kernels:
Modern architecture. Asterinas pioneers the framekernel architecture, combining monolithic-kernel performance with microkernel-inspired separation. Unsafe Rust is confined to a small, auditable framework called OSTD, while the rest of the kernel is written in safe Rust, keeping the memory-safety TCB intentionally minimal.
Modern design. Asterinas learns from Linux’s hard-won engineering lessons, but it is not afraid to deviate when the design warrants it. For example, Asterinas improves the CPU scalability of its memory management subsystem with a novel scheme called CortenMM.
Modern code. Asterinas’s codebase prioritizes safety, clarity, and maintainability. Performance is pursued aggressively, but never by compromising safety guarantees. Readability is treated as a feature, not a luxury, and the codebase is structured to avoid hidden, cross-module coupling.
Modern tooling. Asterinas ships a purpose-built toolkit, OSDK, to facilitate building, running, and testing Rust kernels or kernel components. Powered by OSTD, OSDK makes kernel development as easy and fluid as writing a standard Rust application, eliminating the traditional friction of OS engineering.
Asterinas aims to become a production-grade, memory-safe Linux alternative, with performance that matches Linux—and in some scenarios, exceeds it. The project has been under active development for four years, supports 230+ Linux system calls, and has launched an experimental distribution, Asterinas NixOS.
In 2026, our priority is to advance project maturity toward production readiness, specifically targeting standard and confidential virtual machines on x86-64. Looking ahead, we will continue to expand functionality and harden the system for mission-critical deployments in data centers, autonomous vehicles, and embodied AI.
Getting Started
Supported CPU Architectures
Asterinas targets modern, 64-bit platforms only.
A development platform is where you build and test Asterinas (i.e., the host machine running the Docker-based development environment).
A deployment platform is a CPU architecture that Asterinas can run on as an OS kernel.
Tier definitions:
For End Users
We provide Asterinas NixOS ISO Installer to make the Asterinas kernel more accessible for early adopters and enthusiasts. We encourage you to try out Asterinas NixOS and share feedback. Instructions on how to use the ISO installer can be found here.
Disclaimer: Asterinas is an independent, community-led project. Asterinas NixOS is not an official NixOS project and has no affiliation with the NixOS Foundation. No sponsorship or endorsement is implied.
For Kernel Developers
Follow the steps below to get Asterinas up and running.
Download the latest source code on an x86-64 (or ARM64) Linux machine:
Run a Docker container as the development environment:
Alternatively, if you use VS Code with the Dev Containers extension, open the cloned folder and select “Reopen in Container”.
Inside the container, go to the project folder (
/root/asterinas) and run:This results in a VM running the Asterinas kernel with a small initramfs.
To install and test real-world applications on Asterinas, build and run Asterinas NixOS in a VM:
This boots into an interactive shell in Asterinas NixOS, where you can use Nix to install and try more packages.
The Book
See The Asterinas Book to learn more about the project.
License
Asterinas’s source code and documentation primarily use the Mozilla Public License (MPL), Version 2.0. Select components are under more permissive licenses, detailed here. For the rationales behind the choice of MPL, see here.