syscall.sh / x86 / modify_ldt
modify_ldt
get or set a per-process LDT entry
sys_modify_ldt(int func, void *ptr, unsigned long bytecount)
| number | 123 (0x7b) |
|---|---|
| abi | i386 |
| entry point | sys_modify_ldt |
| since | Linux 3.3 |
| man page | modify_ldt(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 123, the syscall number |
ebx | int func |
ecx | void *ptr |
edx | unsigned long bytecount |
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/modify_ldt