From: Eric W. Biederman <hidden> Date: 2020-03-08 21:39:19
These functions have very little to do with de_thread move them out
of de_thread an into flush_old_exec proper so it can be more clearly
seen what flush_old_exec is doing.
Signed-off-by: "Eric W. Biederman" <redacted>
---
fs/exec.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
These functions have very little to do with de_thread move them out
of de_thread an into flush_old_exec proper so it can be more clearly
seen what flush_old_exec is doing.
Signed-off-by: "Eric W. Biederman" <redacted>
From: Christian Brauner <hidden> Date: 2020-03-09 19:59:57
On Sun, Mar 08, 2020 at 04:36:55PM -0500, Eric W. Biederman wrote:
quoted hunk
These functions have very little to do with de_thread move them out
of de_thread an into flush_old_exec proper so it can be more clearly
seen what flush_old_exec is doing.
Signed-off-by: "Eric W. Biederman" <redacted>
---
fs/exec.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
@@ -1189,11 +1189,6 @@ static int de_thread(struct task_struct *tsk)
While you're cleaning up de_thread() wouldn't it be good to also take
the opportunity and remove the task argument from de_thread(). It's only
ever used with current. Could be done in one of your patches or as a
separate patch.
On Sun, Mar 08, 2020 at 04:36:55PM -0500, Eric W. Biederman wrote:
quoted hunk
These functions have very little to do with de_thread move them out
of de_thread an into flush_old_exec proper so it can be more clearly
seen what flush_old_exec is doing.
Signed-off-by: "Eric W. Biederman" <redacted>
---
fs/exec.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
@@ -1189,11 +1189,6 @@ static int de_thread(struct task_struct *tsk)/* we have changed execution domain */tsk->exit_signal=SIGCHLD;-#ifdef CONFIG_POSIX_TIMERS-exit_itimers(sig);-flush_itimer_signals();-#endif-BUG_ON(!thread_group_leader(tsk));return0;
@@ -1277,6 +1272,11 @@ int flush_old_exec(struct linux_binprm * bprm)if(retval)gotoout;+#ifdef CONFIG_POSIX_TIMERS+exit_itimers(me->signal);+flush_itimer_signals();+#endif+
I twitch at seeing #ifdefs in .c instead of hidden in the .h declarations
of these two functions, but as this is a copy/paste, I'll live. ;)
Reviewed-by: Kees Cook <redacted>
-Kees
On Sun, Mar 8, 2020 at 10:39 PM Eric W. Biederman [off-list ref] wrote:
quoted hunk
These functions have very little to do with de_thread move them out
of de_thread an into flush_old_exec proper so it can be more clearly
seen what flush_old_exec is doing.
Signed-off-by: "Eric W. Biederman" <redacted>
---
fs/exec.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
From: Christian Brauner <hidden> Date: 2020-03-10 21:23:34
On Sun, Mar 08, 2020 at 04:36:55PM -0500, Eric W. Biederman wrote:
These functions have very little to do with de_thread move them out
of de_thread an into flush_old_exec proper so it can be more clearly
seen what flush_old_exec is doing.
Signed-off-by: "Eric W. Biederman" <redacted>