Lines Matching refs:current

14  * "current->executable", and page faults do the actual loading. Clean.
20 * current->executable is only used by the procfs. This allows a dispatch
183 * use a lot of memory, account these pages in current->mm temporary
189 struct mm_struct *mm = current->mm;
224 * We are doing an exec(). 'current' is the process
390 /* Save current stack limit for all calculations made during exec. */
391 task_lock(current->group_leader);
392 bprm->rlim_stack = current->signal->rlim[RLIMIT_STACK];
393 task_unlock(current->group_leader);
464 if (fatal_signal_pending(current))
482 if (fatal_signal_pending(current))
573 if (fatal_signal_pending(current)) {
674 if (fatal_signal_pending(current))
767 struct mm_struct *mm = current->mm;
872 current->mm->start_stack = bprm->p;
1003 * Maps the mm_struct mm into the current task struct.
1014 tsk = current;
1015 old_mm = current->mm;
1207 * This function makes sure the current process has its own signal table,
1273 struct task_struct *me = current;
1283 * the current task is still unchanged, but errors are fatal (point of
1285 * the current task has successfully switched to the new exec.
1287 trace_sched_prepare_exec(current, bprm);
1387 * Figure out dumpability. Note that this checking only of current
1394 set_dumpable(current->mm, suid_dumpable);
1396 set_dumpable(current->mm, SUID_DUMP_USER);
1479 struct task_struct *me = current;
1499 task_lock(current->group_leader);
1500 current->signal->rlim[RLIMIT_STACK] = bprm->rlim_stack;
1501 task_unlock(current->group_leader);
1513 if (mutex_lock_interruptible(&current->signal->cred_guard_mutex))
1520 mutex_unlock(&current->signal->cred_guard_mutex);
1541 mutex_unlock(&current->signal->cred_guard_mutex);
1627 struct task_struct *p = current, *t;
1637 if (task_no_new_privs(current))
1643 * will be able to manipulate the current directory, etc.
1675 if (task_no_new_privs(current))
1828 old_pid = current->pid;
1830 old_vpid = task_pid_nr_ns(current, task_active_pid_ns(current->parent));
1861 trace_sched_process_exec(current, old_pid, bprm);
1863 proc_exec_connector(current);
1881 current->in_execve = 1;
1882 sched_mm_cid_before_execve(current);
1895 sched_mm_cid_after_execve(current);
1897 current->fs->in_exec = 0;
1898 current->in_execve = 0;
1899 rseq_execve(current);
1900 user_events_execve(current);
1901 acct_update_integrals(current);
1902 task_numa_free(current, false);
1912 if (bprm->point_of_no_return && !fatal_signal_pending(current))
1915 sched_mm_cid_after_execve(current);
1916 current->fs->in_exec = 0;
1917 current->in_execve = 0;
1939 if ((current->flags & PF_NPROC_EXCEEDED) &&
1947 current->flags &= ~PF_NPROC_EXCEEDED;
1958 current->comm, bprm->filename);
2016 if (WARN_ON_ONCE(current->flags & PF_KTHREAD))
2121 struct mm_struct *mm = current->mm;