Re: [REGRESSION] orangefs: page writeback problem in 6.14 (bisected to 665575cf)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/30/25 13:43, Mike Marshall wrote:
> [ 1991.319111] orangefs_writepage_locked: wr->pos:0: len:4080:
> [ 1991.319450] service_operation: file_write returning: 0 for 0000000018e1923a.
> [ 1991.319457] orangefs_writepage_locked: wr->pos:4080: len:4080:

Is that consistent with an attempt to write 4080 bytes that failed,
returned a 0 and then encountered the WARN_ON()?

While I guess it's possible that userspace might be trying to write
4080 bytes twice, the wr->pos:4080 looks suspicious. Is it possible
that wr->pos inadvertently got set to 4080 during the write _failure_?
Then, the write (aiming to write the beginning of the file) retries
but pos==4080 and not 0.

> [ 1991.319581] Call Trace:
> [ 1991.319583]  <TASK>
...
> [ 1991.319613]  orangefs_launder_folio+0x2e/0x50 [orangefs]
> [ 1991.319619]  orangefs_write_begin+0x87/0x150 [orangefs]
> [ 1991.319624]  generic_perform_write+0x81/0x280
> [ 1991.319627]  generic_file_write_iter+0x5e/0xe0
> [ 1991.319629]  orangefs_file_write_iter+0x44/0x50 [orangefs]
> [ 1991.319633]  vfs_write+0x240/0x410
> [ 1991.319636]  ksys_write+0x52/0xc0
> [ 1991.319638]  do_syscall_64+0x62/0x180
> [ 1991.319640]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
> [ 1991.319643] RIP: 0033:0x7f218b134f44

This is the path I was expecting. Note that my hackish patch will just
lift the old (pre-regression) faulting from generic_file_write_iter()
up to its caller: orangefs_file_write_iter().

So now I'm doubly curious if that also hides the underlying bug.




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux