syscall.sh / x86 / arch_prctl
arch_prctl
set architecture-specific thread state
sys_arch_prctl(int option, unsigned long arg2)
| number | 384 (0x180) |
|---|---|
| abi | i386 |
| entry point | sys_arch_prctl |
| since | Linux 4.12 |
| man page | arch_prctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 384, the syscall number |
ebx | int option |
ecx | unsigned long arg2 |
eax | the 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