diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2019-12-05 03:49:59 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-05 06:44:11 +0300 |
commit | e06689bf57017ac022ccf0f2a5071f760821ce0f (patch) | |
tree | aa9df3db0c69d35019a5436fb78e205d53e8e7e3 /block/blk-settings.c | |
parent | 3cde287bb4769fe9dfc9c532ddc88d90e81bc4c5 (diff) | |
download | linux-e06689bf57017ac022ccf0f2a5071f760821ce0f.tar.xz |
proc: change ->nlink under proc_subdir_lock
Currently gluing PDE into global /proc tree is done under lock, but
changing ->nlink is not. Additionally struct proc_dir_entry::nlink is
not atomic so updates can be lost.
Link: http://lkml.kernel.org/r/20190925202436.GA17388@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/blk-settings.c')
0 files changed, 0 insertions, 0 deletions