Go to file
Yuming Jiang 7543a33658
Build multiversion docs / build-multiversion (push) Waiting to run Details
Sync to CNB.cool / sync (push) Waiting to run Details
Test MM (Host) / Build slab_stress (host) (push) Waiting to run Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (1, 128) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (1, 255) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (1, 256) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (1, 64) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (2, 128) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (2, 255) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (2, 256) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (2, 64) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (3, 128) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (3, 255) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (3, 256) (push) Blocked by required conditions Details
Test MM (Host) / Slab allocator long-run (valgrind) - size=${{ matrix.size }}, seed=${{ matrix.seed }} (3, 64) (push) Blocked by required conditions Details
Test x86_64 / Integration Test (push) Waiting to run Details
fix(ipc): 修复部分 `shm_test` 错误的测试用例 (#1674)
* fix(mm): 克隆地址空间时对于映射到 SysV 共享内存的 VMA 增加 shm map_count。

* fix(ipc): 使 shm 元数据与 Linux 对齐

- 补充 `ShmFlags::PERM_MASK` 用于获取 POSIX 权限位
    - 该掩码用于屏蔽掉非权限位的一次性标志,如 `IPC_CREAT`、`IPC_EXCL` 等。
- 使 KernelShm 能正确创建并初始化
    - 正确初始化 uid/gid/cuid/cgid,并使用 `PERM_MASK` 正确获取权限位。
    - shm_lpid 初始化为 0(因为 lpid 只记录最后一个执行 attach/detach 操作的进程 ID,而在创建时没有这样的进程)。
- 使 `shm_stat` 能够正确获取共享内存状态信息
    - 使 `shm_stat` 正确获取 shm_perm.mode。
    - 使 `shm_stat` 将 shm_{a,d,c}time 以秒为单位输出,

* fix(ipc/sys_shmget): 完善 sys_shmget 创建一个 key 已经存在的共享内存段时的错误处理

- 添加了对 size 参数的检查,确保如果 size 大于已存在段的大小,则返回错误。

* feat(ipc): 添加KernIpcPerm构造函数

* docs(ipc/shm): 优化 SysV Shm 模块部分注释,标记待实现的 ShmId 生成机制

- 统一称呼“Shm Segment”为“共享内存段”,避免混淆
- 使用 “attach” 和 “detach” 术语,避免使用中文翻译。
- 优化部分注释的表达,使其更清晰易懂
- 标记待实现的 ShmId 生成机制

* refactor(mm/ucontext): 优化 `InnerAddressSpace::munmap` 函数和其内部调用 `extract` 函数的注释

- 重构并优化 `InnerAddressSpace::munmap()` 函数的注释
    - 调整了部分代码的顺序以提升可读性
    - 优化了检查 related_vmas 循环中的注释和变量命名,使其更清晰易懂
    - 添加了循环 unmap related_vmas 的每次循环的操作的逻辑注释,帮助理解代码意图
- 优化 `LockedVMA::extract()` 函数注释,增加参数和返回值说明

* docs(mm/UserMappings): 优化 `remove_vma` 函数的注释

* refactor(mm/ucontext): 优化 LockedVMA::unmap() 临时变量命名

- 优化共享内存管理器的detach_shm函数注释,增加对副作用的说明
- 优化 unmap() 函数中变量的命名

* refactor(ipc/shm): 优化 KernIpcPerm 构造函数,简化权限信息传递

* docs(ipc/shm): 更新 KernelShm 结构体中 shm_lprid 字段的注释,明确操作者定义

* fmt

* docs(ipc/shm): 更新 KernelShm 构造函数中 lprid 填充为0 的注释

* fix(ipc): 修复 shm 路径 unwrap 崩溃

* fix(ipc): 处理 fork 中 shm 段删除竞态

* fix(ipc/shmget): sys_shmget 共享内存段状态不一致

- 添加根据 shm_id 获取实际共享内存段的错误处理,防止在 “检查” -> “获取” 过程中状态变化导致的不一致问题。

* fix(ipc/shm): 处理 shm 相关类型转换溢出

* 补充 try_clone 锁顺序说明

* clean: 清除未使用的 PosixShmPerm::new 函数

* ci: restart CI pipeline

---------

Co-authored-by: longjin <longjin@DragonOS.org>
2026-01-23 00:03:23 +08:00
.devcontainer
.github ci: fix mm test (#1578) 2025-12-30 09:12:20 +08:00
.vscode
build-scripts feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
config
docs Update translated documentation (#1696) 2026-01-22 01:51:57 +08:00
kernel fix(ipc): 修复部分 `shm_test` 错误的测试用例 (#1674) 2026-01-23 00:03:23 +08:00
tools feat(x86_64): 添加KVM时钟源支持 (#1683) 2026-01-22 15:23:40 +08:00
user feat(net): 实现SO_RCVLOWAT选项并完善socket选项处理 (#1693) 2026-01-21 20:34:21 +08:00
.envrc feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
.gitignore feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
.gitmodules
.readthedocs.yaml
AGENTS.md feat(kernel/posix-timer): 实现 POSIX interval timer,修复 gVisor timers_test (#1501) 2025-12-18 20:37:40 +08:00
LICENSE
Makefile feat: 改进VM状态管理和GDB调试支持 (#1638) 2026-01-13 13:44:01 +08:00
README.md
README_CN.md
SUPPORTERS.md
dadk-manifest.toml
env.mk feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
flake.lock fix(doc), chore(nix): 文档nix run package名字不对应 更新qemu-system-data包使用deb snapshot archieve (#1570) 2025-12-29 14:51:04 +08:00
flake.nix chore(nix/qemu): 添加动态端口分配和VM状态目录配置 (#1660) 2026-01-14 18:49:47 +08:00
triagebot.toml

README.md

dragonos-logo

Lightweight Cloud-Native Kernel

官网 bbs

DragonOS

Languages 中文|English  

DragonOS is a 64-bit operating system with a completely independent kernel, designed for lightweight cloud computing scenarios, offering Linux binary compatibility. It aims to provide lightweight, high-performance solutions for containerized workloads. Developed using Rust for enhanced reliability.

The DragonOS open-source community was established in July 2022 and is entirely commercially neutral. We warmly welcome interested developers and enthusiasts to join us!

DragonOS features excellent and comprehensive architectural design. Compared to other systems of similar scale, DragonOS supports eBPF and virtualization. Currently, we are actively advancing container support, cloud platform compatibility, RISC-V support, as well as porting compilers and application software. Our goal is to achieve large-scale production environment deployment within five years.

DragonOS is rapidly evolving under community-driven development. Currently, DragonOS has implemented approximately 1/4 of Linux interfaces. In the future, we will provide 100% Linux compatibility along with new features.

🌟 Want to quickly experience DragonOS? Visit DragonOS Playground to launch DragonOS in the cloud with zero configuration and experience the latest nightly build!

📰 Community News

  • 2025-12-17: ☁️ DragonOS Playground is now live! Experience DragonOS with zero configuration on CNB platform, with daily nightly build updates! Try it now →
  • 2025-11-20: 🚀 DragonOS 0.3.0 has been released! Now supports running Go programs directly!
  • 2025-11-18: 📊 DragonOS CI Dashboard is now live! Check out DragonOS Linux compatibility data now!

How to Run?

Zero configuration, one-click launch! Experience DragonOS on the CNB cloud-native development platform - the simplest and fastest way, no local dependencies required!

Launch on CNB

Method 2: Local Build

If you prefer to build and run DragonOS locally, you can refer to the following documentation:

Want to Contribute?

Read the DragonOS Community Introduction Document carefully to understand how the community operates and how you can contribute!

If you'd like to join us, check out the issues and participate in discussions or share your ideas. You can also visit the DragonOS forum to stay updated on development progress and tasks: https://bbs.dragonos.org.cn

You can also bring your creativity and ideas to discuss with the community and contribute new features to DragonOS.

Sites

How to Connect with the Community?

Please read the Contributor Guide~

  • You can find contact details for members of various committees in the Community Management Team section.
  • You can also locate the contact information for leaders of specific community groups via the SIGs and WGs pages.

Contributor List

Contributors to DragonOS-Community/DragonOS · GitHub

Sponsorship

Sponsor this project

DragonOS is a non-profit open-source project, and its development relies on financial support. All sponsors will be publicly acknowledged. Every contribution you make will help advance DragonOS!

Where Will Sponsorship Funds Be Used?

We guarantee that all sponsorship funds and items will be used for:

  • Event organization, cloud service expenses, and any other purposes beneficial to the development and growth of the DragonOS community.

🌟 Sponsor List

Special thanks to these generous financial supporters (in reverse chronological order):

CDN Sponsor

This project's CDN acceleration and security protection are sponsored by Tencent EdgeOne.

腾讯EdgeOne CDN

Individual Sponsors List

See Supporters.md

Open Source License Notice

This project is open-sourced under the GPLv2 license. You are welcome to use the code in compliance with the open-source license!

If you encounter any violations of the open-source license, we encourage you to email pmc@dragonos.org to report them. Let's work together to build a trustworthy open-source community.


👩💻 Contributors

"Open source shines because of you!"

Thanks to all developers who submitted code, fixed issues, or reviewed PRs: