From d498eefb2fa0ebffba4678430a20eea74dbdc880 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Sat, 14 Sep 2024 11:03:58 +0200 Subject: [PATCH] Disable userspace feature in redox-syscall. This prevents the kernel from being able to accidentally call itself using the syscall instruction. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8ec910a84f..ad871e9ec3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ hashbrown = { version = "0.14.3", default-features = false, features = ["ahash", linked_list_allocator = "0.9.0" log = "0.4" redox-path = "0.2.0" -redox_syscall = { path = "syscall" } +redox_syscall = { path = "syscall", default-features = false } slab_allocator = { path = "slab_allocator", optional = true } spin = "0.9.8" spinning_top = { version = "0.3", features = ["arc_lock"] }