| /linux/kernel/ |
| H A D | fork.c | 1591 if (clone_flags & CLONE_VM) { in copy_mm() 1609 /* CLONE_VM siblings refcount-share the parent's exec_state. */ in copy_exec_state() 1610 if (clone_flags & CLONE_VM) { in copy_exec_state() 1974 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj() 2001 return (clone_flags & (CLONE_VM | CLONE_VFORK)) == CLONE_VM; in need_futex_hash_allocate_default() 2047 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process() 2370 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process() [all...] |
| /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/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/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 | 330 ret = clone_raw(CLONE_VM | CLONE_FS | CLONE_FILES | in test_sigsegv_handler_with_different_pkey_for_stack() 510 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 | 288 * cases where CLONE_VM is specified and thus a different stack is specified by user. We 292 * stack allocation is not needed (like in case of !CLONE_VM) 321 * For !CLONE_VM the child will use a copy of the parents shadow in shstk_alloc_thread_stack() 324 if (!(args->flags & CLONE_VM)) in shstk_alloc_thread_stack() 328 * reaching here means, CLONE_VM was specified and thus a separate shadow in shstk_alloc_thread_stack() 350 * When fork() with CLONE_VM fails, the child (tsk) already has a in shstk_release()
|
| H A D | process.c | 249 if (IS_ENABLED(CONFIG_RISCV_ISA_SUPM) && p->mm && (clone_flags & CLONE_VM)) in copy_thread() 265 /* allocate new shadow stack if needed. In case of CLONE_VM we have to */ 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/arch/x86/kernel/ |
| H A D | shstk.c | 214 if (!(clone_flags & CLONE_VM)) in shstk_alloc_thread_stack()
|
| /linux/tools/testing/selftests/user_events/ |
| H A D | abi_test.c | 438 CLONE_VM | SIGCHLD, &self->check)); in TEST_F()
|
| /linux/tools/testing/selftests/futex/functional/ |
| H A D | robust_list.c | 109 pid = clone(fn, stack, CLONE_VM | SIGCHLD, cargs);
|
| /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()
|
| /linux/tools/include/nolibc/ |
| H A D | sys.h | 393 return __nolibc_syscall5(__NR_clone, CLONE_VM | CLONE_VFORK | SIGCHLD, 0, 0, 0, 0);
|