Re: [PATCH v2] ext4: fix infinite loop when replaying fast_commit

From: Theodore Ts'o
Date: Fri Jun 28 2024 - 13:19:54 EST



On Wed, 15 May 2024 09:28:57 +0100, Luis Henriques (SUSE) wrote:
> When doing fast_commit replay an infinite loop may occur due to an
> uninitialized extent_status struct. ext4_ext_determine_insert_hole() does
> not detect the replay and calls ext4_es_find_extent_range(), which will
> return immediately without initializing the 'es' variable.
>
> Because 'es' contains garbage, an integer overflow may happen causing an
> infinite loop in this function, easily reproducible using fstest generic/039.
>
> [...]

Applied, thanks!

[1/1] ext4: fix infinite loop when replaying fast_commit
commit: 907c3fe532253a6ef4eb9c4d67efb71fab58c706

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>