Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965226AbXAGWTY (ORCPT ); Sun, 7 Jan 2007 17:19:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965227AbXAGWTY (ORCPT ); Sun, 7 Jan 2007 17:19:24 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]:13839 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965226AbXAGWTX (ORCPT ); Sun, 7 Jan 2007 17:19:23 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gL/BiqW5NaMfGq/g3AbXbWXDx8P3BC51k3hjEvo1cBvPzJ4/T4Ll6V4do5PKLApHIgkfXr933zRfkWGCZEUnl9cL8IQ0FLOyYXaS7kIk09+Jt+G6RzFWoTp/jRq6XmkYeJHs4wQO3tzUTMY45USu2OTfyPQd4C/Fgj+LtaASgds= Message-ID: Date: Mon, 8 Jan 2007 08:49:22 +1030 From: "Tom Lanyon" To: "Andrew Morton" , linux-kernel@vger.kernel.org Subject: Re: runaway loop modprobe binfmt-0000 In-Reply-To: <20070105164249.f79630a0.akpm@osdl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070105164249.f79630a0.akpm@osdl.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1472 Lines: 46 On 1/6/07, Andrew Morton wrote: > On Sat, 6 Jan 2007 09:43:14 +1030 > "Tom Lanyon" 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/