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