AnsweredAssumed Answered

Unable to handle kernel NULL pointer dereference at virtual address 00000000

Question asked by 贵福 徐 on Nov 28, 2017
Latest reply on Nov 29, 2017 by 贵福 徐

We do our luncher stress test, it will happend kernel panic, look like this:

Similar problems:

Random crash at imx6dl with Android 4.4.2

 

The board is our own design,I have do ddr stress, it look like ok, no error.

So what can i do? This issue had block me for a long times.

 

11-22 19:04:06.623067735 GPU[1](ChipModel=0x320 ChipRevision=0x5007):
11-22 19:04:06.629706734 kernel BUG at drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:2419!
11-22 19:04:06.639181068 Unable to handle kernel NULL pointer dereference at virtual address 00000000
11-22 19:04:06.648775068 pgd = d75b0000
11-22 19:04:06.652515068 [00000000] *pgd=00000000
11-22 19:04:06.657462401 Internal error: Oops: 805 [#1] PREEMPT SMP
11-22 19:04:06.663552067 Modules linked in: cdc_ether usbnet gpio
11-22 19:04:06.669811068 CPU: 3    Not tainted  (3.0.35 #374)
11-22 19:04:06.675377735 PC is at __bug+0x1c/0x28
11-22 19:04:06.679946401 LR is at __bug+0x18/0x28
11-22 19:04:06.684457735 pc : [<c0053130>]    lr : [<c005312c>]    psr: 60070013
11-22 19:04:06.684464401 sp : d7703cb8  ip : 00000000  fp : 00000001
11-22 19:04:06.697871068 r10: 00000000  r9 : 00000002  r8 : 00000000
11-22 19:04:06.704086068 r7 : d7703d04  r6 : 00000660  r5 : 00000001  r4 : d641d300
11-22 19:04:06.711548068 r3 : 00000000  r2 : 00000001  r1 : 02871000  r0 : 0000006e
11-22 19:04:06.719068067 Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
11-22 19:04:06.727195067 Control: 10c53c7d  Table: 275b004a  DAC: 00000015
11-22 19:04:06.733875067
11-22 19:04:06.733878734 PC: 0xc00530b0:
11-22 19:04:06.740079734 30b0  e1a04000 e24dd010 e590003c eb01c5a8 e3500000 0594003c 0a00000d e2841034
11-22 19:04:06.749915734 30d0  e594002c e891000e e88d000f ea000003 e59d000c eb01c59e e3500000 0a000006
11-22 19:04:06.759698400 30f0  e1a0000d eb000eab e3500000 aafffff7 e3a00000 e28dd010 e8bd8010 e59d000c
11-22 19:04:06.769538400 3110  eafffffb e92d4008 e1a03000 e1a02001 e59f0010 e1a01003 eb19b451 e3a03000
11-22 19:04:06.779380400 3130  e5833000 eafffffe c0842f30 e3020f4c e30012e1 e92d4008 e34c0084 ebfffff0
11-22 19:04:06.789221400 3150  e1a01000 e3020f64 e92d4008 e34c0084 eb19b443 e3020f4c e30012c5 e34c0084
11-22 19:04:06.799053068 3170  ebffffe7 e92d4008 e1a02000 e1a03001 e3020f84 e1a0100e e34c0084 eb19b438
11-22 19:04:06.808837068 3190  e3020f4c e3001299 e34c0084 ebffffdc e92d4ff0 e24dd06c e1a06002 e1a08000
11-22 19:04:06.818624068
11-22 19:04:06.818628068 LR: 0xc00530ac:
11-22 19:04:06.824825401 30ac  e92d4010 e1a04000 e24dd010 e590003c eb01c5a8 e3500000 0594003c 0a00000d
11-22 19:04:06.834666735 30cc  e2841034 e594002c e891000e e88d000f ea000003 e59d000c eb01c59e e3500000
11-22 19:04:06.844444067 30ec  0a000006 e1a0000d eb000eab e3500000 aafffff7 e3a00000 e28dd010 e8bd8010
11-22 19:04:06.854284401 310c  e59d000c eafffffb e92d4008 e1a03000 e1a02001 e59f0010 e1a01003 eb19b451
11-22 19:04:06.864135401 312c  e3a03000 e5833000 eafffffe c0842f30 e3020f4c e30012e1 e92d4008 e34c0084
11-22 19:04:06.873982401 314c  ebfffff0 e1a01000 e3020f64 e92d4008 e34c0084 eb19b443 e3020f4c e30012c5
11-22 19:04:06.883820401 316c  e34c0084 ebffffe7 e92d4008 e1a02000 e1a03001 e3020f84 e1a0100e e34c0084
11-22 19:04:06.893600067 318c  eb19b438 e3020f4c e3001299 e34c0084 ebffffdc e92d4ff0 e24dd06c e1a06002
11-22 19:04:06.903442068
11-22 19:04:06.903446068 SP: 0xd7703c38:
11-22 19:04:06.909646401 3c38  c0048320 c0048320 838ab724 00032423 c00471b4 c0048320 4005fec0 00000001
11-22 19:04:06.919487068 3c58  000004d0 0000040f 00000005 00000660 d7703d04 c004f390 0000006e 02871000
11-22 19:04:06.929271401 3c78  00000001 00000000 d641d300 00000001 00000660 d7703d04 00000000 00000002
11-22 19:04:06.939109401 3c98  00000000 00000001 00000000 d7703cb8 c005312c c0053130 60070013 ffffffff
11-22 19:04:06.948948734 3cb8  00000000 c04d9274 d7703d04 d6feb5a0 00000000 00000001 d641d300 c04ef6c8
11-22 19:04:06.958787734 3cd8  00005007 0544a9cb d6096000 c009dfc0 d6feb6a0 ffffffff ffffffff 00000000
11-22 19:04:06.968622401 3cf8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 d7702000
11-22 19:04:06.978407401 3d18  00000001 00000000 d7702000 00000000 00000000 d6feb5a0 00000000 d6feb6a0
11-22 19:04:06.988246734
11-22 19:04:06.988250734 R4: 0xd641d280:
11-22 19:04:06.994450067 d280  ffdf5000 00000002 d6b69aa0 ffdf4000 26b67000 ffdf5000 00000028 00000000
11-22 19:04:07.004286400 d2a0  00000000 d6daa800 26b67018 ffdf5018 00000008 00000008 00000020 00000008
11-22 19:04:07.014068399 d2c0  d709fbe0 00000001 00000000 00000000 00000000 00000000 00000000 00000000
11-22 19:04:07.023903065 d2e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
11-22 19:04:07.033739065 d300  2020534f 00000000 d6b68e00 d709fe20 d61884c0 d6b69b20 d76ed8a0 00000001
11-22 19:04:07.043576731 d320  d709fdc0 d0ed6710 d6db1088 00000005 0000000d 00000000 00000000 00000000
11-22 19:04:07.053363064 d340  00000000 00ee3935 00000000 d709fde0 00000002 d3557680 d786cfa0 d6b6cbc0
11-22 19:04:07.063140063 d360  00000000 00000000 00000000 00000000 00000000 00000000 d641d378 d641d378
11-22 19:04:07.072977063
11-22 19:04:07.072981063 R7: 0xd7703c84:
11-22 19:04:07.079179732 3c84  00000001 00000660 d7703d04 00000000 00000002 00000000 00000001 00000000
11-22 19:04:07.089017735 3ca4  d7703cb8 c005312c c0053130 60070013 ffffffff 00000000 c04d9274 d7703d04
11-22 19:04:07.098799070 3cc4  d6feb5a0 00000000 00000001 d641d300 c04ef6c8 00005007 0544a9cb d6096000
11-22 19:04:07.108634069 3ce4  c009dfc0 d6feb6a0 ffffffff ffffffff 00000000 00000000 00000000 00000000
11-22 19:04:07.118421734 3d04  00000000 00000000 00000000 00000000 d7702000 00000001 00000000 d7702000
11-22 19:04:07.128265401 3d24  00000000 00000000 d6feb5a0 00000000 d6feb6a0 00004e20 00000000 d7702000
11-22 19:04:07.138102733 3d44  00000000 00000001 c04dc08c 00000000 d76edb60 d7703df0 c04dfca8 00000000
11-22 19:04:07.147888068 3d64  0000093c d402e8c0 d7776ba0 d7703eec 00000000 00000000 00000000 00000000
11-22 19:04:07.157731068 Process surfaceflinger (pid: 2364, stack limit = 0xd77022f0)
11-22 19:04:07.165423401 Stack: (0xd7703cb8 to 0xd7704000)
11-22 19:04:07.170715734 3ca0:                                                       00000000 c04d9274
11-22 19:04:07.179887068 3cc0: d7703d04 d6feb5a0 00000000 00000001 d641d300 c04ef6c8 00005007 0544a9cb
11-22 19:04:07.189057734 3ce0: d6096000 c009dfc0 d6feb6a0 ffffffff ffffffff 00000000 00000000 00000000
11-22 19:04:07.198229402 3d00: 00000000 00000000 00000000 00000000 00000000 d7702000 00000001 00000000
11-22 19:04:07.207345068 3d20: d7702000 00000000 00000000 d6feb5a0 00000000 d6feb6a0 00004e20 00000000
11-22 19:04:07.216460068 3d40: d7702000 00000000 00000001 c04dc08c 00000000 d76edb60 d7703df0 c04dfca8
11-22 19:04:07.225632735 3d60: 00000000 0000093c d402e8c0 d7776ba0 d7703eec 00000000 00000000 00000000
11-22 19:04:07.234804402 3d80: 00000000 00000000 0000093c d7776d80 d402e8c0 d6feb5a0 00000000 00000000
11-22 19:04:07.243974402 3da0: 00000000 d7776d54 fffffff5 d7702000 d6b68e00 d7702000 d61a1460 00007530
11-22 19:04:07.253145068 3dc0: 00000000 d7702000 00000000 c04d8524 bebec3f0 00000000 000000f8 00000000
11-22 19:04:07.262260068 3de0: bebec3f0 00000000 000000f8 00000000 00000010 00000002 bebec430 00000000
11-22 19:04:07.271432067 3e00: 000000f8 00000000 40e42308 00000000 00000003 00000014 40d42f90 ffffffff
11-22 19:04:07.280603067 3e20: 40a1a288 bebec480 40c08208 00000001 00000000 4010c801 4010c70a 40a1a290
11-22 19:04:07.289773067 3e40: 000004d0 00000000 00000019 00000320 408986e8 4087de64 bebec480 d90c6f57
11-22 19:04:07.298945401 3e60: 00000000 d90c6f57 00000050 00000000 00000000 401c4008 bebec5b8 00000001
11-22 19:04:07.308060734 3e80: 400e7008 00000001 00000001 d90c6f57 4087de64 00000001 410aff38 4156441c
11-22 19:04:07.317235734 3ea0: 410aff88 4080bb91 40e42308 bebec508 4156441c 4048fbf8 41563834 40486bb8
11-22 19:04:07.326483400 3ec0: 00000001 40e42310 410afec8 40813273 00000000 00000000 40d41830 4087de64
11-22 19:04:07.335654066 3ee0: bebec508 d90c6f57 d78788d0 bebec3b8 d7031960 0000000f 00000000 d7702000
11-22 19:04:07.344824066 3f00: 00000000 c0145f64 d49b71a0 00000000 00000000 00000000 00000000 00000000
11-22 19:04:07.353942065 3f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
11-22 19:04:07.363113398 3f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
11-22 19:04:07.372283064 3f60: 00000000 d7031960 bebec3b8 00007530 0000000f 00000000 d7702000 00000000
11-22 19:04:07.381455396 3f80: 00000001 c0146510 00000000 00000001 00002710 4087eee8 bebec3f0 00000036
11-22 19:04:07.390623729 3fa0: c004fb44 c004f9c0 00002710 4087eee8 0000000f 00007530 bebec3b8 bebec3a0
11-22 19:04:07.399739728 3fc0: 00002710 4087eee8 bebec3f0 00000036 4048fbf8 41563834 40486bb8 00000001
11-22 19:04:07.408911728 3fe0: 4156441c bebec390 4016023b 40153664 600f0010 0000000f 00000000 00000000
11-22 19:04:07.418100727 [<c0053130>] (__bug+0x1c/0x28) from [<c04d9274>] (gckOS_ReadRegisterEx+0xd8/0xdc)
11-22 19:04:07.427634393 [<c04d9274>] (gckOS_ReadRegisterEx+0xd8/0xdc) from [<c04ef6c8>] (gckHARDWARE_DumpGPUState+0x7c/0x7f8)
11-22 19:04:07.438899059 [<c04ef6c8>] (gckHARDWARE_DumpGPUState+0x7c/0x7f8) from [<c04dc08c>] (gckOS_Broadcast+0x38/0xe8)
11-22 19:04:07.449729391 [<c04dc08c>] (gckOS_Broadcast+0x38/0xe8) from [<c04dfca8>] (gckKERNEL_Dispatch+0x1020/0x1228)
11-22 19:04:07.460295057 [<c04dfca8>] (gckKERNEL_Dispatch+0x1020/0x1228) from [<c04d8524>] (drv_ioctl+0x120/0x270)
11-22 19:04:07.470513056 [<c04d8524>] (drv_ioctl+0x120/0x270) from [<c0145f64>] (do_vfs_ioctl+0x84/0x5c0)
11-22 19:04:07.479892056 [<c0145f64>] (do_vfs_ioctl+0x84/0x5c0) from [<c0146510>] (sys_ioctl+0x70/0x78)
11-22 19:04:07.489149388 [<c0146510>] (sys_ioctl+0x70/0x78) from [<c004f9c0>] (ret_fast_syscall+0x0/0x30)
11-22 19:04:07.498579721 Code: e59f0010 e1a01003 eb19b451 e3a03000 (e5833000)
11-22 19:04:07.505988054 ---[ end trace 1911a33309126760 ]---
11-22 19:04:07.500 W/AudioFlinger11-22 19:04:07.511557058 Kernel panic - not syncing: Fatal exception
( 2367): write blocked for 857 ms11-22 19:04:07.520601733 [<c0057104>] (unwind_backtrace+0x0/0x138) from [<c06c0154>] (panic+0x74/0x194)
ecs, 3 delayed writes, thread 0x411-22 19:04:07.532584403 [<c06c0154>] (panic+0x74/0x194) from [<c0053598>] (die+0x218/0x284)
0e97008
11-22 19:04:07.543576070 [<c0053598>] (die+0x218/0x284) from [<c06bf5d0>] (__do_kernel_fault.part.3+0x54/0x74)
11-22 19:04:07.554130402 [<c06bf5d0>] (__do_kernel_fault.part.3+0x54/0x74) from [<c005aed0>] (do_page_fault+0x2cc/0x334)
11-22 19:04:07.564890735 [<c005aed0>] (do_page_fault+0x2cc/0x334) from [<c0049424>] (do_DataAbort+0x34/0x9c)
11-22 19:04:07.574606735 [<c0049424>] (do_DataAbort+0x34/0x9c) from [<c004f390>] (__dabt_svc+0x70/0xa0)
11-22 19:04:07.583901401 Exception stack(0xd7703c70 to 0xd7703cb8)
11-22 19:04:07.589900068 3c60:                                     0000006e 02871000 00000001 00000000
11-22 19:04:07.599090068 3c80: d641d300 00000001 00000660 d7703d04 00000000 00000002 00000000 00000001
11-22 19:04:07.608280068 3ca0: 00000000 d7703cb8 c005312c c0053130 60070013 ffffffff
11-22 19:04:07.615911735 [<c004f390>] (__dabt_svc+0x70/0xa0) from [<c0053130>] (__bug+0x1c/0x28)
11-22 19:04:07.624537068 [<c0053130>] (__bug+0x1c/0x28) from [<c04d9274>] (gckOS_ReadRegisterEx+0xd8/0xdc)
11-22 19:04:07.634094401 [<c04d9274>] (gckOS_ReadRegisterEx+0xd8/0xdc) from [<c04ef6c8>] (gckHARDWARE_DumpGPUState+0x7c/0x7f8)
11-22 19:04:07.645388401 [<c04ef6c8>] (gckHARDWARE_DumpGPUState+0x7c/0x7f8) from [<c04dc08c>] (gckOS_Broadcast+0x38/0xe8)
11-22 19:04:07.656241735 [<c04dc08c>] (gckOS_Broadcast+0x38/0xe8) from [<c04dfca8>] (gckKERNEL_Dispatch+0x1020/0x1228)
11-22 19:04:07.666842068 [<c04dfca8>] (gckKERNEL_Dispatch+0x1020/0x1228) from [<c04d8524>] (drv_ioctl+0x120/0x270)
11-22 19:04:07.677077401 [<c04d8524>] (drv_ioctl+0x120/0x270) from [<c0145f64>] (do_vfs_ioctl+0x84/0x5c0)
11-22 19:04:07.686536735 [<c0145f64>] (do_vfs_ioctl+0x84/0x5c0) from [<c0146510>] (sys_ioctl+0x70/0x78)
11-22 19:04:07.695812735 [<c0146510>] (sys_ioctl+0x70/0x78) from [<c004f9c0>] (ret_fast_syscall+0x0/0x30)
11-22 19:04:07.705218068 CPU1: stopping
11-22 19:04:07.708933068 [<c0057104>] (unwind_backtrace+0x0/0x138) from [<c00493bc>] (do_IPI+0x1d4/0x208)
11-22 19:04:07.718370068 [<c00493bc>] (do_IPI+0x1d4/0x208) from [<c004f40c>] (__irq_svc+0x4c/0xe8)
11-22 19:04:07.727135734 Exception stack(0xd6065f90 to 0xd6065fd8)
11-22 19:04:07.733180401 5f80:                                     c0a002e8 200f0093 00000001 00000000
11-22 19:04:07.742351734 5fa0: d6064000 c09f7d04 c0971a70 c06ca1f8 c097a2ac 412fc09a 00000000 00000000
11-22 19:04:07.751465734 5fc0: 00000000 d6065fd8 c005f3c4 c0050528 400f0013 ffffffff
11-22 19:04:07.759076734 [<c004f40c>] (__irq_svc+0x4c/0xe8) from [<c0050528>] (default_idle+0x24/0x28)
11-22 19:04:07.768250068 [<c0050528>] (default_idle+0x24/0x28) from [<c0050850>] (cpu_idle+0xe0/0x124)
11-22 19:04:07.777424068 [<c0050850>] (cpu_idle+0xe0/0x124) from [<106bbb14>] (0x106bbb14)
11-22 19:04:07.785495401 CPU2: stopping
11-22 19:04:07.789205401 [<c0057104>] (unwind_backtrace+0x0/0x138) from [<c00493bc>] (do_IPI+0x1d4/0x208)
11-22 19:04:07.798638401 [<c00493bc>] (do_IPI+0x1d4/0x208) from [<c004f40c>] (__irq_svc+0x4c/0xe8)
11-22 19:04:07.807405068 Exception stack(0xd608ff90 to 0xd608ffd8)
11-22 19:04:07.813448735 ff80:                                     c0a002e8 600b0093 00000001 00000000
11-22 19:04:07.822620068 ffa0: d608e000 c09f7d04 c0971a70 c06ca1f8 c097a2ac 412fc09a 00000000 00000000
11-22 19:04:07.831734401 ffc0: 00000000 d608ffd8 c005f3c4 c0050528 400b0013 ffffffff
11-22 19:04:07.839344734 [<c004f40c>] (__irq_svc+0x4c/0xe8) from [<c0050528>] (default_idle+0x24/0x28)
11-22 19:04:07.848519401 [<c0050528>] (default_idle+0x24/0x28) from [<c0050850>] (cpu_idle+0xe0/0x124)
11-22 19:04:07.857692401 [<c0050850>] (cpu_idle+0xe0/0x124) from [<106bbb14>] (0x106bbb14)
11-22 19:04:07.865763401 CPU0: stopping
11-22 19:04:07.869472068 [<c0057104>] (unwind_backtrace+0x0/0x138) from [<c00493bc>] (do_IPI+0x1d4/0x208)
11-22 19:04:07.878908068 [<c00493bc>] (do_IPI+0x1d4/0x208) from [<c004f40c>] (__irq_svc+0x4c/0xe8)
11-22 19:04:07.887672734 Exception stack(0xd632be00 to 0xd632be48)
11-22 19:04:07.893718068 be00: c28a1320 c09790a0 02859000 00000000 d62dd9c0 c28a1320 c09790a0 d632a000
11-22 19:04:07.902890401 be20: d2f22b44 c09790a0 d62ddc5c d632befc c09790a0 d632be48 c06c4c74 c06c7198
11-22 19:04:07.912003068 be40: 60070013 ffffffff
11-22 19:04:07.916493068 [<c004f40c>] (__irq_svc+0x4c/0xe8) from [<c06c7198>] (_raw_spin_unlock_irq+0x18/0x40)
11-22 19:04:07.926365401 [<c06c7198>] (_raw_spin_unlock_irq+0x18/0x40) from [<c06c4c74>] (__schedule+0x308/0x958)
11-22 19:04:07.936507068 [<c06c4c74>] (__schedule+0x308/0x958) from [<c0091628>] (do_syslog+0x460/0x4cc)
11-22 19:04:07.945801401 [<c0091628>] (do_syslog+0x460/0x4cc) from [<c017b340>] (proc_reg_read+0x70/0x94)
11-22 19:04:07.955246068 [<c017b340>] (proc_reg_read+0x70/0x94) from [<c01369a8>] (vfs_read+0xa4/0x134)
11-22 19:04:07.964509735 [<c01369a8>] (vfs_read+0xa4/0x134) from [<c0136a74>] (sys_read+0x3c/0x68)
11-22 19:04:07.973337735 [<c0136a74>] (sys_read+0x3c/0x68) from [<c004f9c0>] (ret_fast_syscall+0x0/0x30)
CONFIG_SYS_I2C_SPEED----------100000
oprate rtc chip--plpl--loop-----
pcf8563 i2c_write_3 RTC_REG_CON_STA2 5

Outcomes