syscall.sh / x32 / 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)
number1073742153 (0x40000149)
abicommon
entry pointsys_pkey_mprotect
sinceLinux 4.9
man pagepkey_mprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073742153, the syscall number
rdiunsigned long start
rsisize_t len
rdxunsigned long prot
r10int pkey
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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