getrandom on score
obtain a series of random bytes
sys_getrandom(char *buf, size_t count, unsigned int flags)
| number | 278 (0x116) |
|---|---|
| abi | common |
| entry point | sys_getrandom |
| since | Linux 3.17 |
| man page | getrandom(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 278, the syscall number |
r4 | char *buf |
r5 | size_t count |
r6 | unsigned int flags |
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 318
- x86 355
- arm64 278
- arm 384
- riscv64 278
- ia32 355
- x32 1073742142
- loongarch64 278
- ppc64 359
- ppc 359
- s390x 349
- mips64 5313
- mipsn32 6317
- mipso32 4353
- alpha 511
- arc 278
- blackfin 389, removed in 4.17
- cris 356, removed in 4.17
- csky 278
- hexagon 278
- ia64 1339, removed in 6.7
- m68k 352
- metag 278, removed in 4.17
- microblaze 385
- nds32 278, removed in 5.18
- nios2 278
- openrisc 278
- parisc 339
- sh 373
- sparc 347
- sparc64 347
- tilegx 278, removed in 4.17
- tilepro 278, removed in 4.17
- xtensa 338
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/getrandom?kernel=all