Re: btrfs device stats /dev/mapper/ext4 SEGV

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

 






On 08/10/2013 09:56 PM, Chris Samuel wrote:
On Sat, 10 Aug 2013 07:07:50 PM Russell Coker wrote:

I can repeatedly get the following SEGV from running "btrfs device stats" on
a  device node for an Ext3/4 filesystem.  This happens with the version of
the code downloaded from the above GIT repository as well as with an older
version.  Obviously the command in question is not going to do anything
useful when run against a non-BTRFS filesystem, but it should do something
other than crash.

The code calls btrfs_read_dev_super() on that filesystem, but it looks like the
checks are failing to detect it as not btrfs.  :-(

I can reproduce the crash here too with ext3 and XFS filesystems.

 There are quite a number of bug similar to this (that was
 reported to the mainling list here, but hard to search now)
 which is all triggered by using the backup super block invariably.


 v6: access to backup superblock
 http://permalink.gmane.org/gmane.comp.file-systems.btrfs/24746

 provided fix. But it needs rebase, if you could
 goback in git this patch might apply nicely for testing.

Thanks, Anand

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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux