diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2015-04-16 21:49:18 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 15:04:11 +0200 |
commit | d4144ea6e7cc307e84cd9ca227df7b04a54a2365 (patch) | |
tree | a12d8c0df4e50b5b307cc2d77d5f870ed7042dba /fs/binfmt_misc.c | |
parent | powerpc/oprofile: reduce mmap_sem hold for exe_file (diff) | |
download | linux-d4144ea6e7cc307e84cd9ca227df7b04a54a2365.tar.xz linux-d4144ea6e7cc307e84cd9ca227df7b04a54a2365.zip |
tomoyo: reduce mmap_sem hold for mm->exe_file
The mm->exe_file is currently serialized with mmap_sem (shared) in order
to both safely (1) read the file and (2) compute the realpath by calling
tomoyo_realpath_from_path, making it an absolute overkill. Good users
will, on the other hand, make use of the more standard get_mm_exe_file(),
requiring only holding the mmap_sem to read the value, and relying on
reference
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_misc.c')
0 files changed, 0 insertions, 0 deletions