syscall.sh / arm / mprotect

mprotect

set protection on a region of memory

sys_mprotect(unsigned long start, size_t len, unsigned long prot)
number125 (0x7d)
abicommon
entry pointsys_mprotect
sinceLinux 4.10
man pagemprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
r7125, the syscall number
r0unsigned long start
r1size_t len
r2unsigned long prot
r0the 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/arm/mprotect