syscall.sh / x32 / arch_prctl
arch_prctl
set architecture-specific thread state
sys_arch_prctl(int option, unsigned long arg2)
| number | 1073741982 (0x4000009e) |
|---|---|
| abi | common |
| entry point | sys_arch_prctl |
| since | Linux 3.4 |
| man page | arch_prctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741982, the syscall number |
rdi | int option |
rsi | unsigned long arg2 |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/arch_prctl