Re: [patch 00/69] -stable review

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Romano Giannetti <romanol@...>
Cc: Chris Wright <chrisw@...>, Chuck Ebbert <cebbert@...>, Linux Kernel Mailing List <linux-kernel@...>, <stable@...>, Justin Forbes <jmforbes@...>, Zwane Mwaikambo <zwane@...>, Theodore Ts'o <tytso@...>, Randy Dunlap <rdunlap@...>, Dave Jones <davej@...>, Chuck Wolber <chuckw@...>, Chris Wedgwood <reviews@...>, Michael Krufky <mkrufky@...>, <akpm@...>, <alan@...>, Rafael J. Wysocki <rjw@...>, Pavel Machek <pavel@...>
Date: Thursday, May 24, 2007 - 12:16 pm

On Thu, 24 May 2007, Romano Giannetti wrote:

Yeah, but the interesting one is this pair:

  events/0      R running     0     4      1 (L-TLB)

  sleep.sh      D 0000014F     0  5798   5789 (NOTLB)
  Call Trace:
   [<c01d3c01>] kobject_uevent_env+0x3a1/0x4a0
   [<c02d8509>] wait_for_completion+0x79/0xb0
   [<c0116640>] default_wake_function+0x0/0x10
   [<c0238a08>] _request_firmware+0x1c8/0x310
   [<c0238bef>] request_firmware+0xf/0x20
   [<e0a35d5d>] pcmcia_bus_match+0x28d/0x3c0 [pcmcia]
   [<c02864a7>] netlink_broadcast+0x1f7/0x310
   [<c0233d74>] driver_probe_device+0x34/0xc0
   [<c02d79ee>] klist_next+0x4e/0xa0
   [<c0233014>] bus_for_each_drv+0x44/0x70
   [<c0233eba>] device_attach+0x7a/0x80
   [<c0233e00>] __device_attach+0x0/0x10
   [<c0232f56>] bus_attach_device+0x26/0x60
   [<c0231d06>] device_add+0x5e6/0x6e0
   [<c01d350f>] kobject_init+0x2f/0x50
   [<e0a360f5>] pcmcia_device_add+0x185/0x220 [pcmcia]
   [<e0a36261>] pcmcia_card_add+0xa1/0xc0 [pcmcia]
   [<e0913900>] ti12xx_power_hook+0x180/0x1d0 [yenta_socket]
   [<e0a36300>] ds_event+0x80/0xb0 [pcmcia]
   [<e0967359>] send_event+0x39/0x70 [pcmcia_core]
   [<e09677b6>] socket_insert+0x86/0xe0 [pcmcia_core]
   [<e0967c2b>] pcmcia_socket_dev_resume+0x7b/0x90 [pcmcia_core]
   [<c01e135f>] pci_device_resume+0x1f/0x60
   [<c023815f>] resume_device+0x5f/0xf0

ie we have a deadlock because resume wants to do that firmware request,
but the event daemon is apparently spinning like mad. 

And yes, request_firmware() has a "loading_timeout" in seconds.  And
it's 60. So that explains your pause right there!

It might be some unfortunate interaction with process freezing (my
favorite whipping boy), but it could also be something else.  I suspect
we should treat suspend/resume as a bootup event, and not allow execve()
for that case at all. Right now we have:

        retval = -EPERM;
        if (current->fs->root)
                retval = kernel_execve(sub_info->path,
                                sub_info->argv, sub_info->envp);

in kernel/kmod.c, and that "current->fs->root" thing basically protects
us from trying to run a user-mode helper early in the boot sequence, but
we might want to add a conditional like "&& !resuming" to that test..

		Linus

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

Messages in current thread:
Re: [patch 00/69] -stable review, Linus Torvalds, (Tue May 22, 6:07 pm)
Re: [patch 00/69] -stable review, Romano Giannetti, (Thu May 24, 8:06 am)
Re: [patch 00/69] -stable review, Linus Torvalds, (Thu May 24, 12:16 pm)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Thu May 24, 5:03 pm)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Henrique de Moraes Holschuh..., (Thu May 24, 7:16 pm)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Fri May 25, 7:44 am)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Sun May 27, 2:32 pm)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Mon May 28, 4:11 am)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Sun May 27, 3:09 pm)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Tue May 29, 8:00 am)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Michael-Luke Jones, (Tue May 29, 8:00 am)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Tue May 29, 8:16 am)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Nigel Cunningham, (Thu May 24, 10:20 pm)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Nigel Cunningham, (Thu May 24, 11:00 pm)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Nigel Cunningham, (Fri May 25, 12:33 am)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Wed May 30, 10:04 am)
Re: pcmcia resume 60 second hang. Re: [patch 00/69] -stable ..., Rafael J. Wysocki, (Wed May 30, 10:08 am)
Long delay in resume from RAM (Was Re: [patch 00/69] -stable..., Romano Giannetti, (Thu May 24, 11:06 am)
Re: Long delay in resume from RAM (Was Re: [patch 00/69] -st..., Johannes Stezenbach, (Thu May 24, 6:30 pm)
Re: [patch 00/69] -stable review, Romano Giannetti, (Wed May 23, 3:09 am)
Re: [patch 00/69] -stable review, Paolo Ornati, (Wed May 23, 3:19 am)
Re: [patch 00/69] -stable review, Romano Giannetti, (Wed May 23, 3:38 am)