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

Registers

registervalue
r1125, the syscall number
r2unsigned long start
r3size_t len
r4unsigned long prot
r2the 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/s390x/mprotect