Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prctl: PR_SET_MM -- factor out mmap_sem when updating mm::exe_file
Instead of taking mm->mmap_sem inside prctl_set_mm_exe_file() move it out and rename the helper to prctl_set_mm_exe_file_locked(). This will allow to reuse this function in a next patch. Signed-off-by: Cyrill Gorcunov <[email protected]> Cc: Kees Cook <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Andrew Vagin <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: H. Peter Anvin <[email protected]> Acked-by: Serge Hallyn <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Vasiliy Kulikov <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Julien Tinnes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information