]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
exec: Move the comment from above de_thread to above unshare_sighand
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 8 Mar 2020 17:04:44 +0000 (12:04 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 9 May 2020 14:05:32 +0000 (09:05 -0500)
The comment describes work that now happens in unshare_sighand so
move the comment where it makes sense.

Link: https://lkml.kernel.org/r/87mu6i6zcs.fsf_-_@x220.int.ebiederm.org
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/exec.c

index 3cc40048cc650d18870c5b0cef6b2eb44792efe0..d4387bc92292f13cff71be3e99e2fbfea0d91ef7 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1093,12 +1093,6 @@ static int exec_mmap(struct mm_struct *mm)
        return 0;
 }
 
-/*
- * This function makes sure the current process has its own signal table,
- * so that flush_signal_handlers can later reset the handlers without
- * disturbing other processes.  (Other processes might share the signal
- * table via the CLONE_SIGHAND option to clone().)
- */
 static int de_thread(struct task_struct *tsk)
 {
        struct signal_struct *sig = tsk->signal;
@@ -1240,6 +1234,12 @@ killed:
 }
 
 
+/*
+ * This function makes sure the current process has its own signal table,
+ * so that flush_signal_handlers can later reset the handlers without
+ * disturbing other processes.  (Other processes might share the signal
+ * table via the CLONE_SIGHAND option to clone().)
+ */
 static int unshare_sighand(struct task_struct *me)
 {
        struct sighand_struct *oldsighand = me->sighand;