syscall.sh / sh / 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)
number384 (0x180)
abicommon
entry pointsys_pkey_mprotect
sinceLinux 5.1
man pagepkey_mprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
r3384, the syscall number
r4unsigned long start
r5size_t len
r6unsigned long prot
r7int pkey
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/pkey_mprotect