linux/fs/f2fs
Chao Yu fcc2d8cc96 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>
2022-10-04 13:31:44 -07:00
..
acl.c f2fs: port to vfs{g,u}id_t and associated helpers 2022-10-04 13:31:43 -07:00
acl.h
checkpoint.c f2fs: fix to account FS_CP_DATA_IO correctly 2022-10-04 13:31:44 -07:00
compress.c f2fs: remove redundant check in f2fs_sanity_check_cluster 2022-10-04 13:31:42 -07:00
data.c f2fs: fix to account FS_CP_DATA_IO correctly 2022-10-04 13:31:44 -07:00
debug.c f2fs: code clean and fix a type error 2022-10-04 13:31:44 -07:00
dir.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
extent_cache.c f2fs: code clean and fix a type error 2022-10-04 13:31:44 -07:00
f2fs.h f2fs: fix to account FS_CP_DATA_IO correctly 2022-10-04 13:31:44 -07:00
file.c f2fs: code clean and fix a type error 2022-10-04 13:31:44 -07:00
gc.c f2fs: fix to do sanity check on summary info 2022-10-04 13:31:43 -07:00
gc.h f2fs: remove redundant code for gc condition 2022-07-30 20:16:20 -07:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: use memcpy_{to,from}_page() where possible 2022-08-29 21:15:51 -07:00
inode.c f2fs: fix to detect corrupted meta ino 2022-10-04 13:31:44 -07:00
iostat.c f2fs: iostat: support accounting compressed IO 2022-08-29 21:15:51 -07:00
iostat.h f2fs: iostat: support accounting compressed IO 2022-08-29 21:15:51 -07:00
Kconfig f2fs: introduce F2FS_UNFAIR_RWSEM to support unfair rwsem 2022-03-04 09:15:53 -08:00
Makefile
namei.c f2fs: attach inline_data after setting compression 2022-06-19 15:16:10 -07:00
node.c f2fs: code clean and fix a type error 2022-10-04 13:31:44 -07:00
node.h f2fs: change the current atomic write way 2022-05-12 10:14:03 -07:00
recovery.c f2fs: fix to do sanity check on summary info 2022-10-04 13:31:43 -07:00
segment.c f2fs: fix to account FS_CP_DATA_IO correctly 2022-10-04 13:31:44 -07:00
segment.h f2fs: adjust zone capacity when considering valid block count 2022-07-30 20:16:20 -07:00
shrinker.c
super.c f2fs: increase the limit for reserve_root 2022-09-12 23:08:21 -07:00
sysfs.c f2fs: remove gc_urgent_high_limited for cleanup 2022-08-29 21:15:51 -07:00
verity.c f2fs: use memcpy_{to,from}_page() where possible 2022-08-29 21:15:51 -07:00
xattr.c
xattr.h