A Friday 01 June 2007 17:44:23, Alan Stern escreveu: > On Fri, 1 Jun 2007, Andrew Morton wrote: > > > I'm using vanilla kernel 2.6.22-rc3 (and I try'ed with 2.6.21-fc7 > > > fedora kernel) with a huawei e220 3g, and when I open amule after > > > sometime kernel panics: > > > _ > > > list_add corruption. prev->next should be next (f7d28794), but was > > > f0df8ed4 (prev=f0df8ed4) > > > Kernel Bug at lib/list_debug.c:33 > > > > > > CPU: 0 > > > EIP: 0060:[<c04ddda5>] Not tainted VLI > > > EFLAGS: 00010092 (2.6.22_rc3 #1) > > > EIP is at __list_add+0x48/0x5c > > > eax: 00000061___ebx: f0df8ed4___ecx: c06ced10___edx:00000086 > > > esi: f0df8ed4___edi: 00000246___ebp: f7d28788___esp: c0750e68 > > > ds: 007b________es: 007b________fs: 00d8________gs: 0033________ss: > > > 0068 Process Amule (pid: 9719, ti=c0750000 task=d1da38b0 > > > task.ti=c7899000) Satck: > > > _co69461e________f7d28794________f0df8ed4________f0df8ed4________f0df8e > > >c0________ffffffff________c0558f09________ 00000040 > > > ________00000021________f9316564________c180a120________00000000_______ > > >_d4884800________00000020________f7ece200________000000fc > > > ________f7a45000________db1c8000________00000001________00000040_______ > > >_f90b8da0________f7a45000________d3740000________c409e470 Call Trace: > > > ________[<c0558f09>] usb_hcd_sumit_urb+0x9a/0x778 > > > ________[<f9316564>] ppp_async_push+0x38c/0x398 [ppp_async] > > > > Could be a ppp bug, more likely a USB bug, but that's a well-tested code > > path. > > > > Greg? Anyone? ANy idea where to start looking? > > Maybe the serial device driver is submitting an URB that is already in > use. This patch might catch the error. > > Alan Stern > > > > Index: usb-2.6/drivers/usb/core/urb.c > =================================================================== > --- usb-2.6.orig/drivers/usb/core/urb.c > +++ usb-2.6/drivers/usb/core/urb.c > @@ -233,6 +233,12 @@ int usb_submit_urb(struct urb *urb, gfp_ > > || dev->state == USB_STATE_SUSPENDED) > > return -EHOSTUNREACH; > > + /* Not a precise test, but useful for debugging */ > + if (urb->status == -EINPROGRESS) { > + WARN_ON(1); > + return -EBUSY; > + } > + > urb->status = -EINPROGRESS; > urb->actual_length = 0;
The patch that you send is not resolving the problem... :( I stil have Kernel panic after 45/60 min of work with Ktorrent/Amule... The Drump is: Call Trace: [<c055fb36>] usb_hcd_submit+0xb1/0x763 [<f9276488>] ipt_do_table+0x2c7/0x2ef [ip_tables] [<f929a6d7>] nf_ct_deliver_cached_events+0x41/0x96 [nf_conntrak] [<f9288254>] ipv4_confirm+0x36/0c3b [nf_conntrack_ipv4] [<c05ce7c2>] tcp_v4_rcv+0x827/0x899 [<c05afcc0>] nf_hook_slow+0x4d/0xb5 [<c042826f>] irq_enter+0x19/0x23 [<c042826f>] irq_enter+0x19/0x23 [<c040794c>] do_IRQ+0xbd/0xd1 [<f90893c9>] option_write+0xa7/0xef [option] [<f90ba586>] serial_write+0x9c/0xab [usbserial] [<f9b3b27e>] ppp_async_push+0xa6/0x398 [ppp_async] [<c042ad84>] process_timeout+0x0/0x5 [<f9b3ba32>] ppp_async_process+0x42/0x56 [ppp_async] [<c04282c4>] tasklet_action+0x4b/0xa4 [<c04281f9>] __do_softirq+0x5d/0xba [<c0407837>] do_softirq+0x59/0xb1 [<c04280a8>] irq_exit+0x38/0x6b [<c0416be7>] smp_apic_timer_interrupt+0x72/0x7e [<c0406028>] apic_timer_interrupt+0x28/0x30 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Code: 81 3c 69 c0 e8 9e ef f3 ff 0f 0b eb fe 8b 32 39 ce 74 1c 89 54 24 0c 89 74 24 08 89 4c 24 04 c7 04 24 d1 3c 69 c0 e8 7c ef f3 ff <0f> 0b eb fe 89 59 04 89 0b 89 43 04 89 18 83 c4 10 5b 5e c3 8b EIP: [<c04e56a5>] __list_add+0x48/0x5c SS:ESP 0068:c074ee5c Kernel panic - not syncing: Fatal exception in interrupt BUG: warning at ach/i386/kernel/smp.c:549/smp_call_function() (Not tainted) [<c0414d2>] stop_this_cpu+0x0/0x2b [<c0414af6>] smp_call_function+0x65/0xcb [<c0537019>] do_unblank_screen+0x2a/0x129 [<c0424640>] printk+0x1f/0x92 [<c0414b77>] smp_send_stop+0x1b/0x24 [<c0423c1a>] panic+0x54/0xea [<c0406bc3>] die+0207/0x23b [<c0406fe8>] do_invalid_op+0x0/0xab [<c040708a>] do_invalid_op+0xa2/0xab [<c04e56a5>] __list_add+0x48/0x5c [<c0423e57>] wake_up_klogd+0x33/0x35 [<c05c340e>] tcp_ack+0x11c6/0x1743 [<c05c8de2>] __tcp_push_pending_frames+0x48c/0x798 [<c05fa59c>] error_code+0x7c/0x90 [<c04e56a5>] __list_add+0x48/0x5c [<c055fb36>] usb_hcd_submit_urb+0xb1/0x763 [<f9276488>] ipt_do_table+0x2c7/0x2ef [ip_tables] [<f929a6d7>] nf_ct_deliver_cached_events+0x41/0x96 [nf_conntrack] [<f9288254>] ipv4_confirm+0x36/0x3b [nf_conntrack_ipv4] [<c05ce7c2>] tcp_v4_rcv+0x827/0x899 [<c05afcc0>] nf_hook_slow+0x4d/0xb5 [<c042826f>] irq_enter+0x19/0x23 [<c042826f>] irq_enter+0x19/0x23 [<c040794c>] do_IRQ+0xbd/0xd1 [<f90893c9>] option_write+0xa7/0xef [option] [<f90ba586>] serial_write+0x9c/0xab [usbserial] [<f9b3b27e>] ppp_async_push+0xa6/0x398 [ppp_async] [<c042ad84>] process_timeout+0x0/0x5 [<f9b3ba32>] ppp_async_process+0x42/0x56 [ppp_async] [<c04282c4>] tasklet_action+0x4b/0xa4 [<c04281f9>] __do_softirq+0x5d/0xba [<c0407837>] do_softirq+0x59/0xb1 [<c04280a8>] irq_exit+0x38/0x6b [<c0416be7>] smp_apic_timer_interrupt+0x72/0x7e [<c0406028>] apic_timer_interrupt+0x28/0x30 But now I have notification of a BUG in /var/log/messages, that is: Jun 4 09:08:58 localhost kernel: BUG: warning at kernel/softirq.c:138/local_bh_enable() (Not tainted) Jun 4 09:08:58 localhost kernel: [<c0427fe3>] local_bh_enable+0x45/0x92 Jun 4 09:08:58 localhost kernel: [<c05f8f1c>] cond_resched_softirq+0x2c/0x42 Jun 4 09:08:58 localhost kernel: [<c0593a7a>] release_sock+0x4f/0x9d Jun 4 09:08:58 localhost kernel: [<c05bf3a3>] tcp_sendmsg+0x909/0x9f7 Jun 4 09:08:58 localhost kernel: [<c0593a3d>] release_sock+0x12/0x9d Jun 4 09:08:58 localhost kernel: [<c05c03e4>] tcp_recvmsg+0x8c5/0x9d1 Jun 4 09:08:58 localhost kernel: [<c05d7931>] inet_sendmsg+0x3b/0x45 Jun 4 09:08:58 localhost kernel: [<c05913a8>] sock_aio_write+0xf6/0x102 Jun 4 09:08:58 localhost kernel: [<c0472395>] do_sync_readv_writev+0xc1/0xfe Jun 4 09:08:58 localhost kernel: [<c0472499>] do_sync_write+0xc7/0x10a Jun 4 09:08:58 localhost kernel: [<c0433d61>] autoremove_wake_function+0x0/0x35 Jun 4 09:08:58 localhost kernel: [<c0472cff>] vfs_write+0xbc/0x15a Jun 4 09:08:58 localhost kernel: [<c0473308>] sys_write+0x41/0x67 Jun 4 09:08:58 localhost kernel: [<c0404ff0>] syscall_call+0x7/0xb Jun 4 09:08:58 localhost kernel: ======================= Jun 4 09:08:58 localhost kernel: No dock devices found. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel