Re: ehci splatter in 2.6.26-rc2

Previous thread: [GIT]: Networking by David Miller on Wednesday, May 14, 2008 - 4:06 am. (1 message)

Next thread: Re: 2.6.25 crash: EIP: [<c02e2f14>] xfrm_output_resume+0x64/0x100 ss:esp 0068:c03a1e5c by Marco Berizzi on Wednesday, May 14, 2008 - 5:03 am. (2 messages)
From: Lennert Buytenhek
Date: Wednesday, May 14, 2008 - 4:24 am

On 2.6.26-rc2, plugging in a certain USB device (haven't tested yet
with other devices) gives me (on two different ARM boards) the oops
below.

Anyone else seeing the same?


usb 1-1: new low speed USB device using orion-ehci and address 2
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 17 [#1] PREEMPT
Modules linked in:
CPU: 0    Not tainted  (2.6.26-rc2 #340)
PC is at qh_append_tds+0x24c/0x44c
LR is at ehci_qtd_alloc+0x30/0x5c
pc : [&lt;c02238b4&gt;]    lr : [&lt;c02235a8&gt;]    psr: 00000093
sp : c7c3bcb0  ip : c7dd86c0  fp : c7c3bcfc
r10: ffc42080  r9 : 00000008  r8 : c7fec820
r7 : 80000080  r6 : 00000080  r5 : 00000000  r4 : 00000002
r3 : c7d69c00  r2 : 00000000  r1 : 40800000  r0 : 08085000
Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: a005317f  Table: 06a1c000  DAC: 00000017
Process khubd (pid: 72, stack limit = 0xc7c3a268)
Stack: (0xc7c3bcb0 to 0xc7c3c000)
[...]
Backtrace: 
[&lt;c0223668&gt;] (qh_append_tds+0x0/0x44c) from [&lt;c0225470&gt;] (ehci_urb_enqueue+0x100
/0xfb8)
[&lt;c0225370&gt;] (ehci_urb_enqueue+0x0/0xfb8) from [&lt;c02163e8&gt;] (usb_hcd_submit_urb+
0x824/0x91c)
[&lt;c0215bc4&gt;] (usb_hcd_submit_urb+0x0/0x91c) from [&lt;c0216850&gt;] (usb_submit_urb+0x
224/0x260)
[&lt;c021662c&gt;] (usb_submit_urb+0x0/0x260) from [&lt;c02172e8&gt;] (usb_start_wait_urb+0x
44/0xac)
 r6:c7fec820 r5:c7c3be80 r4:00000000
[&lt;c02172a4&gt;] (usb_start_wait_urb+0x0/0xac) from [&lt;c0217538&gt;] (usb_control_msg+0x
c8/0xec)
 r8:00000000 r7:00000100 r6:fffffff4 r5:00000040 r4:c7df4540
[&lt;c0217470&gt;] (usb_control_msg+0x0/0xec) from [&lt;c021206c&gt;] (hub_port_init+0x274/0
x5e4)
[&lt;c0211df8&gt;] (hub_port_init+0x0/0x5e4) from [&lt;c0213408&gt;] (hub_thread+0x60c/0xc1c
)
[&lt;c0212dfc&gt;] (hub_thread+0x0/0xc1c) from [&lt;c0058844&gt;] (kthread+0x5c/0x94)
[&lt;c00587e8&gt;] (kthread+0x0/0x94) from [&lt;c0046484&gt;] (do_exit+0x0/0x72c)
 r6:00000000 r5:00000000 r4:00000000
Code: e51bc040 e5932000 e51c309c e1520003 (15923000)
---[ end trace e1e1758047d6bb3f ...
From: David Brownell
Date: Wednesday, May 14, 2008 - 6:11 am

I have no ARM running EHCI, but I can report it's OK
for me on x86 (limited testing) ... I'd expect to have

Nothing in that vicinity should have changed in ages,
which makes me wonder if it's really EHCI which is
triggering this.

The only thing coming vaguely to mind is that this may
have to do with dma-coherent memory allocations.  If
the platform support for that has any goofage, you might
be able to elicit different behaviors with dmapool debug
(enable CONFIG_DEBUG_SLAB or CONFIG_SLUB_DEBUG_ON).

- Dave



--

Previous thread: [GIT]: Networking by David Miller on Wednesday, May 14, 2008 - 4:06 am. (1 message)

Next thread: Re: 2.6.25 crash: EIP: [<c02e2f14>] xfrm_output_resume+0x64/0x100 ss:esp 0068:c03a1e5c by Marco Berizzi on Wednesday, May 14, 2008 - 5:03 am. (2 messages)