syscall.sh / microblaze / getrandom

getrandom

obtain a series of random bytes

sys_getrandom(char *buf, size_t count, unsigned int flags)
number385 (0x181)
abicommon
entry pointsys_getrandom
sinceLinux 5.0
man pagegetrandom(2)
sourceelixir.bootlin.com

Registers

registervalue
r12385, the syscall number
r5char *buf
r6size_t count
r7unsigned int flags
r3the return value

Then run brki r14,8 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/getrandom