syscall.sh / microblaze / pkey_alloc

pkey_alloc

allocate or free a protection key

sys_pkey_alloc(unsigned long flags, unsigned long init_val)
number396 (0x18c)
abicommon
entry pointsys_pkey_alloc
sinceLinux 5.0
man pagepkey_alloc(2)
sourceelixir.bootlin.com

Registers

registervalue
r12396, the syscall number
r5unsigned long flags
r6unsigned long init_val
r3the return value

Then run brki r14,8 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/pkey_alloc