Home
last modified time | relevance | path

Searched refs:CLONE_VM (Results 1 – 25 of 32) sorted by relevance

12

/linux/kernel/
H A Dfork.c1582 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 Dvhost_task.c124 .flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM | in vhost_task_create()
/linux/tools/testing/selftests/move_mount_set_group/
H A Dmove_mount_set_group_test.c359 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 Dthread-self.c59 pid = clone(f, stack + PAGE_SIZE, CLONE_THREAD|CLONE_SIGHAND|CLONE_VM, (void *)1); in main()
/linux/include/linux/
H A Duser_events.h45 if (clone_flags & CLONE_VM) { in user_events_fork()
H A Drseq.h157 if (clone_flags & CLONE_VM) in rseq_fork()
/linux/tools/include/uapi/linux/
H A Dsched.h
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dsched.h11 #define CLONE_VM 0x00000100 /* set if VM shared between processes */ macro
/linux/tools/testing/selftests/mm/
H A Dpkey_sighandler_tests.c326 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 Dtpidr2.c137 * 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 Dhashchk_test.c211 CLONE_VM | SIGCHLD, NULL); in hashchk_clone_share_key_test()
/linux/Documentation/userspace-api/
H A Dunshare.rst161 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 Dfuse_test.c213 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, in spawn_sealing_thread()
/linux/arch/xtensa/kernel/
H A Dprocess.c317 if (clone_flags & CLONE_VM) { in copy_thread()
H A Dasm-offsets.c127 DEFINE(_CLONE_VM, CLONE_VM); in main()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c405 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 Dstart_up.c318 pid = clone(seccomp_helper, (void *)sp, CLONE_VFORK | CLONE_VM, NULL); in init_seccomp()
/linux/arch/riscv/kernel/
H A Dusercfi.c324 if (!(args->flags & CLONE_VM)) in shstk_alloc_thread_stack()
H A Dprocess.c249 if (IS_ENABLED(CONFIG_RISCV_ISA_SUPM) && p->mm && (clone_flags & CLONE_VM)) in copy_thread()
/linux/tools/testing/selftests/sched/
H A Dcs_prctl_test.c64 const int THREAD_CLONE_FLAGS = CLONE_THREAD | CLONE_SIGHAND | CLONE_FS | CLONE_VM | CLONE_FILES;
/linux/tools/testing/selftests/user_events/
H A Dabi_test.c411 CLONE_VM | SIGCHLD, &self->check)); in TEST_F()
/linux/arch/x86/kernel/
H A Dshstk.c214 if (!(clone_flags & CLONE_VM)) in shstk_alloc_thread_stack()
/linux/tools/testing/selftests/futex/functional/
H A Drobust_list.c81 pid = clone(fn, stack, CLONE_VM | SIGCHLD, arg); in create_child()
/linux/tools/testing/selftests/x86/
H A Dlam.c869 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 Dutils.c396 /* 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()

12