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

Registers

registervalue
rax329, 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/x64/pkey_mprotect