syscall.sh / x64 / mprotect

mprotect

set protection on a region of memory

sys_mprotect(unsigned long start, size_t len, unsigned long prot)
number10 (0xa)
abicommon
entry pointsys_mprotect
sinceLinux 3.3
man pagemprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
rax10, the syscall number
rdiunsigned long start
rsisize_t len
rdxunsigned long prot
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/mprotect