mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Adrian Bunk <bunk@kernel.org>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>,
	kernel-testers@vger.kernel.org, linux-kernel@vger.kernel.org,
	Kay Sievers <kay.sievers@vrfy.org>,
	Greg Kroah-Hartman <gregkh@suse.de>
Subject: Re: x86_64 panic on latest linux-2.6
Date: Mon, 26 May 2008 09:35:04 +1000	[thread overview]
Message-ID: <18489.63400.560248.222094@notabene.brown> (raw)
In-Reply-To: message from Adrian Bunk on Sunday May 25

On Sunday May 25, bunk@kernel.org wrote:
> On Sun, May 25, 2008 at 10:51:33AM +0200, Mariusz Kozlowski wrote:
> > Hello,
> 
> Hi Mariusz,
> 
> > 	My x86_64 box is not willing to boot.
> > 
> > http://tuxland.pl/tmp/s7300372.jpg (275kB)
> > 
> > (gdb) p blk_lookup_devt
> > $1 = {dev_t (const char *, int)} 0xffffffff8032a430 <blk_lookup_devt>
> > (gdb) l *(0xffffffff8032a430+0x7f)
> > 0xffffffff8032a4af is in blk_lookup_devt (block/genhd.c:664).
> > 659             dev_t devt = MKDEV(0, 0);
> > 660     
> > 661             mutex_lock(&block_class_lock);
> > 662             list_for_each_entry(dev, &block_class.devices, node) {
> > 663                     if (strcmp(dev->bus_id, name) == 0) {
> > 664                             struct gendisk *disk = dev_to_disk(dev);
> > 665     
> > 666                             if (part < disk->minors)
> > 667                                     devt = MKDEV(MAJOR(dev->devt),
> > 668                                                  MINOR(dev->devt) + part);

Having decoded the "Code:", what is happening here is that 'dev' is
clearly not embedded inside a 'disk'.
The address of 'dev' is in RBX and is ffff81007f270010.
disk->minors is at and offset of -0x60 from 'dev' (as 'dev' is assumed
to be a structure embeded in a 'struct gendisk' - dev_to_disk uses
container_of to find the gendisk that holds the device).  But 0x60 from RBX
is in a different page, and presumably that memory doesn't exist.

So the question is: how can a 'struct device' which is not part of
a 'struct gendisk' be on 'block_class.devices'.

Unfortunately, I have no idea.

NeilBrown

  reply	other threads:[~2008-05-25 23:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-25  8:51 Mariusz Kozlowski
2008-05-25 20:42 ` Adrian Bunk
2008-05-25 23:35   ` Neil Brown [this message]
2008-05-26 21:59     ` Mariusz Kozlowski

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=18489.63400.560248.222094@notabene.brown \
    --to=neilb@suse.de \
    --cc=bunk@kernel.org \
    --cc=gregkh@suse.de \
    --cc=kay.sievers@vrfy.org \
    --cc=kernel-testers@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.kozlowski@tuxland.pl \
    /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®