Skip to main content

Module exec

Module exec 

Source
Expand description

execve() syscall implementation. Replaces the current process image with a new one.

Constantsยง

AT_BASE ๐Ÿ”’
AT_ENTRY ๐Ÿ”’
AT_EXECFN ๐Ÿ”’
AT_NULL ๐Ÿ”’
AT_PAGESZ ๐Ÿ”’
AT_PHDR ๐Ÿ”’
AT_PHENT ๐Ÿ”’
AT_PHNUM ๐Ÿ”’
AT_RANDOM ๐Ÿ”’

Functionsยง

generate_aux_random_seed ๐Ÿ”’
Performs the generate aux random seed operation.
read_exec_image ๐Ÿ”’
Read an executable image, borrowing static initfs bytes when available.
read_string_array ๐Ÿ”’
Reads string array.
setup_user_stack ๐Ÿ”’
Performs the setup user stack operation.
sys_execve
SYS_PROC_EXECVE (301): replace current process image. On success, does not return. On failure, returns an appropriate error code. This is the main syscall handler for execve, which performs the entire execve sequence:
write_bytes_to_as ๐Ÿ”’
Writes bytes to as.
write_u64_to_as ๐Ÿ”’
Writes u64 to as.