]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
exit/exec: Seperate mm_release()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Nov 2019 21:55:38 +0000 (22:55 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:47 +0000 (14:21 -0300)
commit0c10e4b67b49f221dc5e1511779b532b72b6fb1e
treec8b7a8871513ecd2f2890b5d365b2ff61f8d72bf
parent37ad901716afcfa61893e11a9a70a5964fd864ac
exit/exec: Seperate mm_release()

BugLink: https://bugs.launchpad.net/bugs/1855787
commit 4610ba7ad877fafc0a25a30c6c82015304120426 upstream.

mm_release() contains the futex exit handling. mm_release() is called from
do_exit()->exit_mm() and from exec()->exec_mm().

In the exit_mm() case PF_EXITING and the futex state is updated. In the
exec_mm() case these states are not touched.

As the futex exit code needs further protections against exit races, this
needs to be split into two functions.

Preparatory only, no functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20191106224556.240518241@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/exec.c
include/linux/sched/mm.h
kernel/exit.c
kernel/fork.c