syscall.sh / x32 / modify_ldt
modify_ldt
get or set a per-process LDT entry
sys_modify_ldt(int func, void *ptr, unsigned long bytecount)
| number | 1073741978 (0x4000009a) |
|---|---|
| abi | common |
| entry point | sys_modify_ldt |
| since | Linux 3.4 |
| man page | modify_ldt(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741978, the syscall number |
rdi | int func |
rsi | void *ptr |
rdx | unsigned long bytecount |
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/modify_ldt