syscall.sh / arm64 / mprotect

mprotect

set protection on a region of memory

sys_mprotect(unsigned long start, size_t len, unsigned long prot)
number226 (0xe2)
abicommon
entry pointsys_mprotect
sinceLinux 3.7
man pagemprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
x8226, the syscall number
x0unsigned long start
x1size_t len
x2unsigned long prot
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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