aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorBaokun Li <[email protected]>2024-08-22 10:35:22 +0800
committerTheodore Ts'o <[email protected]>2024-09-03 22:12:16 -0400
commit3e8a584c82cc999b99ea17c31fc2da101201545f (patch)
tree05dc3408262d27639dec41d5e25132d8c29d94a0 /lib/crypto/mpi/mpi-sub-ui.c
parentedfa71dbe841075109e3e1da7d3925b45328ed25 (diff)
ext4: prevent partial update of the extents path
In ext4_ext_rm_idx() and ext4_ext_correct_indexes(), there is no proper rollback of already executed updates when updating a level of the extents path fails, so we may get an inconsistent extents tree, which may trigger some bad things in errors=continue mode. Hence clear the verified bit of modified extents buffers if the tree fails to be updated in ext4_ext_rm_idx() or ext4_ext_correct_indexes(), which forces the extents buffers to be checked in ext4_valid_extent_entries(), ensuring that the extents tree is consistent. Signed-off-by: zhanchengbin <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Baokun Li <[email protected]> Reviewed-by: Jan Kara <[email protected]> Reviewed-by: Ojaswin Mujoo <[email protected]> Tested-by: Ojaswin Mujoo <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions