syscall.sh / sparc64 / 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)
number362 (0x16a)
abicommon
entry pointsys_pkey_mprotect
sinceLinux 5.1
man pagepkey_mprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
g1362, the syscall number
o0unsigned long start
o1size_t len
o2unsigned long prot
o3int pkey
o0the return value

Then run t 0x6d to enter the kernel.

Same syscall on other architectures

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