Skip to content

Commit 7a60ef4

Browse files
committed
exec: Move the comment from above de_thread to above unshare_sighand
The comment describes work that now happens in unshare_sighand so move the comment where it makes sense. Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Kees Cook <[email protected]> Signed-off-by: "Eric W. Biederman" <[email protected]>
1 parent b213c2d commit 7a60ef4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fs/exec.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,12 +1093,6 @@ static int exec_mmap(struct mm_struct *mm)
10931093
return 0;
10941094
}
10951095

1096-
/*
1097-
* This function makes sure the current process has its own signal table,
1098-
* so that flush_signal_handlers can later reset the handlers without
1099-
* disturbing other processes. (Other processes might share the signal
1100-
* table via the CLONE_SIGHAND option to clone().)
1101-
*/
11021096
static int de_thread(struct task_struct *tsk)
11031097
{
11041098
struct signal_struct *sig = tsk->signal;
@@ -1240,6 +1234,12 @@ static int de_thread(struct task_struct *tsk)
12401234
}
12411235

12421236

1237+
/*
1238+
* This function makes sure the current process has its own signal table,
1239+
* so that flush_signal_handlers can later reset the handlers without
1240+
* disturbing other processes. (Other processes might share the signal
1241+
* table via the CLONE_SIGHAND option to clone().)
1242+
*/
12431243
static int unshare_sighand(struct task_struct *me)
12441244
{
12451245
struct sighand_struct *oldsighand = me->sighand;

0 commit comments

Comments
 (0)