mseal on x64
sys_mseal(unsigned long start, size_t len, unsigned long flags)
| number | 462 (0x1ce) |
|---|---|
| abi | common |
| entry point | sys_mseal |
| since | Linux 6.10 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 462, the syscall number |
rdi | unsigned long start |
rsi | size_t len |
rdx | unsigned long 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 462
- arm64 462
- arm 462
- riscv64 462
- ia32 462
- x32 1073742286
- loongarch64 462
- ppc64 462
- ppc 462
- s390x 462
- mips64 5462
- mipsn32 6462
- mipso32 4462
- alpha 572
- arc 462
- csky 462
- hexagon 462
- m68k 462
- microblaze 462
- nios2 462
- openrisc 462
- parisc 462
- sh 462
- sparc 462
- sparc64 462
- xtensa 462
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/mseal