Re: [RFC] Patch to option HSO driver to the kernel

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paulius Zaleckas
Date: Wednesday, April 16, 2008 - 6:11 am

With the latest patch I always get BUG when closing my serial terminal
application. I have two different modems (GTM378 and GTM380) plugged at 
USB hub. Here is the dump:

BUG: sleeping function called from invalid context at 
drivers/usb/core/urb.c:542
in_atomic():1, irqs_disabled():0
Pid: 30031, comm: gtkterm Not tainted 2.6.24.4-64.fc8 #1

Call Trace:
  [<ffffffff811b5e40>] usb_kill_urb+0x1a/0xf1
  [<ffffffff81268512>] mutex_lock+0x1e/0x2f
  [<ffffffff810ab2a2>] fasync_helper+0x4a/0xcd
  [<ffffffff88308f57>] :hso:hso_stop_serial_device+0x85/0x99
  [<ffffffff8830971f>] :hso:hso_serial_close+0xea/0x110
  [<ffffffff8117bf26>] release_dev+0x212/0x618
  [<ffffffff8108ec31>] free_pages_and_swap_cache+0x73/0x8f
  [<ffffffff8117c33d>] tty_release+0x11/0x1a
  [<ffffffff810a152c>] __fput+0xc2/0x18f
  [<ffffffff8109ed3f>] filp_close+0x5d/0x65
  [<ffffffff8109ff0f>] sys_close+0x8d/0xca
  [<ffffffff8100c005>] tracesys+0xd5/0xda

BUG: scheduling while atomic: gtkterm/30031/0x10000100
Pid: 30031, comm: gtkterm Not tainted 2.6.24.4-64.fc8 #1

Call Trace:
  [<ffffffff812677a2>] schedule+0x91/0x706
  [<ffffffff81032f45>] __cond_resched+0x2d/0x55
  [<ffffffff81267f0f>] cond_resched+0x2e/0x39
  [<ffffffff811b5e45>] usb_kill_urb+0x1f/0xf1
  [<ffffffff81268512>] mutex_lock+0x1e/0x2f
  [<ffffffff810ab2a2>] fasync_helper+0x4a/0xcd
  [<ffffffff88308f57>] :hso:hso_stop_serial_device+0x85/0x99
  [<ffffffff8830971f>] :hso:hso_serial_close+0xea/0x110
  [<ffffffff8117bf26>] release_dev+0x212/0x618
  [<ffffffff8108ec31>] free_pages_and_swap_cache+0x73/0x8f
  [<ffffffff8117c33d>] tty_release+0x11/0x1a
  [<ffffffff810a152c>] __fput+0xc2/0x18f
  [<ffffffff8109ed3f>] filp_close+0x5d/0x65
  [<ffffffff8109ff0f>] sys_close+0x8d/0xca
  [<ffffffff8100c005>] tracesys+0xd5/0xda

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Patch to option HSO driver to the kernel, Greg KH, (Mon Apr 14, 2:32 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Matthew Dharm, (Mon Apr 14, 2:59 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Andrew Bird (Sphere ..., (Mon Apr 14, 3:42 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Mon Apr 14, 4:20 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Hartkopp, (Mon Apr 14, 9:30 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Filip Aben, (Tue Apr 15, 1:01 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 1:10 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Tue Apr 15, 1:58 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 4:44 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 6:06 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 6:25 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 6:55 am)
Re: [RFC] Patch to option HSO driver to the kernel, Filip Aben, (Tue Apr 15, 7:12 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 7:14 am)
Re: [RFC] Patch to option HSO driver to the kernel, Filip Aben, (Tue Apr 15, 8:03 am)
Re: [RFC] Patch to option HSO driver to the kernel, Filip Aben, (Tue Apr 15, 9:24 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Hartkopp, (Tue Apr 15, 10:53 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 10:58 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 11:46 am)
Re: [RFC] Patch to option HSO driver to the kernel, Stephen Hemminger, (Tue Apr 15, 12:14 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Tue Apr 15, 1:17 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Tue Apr 15, 3:49 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Wed Apr 16, 2:18 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Wed Apr 16, 4:54 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Wed Apr 16, 5:03 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Wed Apr 16, 5:12 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Wed Apr 16, 6:11 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Wed Apr 16, 6:43 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Wed Apr 16, 6:55 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Wed Apr 16, 8:15 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Thu Apr 17, 5:15 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Thu Apr 17, 7:32 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Thu Apr 17, 2:47 pm)
RE: Re: [RFC] Patch to option HSO driver to the kernel, Chetty, Jay, (Thu Apr 17, 3:31 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Thu Apr 17, 11:51 pm)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Fri Apr 18, 8:18 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Mon Apr 21, 4:45 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Mon Apr 21, 5:38 am)
Re: [RFC] Patch to option HSO driver to the kernel, Oliver Neukum, (Mon Apr 21, 5:50 am)
Re: [RFC] Patch to option HSO driver to the kernel, Paulius Zaleckas, (Mon Apr 21, 6:00 am)