From c0029a2fa202bf2d31aaeb23c21985b3f65f26b5 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 21 Jul 2023 11:17:39 +0300 Subject: [PATCH] Kernel: Don't map kernel executable memory as writable --- kernel/arch/x86_64/PageTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/arch/x86_64/PageTable.cpp b/kernel/arch/x86_64/PageTable.cpp index c596d9f092..9af3acf771 100644 --- a/kernel/arch/x86_64/PageTable.cpp +++ b/kernel/arch/x86_64/PageTable.cpp @@ -113,7 +113,7 @@ namespace Kernel V2P(g_kernel_execute_start), (vaddr_t)g_kernel_execute_start, g_kernel_execute_end - g_kernel_execute_start, - Flags::Execute | Flags::ReadWrite | Flags::Present + Flags::Execute | Flags::Present ); }