DragonOS/kernel/crates
LoGin f8c5e12d70
fix: 修复slab分配器的UAF\内存越界问题 (#1111)
- 新增 `tests.rs` 模块,包含多个测试用例以验证内存分配器的正确性和性能。
- 优化 `pages.rs` 中的 `Bitfield` 实现,移除不必要的 `get_offset_for_align` 函数。
- 在 `zone.rs` 中新增 `try_reclaim_pages_in_slab` 方法,用于在特定 slab 中回收页面。
- 修复 `kernel_allocator.rs` 中的 `allocator_select_condition` 逻辑,移除对 `slab_init_state` 的依赖。
- 移除 `slab.rs` 中的 `slab_init_state` 函数,简化初始化状态检查。

Signed-off-by: longjin <longjin@DragonOS.org>
2025-03-24 23:21:22 +08:00
..
asm_macros 让riscv64能正常切换进程,并运行完所有的initcall (#721) 2024-04-14 20:39:20 +08:00
bitmap feat(virtualization): 内核虚拟化支持 (#1073) 2025-03-04 10:56:20 +08:00
crc chore: update toolchain version to 2024-11-05 (#1031) 2024-11-11 21:29:15 +08:00
driver_base_macros 实现了rtc的抽象,并且把x86的cmos rtc接入到设备驱动模型 (#674) 2024-03-28 00:28:13 +08:00
ida chore: update toolchain version to 2024-11-05 (#1031) 2024-11-11 21:29:15 +08:00
intertrait chore: update toolchain version to 2024-11-05 (#1031) 2024-11-11 21:29:15 +08:00
kcmdline_macros feat(boot): 内核启动命令行参数解析 (#969) 2024-10-13 23:39:55 +08:00
kdepends feat(ida): IDA内部改为使用XArray实现 (#934) 2024-09-25 11:20:52 +08:00
klog_types chore: update toolchain version to 2024-11-05 (#1031) 2024-11-11 21:29:15 +08:00
kprobe feat(ebpf):[WIP] add eBPF support (#948) 2024-10-25 15:59:57 +08:00
rbpf feat(ebpf): support Aya framework. (#1070) 2024-12-07 16:41:37 +08:00
rust-slabmalloc fix: 修复slab分配器的UAF\内存越界问题 (#1111) 2025-03-24 23:21:22 +08:00
system_error feat(syscall): 实现syscall restart (#1075) 2024-12-13 00:56:20 +08:00
unified-init fix(backtrace):Use more reasonable compile options (#1056) 2024-11-25 16:28:05 +08:00
wait_queue_macros fix: pipe 读取/写入阻塞时,无法kill进程的问题 (#889) 2024-08-27 13:01:11 +08:00