Re: [syzbot] [fs?] WARNING in minix_unlink

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

 



On Sun, Nov 24, 2024 at 11:41:01AM -0800, syzbot wrote:
> Hello,
> 
> syzbot has tested the proposed patch but the reproducer is still triggering an issue:
> WARNING in minix_unlink

Predictably, since the warning has nothing to do with marking an unchanged
buffer dirty...

What happens there is that on a badly corrupt image we have an on-disk
inode with link count below the actual number of links.  And after
unlinks remove enough of those to drive the link count to 0, inode
is freed.  After that point, all remaining links are pointing to a freed
on-disk inode, which is discovered when they need to decrement of link
count that is already 0.  Which does deserve a warning, probably without
a stack trace.

There's nothing the kernel can do about that, short of scanning the entire
filesystem at mount time and verifying that link counts are accurate...




[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