/linux/tools/testing/selftests/bpf/progs/ |
H A D | task_kfunc_failure.c | 32 int BPF_PROG(task_kfunc_acquire_untrusted, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 53 int BPF_PROG(task_kfunc_acquire_fp, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 55 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG() 104 int BPF_PROG(task_kfunc_acquire_null, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 133 int BPF_PROG(task_kfunc_xchg_unreleased, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 182 int BPF_PROG(task_kfunc_release_fp, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 184 struct task_struct *acquired = (struct task_struct *)&clone_flags; in BPF_PROG() 194 int BPF_PROG(task_kfunc_release_null, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 267 int BPF_PROG(task_access_comm1, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 275 int BPF_PROG(task_access_comm2, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument [all …]
|
H A D | task_kfunc_success.c | 66 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 110 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 119 int BPF_PROG(test_task_acquire_release_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 128 int BPF_PROG(test_task_acquire_leave_in_map, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 143 int BPF_PROG(test_task_xchg_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 176 int BPF_PROG(test_task_map_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 214 int BPF_PROG(test_task_current_acquire_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 247 int BPF_PROG(test_task_from_pid_arg, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 257 int BPF_PROG(test_task_from_pid_current, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 280 int BPF_PROG(test_task_from_pid_invalid, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument [all …]
|
H A D | cpumask_failure.c | 21 int BPF_PROG(test_alloc_no_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 34 int BPF_PROG(test_alloc_double_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 49 int BPF_PROG(test_acquire_wrong_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 62 int BPF_PROG(test_mutate_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 72 int BPF_PROG(test_insert_remove_no_release, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 96 int BPF_PROG(test_cpumask_null, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 106 int BPF_PROG(test_global_mask_out_of_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 140 int BPF_PROG(test_global_mask_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 168 int BPF_PROG(test_global_mask_rcu_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
|
H A D | cpumask_success.c | 66 int BPF_PROG(test_alloc_free_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 82 int BPF_PROG(test_set_clear_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 111 int BPF_PROG(test_setall_clear_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 140 int BPF_PROG(test_first_firstzero_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 179 int BPF_PROG(test_firstand_nocpu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 243 int BPF_PROG(test_and_or_xor, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 290 int BPF_PROG(test_intersects_subset, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 332 int BPF_PROG(test_copy_any_anyand, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 386 int BPF_PROG(test_insert_leave, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 431 int BPF_PROG(test_global_mask_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument [all …]
|
H A D | nested_trust_failure.c | 28 int BPF_PROG(test_invalid_nested_user_cpus, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 36 int BPF_PROG(test_invalid_nested_offset, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
|
H A D | verifier_global_ptr_args.c | 157 int BPF_PROG(trusted_destroy_fail, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument 177 int BPF_PROG(trusted_acq_rel, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
|
/linux/include/trace/events/ |
H A D | task.h | 11 TP_PROTO(struct task_struct *task, unsigned long clone_flags), 13 TP_ARGS(task, clone_flags), 18 __field( unsigned long, clone_flags) 25 __entry->clone_flags = clone_flags; 31 __entry->clone_flags, __entry->oom_score_adj)
|
/linux/kernel/ |
H A D | fork.c | 1733 if (clone_flags & CLONE_VM) { in copy_mm() 1751 if (clone_flags & CLONE_FS) { in copy_fs() 1787 if (clone_flags & CLONE_FILES) { in copy_files() 1855 if (clone_flags & CLONE_THREAD) in copy_signal() 2161 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process() 2169 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process() 2192 if (clone_flags & CLONE_PIDFD) { in copy_process() 2419 if (clone_flags & CLONE_PIDFD) { in copy_process() 2540 rseq_fork(p, clone_flags); in copy_process() 2758 u64 clone_flags = args->flags; in kernel_clone() local [all …]
|
H A D | cred.c | 290 int copy_creds(struct task_struct *p, unsigned long clone_flags) in copy_creds() argument 303 clone_flags & CLONE_THREAD in copy_creds() 316 if (clone_flags & CLONE_NEWUSER) { in copy_creds() 331 if (clone_flags & CLONE_THREAD) in copy_creds() 338 if (!(clone_flags & CLONE_THREAD)) { in copy_creds()
|
/linux/include/linux/ |
H A D | iocontext.h | 121 int __copy_io(unsigned long clone_flags, struct task_struct *tsk); 122 static inline int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument 126 return __copy_io(clone_flags, tsk); in copy_io() 132 static inline int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
|
H A D | user_events.h | 36 unsigned long clone_flags) in user_events_fork() argument 45 if (clone_flags & CLONE_VM) { in user_events_fork() 71 unsigned long clone_flags) in user_events_fork() argument
|
H A D | sem.h | 12 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk); 17 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) in copy_semundo() argument
|
H A D | rseq.h | 68 static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) in rseq_fork() argument 70 if (clone_flags & CLONE_VM) { in rseq_fork() 110 static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) in rseq_fork() argument
|
/linux/arch/nios2/kernel/ |
H A D | process.c | 104 unsigned long clone_flags = args->flags; in copy_thread() local 143 if (clone_flags & CLONE_SETTLS) in copy_thread() 253 asmlinkage int nios2_clone(unsigned long clone_flags, unsigned long newsp, in nios2_clone() argument 258 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL), in nios2_clone() 262 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL), in nios2_clone()
|
/linux/arch/x86/include/asm/ |
H A D | shstk.h | 19 unsigned long shstk_alloc_thread_stack(struct task_struct *p, unsigned long clone_flags, 29 unsigned long clone_flags, in shstk_alloc_thread_stack() argument
|
/linux/arch/csky/kernel/ |
H A D | process.c | 35 unsigned long clone_flags = args->flags; in copy_thread() local 61 if (clone_flags & CLONE_SETTLS) in copy_thread()
|
/linux/arch/parisc/kernel/ |
H A D | process.c | 204 unsigned long clone_flags = args->flags; in copy_thread() local 251 if (clone_flags & CLONE_SETTLS) in copy_thread()
|
/linux/arch/hexagon/kernel/ |
H A D | process.c | 55 unsigned long clone_flags = args->flags; in copy_thread() local 104 if (clone_flags & CLONE_SETTLS) in copy_thread()
|
/linux/arch/xtensa/kernel/ |
H A D | process.c | 270 unsigned long clone_flags = args->flags; in copy_thread() local 317 if (clone_flags & CLONE_VM) { in copy_thread() 331 if (clone_flags & CLONE_SETTLS) in copy_thread()
|
/linux/tools/perf/util/bpf_skel/ |
H A D | off_cpu.bpf.c | 240 u64 clone_flags; in on_newtask() local 254 clone_flags = ctx[1]; in on_newtask() 257 if (!(clone_flags & CLONE_THREAD)) in on_newtask()
|
/linux/arch/x86/kernel/ |
H A D | sys_ia32.c | 240 COMPAT_SYSCALL_DEFINE5(ia32_clone, unsigned long, clone_flags, in COMPAT_SYSCALL_DEFINE5() argument 245 .flags = (clone_flags & ~CSIGNAL), in COMPAT_SYSCALL_DEFINE5() 249 .exit_signal = (clone_flags & CSIGNAL), in COMPAT_SYSCALL_DEFINE5()
|
/linux/arch/openrisc/kernel/ |
H A D | process.c | 168 unsigned long clone_flags = args->flags; in copy_thread() local 201 if (clone_flags & CLONE_SETTLS) in copy_thread()
|
/linux/arch/arc/kernel/ |
H A D | process.c | 169 unsigned long clone_flags = args->flags; in copy_thread() local 223 if (unlikely(clone_flags & CLONE_SETTLS)) { in copy_thread()
|
/linux/arch/microblaze/kernel/ |
H A D | process.c | 57 unsigned long clone_flags = args->flags; in copy_thread() local 110 if (clone_flags & CLONE_SETTLS) in copy_thread()
|
/linux/arch/sh/kernel/ |
H A D | process_32.c | 92 unsigned long clone_flags = args->flags; in copy_thread() local 132 if (clone_flags & CLONE_SETTLS) in copy_thread()
|