Lines Matching refs:clone_flags
1541 static int copy_mm(unsigned long clone_flags, struct task_struct *tsk) in copy_mm() argument
1567 if (clone_flags & CLONE_VM) { in copy_mm()
1581 static int copy_fs(unsigned long clone_flags, struct task_struct *tsk) in copy_fs() argument
1584 if (clone_flags & CLONE_FS) { in copy_fs()
1601 static int copy_files(unsigned long clone_flags, struct task_struct *tsk) in copy_files() argument
1613 if (clone_flags & CLONE_FILES) { in copy_files()
1628 static int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
1639 if (clone_flags & CLONE_IO) { in copy_io()
1654 static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) in copy_sighand() argument
1658 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1673 if (clone_flags & CLONE_CLEAR_SIGHAND) in copy_sighand()
1703 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) in copy_signal() argument
1707 if (clone_flags & CLONE_THREAD) in copy_signal()
1969 static void copy_oom_score_adj(u64 clone_flags, struct task_struct *tsk) in copy_oom_score_adj() argument
1976 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj()
2006 u64 clone_flags = args->flags; in copy_process() local
2013 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
2016 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
2023 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process()
2031 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
2040 if ((clone_flags & CLONE_PARENT) && in copy_process()
2048 if (clone_flags & CLONE_THREAD) { in copy_process()
2049 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
2058 if (clone_flags & (CLONE_THREAD | CLONE_VM)) { in copy_process()
2063 if (clone_flags & CLONE_PIDFD) { in copy_process()
2069 if (clone_flags & (CLONE_DETACHED | CLONE_THREAD)) in copy_process()
2083 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2112 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? args->child_tid : NULL; in copy_process()
2116 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? args->child_tid : NULL; in copy_process()
2126 retval = copy_creds(p, clone_flags); in copy_process()
2232 retval = sched_fork(clone_flags, p); in copy_process()
2236 retval = perf_event_init_task(p, clone_flags); in copy_process()
2244 retval = security_task_alloc(p, clone_flags); in copy_process()
2247 retval = copy_semundo(clone_flags, p); in copy_process()
2250 retval = copy_files(clone_flags, p); in copy_process()
2253 retval = copy_fs(clone_flags, p); in copy_process()
2256 retval = copy_sighand(clone_flags, p); in copy_process()
2259 retval = copy_signal(clone_flags, p); in copy_process()
2262 retval = copy_mm(clone_flags, p); in copy_process()
2265 retval = copy_namespaces(clone_flags, p); in copy_process()
2268 retval = copy_io(clone_flags, p); in copy_process()
2271 retval = copy_thread(clone_flags, args->stack, args->stack_size, p, args->tls); in copy_process()
2291 if (clone_flags & CLONE_PIDFD) { in copy_process()
2320 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
2336 if (clone_flags & CLONE_THREAD) { in copy_process()
2396 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) { in copy_process()
2399 if (clone_flags & CLONE_THREAD) in copy_process()
2415 rseq_fork(p, clone_flags); in copy_process()
2439 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace); in copy_process()
2493 trace_task_newtask(p, clone_flags); in copy_process()
2494 uprobe_copy_process(p, clone_flags); in copy_process()
2496 copy_oom_score_adj(clone_flags, p); in copy_process()
2506 if (clone_flags & CLONE_PIDFD) { in copy_process()
2526 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2621 u64 clone_flags = args->flags; in kernel_clone() local
2648 if (!(clone_flags & CLONE_UNTRACED)) { in kernel_clone()
2649 if (clone_flags & CLONE_VFORK) in kernel_clone()
2677 if (clone_flags & CLONE_PARENT_SETTID) in kernel_clone()
2680 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2686 if (IS_ENABLED(CONFIG_LRU_GEN) && !(clone_flags & CLONE_VM)) { in kernel_clone()
2699 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2754 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5() argument
2759 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE5()
2764 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2770 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2777 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL), in SYSCALL_DEFINE5()
2781 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL), in SYSCALL_DEFINE5()