Li Guifu 45e30390f5 f2fs: fix use-after-free issue
[ Upstream commit 99c787cfd2bd04926f1f553b30bd7dcea2caaba1 ]

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
..
2019-05-08 21:23:11 -07:00
2018-09-12 13:07:10 -07:00
2020-03-05 16:43:48 +01:00
2018-09-12 13:07:10 -07:00
2019-08-12 19:33:51 -07:00
2020-09-03 11:26:46 +02:00
2020-02-24 08:36:53 +01:00
2018-09-12 13:07:10 -07:00
2019-08-12 19:33:51 -07:00
2019-08-12 19:33:51 -07:00