From 9e55bcb7da81c4c8da05a831d9c1cd4b5ededb9f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 25 Dec 2019 22:41:34 +0100 Subject: Kernel: Make kernel memory regions be non-executable by default From now on, you'll have to request executable memory specifically if you want some. --- Kernel/KBufferBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/KBufferBuilder.cpp') diff --git a/Kernel/KBufferBuilder.cpp b/Kernel/KBufferBuilder.cpp index 0c4c369746..07edbd2ffe 100644 --- a/Kernel/KBufferBuilder.cpp +++ b/Kernel/KBufferBuilder.cpp @@ -17,7 +17,7 @@ KBuffer KBufferBuilder::build() } KBufferBuilder::KBufferBuilder() - : m_buffer(KBuffer::create_with_size(1048576 * 4)) + : m_buffer(KBuffer::create_with_size(4 * MB, Region::Access::Read | Region::Access::Write)) { } -- cgit v1.2.3