summaryrefslogtreecommitdiff
path: root/Kernel/VM/MemoryManager.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-11-29 16:15:30 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-11-29 16:30:05 +0100
commite56daf547c120adfcdab1e1e8ea189a1f369bd0c (patch)
tree89d1aac5b5ccdc6c0aa25b735a351b5623b6f139 /Kernel/VM/MemoryManager.cpp
parentea52fe528a1b34590661c4556b6a4bbf68bb75f0 (diff)
downloadserenity-e56daf547c120adfcdab1e1e8ea189a1f369bd0c.zip
Kernel: Disallow syscalls from writeable memory
Processes will now crash with SIGSEGV if they attempt making a syscall from PROT_WRITE memory. This neat idea comes from OpenBSD. :^)
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
-rw-r--r--Kernel/VM/MemoryManager.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp
index 540081d26c..5e5c5a9b88 100644
--- a/Kernel/VM/MemoryManager.cpp
+++ b/Kernel/VM/MemoryManager.cpp
@@ -289,7 +289,6 @@ Region* MemoryManager::user_region_from_vaddr(Process& process, VirtualAddress v
Region* MemoryManager::region_from_vaddr(Process& process, VirtualAddress vaddr)
{
- ASSERT_INTERRUPTS_DISABLED();
if (auto* region = kernel_region_from_vaddr(vaddr))
return region;
return user_region_from_vaddr(process, vaddr);