syscall.sh / sh / 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 5.0
man pagemprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
r3125, the syscall number
r4unsigned long start
r5size_t len
r6unsigned long prot
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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