]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix potential htree corruption when growing large_dir directories
authorTheodore Ts'o <tytso@mit.edu>
Wed, 4 Aug 2021 18:23:55 +0000 (14:23 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 Aug 2021 17:00:49 +0000 (13:00 -0400)
commitb99bc3403cd4ea32d828dcdd0940fc5b4a488f26
tree328a762b42f428b120c842d85e49a83618265789
parentc75d8559b92199409dd9d09f56fa208cf1fbf6e6
ext4: fix potential htree corruption when growing large_dir directories

Commit fa8bce13f180 ("ext4: fix potential htree index checksum
corruption) removed a required restart when multiple levels of index
nodes need to be split.  Fix this to avoid directory htree corruptions
when using the large_dir feature.

Cc: stable@kernel.org # v5.11
Cc: Благодаренко Артём <artem.blagodarenko@gmail.com>
Fixes: fa8bce13f180 ("ext4: fix potential htree index checksum corruption)
Reported-by: Denis <denis@voxelsoft.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c