aboutsummaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2024-04-26 15:56:10 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2024-04-26 15:56:10 +1000
commit901acf1ce63dad7ae32a8763ef9213aabf9d6de8 (patch)
treed4cc6deb02d75e6d3a84e05b72f6f862f035096f /fs/exec.c
parente04b3212bd456d1a58dba7b6213a1e1fddfc337c (diff)
parent10e29251be0e9f774910c1baaa89355859491769 (diff)
Merge branch 'for-next/execve' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
# Conflicts: # fs/binfmt_elf_fdpic.c
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 0c5f06d08c35..40073142288f 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1279,6 +1279,14 @@ int begin_new_exec(struct linux_binprm * bprm)
return retval;
/*
+ * This tracepoint marks the point before flushing the old exec where
+ * the current task is still unchanged, but errors are fatal (point of
+ * no return). The later "sched_process_exec" tracepoint is called after
+ * the current task has successfully switched to the new exec.
+ */
+ trace_sched_prepare_exec(current, bprm);
+
+ /*
* Ensure all future errors are fatal.
*/
bprm->point_of_no_return = true;