diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2021-09-01 11:23:38 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2021-10-06 11:28:21 -0500 |
commit | d67e03e361619b20c51aaef3b7dd1497617c371d (patch) | |
tree | 1133d040900e3d9956e0ecfcffaa75c2f58a43b5 /mm/oom_kill.c | |
parent | 7e3c4fb7fc19bcf20657de3edb718ec1b26c7df3 (diff) | |
download | linux-d67e03e361619b20c51aaef3b7dd1497617c371d.tar.gz linux-d67e03e361619b20c51aaef3b7dd1497617c371d.tar.bz2 linux-d67e03e361619b20c51aaef3b7dd1497617c371d.zip |
exit: Factor coredump_exit_mm out of exit_mm
Separate the coredump logic from the ordinary exit_mm logic
by moving the coredump logic out of exit_mm into it's own
function coredump_exit_mm.
Link: https://lkml.kernel.org/r/87a6k2x277.fsf@disp2133
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r-- | mm/oom_kill.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 831340e7ad8b..295c8bdfd6c8 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -787,9 +787,9 @@ static inline bool __task_will_free_mem(struct task_struct *task) struct signal_struct *sig = task->signal; /* - * A coredumping process may sleep for an extended period in exit_mm(), - * so the oom killer cannot assume that the process will promptly exit - * and release memory. + * A coredumping process may sleep for an extended period in + * coredump_exit_mm(), so the oom killer cannot assume that + * the process will promptly exit and release memory. */ if (sig->flags & SIGNAL_GROUP_COREDUMP) return false; |