Hello Peter, On 15-09-14 13:11:16, Peter Chen wrote: > On Fri, Sep 11, 2015 at 04:51:22PM +0530, maitysanchayan@xxxxxxxxx wrote: > > On 15-09-11 15:56:17, maitysanchayan@xxxxxxxxx wrote: > > > Hello Peter, > > > > > > On 15-09-11 16:58:52, Peter Chen wrote: > > > > On Fri, Sep 11, 2015 at 02:36:58PM +0530, maitysanchayan@xxxxxxxxx wrote: > > > > > Hello, > > > > > > > > > > We are using the 4.1.5 kernel on Freescale Vybrid SoC which has a Chipidea > > > > > IP. One of our customer's reported a kernel crash while using USB client > > > > > with the USB gadget RNDIS functionality while being connected to a host > > > > > running Windows 7 SP1 Pro and I was also able to reproduce the issue here. > > > > > > > > > > The issue seems reproducible and occurs while doing bidirectional communication > > > > > over socket after an hour or so. Strangely it did not happen while doing one > > > > > way transfers from the Vybrid to PC side which I tested by running for almost > > > > > 16 hours. For testing birectional communication I had a simple Python echo server > > > > > running on PC and client on Vybrid side while for one way test I had Python > > > > > client on Vybrid and Hercules application on Windows side. > > > > > > > > > > Both the Python client and server do a continous send/recv in a while loop. > > > > > > > > > > I could not reproduce it while doing bidirectional iperf tests for 5-6 hours > > > > > with a Linux machine. > > > > > > > > > > The same issue is also seen with 4.0.5. Is this a known issue or reported > > > > > earlier? > > > > > > > > > > The stack trace is below on 4.1.5 kernel. > > > > > > > > > > [69253.557550] Unable to handle kernel NULL pointer dereference at virtual address 00000000 > > > > > [69253.565681] pgd = 80004000 > > > > > [69253.568396] [00000000] *pgd=00000000 > > > > > [69253.572004] Internal error: Oops: 817 [#1] ARM > > > > > [69253.576457] Modules linked in: mcp251x can_dev > > > > > [69253.580963] CPU: 0 PID: 0 Comm: swapper Not tainted 4.1.4-v2.5b1+gdc92514 #1 > > > > > [69253.588016] Hardware name: Freescale Vybrid VF5xx/VF6xx (Device Tree) > > > > > [69253.594469] task: 807d04b0 ti: 807ca000 task.ti: 807ca000 > > > > > [69253.599896] PC is at add_td_to_list+0x118/0x1a0 > > > > > [69253.604441] LR is at add_td_to_list+0x58/0x1a0 > > > > > [69253.608895] pc : [<803b9fd4>] lr : [<803b9f14>] psr: 30010193 > > > > > [69253.608895] sp : 807cbcf0 ip : 00000006 fp : 807cbd14 > > > > > [69253.620379] r10: 00000008 r9 : 00004000 r8 : 8da82db4 > > > > > [69253.625614] r7 : 8e02f6e8 r6 : 00000008 r5 : 8da82d80 r4 : 8da321c0 > > > > > [69253.632148] r3 : 00000000 r2 : 8e403580 r1 : 8da82dbc r0 : 00000000 > > > > > [69253.638687] Flags: nzCV IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel > > > > > [69253.646087] Control: 10c5387d Table: 8cb50059 DAC: 00000015 > > > > > [69253.651839] Process swapper (pid: 0, stack limit = 0x807ca208) > > > > > [69253.657681] Stack: (0x807cbcf0 to 0x807cc000) > > > > > [69253.662053] bce0: 8da82d80 8e02f6e8 00000008 8e02f010 > > > > > [69253.670248] bd00: 8da82db4 00004000 807cbd54 807cbd18 803ba9dc 803b9ec8 00000000 00000000 > > > > > [69253.678439] bd20: 00000000 00000000 00000000 a0010193 8d94d5f4 8e23f3d4 00000000 00000024 > > > > > [69253.686633] bd40: 8e02f408 8db1773c 807cbd6c 807cbd58 803bad8c 803ba8a4 8d94d540 8d94d5f4 > > > > > [69253.694825] bd60: 807cbd84 807cbd70 803ca360 803bad68 8081f3f8 8d8ce000 807cbda4 807cbd88 > > > > > [69253.703017] bd80: 803cbd78 803ca310 8db17700 8db1773c 00000024 8db17700 807cbdbc 807cbda8 > > > > > [69253.711209] bda0: 803ca624 803cbaec 00000024 8db1773c 807cbdcc 807cbdc0 803c30e4 803ca610 > > > > > [69253.719402] bdc0: 807cbe3c 807cbdd0 803bb264 803c30dc 807cbdec 80815d74 803ba500 8e02f408 > > > > > [69253.727594] bde0: 807cc044 00000001 8e02f440 8e02f630 8e02f010 8e02f010 00000000 8db17734 > > > > > [69253.735787] be00: 8e02f40c 8e02f460 00000021 00240000 807cbe5c 8e02f010 807dd644 00000000 > > > > > [69253.743979] be20: 00000000 00000027 8e0b8480 807fdc3d 807cbe54 807cbe40 803b81ac 803bada8 > > > > > [69253.752172] be40: 8e2c2580 807dd644 807cbe8c 807cbe58 8004ced0 803b8160 800644b8 80040464 > > > > > [69253.760363] be60: 00003efc 8e0b8480 807dd644 00000000 00000001 8e006000 00000001 807f2430 > > > > > [69253.768556] be80: 807cbea4 807cbe90 8004cfc8 8004ce5c 8e0b8480 807dd644 807cbebc 807cbea8 > > > > > [69253.776748] bea0: 8004f538 8004cfa4 00000027 00000000 807cbed4 807cbec0 8004c638 8004f4a0 > > > > > [69253.784941] bec0: 807dd47c 00000000 807cbefc 807cbed8 8004c89c 8004c610 9000210c 807cc364 > > > > > [69253.793133] bee0: 807cbf20 90002100 807cc0cc 00000001 807cbf1c 807cbf00 8000935c 8004c84c > > > > > [69253.801325] bf00: 8000ff2c 60010013 ffffffff 807cbf54 807cbf74 807cbf20 80013700 8000933c > > > > > [69253.809517] bf20: 00000001 00000000 00000000 8001d540 807ca000 807cc0cc 00000000 00000000 > > > > > [69253.817710] bf40: 807cc0cc 00000001 807f2430 807cbf74 807cbf78 807cbf68 8000ff28 8000ff2c > > > > > [69253.825902] bf60: 60010013 ffffffff 807cbf9c 807cbf78 80045c1c 8000fef8 807fdc3b 807cc0d4 > > > > > [69253.834095] bf80: 807cbf9c 807d4310 805a7cd0 ffffffff 807cbfac 807cbfa0 805a3ee8 80045a68 > > > > > [69253.842287] bfa0: 807cbff4 807cbfb0 80794cd4 805a3e7c ffffffff ffffffff 807946d4 00000000 > > > > > [69253.850480] bfc0: 00000000 807c0cc8 00000000 807fdfd4 807cc074 807c0cc4 807d16e8 80004059 > > > > > [69253.858671] bfe0: 410fc051 00000000 00000000 807cbff8 80008078 80794950 00000000 00000000 > > > > > [69253.866848] Backtrace: > > > > > [69253.869340] [<803b9ebc>] (add_td_to_list) from [<803ba9dc>] (_ep_queue.isra.22+0x144/0x47c) > > > > > [69253.877691] r9:00004000 r8:8da82db4 r7:8e02f010 r6:00000008 r5:8e02f6e8 r4:8da82d80 > > > > > [69253.885533] [<803ba898>] (_ep_queue.isra.22) from [<803bad8c>] (ep_queue+0x30/0x40) > > > > > [69253.893190] r10:8db1773c r9:8e02f408 r8:00000024 r7:00000000 r6:8e23f3d4 r5:8d94d5f4 > > > > > [69253.901103] r4:a0010193 > > > > > [69253.903672] [<803bad5c>] (ep_queue) from [<803ca360>] (rndis_response_available+0x5c/0x80) > > > > > [69253.911944] r5:8d94d5f4 r4:8d94d540 > > > > > [69253.915563] [<803ca304>] (rndis_response_available) from [<803cbd78>] (rndis_msg_parser+0x298/0x4f4) > > > > > [69253.924700] r5:8d8ce000 r4:8081f3f8 > > > > > [69253.928317] [<803cbae0>] (rndis_msg_parser) from [<803ca624>] (rndis_command_complete+0x20/0x40) > > > > > [69253.937102] r7:8db17700 r6:00000024 r5:8db1773c r4:8db17700 > > > > > [69253.942840] [<803ca604>] (rndis_command_complete) from [<803c30e4>] (usb_gadget_giveback_request+0x14/0x18) > > > > > [69253.952584] r5:8db1773c r4:00000024 > > > > > [69253.956201] [<803c30d0>] (usb_gadget_giveback_request) from [<803bb264>] (udc_irq+0x4c8/0xcb4) > > > > > [69253.964826] [<803bad9c>] (udc_irq) from [<803b81ac>] (ci_irq+0x58/0x120) > > > > > [69253.971529] r10:807fdc3d r9:8e0b8480 r8:00000027 r7:00000000 r6:00000000 r5:807dd644 > > > > > [69253.979443] r4:8e02f010 > > > > > [69253.982007] [<803b8154>] (ci_irq) from [<8004ced0>] (handle_irq_event_percpu+0x80/0x148) > > > > > [69253.990100] r5:807dd644 r4:8e2c2580 > > > > > [69253.993718] [<8004ce50>] (handle_irq_event_percpu) from [<8004cfc8>] (handle_irq_event+0x30/0x40) > > > > > [69254.002597] r10:807f2430 r9:00000001 r8:8e006000 r7:00000001 r6:00000000 r5:807dd644 > > > > > [69254.010511] r4:8e0b8480 > > > > > [69254.013074] [<8004cf98>] (handle_irq_event) from [<8004f538>] (handle_fasteoi_irq+0xa4/0x16c) > > > > > [69254.021603] r5:807dd644 r4:8e0b8480 > > > > > [69254.025221] [<8004f494>] (handle_fasteoi_irq) from [<8004c638>] (generic_handle_irq+0x34/0x44) > > > > > [69254.033839] r5:00000000 r4:00000027 > > > > > [69254.037465] [<8004c604>] (generic_handle_irq) from [<8004c89c>] (__handle_domain_irq+0x5c/0xb0) > > > > > [69254.046162] r5:00000000 r4:807dd47c > > > > > [69254.049781] [<8004c840>] (__handle_domain_irq) from [<8000935c>] (gic_handle_irq+0x2c/0x5c) > > > > > [69254.058139] r9:00000001 r8:807cc0cc r7:90002100 r6:807cbf20 r5:807cc364 r4:9000210c > > > > > [69254.065979] [<80009330>] (gic_handle_irq) from [<80013700>] (__irq_svc+0x40/0x54) > > > > > [69254.073467] Exception stack(0x807cbf20 to 0x807cbf68) > > > > > [69254.078537] bf20: 00000001 00000000 00000000 8001d540 807ca000 807cc0cc 00000000 00000000 > > > > > [69254.086730] bf40: 807cc0cc 00000001 807f2430 807cbf74 807cbf78 807cbf68 8000ff28 8000ff2c > > > > > [69254.094912] bf60: 60010013 ffffffff > > > > > [69254.098406] r7:807cbf54 r6:ffffffff r5:60010013 r4:8000ff2c > > > > > [69254.104155] [<8000feec>] (arch_cpu_idle) from [<80045c1c>] (cpu_startup_entry+0x1c0/0x234) > > > > > [69254.112448] [<80045a5c>] (c]<94(s_kl) [<x80008078) > > > > > [2430-- i o nn t excptnner5190 30 520 > > > > > > > > Hi Sanchayan, > > > > > > > > It seems linked list (hwreq->tds) has corrupted, would you please open the kernel > > > > debug for linked list to run again? Meanwhile, if you can share you > > > > application and related instructions for testing, I can help test at > > > > i.mx platform to see if it is memory corruption issue. > > > > > > Sorry I did not clearly understand "would you please open the kernel > > > debug for linked list to run again?". > > > > > > I am running a Python client on the Vybrid as follows: > > > > > > #!/usr/env/python > > > > > > import socket > > > > > > TCP_IP = '192.168.11.2' > > > TCP_PORT = 502 > > > MESSAGE = 'Test USB Client\n' > > > > > > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > > > s.connect((TCP_IP, TCP_PORT)) > > > while 1: > > > s.send(MESSAGE) > > > data = s.recv(1024) > > > print data > > > s.close() > > > > > > The corresponding Python server on host > > > > > > import socket > > > > > > HOST = '' > > > TCP_PORT = 502 > > > > > > s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > > > s.bind(HOST, TCP_PORT) > > > s.listen(1) > > > conn, addr = s.accept() > > > print ('Connected by', addr) > > > while 1: > > > data = conn.recv(1024) > > > print (data) > > > if not data: continue > > > conn.sendall(data) > > > conn.close() > > > > > > I let them run and after an hour or so, I get the stack trace. > > > > Forgot to mention and attach the gadget schema we deploy for USB > > RNDIS configuration. > > > > - Sanchayan. > > > attrs : > > { > > bcdUSB = 0x0; > > bDeviceClass = 0x0; > > bDeviceSubClass = 0x0; > > bDeviceProtocol = 0x0; > > bMaxPacketSize0 = 0x40; > > idVendor = 0x1d6b; > > idProduct = 0x0104; > > bcdDevice = 0x400; > > }; > > strings = ( > > { > > lang = 0x409; > > manufacturer = "Toradex"; > > product = "Unknown"; > > serialnumber = ""; > > } ); > > functions : > > { > > rndis_0 : > > { > > instance = "0"; > > type = "rndis"; > > attrs : > > { > > dev_addr = "00:14:2d:ff:ff:ff"; > > host_addr = "00:14:2d:ff:ff:fe"; > > qmult = 5; > > }; > > }; > > }; > > configs = ( > > { > > id = 1; > > name = "c"; > > attrs : > > { > > bmAttributes = 0x80; > > bMaxPower = 0x2; > > }; > > strings = ( > > { > > lang = 0x409; > > configuration = "Conf 1"; > > } ); > > functions = ( > > { > > name = "rndis.0"; > > function = "rndis_0"; > > } ); > > } ); > > Enable CONFIG_DEBUG_LIST, it has below position if you > run make menuconfig > Kernel hacking ---> > [*] Debug linked list manipulation > Sorry for the delay. When I enabled this config the first time my test application ran for 24 hours or so and I did not get any stack traces. I restarted the test again and finally got the trace below. You were spot on, its a list corruption issue. I modified the trace a bit after copying to remove the sprinkled debug messages throughout the trace from my test application. [ 622.204134] WARNING: CPU: 0 PID: 0 at lib/list_debug.c:59 __list_del_entry+0xc4/0xe8() [ 622.212870] list_del corruption. prev->next should be 8db63600, but was 36008db6 [ 622.221119] Modules linked in: [ 622.225921] CPU: 0 PID: 0 Comm: swapper Not tainted 4.1.5-00004-g326879d #327 [ ]Hrdware name: Freescale Vybrid VF5xx/VF6xx (Device Tree) [ 622.241199] Backtrace: [ 622.245416] [<80012b78>] (dump_backtrace) from [<80012d98>] (show_stack+0x18/0x1c) [ 622.253810] r7:802a5ff4 r6:0000003b r5:00000009 r4:00000000 [ 622.263424] [<80012d80>] (show_stack) from [<80590990>] (dump_stack+0x24/0x28) [ 622.271496] [<8059096c>] (dump_stack) from [<80023e24>] (warn_slowpath_common+0x88/0xb4) [ 622.280438] [<80023d9c>] (warn_slowpath_common) from [<80023e88>] (warn_slowpath_fmt+0x38/0x40) [ 622.289980] r8:8d99a8bc r7:8e02f464Cl r6:8d99a880 r5:0000007 r4:80704238ient [ 622.300980] [<80023e54>] (warn_slowpath_fmt) from [<802a5ff4>] (__list_del_entry+0xc4/0xe8) [ 622.310175] r3:8db63600 r2:80704238 [ 622.316275] r4:8d99a8bc [ 622.320479] [<802a5f30>] (__list_del_entry) from [<803a0740>] (udc_irq+0x3d8/0xcdc) [ 622.328986] [<803a0368>] (udc_irq) from [<8039d6bc>] (ci_irq+0x58/0x11c) [ 622.336531] r10:807ddefe r9:8e0bd480 r8:00000027 r7:00000000 r6:00000000 r5:807bd6c4 [ 622.349426] r4:8e02f010 [ 622.353633] [<8039d664>] (ci_irq) from [<8004d670>] (handle_irq_event_percpu+0x80/0x148) [ 622.362557] r5:807bd6c4 r4:8e2d0880 [ 622.366600] [<8004d5f0>] (handle_irq_event_percpu) from [<8004d768>] (handle_irq_event+0x30/0x40) [ 622.375470] r10:807ac0d4 r9:807d2540 r8:8e006000 r7:00000000 r6:00000000 r5:807bd6c4 [ 622.383385] r4:8e0bd480 [ 622.385947] [<8004d738>] (handle_irq_event) from [<8004fce0>] (handle_fasteoi_irq+0xa4/0x16c) [ 622.394476] r5:807bd6c4 r4:8e0bd480 [ 622.398095] [<8004fc3c>] (handle_fasteoi_irq) from [<8004cdd8>] (generic_handle_irq+0x34/0x44) [ 622.406712] r5:00000027 r4:00000027 [ 622.410330] [<8004cda4>] (generic_handle_irq) from [<8004d03c>] (__handle_domain_irq+0x5c/0xb0) [ 622.419027] r5:00000027 r4:807bd4fc [ 622.422643] [<8004cfe0>] (__handle_domain_irq) from [<80009364>] (gic_handle_irq+0x2c/0x5c) [ 622.430994] r9:807d2540 r8:807ac0cc r7:90002100 r6:807abf20 r5:807ac364 r4:9000210c [ 622.438834] [<80009338>] (gic_handle_irq) from [<80013800>] (__irq_svc+0x40/0x54) [ 622.446323] Exception stack(0x807abf20 to 0x807abf68) [ 622.451396] bf20: 00000001 00000000 00000000 8001d7a0 807aa000 807ac0cc 00000000 00000000 [ 622.459586] bf40: 807ac0cc 807d2540 807ac0d4 807abf74 807abf78 807abf68 80010028 8001002c [ 622.467768] bf60: 60010013 ffffffff [ 622.471262] r7:807abf54 r6:ffffffff r5:60010013 r4:8001002c [ 622.477007] [<8000ffec>] (arch_cpu_idle) from [<80045f14>] (cpu_startup_entry+0x1c8/0x254) [ 622.485297] [<80045d4c>] (cpu_startup_entry) from [<8058f3bc>] (rest_init+0x78/0x7c) [ 622.493045] r7:ffffffff [ 622.495614] [<8058f344>] (rest_init) from [<80777cd4>] (start_kernel+0x390/0x39c) [ 622.503117] [<80777944>] (start_kernel) from [<80008078>] (0x80008078) [ 622.509648] ---[ end trace 4342257fd07cce01 ]--- [snip] Had some prints from test app here [ 622.514298] ------------[ cut here ]------------ [ 622.518935] WARNING: CPU: 0 PID: 0 at lib/list_debug.c:33 __list_add+0xac/0xe0() [ 622.526339] list_add corruption. prev->next should be next (8d99a8bc), but was 8db63600. (prev=8db63600). [ 622.535905] Modules linked in: [ 622.538988] CPU: 0 PID: 0 Comm: swapper Tainted: G W 4.1.5-00004-g326879d #327 [ 622.547345] Hardware name: Freescale Vybrid VF5xx/VF6xx (Device Tree) [ 622.553782] Backtrace: [ 622.556259] [<80012b78>] (dump_backtrace) from [<80012d98>] (show_stack+0x18/0x1c) [ 622.563834] r7:802a5efc r6:00000021 r5:00000009 r4:00000000 [ 622.569571] [<80012d80>] (show_stack) from [<80590990>] (dump_stack+0x24/0x28) [ 622.576814] [<8059096c>] (dump_stack) from [<80023e24>] (warn_slowpath_common+0x88/0xb4) [ 622.584917] [<80023d9c>] (warn_slowpath_common) from [<80023e88>] (warn_slowpath_fmt+0x38/0x40) [ 622.593618] r8:8d99a8b4 r7:8e02f464 r6:8d99a8bc r5:8db63600 r4:80704150 [ 622.600408] [<80023e54>] (warn_slowpath_fmt) from [<802a5efc>] (__list_add+0xac/0xe0) [ 622.608241] r3:8d99a8bc r2:80704150 [ 622.611842] r4:8db1c280 [ 622.614401] [<802a5e50>] (__list_add) from [<8039f4ac>] (add_td_to_list+0x12c/0x19c) [ 622.622144] r6:00000800 r5:8d99a880 r4:8db1c280 [ 622.626821] [<8039f380>] (add_td_to_list) from [<8039ffb8>] (_ep_queue.isra.22+0x144/0x46c) [ 622.635170] r9:8e02f010 r8:8d99a8b4 r7:00000800 r6:00000800 r5:8e02f464 r4:8d99a880 [ 622.643013] [<8039fe74>] (_ep_queue.isra.22) from [<803a0358>] (ep_queue+0x30/0x40) [ 622.650669] r10:8d99a8bc r9:8cfffa80 r8:8e02f464 r7:00000020 r6:8d99a880 r5:8da20460 [ 622.658584] r4:a0010193 [ 622.661142] [<803a0328>] (ep_queue) from [<803afa6c>] (rx_submit+0xd4/0x14c) [ 622.668191] r5:8da20460 r4:00000800 [ 622.671803] [<803af998>] (rx_submit) from [<803afec0>] (rx_complete+0x164/0x20c) [ 622.679204] r9:a0010193 r8:00000000 r7:8da20480 r6:8d99a880 r5:00000000 r4:8da20460 [ 622.687052] [<803afd5c>] (rx_complete) from [<803a9040>] (usb_gadget_giveback_request+0x14/0x18) [ 622.695840] r9:8e02f464 r8:8d99a8bc r7:8e02f464 r6:8d99a880 r5:8d99a8b4 r4:0000007e [ 622.703684] [<803a902c>] (usb_gadget_giveback_request) from [<803a082c>] (udc_irq+0x4c4/0xcdc) [ 622.712309] [<803a0368>] (udc_irq) from [<8039d6bc>] (ci_irq+0x58/0x11c) [ 622.719011] r10:807ddefe r9:8e0bd480 r8:00000027 r7:00000000 r6:00000000 r5:807bd6c4 [ 622.726926] r4:8e02f010 [ 622.729485] [<8039d664>] (ci_irq) from [<8004d670>] (handle_irq_event_percpu+0x80/0x148) [ 622.737574] r5:807bd6c4 r4:8e2d0880 [ 622.741193] [<8004d5f0>] (handle_irq_event_percpu) from [<8004d768>] (handle_irq_event+0x30/0x40) [ 622.750063] r10:807ac0d4 r9:807d2540 r8:8e006000 r7:00000000 r6:00000000 r5:807bd6c4 [ 622.757977] r4:8e0bd480 [ 622.760537] [<8004d738>] (handle_irq_event) from [<8004fce0>] (handle_fasteoi_irq+0xa4/0x16c) [ 622.769068] r5:807bd6c4 r4:8e0bd480 [ 622.772686] [<8004fc3c>] (handle_fasteoi_irq) from [<8004cdd8>] (generic_handle_irq+0x34/0x44) [ 622.781296] r5:00000027 r4:00000027 [ 622.784913] [<8004cda4>] (generic_handle_irq) from [<8004d03c>] (__handle_domain_irq+0x5c/0xb0) [ 622.793610] r5:00000027 r4:807bd4fc [ 622.797226] [<8004cfe0>] (__handle_domain_irq) from [<80009364>] (gic_handle_irq+0x2c/0x5c) [ 622.805578] r9:807d2540 r8:807ac0cc r7:90002100 r6:807abf20 r5:807ac364 r4:9000210c [ 622.813417] [<80009338>] (gic_handle_irq) from [<80013800>] (__irq_svc+0x40/0x54) [ 622.820906] Exception stack(0x807abf20 to 0x807abf68) [ 622.825976] bf20: 00000001 00000000 00000000 8001d7a0 807aa000 807ac0cc 00000000 00000000 [ 622.834169] bf40: 807ac0cc 807d2540 807ac0d4 807abf74 807abf78 807abf68 80010028 8001002c [ 622.842352] bf60: 60010013 ffffffff [ 622.845845] r7:807abf54 r6:ffffffff r5:60010013 r4:8001002c [ 622.851584] [<8000ffec>] (arch_cpu_idle) from [<80045f14>] (cpu_startup_entry+0x1c8/0x254) [ 622.859870] [<80045d4c>] (cpu_startup_entry) from [<8058f3bc>] (rest_init+0x78/0x7c) [ 622.867619] r7:ffffffff [ 622.870181] [<8058f344>] (rest_init) from [<80777cd4>] (start_kernel+0x390/0x39c) [ 622.877681] [<80777944>] (start_kernel) from [<80008078>] (0x80008078) [ 622.884213] ---[ end trace 4342257fd07cce02 ]--- [ 623.357829] Unable to handle kernel NULL pointer dereference at virtual address 00000004 [ 623.365951] pgd = 80004000 [ 623.368666] [00000004] *pgd=00000000 [ 623.372276] Internal error: Oops: 5 [#1] ARM [ 623.376554] Modules linked in: [ 623.379637] CPU: 0 PID: 0 Comm: swapper Tainted: G W 4.1.5-00004-g326879d #327 [ 623.387991] Hardware name: Freescale Vybrid VF5xx/VF6xx (Device Tree) [ 623.394443] task: 807b04b0 ti: 807aa000 task.ti: 807aa000 [ 623.399870] PC is at udc_irq+0x3f8/0xcdc [ 623.403798] LR is at 0x8db63600 [ 623.406953] pc : [<803a0760>] lr : [<8db63600>] psr: 20070193 [ 623.406953] sp : 807abdd0 ip : 8db0febc fp : 807abe3c [ 623.418437] r10: 8db0febc r9 : 8db0febc r8 : 8d99a8bc [ 623.423671] r7 : 8e02f464 r6 : 8d99a880 r5 : 0000006c r4 : 8db0febc [ 623.430206] r3 : 00000000 r2 : 00200200 r1 : 8db0febc r0 : 8db63600 [ 623.436743] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel [ 623.444144] Control: 10c5387d Table: 8d89c059 DAC: 00000015 [ 623.449896] Process swapper (pid: 0, stack limit = 0x807aa208) [ 623.455738] Stack: (0x807abdd0 to 0x807ac000) [ 623.460110] bdc0: 00000000 807f603c 8039fae8 8e02f408 [ 623.468305] bde0: 807ac044 00000001 8e02f49c 8e02f464 8e02f010 8e02f010 00000001 8d99a8b4 [ 623.476497] be00: 8d99a200 8e02f4bc 802d8a50 8045b69c 807abe5c 8e02f010 807bd6c4 00000000 [ 623.484689] be20: 00000000 00000027 8e0bd480 807ddefe 807abe54 807abe40 8039d6bc 803a0374 [ 623.492882] be40: 8e2d0880 807bd6c4 807abe8c 807abe58 8004d670 8039d670 eafa9486 00000090 [ 623.501074] be60: ffffffff 8e0bd480 807bd6c4 00000000 00000000 8e006000 807d2540 807ac0d4 [ 623.509267] be80: 807abea4 807abe90 8004d768 8004d5fc 8e0bd480 807bd6c4 807abebc 807abea8 [ 623.517459] bea0: 8004fce0 8004d744 00000027 00000027 807abed4 807abec0 8004cdd8 8004fc48 [ 623.525651] bec0: 807bd4fc 00000027 807abefc 807abed8 8004d03c 8004cdb0 9000210c 807ac364 [ 623.533844] bee0: 807abf20 90002100 807ac0cc 807d2540 807abf1c 807abf00 80009364 8004cfec [ 623.542036] bf00: 8001002c 60070013 ffffffff 807abf54 807abf74 807abf20 80013800 80009344 [ 623.550228] bf20: 00000001 00000000 00000000 8001d7a0 807aa000 807ac0cc 00000000 00000000 [ 623.558421] bf40: 807ac0cc 807d2540 807ac0d4 807abf74 807abf78 807abf68 80010028 8001002c [ 623.566613] bf60: 60070013 ffffffff 807abf9c 807abf78 80045f14 8000fff8 807ddefc 807de0c0 [ 623.574806] bf80: 807abf9c 807b4350 80591ee8 ffffffff 807abfac 807abfa0 8058f3bc 80045d58 [ 623.582998] bfa0: 807abff4 807abfb0 80777cd4 8058f350 ffffffff ffffffff 807776d4 00000000 [ 623.591190] bfc0: 00000000 807a1228 00000000 807de294 807ac074 807a1224 807b16e8 80004059 [ 623.599382] bfe0: 410fc051 00000000 00000000 807abff8 80008078 80777950 00000000 00000000 [ 623.607559] Backtrace: [ 623.610047] [<803a0368>] (udc_irq) from [<8039d6bc>] (ci_irq+0x58/0x11c) [ 623.616753] r10:807ddefe r9:8e0bd480 r8:00000027 r7:00000000 r6:00000000 r5:807bd6c4 [ 623.624666] r4:8e02f010 [ 623.627237] [<8039d664>] (ci_irq) from [<8004d670>] (handle_irq_event_percpu+0x80/0x148) [ 623.635333] r5:807bd6c4 r4:8e2d0880 [ 623.638950] [<8004d5f0>] (handle_irq_event_percpu) from [<8004d768>] (handle_irq_event+0x30/0x40) [ 623.647820] r10:807ac0d4 r9:807d2540 r8:8e006000 r7:00000000 r6:00000000 r5:807bd6c4 [ 623.655734] r4:8e0bd480 [ 623.658297] [<8004d738>] (handle_irq_event) from [<8004fce0>] (handle_fasteoi_irq+0xa4/0x16c) [ 623.666826] r5:807bd6c4 r4:8e0bd480 [ 623.670444] [<8004fc3c>] (handle_fasteoi_irq) from [<8004cdd8>] (generic_handle_irq+0x34/0x44) [ 623.679053] r5:00000027 r4:00000027 [ 623.682671] [<8004cda4>] (generic_handle_irq) from [<8004d03c>] (__handle_domain_irq+0x5c/0xb0) [ 623.691368] r5:00000027 r4:807bd4fc [ 623.694986] [<8004cfe0>] (__handle_domain_irq) from [<80009364>] (gic_handle_irq+0x2c/0x5c) [ 623.703335] r9:807d2540 r8:807ac0cc r7:90002100 r6:807abf20 r5:807ac364 r4:9000210c [ 623.711176] [<80009338>] (gic_handle_irq) from [<80013800>] (__irq_svc+0x40/0x54) [ 623.718664] Exception stack(0x807abf20 to 0x807abf68) [ 623.723734] bf20: 00000001 00000000 00000000 8001d7a0 807aa000 807ac0cc 00000000 00000000 [ 623.731927] bf40: 807ac0cc 807d2540 807ac0d4 807abf74 807abf78 807abf68 80010028 8001002c [ 623.740109] bf60: 60070013 ffffffff [ 623.743603] r7:807abf54 r6:ffffffff r5:60070013 r4:8001002c [ 623.749356] [<8000ffec>] (arch_cpu_idle) from [<80045f14>] (cpu_startup_entry+0x1c8/0x254) [ 623.757644] [<80045d4c>] (cpu_startup_entry) from [<8058f3bc>] (rest_init+0x78/0x7c) [ 623.765386] r7:ffffffff [ 623.767954] [<8058f344>] (rest_init) from [<80777cd4>] (start_kernel+0x390/0x39c) [ 623.775447] [<80777944>] (start_kernel) from [<80008078>] (0x80008078) [ 623.781990] Code: e594c000 0a00005f e594300c e1a09004 (e5933004) [ 623.788102] ---[ end trace 4342257fd07cce03 ]--- [ 623.792727] Kernel panic - not syncing: Fatal exception in interrupt [ 623.799090] ---[ end Kernel panic - not syncing: Fatal exception in interrupt Thanks & Regards, Sanchayan Maity. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html