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)
number123 (0x7b)
abii386
entry pointsys_modify_ldt
sinceLinux 3.3
man pagemodify_ldt(2)
sourceelixir.bootlin.com

Registers

registervalue
eax123, the syscall number
ebxint func
ecxvoid *ptr
edxunsigned long bytecount
eaxthe 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