fix some vDSO bugs.

- vDSO sometimes becomes invalid.
- vDSO is not succeeded for child process.
- vDSO becomes invalid when execve.
refs #744
This commit is contained in:
Tomoki Shirasawa
2016-09-04 23:13:00 +09:00
parent f74dcfc2a1
commit 20ea65b38c
5 changed files with 7 additions and 2 deletions

View File

@@ -387,6 +387,8 @@ clone_thread(struct thread *org, unsigned long pc, unsigned long sp,
goto err_free_proc;
}
thread->vm->vdso_addr = org->vm->vdso_addr;
thread->vm->vvar_addr = org->vm->vvar_addr;
thread->proc->maxrss = org->proc->maxrss;
thread->vm->currss = org->vm->currss;