Home
last modified time | relevance | path

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

12

/linux/kernel/
H A Dfork.c1591 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 Dthread-self.c59 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 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/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.c330 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 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.c288 * 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 Dprocess.c249 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 Dcs_prctl_test.c64 const int THREAD_CLONE_FLAGS = CLONE_THREAD | CLONE_SIGHAND | CLONE_FS | CLONE_VM | CLONE_FILES;
/linux/arch/x86/kernel/
H A Dshstk.c214 if (!(clone_flags & CLONE_VM)) in shstk_alloc_thread_stack()
/linux/tools/testing/selftests/user_events/
H A Dabi_test.c438 CLONE_VM | SIGCHLD, &self->check)); in TEST_F()
/linux/tools/testing/selftests/futex/functional/
H A Drobust_list.c109 pid = clone(fn, stack, CLONE_VM | SIGCHLD, cargs);
/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()
/linux/tools/include/nolibc/
H A Dsys.h393 return __nolibc_syscall5(__NR_clone, CLONE_VM | CLONE_VFORK | SIGCHLD, 0, 0, 0, 0);

12