The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [REGRESSION] ext4: silent data loss when a split at I/O completion gets ENOSPC
@ 2026-11-16  2:27 Jose Fernandez (Anthropic)
  0 siblings, 0 replies; only message in thread
From: Jose Fernandez (Anthropic) @ 2026-11-16  2:27 UTC (permalink / raw)
  To: Theodore Ts'o, Zhang Yi
  Cc: Jan Kara, Baokun Li, Ojaswin Mujoo, Andreas Dilger,
	Ritesh Harjani (IBM), guolingxing, Josef Bacik, Chris Mason,
	linux-ext4, linux-kernel, regressions

Ojaswin's cover letter [1] explains how, since commit ea96cb5c4ae3
("ext4: don't split extent before submitting I/O"), the split of an
unwritten extent at I/O completion can get ENOSPC. [1] stops the zeroout
from hitting other writes in flight, and [2] reports the failed
conversion to fsync(). Neither gives the split its block, so data is
still lost.

LLM agents working with me found that it happens with default options
on a filesystem that is not full, and ran the tests. write() and fsync()
return success, and after the pages are evicted part of the file reads
back as zeros.

Under a load built to run the allocator dry (QEMU without KVM), 42 of
72 files lost data at ea96cb5c4ae3, none of 72 at its parent and none
of 48 on v6.18.63. On mainline at 23c62304dde2 32 of 72 did. With [1]
rebased on it 42 of 72 still did, now as failed conversions in dmesg.
With [1] and [2] fsync() failed with ENOSPC on 47 of 72, and the other
25 read back intact.

Nothing our agents have tried fixes it fully. I'm reporting this so you
are aware of the regression since v7.0. A reproducer is available to the
maintainers off-list.

[1] https://lore.kernel.org/linux-ext4/20261102-ext4-endio-zero-bug-v1-0-266d2bb9e6dc@linux.ibm.com/
[2] https://lore.kernel.org/linux-ext4/20261101102145.647496-1-guolingxing@tju.edu.cn/

#regzbot introduced: ea96cb5c4ae3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-16  2:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16  2:27 [REGRESSION] ext4: silent data loss when a split at I/O completion gets ENOSPC Jose Fernandez (Anthropic)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox