Lines Matching refs:clone_flags

1554 static int copy_mm(u64 clone_flags, struct task_struct *tsk)  in copy_mm()  argument
1577 if (clone_flags & CLONE_VM) { in copy_mm()
1592 static int copy_fs(u64 clone_flags, struct task_struct *tsk) in copy_fs() argument
1595 if (clone_flags & CLONE_FS) { in copy_fs()
1613 static int copy_files(u64 clone_flags, struct task_struct *tsk, in copy_files() argument
1630 if (clone_flags & CLONE_FILES) { in copy_files()
1643 static int copy_sighand(u64 clone_flags, struct task_struct *tsk) in copy_sighand() argument
1647 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1662 if (clone_flags & CLONE_CLEAR_SIGHAND) in copy_sighand()
1692 static int copy_signal(u64 clone_flags, struct task_struct *tsk) in copy_signal() argument
1696 if (clone_flags & CLONE_THREAD) in copy_signal()
1923 static void copy_oom_score_adj(u64 clone_flags, struct task_struct *tsk) in copy_oom_score_adj() argument
1930 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj()
1951 static bool need_futex_hash_allocate_default(u64 clone_flags) in need_futex_hash_allocate_default() argument
1953 if ((clone_flags & (CLONE_THREAD | CLONE_VM)) != (CLONE_THREAD | CLONE_VM)) in need_futex_hash_allocate_default()
1976 const u64 clone_flags = args->flags; in copy_process() local
1983 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
1986 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
1993 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process()
2001 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
2010 if ((clone_flags & CLONE_PARENT) && in copy_process()
2018 if (clone_flags & CLONE_THREAD) { in copy_process()
2019 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
2024 if (clone_flags & CLONE_PIDFD) { in copy_process()
2029 if (clone_flags & CLONE_DETACHED) in copy_process()
2043 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2072 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? args->child_tid : NULL; in copy_process()
2076 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? args->child_tid : NULL; in copy_process()
2086 retval = copy_creds(p, clone_flags); in copy_process()
2191 retval = sched_fork(clone_flags, p); in copy_process()
2195 retval = perf_event_init_task(p, clone_flags); in copy_process()
2203 retval = security_task_alloc(p, clone_flags); in copy_process()
2206 retval = copy_semundo(clone_flags, p); in copy_process()
2209 retval = copy_files(clone_flags, p, args->no_files); in copy_process()
2212 retval = copy_fs(clone_flags, p); in copy_process()
2215 retval = copy_sighand(clone_flags, p); in copy_process()
2218 retval = copy_signal(clone_flags, p); in copy_process()
2221 retval = copy_mm(clone_flags, p); in copy_process()
2224 retval = copy_namespaces(clone_flags, p); in copy_process()
2227 retval = copy_io(clone_flags, p); in copy_process()
2250 if (clone_flags & CLONE_PIDFD) { in copy_process()
2251 int flags = (clone_flags & CLONE_THREAD) ? PIDFD_THREAD : 0; in copy_process()
2275 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
2291 if (clone_flags & CLONE_THREAD) { in copy_process()
2341 if (need_futex_hash_allocate_default(clone_flags)) { in copy_process()
2370 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) { in copy_process()
2373 if (clone_flags & CLONE_THREAD) in copy_process()
2391 rseq_fork(p, clone_flags); in copy_process()
2415 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace); in copy_process()
2468 trace_task_newtask(p, clone_flags); in copy_process()
2469 uprobe_copy_process(p, clone_flags); in copy_process()
2470 user_events_fork(p, clone_flags); in copy_process()
2472 copy_oom_score_adj(clone_flags, p); in copy_process()
2483 if (clone_flags & CLONE_PIDFD) { in copy_process()
2504 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2612 u64 clone_flags = args->flags; in kernel_clone() local
2628 if ((clone_flags & CLONE_PIDFD) && in kernel_clone()
2629 (clone_flags & CLONE_PARENT_SETTID) && in kernel_clone()
2639 if (!(clone_flags & CLONE_UNTRACED)) { in kernel_clone()
2640 if (clone_flags & CLONE_VFORK) in kernel_clone()
2666 if (clone_flags & CLONE_PARENT_SETTID) in kernel_clone()
2669 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2675 if (IS_ENABLED(CONFIG_LRU_GEN_WALKS_MMU) && !(clone_flags & CLONE_VM)) { in kernel_clone()
2688 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2760 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5() argument
2765 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE5()
2770 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2776 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2783 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL), in SYSCALL_DEFINE5()
2787 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL), in SYSCALL_DEFINE5()