Re: Runaway loop with the current git.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Sunday, December 7, 2008 - 1:00 pm

> >        max_modprobes = min(max_threads/2, MAX_KMOD_CONCURRENT);

It works for me. 


Well since you've got a reproducer and this code works for me (I've tested
it just fine), why don't you go and reproduce the problem then post a fix
to that code I quoted instead of all this reordering rubbish. If you fix
this code not only won't you risk all the mess from re-ordering
initialisations around the kernel but you'll fix non console related
looping which you imply is also broken as you claim that code doesn't
work for you.

If I deliberately break my module utils I see a sequence of modprobes
which then hits kmod_concurrent limit then causes a -ENOMEM back to
userspace which then fails the file open. The bug report also shows the
printk is displayed so the runaway loop *was* detected and the code paths
taken which stopped the loop.

I get open -> modprobe -> open -> modprobe -> open -> modprobe ... ->
open fail, then open fail, open fail, open fail, open fail back to the
first modprobe exiting.

Your proposal to keep the current recent modprobe parameter strings would
shorten the amount of recursion but it wouldn't change the result that I
can see. If I open /dev/console early and wrongly from a modprobe then I
ultimately get a failing open just as I should do.

Alan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Runaway loop with the current git., Herbert Xu, (Sun Dec 7, 7:49 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 8:14 am)
Re: Runaway loop with the current git., Herbert Xu, (Sun Dec 7, 8:55 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 9:03 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 9:09 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 9:21 am)
Re: Runaway loop with the current git., Evgeniy Polyakov, (Sun Dec 7, 9:31 am)
Re: Runaway loop with the current git., Evgeniy Polyakov, (Sun Dec 7, 9:33 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 9:57 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 10:01 am)
Re: Runaway loop with the current git., Evgeniy Polyakov, (Sun Dec 7, 10:03 am)
Re: Runaway loop with the current git., Evgeniy Polyakov, (Sun Dec 7, 10:13 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 10:17 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 10:22 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 10:24 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 10:28 am)
Re: Runaway loop with the current git., Evgeniy Polyakov, (Sun Dec 7, 10:29 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 10:39 am)
Re: Runaway loop with the current git., Evgeniy Polyakov, (Sun Dec 7, 10:44 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 10:51 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 10:52 am)
Re: Runaway loop with the current git., Evgeniy Polyakov, (Sun Dec 7, 10:54 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 11:03 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 11:13 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 11:15 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 11:21 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 11:22 am)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 11:31 am)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 12:02 pm)
Re: Runaway loop with the current git., Alan Cox, (Sun Dec 7, 1:00 pm)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 3:26 pm)
Re: Runaway loop with the current git., Theodore Tso, (Sun Dec 7, 6:18 pm)
Re: Runaway loop with the current git., Valdis.Kletnieks, (Sun Dec 7, 8:23 pm)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 8:35 pm)
Re: Runaway loop with the current git., Kay Sievers, (Sun Dec 7, 8:56 pm)
Re: Runaway loop with the current git., Evgeniy Polyakov, (Mon Dec 8, 6:06 am)
Re: Runaway loop with the current git., Herbert Xu, (Mon Dec 8, 5:42 pm)
Re: Runaway loop with the current git., Theodore Tso, (Mon Dec 8, 6:09 pm)
Re: Runaway loop with the current git., Kay Sievers, (Mon Dec 8, 7:00 pm)
Re: Runaway loop with the current git., Alan Cox, (Tue Dec 9, 3:13 am)