syscall.sh / ppc / pkey_mprotect

pkey_mprotect

set protection on a region of memory

sys_pkey_mprotect(unsigned long start, size_t len, unsigned long prot, int pkey)
number386 (0x182)
abinospu
entry pointsys_pkey_mprotect
sinceLinux 5.0
man pagepkey_mprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
r0386, the syscall number
r3unsigned long start
r4size_t len
r5unsigned long prot
r6int pkey
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/ppc/pkey_mprotect