2 int sys_fork(struct pt_regs *regs)
13 * Because we don't want to forkbomb, we don't really do anything in the child process.
14 * We only actually do a fork at all on the off-chance that it might trigger some oddness
15 * in the VMAs we've created when we COW.
17 * TODO: Maybe do some dirty_mapping calls in the child ?
18 * TODO: Maybe we could enforce an upper limit on the child count before we fork,
19 * and keep track of them using handle_child ?
22 static void post_fork(int childno
)
26 pid
= shm
->syscall
[childno
].retval
;
34 while (pid_alive(pid
)) {
36 ret
= waitpid(pid
, &status
, WUNTRACED
| WCONTINUED
| WNOHANG
);
41 struct syscallentry syscall_fork
= {
44 .flags
= AVOID_SYSCALL
, // No args to fuzz, confuses fuzzer