ext4: mark the group block bitmap as corrupted before reporting an error
authorBaokun Li <libaokun1@huawei.com>
Thu, 4 Jan 2024 14:20:40 +0000 (22:20 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 18 Jan 2024 15:50:24 +0000 (10:50 -0500)
commitc5f3a3821de42ede9bcaeb892d1539717cf590cb
treedd9bd11ef5bab9a1316a3417d6ffd0f74a91782b
parent832698373a25950942c04a512daa652c18a9b513
ext4: mark the group block bitmap as corrupted before reporting an error

Otherwise unlocking the group in ext4_grp_locked_error may allow other
processes to modify the core block bitmap that is known to be corrupt.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240104142040.2835097-9-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c