aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/sysfs.c
diff options
context:
space:
mode:
authorGravatar Chao Yu <chao@kernel.org> 2021-12-06 22:44:21 +0800
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2021-12-10 15:48:33 -0800
commit77900c45ee5cd5da63bd4d818a41dbdf367e81cd (patch)
tree48ea8d06618ffb54b87dd5b02407ccc258d04bbb /fs/f2fs/sysfs.c
parentf2fs: fix to avoid panic in is_alive() if metadata is inconsistent (diff)
downloadlinux-77900c45ee5cd5da63bd4d818a41dbdf367e81cd.tar.gz
linux-77900c45ee5cd5da63bd4d818a41dbdf367e81cd.tar.bz2
linux-77900c45ee5cd5da63bd4d818a41dbdf367e81cd.zip
f2fs: fix to do sanity check in is_alive()
In fuzzed image, SSA table may indicate that a data block belongs to invalid node, which node ID is out-of-range (0, 1, 2 or max_nid), in order to avoid migrating inconsistent data in such corrupted image, let's do sanity check anyway before data block migration. Cc: stable@vger.kernel.org Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/sysfs.c')
0 files changed, 0 insertions, 0 deletions