syscall.sh / ppc64 / 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
r0125, the syscall number
r3unsigned long start
r4size_t len
r5unsigned long prot
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

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