ext4: check for out-of-order index extents in ext4_valid_extent_entries()
After commit 5946d089 ("ext4: check for overlapping extents in ext4_valid_extent_entries()"), we can check out the overlapping extent entry in leaf extent blocks. But the out-of-order extent entry in index extent blocks could also trigger bad things if the filesystem is inconsistent. So this patch add a check to figure out the out-of-order index extents and return error. Signed-off-by:Zhang Yi <yi.zhang@huawei.com> Reviewed-by:
Theodore Ts'o <tytso@mit.edu> Link: https://lore.kernel.org/r/20210908120850.4012324-2-yi.zhang@huawei.comSigned-off-by:
Theodore Ts'o <tytso@mit.edu>
Showing
Please register or sign in to comment