3 ms·
Related: JITs use different strategies to assemble and execute code: - (Under W^X) User-land W->X transmutation support from the, i.e., pkey_mprotect(addr, len
by hi-v-rocknroll 2y ago
Related: JITs use different strategies to assemble and execute code:
- (Under W^X) User-land W->X transmutation support from the, i.e., pkey_mprotect(addr, len, PROT_EXEC | PROT_READ, pkey) against an * aligned_alloc()* region on Linux
- (Slower) Produce assembly and compile, or write an executable or library, and dlopen() it in an existing process or run it in a separate process and address space
- (Faster, least secure, not recommended) Write and execute against RWX pages directly