diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-25 22:41:34 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-25 22:41:34 +0100 |
commit | 9e55bcb7da81c4c8da05a831d9c1cd4b5ededb9f (patch) | |
tree | ed590a0334be96051b1428e08bf5b88a284a4709 /Kernel/KBufferBuilder.cpp | |
parent | 0b7a2e0a5a6875f6e44d0ac0b0dc5e5d27205f86 (diff) | |
download | serenity-9e55bcb7da81c4c8da05a831d9c1cd4b5ededb9f.zip |
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.
Diffstat (limited to 'Kernel/KBufferBuilder.cpp')
-rw-r--r-- | Kernel/KBufferBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { } |