From: Neil Brown <neilb@suse.de>
To: Dave Jones <davej@redhat.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.25 md oops during boot.
Date: Thu, 5 Jun 2008 09:12:02 +1000 [thread overview]
Message-ID: <18503.8514.710121.995152@notabene.brown> (raw)
In-Reply-To: message from Dave Jones on Wednesday June 4
On Wednesday June 4, davej@redhat.com wrote:
> Hi Neil,
> Here's an odd one.
> https://bugzilla.redhat.com/show_bug.cgi?id=442204
>
> Slightly old (.25-rc8-git7), but I don't recall anything changing between
> then and .25 final that could explain this.
>
> Dave
Hi Dave.
Yes, Odd.
It appear that sysfs_addrm_start is being called with parent_sd == NULL.
That implies that sysfs_create_dir is being given a kobj where
->parent is non-NULL, and ->parent->sd is NULL.
So kobject_add is being given a parent with a NULL ->sd.
So in bind_rdev_to_array, mddev->kobj.sd is NULL.
So in md_probe, either kobject_init_and_add is failing
to set up ->sd properly (which should result in an error message
"md: cannot register md0/md - name in use"
) or alloc_disk is failing.
The most likely scenario is that alloc_disk is failing, so the
md_probe call in autorun_devices (line 3804 of md.c) fails.
The following mddev_find creates a new mddev which is not properly
initialised and gets used.
I wouldn't say this is a likely scenario as it requires (I think)
kmalloc failure very early in boot. But I cannot see any other
possible cause.
I'll see about getting the error paths handled better.
NeilBrown
next prev parent reply other threads:[~2008-06-04 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-04 15:41 2.6.25 md oops during boot Dave Jones
2008-06-04 23:12 ` Neil Brown [this message]
2008-06-04 23:29 ` Neil Brown
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=18503.8514.710121.995152@notabene.brown \
--to=neilb@suse.de \
--cc=davej@redhat.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