syscall.sh / x32 / pkey_alloc

pkey_alloc

allocate or free a protection key

sys_pkey_alloc(unsigned long flags, unsigned long init_val)
number1073742154 (0x4000014a)
abicommon
entry pointsys_pkey_alloc
sinceLinux 4.9
man pagepkey_alloc(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073742154, the syscall number
rdiunsigned long flags
rsiunsigned long init_val
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_alloc