diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 13:03:44 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-11 13:03:44 +0100 |
commit | 83f59419cd8a0e988b73cca11cee6be6253f5625 (patch) | |
tree | f5c95f364c01e0a978a74dfd7365944ffa175f77 | |
parent | eede6cfd06d355c5627725075bad52cac6cb3307 (diff) | |
download | serenity-83f59419cd8a0e988b73cca11cee6be6253f5625.zip |
Kernel: Oops, recvfrom() is not quite ready for SMAP protections yet
-rw-r--r-- | Kernel/Process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index cf6e0c2d86..efb3c39e33 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2936,6 +2936,7 @@ ssize_t Process::sys$recvfrom(const Syscall::SC_recvfrom_params* user_params) sockaddr* addr = params.addr; socklen_t* addr_length = params.addr_length; + SmapDisabler disabler; if (!validate(params.buffer)) return -EFAULT; if (addr_length) { @@ -2957,7 +2958,6 @@ ssize_t Process::sys$recvfrom(const Syscall::SC_recvfrom_params* user_params) if (flags & MSG_DONTWAIT) description->set_blocking(false); - SmapDisabler disabler; auto nrecv = socket.recvfrom(*description, params.buffer.data, params.buffer.size, flags, addr, addr_length); if (flags & MSG_DONTWAIT) description->set_blocking(original_blocking); |