lsm_list_modules on x64
sys_lsm_list_modules(u64 *ids, u32 *size, u32 flags)
| number | 461 (0x1cd) |
|---|---|
| abi | common |
| entry point | sys_lsm_list_modules |
| since | Linux 6.8 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 461, the syscall number |
rdi | u64 *ids |
rsi | u32 *size |
rdx | u32 flags |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 461
- arm64 461
- arm 461
- riscv64 461
- ia32 461
- x32 1073742285
- loongarch64 461
- ppc64 461
- ppc 461
- s390x 461
- mips64 5461
- mipsn32 6461
- mipso32 4461
- alpha 571
- arc 461
- csky 461
- hexagon 461
- m68k 461
- microblaze 461
- nios2 461
- openrisc 461
- parisc 461
- sh 461
- sparc 461
- sparc64 461
- xtensa 461
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/lsm_list_modules