Re: [GIT PULL] UDF and ext2 fixes

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

 



On Fri, Feb 17, 2023 at 3:43 AM Jan Kara <jack@xxxxxxx> wrote:
>
>   * One fix to mpage_writepages() on which other udf fixes depend

I've pulled this, and this doesn't look *wrong* per se, but it really
didn't look like a bug in mpage_writepages() to me.

The bug seems to be clearly in the filesystem not returning a proper
error code from its "->get_block()" function.

If the VFS layer asks for block creation, and the filesystem returns
no error, but then a non-mapped result, that sounds like _clearly_ a
filesystem bug to me.

Blaming mpage_writepages() seems entirely wrong.

The extra sanity check in the vfs layer doesn't strike me as wrong, but ...

Maybe it could have been a WARN_ON_ONCE() if "get_block(.., 1)"
returns success with an unmapped result?

            Linus



[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