1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

Kernel: Remove a bunch of no-longer-necessary SmapDisablers

We forgot to remove the automatic SMAP disablers after fixing up all
this code to not access userspace memory directly. Let's lock things
down at last. :^)
This commit is contained in:
Andreas Kling 2021-01-17 14:49:14 +01:00
parent fd441b954d
commit 1730c23775
5 changed files with 0 additions and 10 deletions

View file

@ -39,7 +39,6 @@ int Process::sys$select(const Syscall::SC_select_params* user_params)
REQUIRE_PROMISE(stdio);
Syscall::SC_select_params params;
SmapDisabler disabler;
if (!copy_from_user(&params, user_params))
return -EFAULT;
@ -153,8 +152,6 @@ int Process::sys$poll(Userspace<const Syscall::SC_poll_params*> user_params)
if (!copy_from_user(&params, user_params))
return -EFAULT;
SmapDisabler disabler;
Thread::BlockTimeout timeout;
if (params.timeout) {
timespec timeout_copy;