From 3736d36b7556caf8e3a9d55f89b44bcde19477a9 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Thu, 2 Jun 2022 18:10:35 +0100 Subject: [PATCH] Fix KPrivateMemory remap permissions --- app/src/main/cpp/skyline/kernel/types/KPrivateMemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/kernel/types/KPrivateMemory.cpp b/app/src/main/cpp/skyline/kernel/types/KPrivateMemory.cpp index 02273c34..43cf98fa 100644 --- a/app/src/main/cpp/skyline/kernel/types/KPrivateMemory.cpp +++ b/app/src/main/cpp/skyline/kernel/types/KPrivateMemory.cpp @@ -61,7 +61,7 @@ namespace skyline::kernel::type { if (mprotect(ptr, size, PROT_NONE) < 0) throw exception("An occurred while remapping private memory: {}", strerror(errno)); - if (mprotect(nPtr, nSize, PROT_NONE) < 0) + if (mprotect(nPtr, nSize, PROT_READ | PROT_WRITE | PROT_EXEC) < 0) throw exception("An occurred while remapping private memory: {}", strerror(errno)); }