execve: call ptrace_syscall_exit if execve successed

refs #945
This commit is contained in:
Tomoki Shirasawa
2017-09-26 14:31:07 +09:00
parent e294db7e53
commit c43c1b640a

View File

@ -2222,6 +2222,11 @@ SYSCALL_DECLARE(execve)
#endif /* POSTK_DEBUG_TEMP_FIX_10 */
}
if (cpu_local_var(current)->proc->ptrace) {
ihk_mc_syscall_ret(ctx) = 0;
ptrace_syscall_exit(cpu_local_var(current));
}
/* Unmap all memory areas of the process, userspace will be gone */
munmap_all();