From: "Tom Lanyon" <tomlanyon@gmail.com>
To: "Andrew Morton" <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: runaway loop modprobe binfmt-0000
Date: Mon, 8 Jan 2007 08:49:22 +1030 [thread overview]
Message-ID: <cd32a0620701071419sdc75ad9n348e1e96cc5a8307@mail.gmail.com> (raw)
In-Reply-To: <20070105164249.f79630a0.akpm@osdl.org>
On 1/6/07, Andrew Morton <akpm@osdl.org> wrote:
> On Sat, 6 Jan 2007 09:43:14 +1030
> "Tom Lanyon" <tomlanyon@gmail.com> wrote:
>
> > How can I discover
> > what is trying to load binfmt-0000 and why is it looping?
>
> Start with this, I guess..
>
> --- a/kernel/kmod.c~a
> +++ a/kernel/kmod.c
> @@ -98,10 +98,12 @@ int request_module(const char *fmt, ...)
> atomic_inc(&kmod_concurrent);
> if (atomic_read(&kmod_concurrent) > max_modprobes) {
> /* We may be blaming an innocent here, but unlikely */
> - if (kmod_loop_msg++ < 5)
> + if (kmod_loop_msg++ < 5) {
> printk(KERN_ERR
> "request_module: runaway loop modprobe %s\n",
> module_name);
> + dump_stack();
> + }
> atomic_dec(&kmod_concurrent);
> return -ENOMEM;
> }
> _
>
>
Thanks for the reply, Andrew.
How interesting... added that to kmod.c, rebuilt without change to
config, reboot.... machine booted perfectly!
I'm going to leave it for now, but I'll leave the dump_stack() call in
there in case further issues arise.
Regards
--
Tom Lanyon
next prev parent reply other threads:[~2007-01-07 22:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-05 23:13 Tom Lanyon
2007-01-06 0:42 ` Andrew Morton
2007-01-07 22:19 ` Tom Lanyon [this message]
[not found] <477D26EB.6070008@vnet.ibm.com>
[not found] ` <20080105013023.5c872c79.akpm@linux-foundation.org>
2008-01-06 20:18 ` Tom Gall
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=cd32a0620701071419sdc75ad9n348e1e96cc5a8307@mail.gmail.com \
--to=tomlanyon@gmail.com \
--cc=akpm@osdl.org \
--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®