commit | 99c787cfd2bd04926f1f553b30bd7dcea2caaba1 | [log] [tgz] |
---|---|---|
author | Li Guifu <bluce.liguifu@huawei.com> | Fri Jul 24 09:38:11 2020 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Thu Jul 23 20:22:42 2020 -0700 |
tree | 702cf9910f1dea29af52ff2117240d70c8ed5797 | |
parent | 68e79baf41f89fcdf9edf9bf3d65a71b667d066c [diff] |
f2fs: fix use-after-free issue 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>