diff --git a/ykrt/src/trace/swt/patch.rs b/ykrt/src/trace/swt/patch.rs index 5b857a9eb..079e607b3 100644 --- a/ykrt/src/trace/swt/patch.rs +++ b/ykrt/src/trace/swt/patch.rs @@ -75,7 +75,7 @@ unsafe fn patch_function(function_ptr: usize, code: *const u8, size: size_t) { let result = mprotect( func_address, page_size_aligned, - PROT_READ | PROT_WRITE | PROT_EXEC, + PROT_READ | PROT_WRITE, ); if result != 0 { panic!("Failed to change memory protection to be writable");