syscall.sh / x86 / arch_prctl

arch_prctl

set architecture-specific thread state

sys_arch_prctl(int option, unsigned long arg2)
number384 (0x180)
abii386
entry pointsys_arch_prctl
sinceLinux 4.12
man pagearch_prctl(2)
sourceelixir.bootlin.com

Registers

registervalue
eax384, the syscall number
ebxint option
ecxunsigned long arg2
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/arch_prctl