Re: [PATCH 0/2] ext4: fix an data corruption issue in nojournal mode

From: Theodore Ts'o

Date: Tue Oct 14 2025 - 22:45:01 EST



On Tue, 16 Sep 2025 17:33:35 +0800, Zhang Yi wrote:
> This series fixes an data corruption issue reported by Gao Xiang in
> nojournal mode. The problem is happened after a metadata block is freed,
> it can be immediately reallocated as a data block. However, the metadata
> on this block may still be in the process of being written back, which
> means the new data in this block could potentially be overwritten by the
> stale metadata and trigger a data corruption issue. Please see below
> discussion with Jan for more details:
>
> [...]

Applied, thanks!

[1/2] jbd2: ensure that all ongoing I/O complete before freeing blocks
commit: 3c652c3a71de1d30d72dc82c3bead8deb48eb749
[2/2] ext4: wait for ongoing I/O to complete before freeing blocks
commit: 328a782cb138029182e521c08f50eb1587db955d

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