mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Clear the robust list during do_execve
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
12db7ec55d
commit
5b9dd2fee8
@ -115,6 +115,10 @@ fn do_execve(
|
||||
let process_vm = current.vm();
|
||||
load_program_to_vm(process_vm, elf_file.clone(), argv, envp, fs_resolver, 1)?
|
||||
};
|
||||
|
||||
// After the program has been successfully loaded, the virtual memory of the current process
|
||||
// is initialized. Hence, it is necessary to clear the previously recorded robust list.
|
||||
*posix_thread.robust_list().lock() = None;
|
||||
debug!("load elf in execve succeeds");
|
||||
|
||||
let credentials = credentials_mut();
|
||||
|
Reference in New Issue
Block a user