syscall.sh / x86 / mremap
mremap
remap a virtual memory address
sys_mremap(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr)
| number | 163 (0xa3) |
|---|---|
| abi | i386 |
| entry point | sys_mremap |
| since | Linux 3.3 |
| man page | mremap(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 163, the syscall number |
ebx | unsigned long addr |
ecx | unsigned long old_len |
edx | unsigned long new_len |
esi | unsigned long flags |
edi | unsigned long new_addr |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 25
- arm64 216
- arm 163
- riscv64 216
- x32 1073741849
- loongarch64 216
- ppc64 163
- ppc 163
- s390x 163
- mips64 5024
- mipsn32 6024
- mipso32 4167
- alpha 341
- arc 216
- csky 216
- hexagon 216
- m68k 163
- microblaze 163
- nios2 216
- openrisc 216
- parisc 163
- sh 163
- sparc 250
- sparc64 250
- xtensa 88
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/mremap