linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Samuel <chris@csamuel.org>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs device stats /dev/mapper/ext4 SEGV
Date: Sat, 10 Aug 2013 23:56:06 +1000	[thread overview]
Message-ID: <1384122.xvVNAvLv2n@quad> (raw)
In-Reply-To: <201308101907.50539.russell@coker.com.au>

[-- Attachment #1: Type: text/plain, Size: 847 bytes --]

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.

-- 
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC

This email may come with a PGP signature as a file. Do not panic.
For more info see: http://en.wikipedia.org/wiki/OpenPGP

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 482 bytes --]

  reply	other threads:[~2013-08-10 13:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-10  9:07 btrfs device stats /dev/mapper/ext4 SEGV Russell Coker
2013-08-10 13:56 ` Chris Samuel [this message]
2013-08-12  2:55   ` Anand Jain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384122.xvVNAvLv2n@quad \
    --to=chris@csamuel.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).