mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Cédric Augonnet" <cedric.augonnet@gmail.com>
To: "Bill Davidsen" <davidsen@tmr.com>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
	"Daniel Aragones" <danarag@gmail.com>,
	linux-kernel@vger.kernel.org, Cedric.augonnet@ens-lyon.org
Subject: Re: 2.6.20-mm1 - Oops using Minix 3 file system
Date: Sat, 17 Feb 2007 21:01:32 +0100	[thread overview]
Message-ID: <f56c1ba00702171201y1e4ea025t510e4d4e7dbcf3b2@mail.gmail.com> (raw)
In-Reply-To: <45D75A1F.8060504@tmr.com>

2007/2/17, Bill Davidsen <davidsen@tmr.com>:
> Cédric Augonnet wrote:
> >
> > Hi Daniel,
> >
> > On 2.6.20-rc6-mm3 and 2.6.20-mm1, i get an OOPS when using the minix 3
> > file system. I enclose the dmesg and the .config to that mail.
> >
> > Here are the steps to reproduce this oops (they involve using qemu to
> > run Minix 3)
> > - First create a 2GB image using
> >      qemu-img create minix.img 2G
> >   (Please note that this seem to be producing an eroneous image)
> > - Then launch Minix inside qemu to make a minix partition on this
> > image using mkfs on the corresponding device.
>
> That's two steps, right? First you make a partition on the "disk" qemu
> provides, then you put a filesystem on the partition? Or did you put a
> filesystem on the raw device?
>

Yes, i first create a RAW image of a disk. Then, i use this image file
as an image given to qemu. Inside qemu, running Minix i issue mkfs
/dev/c0d1 (this is corresponding to this image).


> > - Mount the image on loopback using
> >  mount -t minix -o loop minix.img /mnt/qemu/
>
> Does mount know to use Minux3 with this command line?
>

Well at least it is yet allowing to do so. And most things work like hell.

> > - issue a "df" command on /mnt/qemu
> >
> > This oops occurs everytime i use df on this directory. However, this
> > does not occur if the image was for a 1MB partition. And it does not
> > occur if the partition on which we created minix.img was the same as
> > the partition on which qemu stands. Sounds like qemu has an issue and
> > creates an erroneous partition which linux does not handle correctly.
> >
> > Regards, and thanks for your patch by the way !
>
> Having been burned a few times by the fact that qemu provides disk
> images which then (normally) get partitions, I'm not sure you aren't
> having the same problem.
>
> None of which justifies the OOPS, of course, nice kernels don't go down.
>

That is my all point actually, i am not telling i have a valid
partition. I'm just describing the fact that the minix fs driver is
making too many assumptions on the partition it is given. For sure
there must be something nasty about this image, as you told this is
the duty of the kernel not to mount such a partition if it is not a
partition. Here I was only giving an example of the way we could trick
the driver. This is as important as having the driver working
correctly on valid partitions i suppose.

> --
> Bill Davidsen <davidsen@tmr.com>
>    "We have more to fear from the bungling of the incompetent than from
> the machinations of the wicked."  - from Slashdot
>

Regards,
Cédric

  reply	other threads:[~2007-02-17 20:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-16 23:00 Cédric Augonnet
2007-02-17 10:55 ` Daniel Aragonés
2007-02-17 13:51   ` Cédric Augonnet
2007-02-17 16:44     ` Daniel Aragonés
2007-02-17 17:53       ` Cédric Augonnet
2007-02-17 18:49         ` Daniel Aragonés
2007-02-17 19:40 ` Bill Davidsen
2007-02-17 20:01   ` Cédric Augonnet [this message]
2007-02-18 10:42     ` Cédric Augonnet

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=f56c1ba00702171201y1e4ea025t510e4d4e7dbcf3b2@mail.gmail.com \
    --to=cedric.augonnet@gmail.com \
    --cc=Cedric.augonnet@ens-lyon.org \
    --cc=akpm@linux-foundation.org \
    --cc=danarag@gmail.com \
    --cc=davidsen@tmr.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®