pivot_root on score
change the root mount
sys_pivot_root(const char *new_root, const char *put_old)
| number | 41 (0x29) |
|---|---|
| abi | common |
| entry point | sys_pivot_root |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | pivot_root(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 41, the syscall number |
r4 | const char *new_root |
r5 | const char *put_old |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 155
- x86 217
- arm64 41
- arm 218
- riscv64 41
- ia32 217
- x32 1073741979
- loongarch64 41
- ppc64 203
- ppc 203
- s390x 217
- mips64 5151
- mipsn32 6151
- mipso32 4216
- alpha 374
- arc 41
- blackfin 217, removed in 4.17
- cris 217, removed in 4.17
- csky 41
- frv 217, removed in 4.17
- hexagon 41
- ia64 1207, removed in 6.7
- m32r 217, removed in 4.17
- m68k 217
- metag 41, removed in 4.17
- microblaze 217
- mn10300 217, removed in 4.17
- nds32 41, removed in 5.18
- nios2 41
- openrisc 41
- parisc 67
- sh 217
- sparc 146
- sparc64 146
- tilegx 41, removed in 4.17
- tilepro 41, removed in 4.17
- xtensa 175
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/pivot_root?kernel=all