linux/fs/f2fs
Li Guifu 45e30390f5 f2fs: fix use-after-free issue
[ Upstream commit 99c787cfd2 ]

During umount, f2fs_put_super() unregisters procfs entries after
f2fs_destroy_segment_manager(), it may cause use-after-free
issue when umount races with procfs accessing, fix it by relocating
f2fs_unregister_sysfs().

[Chao Yu: change commit title/message a bit]

Signed-off-by: Li Guifu <bluce.liguifu@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-03 11:26:46 +02:00
..
Kconfig
Makefile
acl.c
acl.h
checkpoint.c f2fs: don't return vmalloc() memory from f2fs_kmalloc() 2020-06-24 17:50:41 +02:00
data.c
debug.c
dir.c f2fs: avoid utf8_strncasecmp() with unstable name 2020-06-24 17:50:50 +02:00
extent_cache.c
f2fs.h f2fs: fix error path in do_recover_data() 2020-09-03 11:26:45 +02:00
file.c
gc.c
gc.h
hash.c
inline.c f2fs: fix error path in do_recover_data() 2020-09-03 11:26:45 +02:00
inode.c
namei.c
node.c f2fs: fix error path in do_recover_data() 2020-09-03 11:26:45 +02:00
node.h
recovery.c f2fs: fix error path in do_recover_data() 2020-09-03 11:26:45 +02:00
segment.c
segment.h
shrinker.c
super.c f2fs: fix use-after-free issue 2020-09-03 11:26:46 +02:00
sysfs.c
trace.c
trace.h
verity.c
xattr.c
xattr.h