From a723a414597861c67db2c061eb38d8c61fe36c48 Mon Sep 17 00:00:00 2001 From: carmincol Date: Tue, 24 Jun 2025 02:19:59 +0000 Subject: [PATCH] update memory_security/src/jit_memory.c. remove check for EXEC Signed-off-by: carmincol --- memory_security/src/jit_memory.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/memory_security/src/jit_memory.c b/memory_security/src/jit_memory.c index e34b6ab..1368942 100644 --- a/memory_security/src/jit_memory.c +++ b/memory_security/src/jit_memory.c @@ -56,12 +56,12 @@ void check_jit_memory(struct task_struct *task, unsigned long cookie, unsigned l return; unsigned long start = *err; - if (prot & PROT_EXEC) { - jit_memory_log_info("can not apply prot_exec"); - *err = -EACCES; - vm_munmap(start, size); - return; - } + // if (prot & PROT_EXEC) { + // jit_memory_log_info("can not apply prot_exec"); + // *err = -EACCES; + // vm_munmap(start, size); + // return; + // } if (!(flag & MAP_JIT)) return; -- Gitee