I'm looking for an application for analysis purpose that puts pressure on mprotect. I found that JIT compilers use this syscall more than others. But ...
I'm looking for an application for analysis purpose that puts pressure on mprotect. I found that JIT compilers use this syscall more than others. But ...
I have a process PID that access a memory region that it's not allowed to, the CPU creates a trap into the kernel which calls do_page_fault() which wi ...
I am trying do mit6.828 lab on mac m1. After installed riscv-tool-chain, I tried to run make qemu which seems to be used start the kernel, but at firs ...
I want to mprotect the data section. The following program will not run correctly. I understand the first argument of mprotect() should be aligned. Bu ...
I was wondering if there is a portable way to dynamically allocate memory and then restrict read/write access to a portion of this memory, e. g. ...
I was working with syscalls relating to virtual memory lately. From the manual of mmap I know that it can be very powerful when MAP_FIXED flag is set, ...
I am trying to make self modifying code in Linux. I thought it would works but didn't. I used nasm on ubuntu 18.04. INT 0x80 return value is -22 0 ...
My problem I have a singleton whose memory is being corrupted by an unknown corruptor. Something is overwriting the memory for the singleton, and hun ...
This is essentially what I'm trying to do, so I'm trying to make code writable, essentially. This doesn't work on the current macOS (Catalina 10.15 ...
As part of a project I'm working on, I want to allocate some memory, write opcodes into that memory and then call it. By then, the code will jump into ...
In our application (a network daemon), there are roughly three uses of heap allocated memory. Memory allocated on startup to hold the result of pa ...
Background: Writing a proof of concept that involves executing machine code within a python program. To do this on osx so I had to utilize ctypes and ...
I'm writing a kernel module that needs to change page permissions for a task. Normally, the task would just call mprotect and set the permissions. As ...
I want to allocate 4096 Bytes with posix_memalign in the array "page", and then protect it with PROT_NONE via mprotect(). The allocation seems to work ...
For the purpose of concurrent/parallel GC, I'm interested in what memory order guarantee is provided by the mprotect syscall (i.e. the behavior of mpr ...
I allocated some large chunks of memory through malloc and aligned_alloc, and then I setup a fence to a region inside the memory with size of one page ...
I would like to grant full permissions (read, write, and execute) to all memory pages in an ELF binary. Ideally, I'd like to be able to do this as a t ...
I'm trying to tweak the rules a little bit here, and malloc a buffer, then copy a function to the buffer. Calling the buffered function works, but th ...
I'm developing a jailbroken app on iOS and getting errno 22 when calling errno 22 means invalid arguments but I can't figure out whats wrong. I've ...
I attempt to call mprotect on the main thread's stack, but it always fails. Every time I try, it yields an ENOMEM error. And I have checked in /proc/[ ...