Lines Matching refs:clone_flags
1663 static int copy_mm(unsigned long clone_flags, struct task_struct *tsk) in copy_mm() argument
1686 if (clone_flags & CLONE_VM) { in copy_mm()
1700 static int copy_fs(unsigned long clone_flags, struct task_struct *tsk) in copy_fs() argument
1703 if (clone_flags & CLONE_FS) { in copy_fs()
1720 static int copy_files(unsigned long clone_flags, struct task_struct *tsk) in copy_files() argument
1732 if (clone_flags & CLONE_FILES) { in copy_files()
1747 static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) in copy_sighand() argument
1751 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1766 if (clone_flags & CLONE_CLEAR_SIGHAND) in copy_sighand()
1796 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) in copy_signal() argument
1800 if (clone_flags & CLONE_THREAD) in copy_signal()
2064 static void copy_oom_score_adj(u64 clone_flags, struct task_struct *tsk) in copy_oom_score_adj() argument
2071 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj()
2113 const u64 clone_flags = args->flags; in copy_process() local
2120 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
2123 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
2130 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process()
2138 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
2147 if ((clone_flags & CLONE_PARENT) && in copy_process()
2155 if (clone_flags & CLONE_THREAD) { in copy_process()
2156 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
2165 if (clone_flags & (CLONE_THREAD | CLONE_VM)) { in copy_process()
2170 if (clone_flags & CLONE_PIDFD) { in copy_process()
2176 if (clone_flags & (CLONE_DETACHED | CLONE_THREAD)) in copy_process()
2190 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2216 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? args->child_tid : NULL; in copy_process()
2220 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? args->child_tid : NULL; in copy_process()
2230 retval = copy_creds(p, clone_flags); in copy_process()
2340 retval = sched_fork(clone_flags, p); in copy_process()
2344 retval = perf_event_init_task(p, clone_flags); in copy_process()
2352 retval = security_task_alloc(p, clone_flags); in copy_process()
2355 retval = copy_semundo(clone_flags, p); in copy_process()
2358 retval = copy_files(clone_flags, p); in copy_process()
2361 retval = copy_fs(clone_flags, p); in copy_process()
2364 retval = copy_sighand(clone_flags, p); in copy_process()
2367 retval = copy_signal(clone_flags, p); in copy_process()
2370 retval = copy_mm(clone_flags, p); in copy_process()
2373 retval = copy_namespaces(clone_flags, p); in copy_process()
2376 retval = copy_io(clone_flags, p); in copy_process()
2399 if (clone_flags & CLONE_PIDFD) { in copy_process()
2428 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
2444 if (clone_flags & CLONE_THREAD) { in copy_process()
2507 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) { in copy_process()
2510 if (clone_flags & CLONE_THREAD) in copy_process()
2528 rseq_fork(p, clone_flags); in copy_process()
2552 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace); in copy_process()
2608 trace_task_newtask(p, clone_flags); in copy_process()
2609 uprobe_copy_process(p, clone_flags); in copy_process()
2611 copy_oom_score_adj(clone_flags, p); in copy_process()
2621 if (clone_flags & CLONE_PIDFD) { in copy_process()
2641 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2747 u64 clone_flags = args->flags; in kernel_clone() local
2774 if (!(clone_flags & CLONE_UNTRACED)) { in kernel_clone()
2775 if (clone_flags & CLONE_VFORK) in kernel_clone()
2803 if (clone_flags & CLONE_PARENT_SETTID) in kernel_clone()
2806 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2812 if (IS_ENABLED(CONFIG_LRU_GEN) && !(clone_flags & CLONE_VM)) { in kernel_clone()
2825 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2897 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5() argument
2902 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE5()
2907 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2913 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2920 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL), in SYSCALL_DEFINE5()
2924 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL), in SYSCALL_DEFINE5()