All of lore.kernel.org
 help / color / mirror / Atom feed
* [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored
@ 2026-12-04 11:24 Thorsten Leemhuis
  2026-12-05 22:53 ` Senjin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thorsten Leemhuis @ 2026-12-04 11:24 UTC (permalink / raw)
  To: Konstantin Komarov, Linus Torvalds
  Cc: ntfs3, linux-kernel, Marcin Mennemann, Linux-fsdevel,
	Linux kernel regressions list, Christian Brauner, Senjin

Hi Linus!

SEEK_DATA/SEEK_HOLE is apparently broken in ntfs3 for WOF compressed and
dedup files since c6132696772839 ("fs/ntfs3: implement llseek
SEEK_DATA/SEEK_HOLE by scanning data runs") [v7.0-rc1]. Marcin Mennemann
and Senjin (both CCed) both reported this in October and provided fixes:
https://lore.kernel.org/all/20261005223318.19303-1-marcin@mennemann.net/
https://lore.kernel.org/ntfs3/6adc95fc26efdd1658b01fc5@mailersend.net/

Neither afaics got a reply from the maintainer Konstantin Komarov -- who
should have seen it, as Konstantin added a bunch of changes to next
during November. A prodding from Marcin didn't help either:
https://lore.kernel.org/ntfs3/20261122144302.32486-1-marcin@mennemann.net/

It's been broken a few months now, so it's not totally urgent; but OTOH
it's not an ancient regression, and users tend to be somewhat upset when
a file they expect to find data in is shown as empty. So I thought I'd
at least tell you about this, maybe some prodding from your side might
help -- or maybe you (or Christian, who's CCed) might know somebody who
can evaluate if those changes are safe to merge.

Ciao, Thorsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored
  2026-12-04 11:24 [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored Thorsten Leemhuis
  2026-12-05 22:53 ` Senjin
  2026-12-05 22:53 ` Senjin
@ 2026-12-05 22:53 ` Senjin
  2026-12-05 22:53 ` Senjin
  3 siblings, 0 replies; 5+ messages in thread
From: Senjin @ 2026-12-05 22:53 UTC (permalink / raw)
  To: Thorsten Leemhuis
  Cc: Konstantin Komarov, Linus Torvalds, ntfs3, linux-kernel,
	Marcin Mennemann, linux-fsdevel, regressions, Christian Brauner

(Resending as plain text, my first reply was rejected by the lists
for containing HTML. Sorry for the duplicate.)

Hi Thorsten, all,

Thanks for picking this up. Marcin's patch is the better fix of the
two: it is smaller, handles the case in ntfs_llseek() by falling back
to generic_file_llseek_size() as before the regression, and also
covers deduplicated files, which mine does not. Please consider my
patch [1] superseded by his.

I tested it on 7.3.7 against WOF compressed files on an NTFS data
volume: without a fix SEEK_DATA returns -ENXIO and cp produces
all-zero copies; with Marcin's patch SEEK_DATA/SEEK_HOLE return 0 and
i_size, and cp copies match a plain read byte for byte. A regular
uncompressed file behaves the same either way.

Tested-by: Senjin <senjin@hatchling.org>

[1] https://lore.kernel.org/ntfs3/6adc95fc26efdd1658b01fc5@mailersend.net/

Thanks,
Senjin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored
  2026-12-04 11:24 [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored Thorsten Leemhuis
                   ` (2 preceding siblings ...)
  2026-12-05 22:53 ` Senjin
@ 2026-12-05 22:53 ` Senjin
  3 siblings, 0 replies; 5+ messages in thread
From: Senjin @ 2026-12-05 22:53 UTC (permalink / raw)
  To: Thorsten Leemhuis
  Cc: Konstantin Komarov, Linus Torvalds, ntfs3, linux-kernel,
	Marcin Mennemann, linux-fsdevel, regressions, Christian Brauner

(Resending as plain text, my first reply was rejected by the lists
for containing HTML. Sorry for the duplicate.)

Hi Thorsten, all,

Thanks for picking this up. Marcin's patch is the better fix of the
two: it is smaller, handles the case in ntfs_llseek() by falling back
to generic_file_llseek_size() as before the regression, and also
covers deduplicated files, which mine does not. Please consider my
patch [1] superseded by his.

I tested it on 7.3.7 against WOF compressed files on an NTFS data
volume: without a fix SEEK_DATA returns -ENXIO and cp produces
all-zero copies; with Marcin's patch SEEK_DATA/SEEK_HOLE return 0 and
i_size, and cp copies match a plain read byte for byte. A regular
uncompressed file behaves the same either way.

Tested-by: Senjin <senjin@hatchling.org>

[1] https://lore.kernel.org/ntfs3/6adc95fc26efdd1658b01fc5@mailersend.net/

Thanks,
Senjin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored
  2026-12-04 11:24 [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored Thorsten Leemhuis
  2026-12-05 22:53 ` Senjin
@ 2026-12-05 22:53 ` Senjin
  2026-12-05 22:53 ` Senjin
  2026-12-05 22:53 ` Senjin
  3 siblings, 0 replies; 5+ messages in thread
From: Senjin @ 2026-12-05 22:53 UTC (permalink / raw)
  To: Thorsten Leemhuis
  Cc: Konstantin Komarov, Linus Torvalds, ntfs3, linux-kernel,
	Marcin Mennemann, linux-fsdevel, regressions, Christian Brauner

(Resending as plain text, my first reply was rejected by the lists
for containing HTML. Sorry for the duplicate.)

Hi Thorsten, all,

Thanks for picking this up. Marcin's patch is the better fix of the
two: it is smaller, handles the case in ntfs_llseek() by falling back
to generic_file_llseek_size() as before the regression, and also
covers deduplicated files, which mine does not. Please consider my
patch [1] superseded by his.

I tested it on 7.3.7 against WOF compressed files on an NTFS data
volume: without a fix SEEK_DATA returns -ENXIO and cp produces
all-zero copies; with Marcin's patch SEEK_DATA/SEEK_HOLE return 0 and
i_size, and cp copies match a plain read byte for byte. A regular
uncompressed file behaves the same either way.

Tested-by: Senjin <senjin@hatchling.org>

[1] https://lore.kernel.org/ntfs3/6adc95fc26efdd1658b01fc5@mailersend.net/

Thanks,
Senjin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored
  2026-12-04 11:24 [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored Thorsten Leemhuis
@ 2026-12-05 22:53 ` Senjin
  2026-12-05 22:53 ` Senjin
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Senjin @ 2026-12-05 22:53 UTC (permalink / raw)
  To: Thorsten Leemhuis
  Cc: Konstantin Komarov, Linus Torvalds, ntfs3, linux-kernel,
	Marcin Mennemann, linux-fsdevel, regressions, Christian Brauner

(Resending as plain text, my first reply was rejected by the lists
for containing HTML. Sorry for the duplicate.)

Hi Thorsten, all,

Thanks for picking this up. Marcin's patch is the better fix of the
two: it is smaller, handles the case in ntfs_llseek() by falling back
to generic_file_llseek_size() as before the regression, and also
covers deduplicated files, which mine does not. Please consider my
patch [1] superseded by his.

I tested it on 7.3.7 against WOF compressed files on an NTFS data
volume: without a fix SEEK_DATA returns -ENXIO and cp produces
all-zero copies; with Marcin's patch SEEK_DATA/SEEK_HOLE return 0 and
i_size, and cp copies match a plain read byte for byte. A regular
uncompressed file behaves the same either way.

Tested-by: Senjin <senjin@hatchling.org>

[1] https://lore.kernel.org/ntfs3/6adc95fc26efdd1658b01fc5@mailersend.net/

Thanks,
Senjin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-05 22:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 11:24 [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored Thorsten Leemhuis
2026-12-05 22:53 ` Senjin
2026-12-05 22:53 ` Senjin
2026-12-05 22:53 ` Senjin
2026-12-05 22:53 ` Senjin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.