Re: vfs-scale-working: NULL dereference in vfat_cmpi()

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

 



On Wed, Dec 01, 2010 at 05:32:39PM +0100, Sedat Dilek wrote:
> Hi Nick,
> 
> while playing with the vfs-scale-working I discovered besides the
> problem in [1] also a NULL dereference in vfat_cmpi() (see attached
> screenshot).
> 
> This happened when I wanted to copy pics stored on a 256M SDcard
> (plugged into a Transcend USB2-SDcard-adapter for faster reading data)
> to my local harddisk.
> 
> The system was frozen - again a brutal cold start.
> 
> Hope this helps you finding the bug.

Ah it does, thanks. It tried to dereference NULL inode from negative
dentry. First line of vat_cmpi should be parent->d_sb rather than
inode->i_sb.

I think I'll want to tweak the d_compare API change not to pass the
inode in, to avoid this possibility.

Thanks,
Nick
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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