From: Sonny Rao <sonny@burdell.org>
To: Nathan Scott <nathans@sgi.com>
Cc: Dave Jones <davej@redhat.com>,
Jan Engelhardt <jengelh@linux01.gwdg.de>, bjd <bjdouma@xs4all.nl>,
linux-kernel@vger.kernel.org, linux-xfs@oss.sgi.com
Subject: Re: kernel oops: trying to mount a corrupted xfs partition (2.6.16-rc3)
Date: Mon, 20 Feb 2006 23:06:20 -0500 [thread overview]
Message-ID: <20060221040620.GA2176@kevlar.burdell.org> (raw)
In-Reply-To: <20060221020447.GB1588@frodo>
On Tue, Feb 21, 2006 at 01:04:47PM +1100, Nathan Scott wrote:
> On Mon, Feb 20, 2006 at 02:09:16AM -0500, Sonny Rao wrote:
> > On Sun, Feb 19, 2006 at 04:52:09PM -0500, Dave Jones wrote:
> > <snip>
> > > Just for kicks, I just hacked this up..
> > >
> > > #!/bin/bash
> > > wget http://www.digitaldwarf.be/products/mangle.c
> > > gcc mangle.c -o mangle
> > >
> > > dd if=/dev/zero of=data.img count=70000
> > >
> > > while [ 1 ];
> > > do
> > > mkfs.xfs -f data.img >/dev/null
> > > ./mangle data.img $RANDOM
> > > sudo mount -t xfs data.img mntpt -o loop
> > > sudo ls -R mntpt
> > > sudo umount mntpt
> > > done
> > ...
> > >
> > > xfs wins the award for 'noisiest fs in the face of corruption' :-)
> > > After a few dozen backtraces from xfs_corruption_error,
> > > this fell out...
> > >
> > > divide error: 0000 [1] SMP
> > <snip trace>
> >
> > > (The kernel is based on 2.6.16rc4)
> >
> > I see a similar breakage (divide error) on x86 using 2.6.15
>
> From a quick look at the image you sent me Sonny, I guess this is
> the same problem Dave was seeing too -- a divide by zero when we're
> working out some of the per-mount constants during mount(2). There
> is probably one or two other superblock fields that could use more
> verification, but this will do for now.
yep, this patch fixes it
Sonny
prev parent reply other threads:[~2006-02-21 4:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-16 18:36 bjd
2006-02-16 19:31 ` Nathan Scott
2006-02-17 16:54 ` Jan Engelhardt
2006-02-19 21:29 ` Nathan Scott
2006-02-19 21:52 ` Dave Jones
2006-02-20 7:09 ` Sonny Rao
2006-02-20 7:21 ` Hans Reiser
2006-02-20 16:41 ` Sonny Rao
2006-02-20 17:11 ` Sonny Rao
2006-02-21 2:04 ` Nathan Scott
2006-02-21 4:06 ` Sonny Rao [this message]
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=20060221040620.GA2176@kevlar.burdell.org \
--to=sonny@burdell.org \
--cc=bjdouma@xs4all.nl \
--cc=davej@redhat.com \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@oss.sgi.com \
--cc=nathans@sgi.com \
/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
all inboxes | Powered by JetHome®