diff options
author | Chao Yu <chao@kernel.org> | 2022-09-13 09:48:12 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-10-04 22:31:44 +0200 |
commit | fcc2d8cc96b2f6141bbbe5b1e8953db990794b44 (patch) | |
tree | 83d253986d03421ea4e54c1a124c6e9deffa4a1a /Documentation | |
parent | f2fs: fix to account FS_CP_DATA_IO correctly (diff) | |
download | linux-fcc2d8cc96b2f6141bbbe5b1e8953db990794b44.tar.xz linux-fcc2d8cc96b2f6141bbbe5b1e8953db990794b44.zip |
f2fs: fix to detect corrupted meta ino
It is possible that ino of dirent or orphan inode is corrupted in a
fuzzed image, occasionally, if corrupted ino is equal to meta ino:
meta_ino, node_ino or compress_ino, caller of f2fs_iget() from below
call paths will get meta inode directly, it's not allowed, let's
add sanity check to detect such cases.
case #1
- recover_dentry
- __f2fs_find_entry
- f2fs_iget_retry
case #2
- recover_orphan_inode
- f2fs_iget_retry
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions