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)
number1073741978 (0x4000009a)
abicommon
entry pointsys_modify_ldt
sinceLinux 3.4
man pagemodify_ldt(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741978, the syscall number
rdiint func
rsivoid *ptr
rdxunsigned long bytecount
raxthe 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