| /linux/kernel/ |
| H A D | fork.c | 1582 if (clone_flags & CLONE_VM) { in copy_mm() 1931 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj() 1958 return (clone_flags & (CLONE_VM | CLONE_VFORK)) == CLONE_VM; in need_futex_hash_allocate_default() 2004 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process() 2323 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process() 2625 .flags = CLONE_VM, in fork_idle() 2650 CLONE_IO|CLONE_VM|CLONE_UNTRACED; in create_io_thread() 2746 if (IS_ENABLED(CONFIG_LRU_GEN_WALKS_MMU) && !(clone_flags & CLONE_VM)) { in kernel_clone() 2775 .flags = ((flags | CLONE_VM | CLONE_UNTRACED) & ~CSIGNAL), in kernel_thread() 2792 .flags = ((flags | CLONE_VM | CLONE_UNTRACED) & ~CSIGNAL), in user_mode_thread() [all …]
|
| H A D | vhost_task.c | 124 .flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM | in vhost_task_create()
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 359 CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0); in TEST_F() 363 CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0); in TEST_F()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | thread-self.c | 59 pid = clone(f, stack + PAGE_SIZE, CLONE_THREAD|CLONE_SIGHAND|CLONE_VM, (void *)1); in main()
|
| /linux/include/linux/ |
| H A D | user_events.h | 45 if (clone_flags & CLONE_VM) { in user_events_fork()
|
| H A D | rseq.h | 157 if (clone_flags & CLONE_VM) in rseq_fork()
|
| /linux/tools/include/uapi/linux/ |
| H A D | sched.h | |
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | sched.h | 11 #define CLONE_VM 0x00000100 /* set if VM shared between processes */ macro
|
| /linux/tools/testing/selftests/mm/ |
| H A D | pkey_sighandler_tests.c | 326 long ret = clone_raw(CLONE_VM | CLONE_FS | CLONE_FILES | in test_sigsegv_handler_with_different_pkey_for_stack() 497 long ret = clone_raw(CLONE_VM | CLONE_FS | CLONE_FILES | in test_pkru_sigreturn()
|
| /linux/tools/testing/selftests/arm64/abi/ |
| H A D | tpidr2.c | 137 * If we clone with CLONE_VM then the value in the parent should 157 ret = sys_clone(CLONE_VM, (unsigned long)stack + __STACK_SIZE, in write_clone_read()
|
| /linux/tools/testing/selftests/powerpc/dexcr/ |
| H A D | hashchk_test.c | 211 CLONE_VM | SIGCHLD, NULL); in hashchk_clone_share_key_test()
|
| /linux/Documentation/userspace-api/ |
| H A D | unshare.rst | 161 CLONE_VM 162 If CLONE_VM is set, the virtual memory of the caller is 263 Force implied flags. If CLONE_THREAD is set force CLONE_VM. 264 If CLONE_VM is set, force CLONE_SIGHAND. If CLONE_SIGHAND is
|
| /linux/tools/testing/selftests/memfd/ |
| H A D | fuse_test.c | 213 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, in spawn_sealing_thread()
|
| /linux/arch/xtensa/kernel/ |
| H A D | process.c | 317 if (clone_flags & CLONE_VM) { in copy_thread()
|
| H A D | asm-offsets.c | 127 DEFINE(_CLONE_VM, CLONE_VM); in main()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_setns_test.c | 405 ASSERT_NE(setns(self->pidfd, CLONE_VM), 0); in TEST_F() 408 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F()
|
| /linux/arch/um/os-Linux/ |
| H A D | start_up.c | 318 pid = clone(seccomp_helper, (void *)sp, CLONE_VFORK | CLONE_VM, NULL); in init_seccomp()
|
| /linux/arch/riscv/kernel/ |
| H A D | usercfi.c | 324 if (!(args->flags & CLONE_VM)) in shstk_alloc_thread_stack()
|
| H A D | process.c | 249 if (IS_ENABLED(CONFIG_RISCV_ISA_SUPM) && p->mm && (clone_flags & CLONE_VM)) in copy_thread()
|
| /linux/tools/testing/selftests/sched/ |
| H A D | cs_prctl_test.c | 64 const int THREAD_CLONE_FLAGS = CLONE_THREAD | CLONE_SIGHAND | CLONE_FS | CLONE_VM | CLONE_FILES;
|
| /linux/tools/testing/selftests/user_events/ |
| H A D | abi_test.c | 411 CLONE_VM | SIGCHLD, &self->check)); in TEST_F()
|
| /linux/arch/x86/kernel/ |
| H A D | shstk.c | 214 if (!(clone_flags & CLONE_VM)) in shstk_alloc_thread_stack()
|
| /linux/tools/testing/selftests/futex/functional/ |
| H A D | robust_list.c | 81 pid = clone(fn, stack, CLONE_VM | SIGCHLD, arg); in create_child()
|
| /linux/tools/testing/selftests/x86/ |
| H A D | lam.c | 869 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, NULL); in handle_thread() 897 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, test); in handle_thread_enable()
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 396 /* Note the CLONE_FILES | CLONE_VM when mucking with fds and memory. */ in create_userns_hierarchy() 398 pid = do_clone(userns_fd_cb, h, CLONE_NEWUSER | CLONE_FILES | CLONE_VM); in create_userns_hierarchy()
|