Re: runaway loop modprobe binfmt-0000

From: Tom Lanyon
Date: Sun Jan 07 2007 - 17:19:42 EST

On 1/6/07, Andrew Morton <akpm@xxxxxxxx> wrote:
On Sat, 6 Jan 2007 09:43:14 +1030
"Tom Lanyon" <tomlanyon@xxxxxxxxx> 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, ...)
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) {
"request_module: runaway loop modprobe %s\n",
+ dump_stack();
+ }
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.


Tom Lanyon
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at