dd fails : Unable to handle kernel NULL pointer dereference at virtual address 00000000

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dd fails : Unable to handle kernel NULL pointer dereference at virtual address 00000000

1,211 Views
dr_lee
Contributor I

Hello,

I porting BSP to custom board with iMX6Solo, and it is booting fine. Simpel programs are running fine.

However, when I copy large files I get kernel panic.

Example :

dd if=/dev/zero of=/tmp/1.raw bs=1M count=300 --> gives me panic

dd if=/dev/zero of=/tmp/1.raw bs=1M count=30 --> no problem

Can you please guide me?

Here is Kernel oops log :

[   35.953121] Unable to handle kernel NULL pointer dereference at virtual address 00000000

[   35.961223] pgd = bfcf8000

[   35.963929] [00000000] *pgd=4fcd7831, *pte=00000000, *ppte=00000000

[   35.970231] Internal error: Oops: 17 [#1] PREEMPT

[   35.974937] Modules linked in:

[   35.978004] CPU: 0    Not tainted  (3.0.35 #1)

[   35.982456] PC is at __wake_up_common+0x28/0x90

[   35.986988] LR is at __wake_up+0x3c/0x6c

[   35.990912] pc : [<80055694>]    lr : [<80056474>]    psr: a0000093

[   35.990917] sp : bfcf5d38  ip : 00000000  fp : bfcf5d64

[   36.002402] r10: 00000003  r9 : bfcf5d80  r8 : 00000000

[   36.007627] r7 : 8c001290  r6 : 00001000  r5 : 00000013  r4 : bfcf4000

[   36.014155] r3 : 00000000  r2 : 00000001  r1 : 00000003  r0 : 8c001290

[   36.020685] Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user

[   36.027907] Control: 10c53c7d  Table: 4fcf8059  DAC: 00000015

[   36.033654] Process dd (pid: 573, stack limit = 0xbfcf42e8)

[   36.039227] Stack: (0xbfcf5d38 to 0xbfcf6000)

[   36.043586] 5d20:                                                       8bd80020 00000001

[   36.051769] 5d40: 00000001 bfcf4000 00000013 00001000 bfe662b4 00000000 00029000 803d0294

[   36.059950] 5d60: bfcf5d7c 80056474 bfcf5d80 00000000 8bd80020 00001000 bfed4200 80076830

[   36.068131] 5d80: 8bd80020 00000000 00001000 800af7cc 00000000 bfcf4000 00001000 800a0400

[   36.076312] 5da0: 00001000 00001000 8bd80020 00000147 11329000 00000000 00001000 00000000

[   36.084493] 5dc0: bfcf5f40 00000001 00029000 000d7000 8bd80020 00000147 16a65704 bfcf4000

[   36.092675] 5de0: 00000000 bfed4200 00000000 bfe662b4 00100000 11300000 bfcf5f00 800a1504

[   36.100855] 5e00: 11300000 00000000 bfcf5f00 00100000 00000000 80084df8 00000000 bfed4200

[   36.109036] 5e20: bfcaadb0 8053f998 11300000 00000000 bfcf5ec8 bfcf5f40 bfcf5f00 00000001

[   36.117217] 5e40: bfcf5e5c 80055c88 bfcf5e48 bfcf5e48 bfcf5e50 00100000 bfcf5ee4 bfcf5ec8

[   36.125398] 5e60: bfe6621c bfed4200 bfcf5f40 00000001 bfcf4000 11300000 00000000 800a17d0

[   36.133579] 5e80: 00100000 00000000 91827364 bfcf5e8c bfcf5e8c bfcf5e94 bfcf5e94 00000000

[   36.141760] 5ea0: fffffdee bfed4200 11300000 00000000 bfcf5f80 00000000 00100000 800d6474

[   36.149940] 5ec0: 11300000 00000000 f2a00100 000003ff 00000000 00000001 ffffffff bfed4200

[   36.158121] 5ee0: 00000000 00000000 00000000 00000000 bfcaad80 80033830 00000000 00000000

[   36.166302] 5f00: 11300000 00000000 00001000 000c9000 00100000 00036000 00100000 bfed4e88

[   36.174482] 5f20: 00000000 00000001 00000000 00000000 00000000 00000000 20000013 bfed4e88

[   36.182663] 5f40: 2ad62008 00100000 bfed4200 00100000 2ad62008 bfcf5f80 00100000 800d6b94

[   36.190844] 5f60: 00000000 00000000 bfed4200 2ad62008 11300000 00000000 00100000 800d6e04

[   36.199025] 5f80: 11300000 00000000 00000001 00000000 001053f0 00100000 2ad62008 00000004

[   36.207206] 5fa0: 80033e84 80033d00 001053f0 00100000 00000001 2ad62008 00100000 00100000

[   36.215387] 5fc0: 001053f0 00100000 2ad62008 00000004 00000000 00000020 00000000 00100000

[   36.223568] 5fe0: 00000001 7eb5baf8 00023430 2acf0afc 60000010 00000001 4fffc811 4fffcc11

[   36.231757] [<80055694>] (__wake_up_common+0x28/0x90) from [<80056474>] (__wake_up+0x3c/0x6c)

[   36.240289] [<80056474>] (__wake_up+0x3c/0x6c) from [<80076830>] (__wake_up_bit+0x2c/0x34)

[   36.248571] [<80076830>] (__wake_up_bit+0x2c/0x34) from [<800af7cc>] (shmem_write_end+0x6c/0x84)

[   36.257375] [<800af7cc>] (shmem_write_end+0x6c/0x84) from [<800a0400>] (generic_file_buffered_write+0xe4/0x23c)

[   36.267475] [<800a0400>] (generic_file_buffered_write+0xe4/0x23c) from [<800a1504>] (__generic_file_aio_write+0x238/0x4a8)

[   36.278527] [<800a1504>] (__generic_file_aio_write+0x238/0x4a8) from [<800a17d0>] (generic_file_aio_write+0x5c/0xd4)

[   36.289060] [<800a17d0>] (generic_file_aio_write+0x5c/0xd4) from [<800d6474>] (do_sync_write+0xa4/0xe4)

[   36.298459] [<800d6474>] (do_sync_write+0xa4/0xe4) from [<800d6b94>] (vfs_write+0xa8/0x138)

[   36.306816] [<800d6b94>] (vfs_write+0xa8/0x138) from [<800d6e04>] (sys_write+0x40/0x6c)

[   36.314831] [<800d6e04>] (sys_write+0x40/0x6c) from [<80033d00>] (ret_fast_syscall+0x0/0x30)

[   36.323274] Code: e1a08003 e590c000 e59b9004 e150000c (e41c400c)

[   36.329428] ---[ end trace f70b589e6d804578 ]---

[   36.334065] note: dd[573] exited with preempt_count 1

[   36.339158] BUG: scheduling while atomic: dd/573/0x40000002

[   36.344743] Modules linked in:

[   36.347828] [<800395f8>] (unwind_backtrace+0x0/0xf8) from [<803c66b4>] (__schedule+0x374/0x440)

[   36.356546] [<803c66b4>] (__schedule+0x374/0x440) from [<80056428>] (__cond_resched+0x24/0x34)

[   36.365173] [<80056428>] (__cond_resched+0x24/0x34) from [<803c6818>] (_cond_resched+0x34/0x44)

[   36.373892] [<803c6818>] (_cond_resched+0x34/0x44) from [<800ba328>] (unmap_vmas+0x40c/0x6f0)

[   36.382435] [<800ba328>] (unmap_vmas+0x40c/0x6f0) from [<800bfdbc>] (exit_mmap+0x108/0x2bc)

[   36.390806] [<800bfdbc>] (exit_mmap+0x108/0x2bc) from [<8005a2a0>] (mmput+0x40/0x128)

[   36.398646] [<8005a2a0>] (mmput+0x40/0x128) from [<8005e20c>] (exit_mm+0x140/0x188)

[   36.406319] [<8005e20c>] (exit_mm+0x140/0x188) from [<8005fcf0>] (do_exit+0x550/0x6ec)

[   36.414256] [<8005fcf0>] (do_exit+0x550/0x6ec) from [<80037110>] (die+0x198/0x1d4)

[   36.421843] [<80037110>] (die+0x198/0x1d4) from [<803c33e4>] (__do_kernel_fault.part.4+0x54/0x74)

[   36.430734] [<803c33e4>] (__do_kernel_fault.part.4+0x54/0x74) from [<8003d000>] (do_page_fault+0x2b8/0x320)

[   36.440491] [<8003d000>] (do_page_fault+0x2b8/0x320) from [<8002e1e4>] (do_DataAbort+0x34/0x9c)

[   36.449196] [<8002e1e4>] (do_DataAbort+0x34/0x9c) from [<80033750>] (__dabt_svc+0x70/0xa0)

[   36.457474] Exception stack(0xbfcf5cf0 to 0xbfcf5d38)

[   36.462536] 5ce0:                                     8c001290 00000003 00000001 00000000

[   36.470725] 5d00: bfcf4000 00000013 00001000 8c001290 00000000 bfcf5d80 00000003 bfcf5d64

[   36.478906] 5d20: 00000000 bfcf5d38 80056474 80055694 a0000093 ffffffff

[   36.485535] [<80033750>] (__dabt_svc+0x70/0xa0) from [<80055694>] (__wake_up_common+0x28/0x90)

[   36.494160] [<80055694>] (__wake_up_common+0x28/0x90) from [<80056474>] (__wake_up+0x3c/0x6c)

[   36.502699] [<80056474>] (__wake_up+0x3c/0x6c) from [<80076830>] (__wake_up_bit+0x2c/0x34)

[   36.510983] [<80076830>] (__wake_up_bit+0x2c/0x34) from [<800af7cc>] (shmem_write_end+0x6c/0x84)

[   36.519781] [<800af7cc>] (shmem_write_end+0x6c/0x84) from [<800a0400>] (generic_file_buffered_write+0xe4/0x23c)

[   36.529887] [<800a0400>] (generic_file_buffered_write+0xe4/0x23c) from [<800a1504>] (__generic_file_aio_write+0x238/0x4a8)

[   36.540948] [<800a1504>] (__generic_file_aio_write+0x238/0x4a8) from [<800a17d0>] (generic_file_aio_write+0x5c/0xd4)

[   36.551487] [<800a17d0>] (generic_file_aio_write+0x5c/0xd4) from [<800d6474>] (do_sync_write+0xa4/0xe4)

[   36.560895] [<800d6474>] (do_sync_write+0xa4/0xe4) from [<800d6b94>] (vfs_write+0xa8/0x138)

[   36.569253] [<800d6b94>] (vfs_write+0xa8/0x138) from [<800d6e04>] (sys_write+0x40/0x6c)

[   36.577272] [<800d6e04>] (sys_write+0x40/0x6c) from [<80033d00>] (ret_fast_syscall+0x0/0x30)

[   36.586064] BUG: scheduling while atomic: dd/573/0x40000002

[   36.591655] Modules linked in:

[   36.594737] [<800395f8>] (unwind_backtrace+0x0/0xf8) from [<803c66b4>] (__schedule+0x374/0x440)

[   36.603459] [<803c66b4>] (__schedule+0x374/0x440) from [<80056428>] (__cond_resched+0x24/0x34)

[   36.612088] [<80056428>] (__cond_resched+0x24/0x34) from [<803c6818>] (_cond_resched+0x34/0x44)

[   36.620808] [<803c6818>] (_cond_resched+0x34/0x44) from [<8005f6d0>] (put_files_struct+0xcc/0xec)

[   36.629688] [<8005f6d0>] (put_files_struct+0xcc/0xec) from [<8005fd00>] (do_exit+0x560/0x6ec)

[   36.638237] [<8005fd00>] (do_exit+0x560/0x6ec) from [<80037110>] (die+0x198/0x1d4)

[   36.645825] [<80037110>] (die+0x198/0x1d4) from [<803c33e4>] (__do_kernel_fault.part.4+0x54/0x74)

[   36.654715] [<803c33e4>] (__do_kernel_fault.part.4+0x54/0x74) from [<8003d000>] (do_page_fault+0x2b8/0x320)

[   36.664471] [<8003d000>] (do_page_fault+0x2b8/0x320) from [<8002e1e4>] (do_DataAbort+0x34/0x9c)

[   36.673184] [<8002e1e4>] (do_DataAbort+0x34/0x9c) from [<80033750>] (__dabt_svc+0x70/0xa0)

[   36.681458] Exception stack(0xbfcf5cf0 to 0xbfcf5d38)

[   36.686512] 5ce0:                                     8c001290 00000003 00000001 00000000

[   36.694701] 5d00: bfcf4000 00000013 00001000 8c001290 00000000 bfcf5d80 00000003 bfcf5d64

[   36.702889] 5d20: 00000000 bfcf5d38 80056474 80055694 a0000093 ffffffff

[   36.709510] [<80033750>] (__dabt_svc+0x70/0xa0) from [<80055694>] (__wake_up_common+0x28/0x90)

[   36.718136] [<80055694>] (__wake_up_common+0x28/0x90) from [<80056474>] (__wake_up+0x3c/0x6c)

[   36.726676] [<80056474>] (__wake_up+0x3c/0x6c) from [<80076830>] (__wake_up_bit+0x2c/0x34)

[   36.734959] [<80076830>] (__wake_up_bit+0x2c/0x34) from [<800af7cc>] (shmem_write_end+0x6c/0x84)

[   36.743766] [<800af7cc>] (shmem_write_end+0x6c/0x84) from [<800a0400>] (generic_file_buffered_write+0xe4/0x23c)

[   36.753873] [<800a0400>] (generic_file_buffered_write+0xe4/0x23c) from [<800a1504>] (__generic_file_aio_write+0x238/0x4a8)

[   36.764933] [<800a1504>] (__generic_file_aio_write+0x238/0x4a8) from [<800a17d0>] (generic_file_aio_write+0x5c/0xd4)

[   36.775473] [<800a17d0>] (generic_file_aio_write+0x5c/0xd4) from [<800d6474>] (do_sync_write+0xa4/0xe4)

[   36.784881] [<800d6474>] (do_sync_write+0xa4/0xe4) from [<800d6b94>] (vfs_write+0xa8/0x138)

[   36.793245] [<800d6b94>] (vfs_write+0xa8/0x138) from [<800d6e04>] (sys_write+0x40/0x6c)

[   36.801264] [<800d6e04>] (sys_write+0x40/0x6c) from [<80033d00>] (ret_fast_syscall+0x0/0x30)

[   36.809709] BUG: scheduling while atomic: dd/573/0x40000002

[   36.815290] Modules linked in:

[   36.818364] [<800395f8>] (unwind_backtrace+0x0/0xf8) from [<803c66b4>] (__schedule+0x374/0x440)

[   36.827080] [<803c66b4>] (__schedule+0x374/0x440) from [<80056428>] (__cond_resched+0x24/0x34)

[   36.835707] [<80056428>] (__cond_resched+0x24/0x34) from [<803c6818>] (_cond_resched+0x34/0x44)

[   36.844423] [<803c6818>] (_cond_resched+0x34/0x44) from [<8005f6d0>] (put_files_struct+0xcc/0xec)

[   36.853311] [<8005f6d0>] (put_files_struct+0xcc/0xec) from [<8005fd00>] (do_exit+0x560/0x6ec)

[   36.861853] [<8005fd00>] (do_exit+0x560/0x6ec) from [<80037110>] (die+0x198/0x1d4)

[   36.869430] [<80037110>] (die+0x198/0x1d4) from [<803c33e4>] (__do_kernel_fault.part.4+0x54/0x74)

[   36.878317] [<803c33e4>] (__do_kernel_fault.part.4+0x54/0x74) from [<8003d000>] (do_page_fault+0x2b8/0x320)

[   36.888073] [<8003d000>] (do_page_fault+0x2b8/0x320) from [<8002e1e4>] (do_DataAbort+0x34/0x9c)

[   36.896785] [<8002e1e4>] (do_DataAbort+0x34/0x9c) from [<80033750>] (__dabt_svc+0x70/0xa0)

[   36.905059] Exception stack(0xbfcf5cf0 to 0xbfcf5d38)

[   36.910112] 5ce0:                                     8c001290 00000003 00000001 00000000

[   36.918302] 5d00: bfcf4000 00000013 00001000 8c001290 00000000 bfcf5d80 00000003 bfcf5d64

[   36.926490] 5d20: 00000000 bfcf5d38 80056474 80055694 a0000093 ffffffff

[   36.933118] [<80033750>] (__dabt_svc+0x70/0xa0) from [<80055694>] (__wake_up_common+0x28/0x90)

[   36.941744] [<80055694>] (__wake_up_common+0x28/0x90) from [<80056474>] (__wake_up+0x3c/0x6c)

[   36.950283] [<80056474>] (__wake_up+0x3c/0x6c) from [<80076830>] (__wake_up_bit+0x2c/0x34)

[   36.958555] [<80076830>] (__wake_up_bit+0x2c/0x34) from [<800af7cc>] (shmem_write_end+0x6c/0x84)

[   36.967359] [<800af7cc>] (shmem_write_end+0x6c/0x84) from [<800a0400>] (generic_file_buffered_write+0xe4/0x23c)

[   36.977464] [<800a0400>] (generic_file_buffered_write+0xe4/0x23c) from [<800a1504>] (__generic_file_aio_write+0x238/0x4a8)

[   36.988524] [<800a1504>] (__generic_file_aio_write+0x238/0x4a8) from [<800a17d0>] (generic_file_aio_write+0x5c/0xd4)

[   36.999063] [<800a17d0>] (generic_file_aio_write+0x5c/0xd4) from [<800d6474>] (do_sync_write+0xa4/0xe4)

[   37.008471] [<800d6474>] (do_sync_write+0xa4/0xe4) from [<800d6b94>] (vfs_write+0xa8/0x138)

[   37.016836] [<800d6b94>] (vfs_write+0xa8/0x138) from [<800d6e04>] (sys_write+0x40/0x6c)

[   37.024855] [<800d6e04>] (sys_write+0x40/0x6c) from [<80033d00>] (ret_fast_syscall+0x0/0x30)

Labels (2)
Tags (5)
0 Kudos
Reply
0 Replies