syscall.sh / microblaze / 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)
number395 (0x18b)
abicommon
entry pointsys_pkey_mprotect
sinceLinux 5.0
man pagepkey_mprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
r12395, the syscall number
r5unsigned long start
r6size_t len
r7unsigned long prot
r8int pkey
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_mprotect