CLONE_VM
if (!(clone_flags & CLONE_VM)) {
if ((args->flags & (CLONE_VFORK | CLONE_VM)) != CLONE_VM) {
if (IS_ENABLED(CONFIG_RISCV_ISA_SUPM) && p->mm && (clone_flags & CLONE_VM))
if (!(args->flags & CLONE_VM))
.flags = CLONE_VFORK | CLONE_VM,
if (flags & CLONE_VM)
pid = clone(helper_child, (void *) sp, CLONE_VM, &data);
CLONE_VFORK | CLONE_VM | SIGCHLD,
pid = clone(seccomp_helper, (void *)sp, CLONE_VFORK | CLONE_VM, NULL);
if (p->mm && (clone_flags & (CLONE_VM | CLONE_VFORK)) == CLONE_VM)
if (!(clone_flags & CLONE_VM))
DEFINE(_CLONE_VM, CLONE_VM);
if (clone_flags & CLONE_VM) {
if (clone_flags & CLONE_VM)
if (clone_flags & CLONE_VM) {
if (clone_flags & CLONE_VM) {
if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM)
if ((clone_flags & (CLONE_THREAD | CLONE_VM)) != (CLONE_THREAD | CLONE_VM))
if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM))
if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM)
.flags = CLONE_VM,
CLONE_IO|CLONE_VM|CLONE_UNTRACED;
if (IS_ENABLED(CONFIG_LRU_GEN_WALKS_MMU) && !(clone_flags & CLONE_VM)) {
.flags = ((flags | CLONE_VM | CLONE_UNTRACED) & ~CSIGNAL),
.flags = ((flags | CLONE_VM | CLONE_UNTRACED) & ~CSIGNAL),
.flags = CLONE_VFORK | CLONE_VM,
CLONE_VM|CLONE_FILES|CLONE_SYSVSEM|
if (unshare_flags & (CLONE_THREAD | CLONE_SIGHAND | CLONE_VM)) {
if (unshare_flags & (CLONE_SIGHAND | CLONE_VM)) {
if (unshare_flags & CLONE_VM) {
if (unshare_flags & CLONE_VM)
if ((flags & CLONE_VM) ||
if ((flags & CLONE_VM) == 0)
if (!(clone_flags & CLONE_VM)) {
.flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM |
return my_syscall5(__NR_clone, 0, CLONE_VM | CLONE_VFORK | SIGCHLD, 0, 0, 0);
return my_syscall5(__NR_clone, CLONE_VM | CLONE_VFORK | SIGCHLD, 0, 0, 0, 0);
ret = sys_clone(CLONE_VM, (unsigned long)stack + __STACK_SIZE,
CLONE_VM|SIGCHLD, child);
CLONE_NEWCGROUP | CLONE_FILES | CLONE_VM | SIGCHLD,
pid = do_clone(userns_fd_cb, h, CLONE_NEWUSER | CLONE_FILES | CLONE_VM);
pid = clone(fn, stack, CLONE_VM | SIGCHLD, arg);
SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM,
pid = spawn_idle_thread(CLONE_FILES | CLONE_FS | CLONE_VM);
long ret = clone_raw(CLONE_VM | CLONE_FS | CLONE_FILES |
long ret = clone_raw(CLONE_VM | CLONE_FS | CLONE_FILES |
CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0);
CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0);
ASSERT_NE(setns(self->pidfd, CLONE_VM), 0);
ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0);
CLONE_VM | SIGCHLD, NULL);
pid = clone(f, stack + PAGE_SIZE, CLONE_THREAD|CLONE_SIGHAND|CLONE_VM, (void *)1);
const int THREAD_CLONE_FLAGS = CLONE_THREAD | CLONE_SIGHAND | CLONE_FS | CLONE_VM | CLONE_FILES;
CLONE_VM | SIGCHLD, &self->check));
SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, NULL);
SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, test);