root@debian-powerpc:~# ubiattach -m0 /dev/ubi_ctrl [ 38.408798] UBI: attaching mtd0 to ubi0 [ 38.412735] UBI: physical eraseblock size: 131072 bytes (128 KiB) [ 38.419093] UBI: logical eraseblock size: 126976 bytes [ 38.424690] UBI: smallest flash I/O unit: 2048 [ 38.429397] UBI: VID header offset: 2048 (aligned 2048) [ 38.435441] UBI: data offset: 4096 [ 38.441149] UBI error: validate_ec_hdr: bad VID header offset 512, expected 2048 [ 38.448584] UBI error: validate_ec_hdr: bad EC header [ 38.453668] UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0 [ 38.460417] ------------[ cut here ]------------ [ 38.465005] WARNING: at lib/list_debug.c:47 [ 38.470046] ---[ end trace 5f944587f0aaa94a ]--- [ 38.474733] Unable to handle kernel paging request for data at address 0xbbfbfff3 [ 38.482223] Faulting instruction address: 0xc00aaff0 [ 38.487234] Oops: Kernel access of bad area, sig: 11 [#1] [ 38.492670] PREEMPT MPC5125 CanCorder2 [ 38.496449] Modules linked in: [ 38.499525] NIP: c00aaff0 LR: c00ab538 CTR: 00000001 [ 38.504533] REGS: cecd5bb0 TRAP: 0300 Tainted: G W (3.0.23+) [ 38.511289] MSR: 00001032 CR: 42008428 XER: 20000000 [ 38.517438] DAR: bbfbfff3, DSISR: 20000000 [ 38.521568] TASK = cfb6e420[1353] 'ubiattach' THREAD: cecd4000 [ 38.527272] GPR00: 00008000 cecd5c60 cfb6e420 bbfbfff3 cec6ac30 6b6b6b6b 00000000 c0436540 [ 38.535703] GPR08: c05677a4 fb3eefff 00000000 c05ab000 22008482 1001e55c 7fffffff c03623a4 [ 38.544133] GPR16: c036238c cfac7478 c05a0000 c059fc0c cec018ac fffffffd c0461214 cf8d0f8c [ 38.552563] GPR24: 00000000 6b6b6b6b cec6ac30 00000000 6b6b6b6b cf8d0f00 cf8d0f00 cec6ac20 [ 38.561178] NIP [c00aaff0] free_block+0x90/0x1b8 [ 38.565831] LR [c00ab538] __cache_shrink+0x54/0x138 [ 38.570741] Call Trace: [ 38.573207] [cecd5c60] [20000000] 0x20000000 (unreliable) [ 38.578653] [cecd5ca0] [c00ab538] __cache_shrink+0x54/0x138 [ 38.584274] [cecd5cb0] [c00acac0] kmem_cache_destroy+0x54/0xec [ 38.590160] [cecd5cd0] [c02391f4] ubi_scan_destroy_si+0x230/0x264 [ 38.596306] [cecd5cf0] [c0239d88] ubi_scan+0x190/0xa3c [ 38.601487] [cecd5d60] [c02316a8] ubi_attach_mtd_dev+0x590/0xc98 [ 38.607546] [cecd5e60] [c0232060] ctrl_cdev_ioctl+0x140/0x1d8 [ 38.613343] [cecd5ea0] [c00c0dfc] do_vfs_ioctl+0x9c/0x7bc [ 38.618786] [cecd5f10] [c00c155c] sys_ioctl+0x40/0x88 [ 38.623883] [cecd5f40] [c0011f10] ret_from_syscall+0x0/0x38 [ 38.629500] --- Exception: c01 at 0xff53288 [ 38.629508] LR = 0xff531ec [ 38.636781] Instruction dump: [ 38.639768] 3b5a0004 7f99d800 409d010c 839a0000 81760000 3c1c4000 5400c9f4 7d2b00 2e [ 38.647583] 7c6b0214 71208000 41820008 8063000c [ 38.652063] 68000080 5400cffe 0f000000 [ 38.656196] ---[ end trace 5f944587f0aaa94b ]--- [ 38.660851] note: ubiattach[1353] exited with preempt_count 1 [ 38.666738] BUG: scheduling while atomic: ubiattach/1353/0x10000002 [ 38.673035] Modules linked in: [ 38.676068] Call Trace: [ 38.678565] [cecd5890] [c0008508] show_stack+0x48/0x168 (unreliable) [ 38.684958] [cecd58d0] [c002222c] __schedule_bug+0x68/0x6c [ 38.690490] [cecd58e0] [c03429a8] __schedule+0x400/0x410 [ 38.695841] [cecd59e0] [c002275c] __cond_resched+0x18/0x2c [ 38.701373] [cecd59f0] [c0342bc8] _cond_resched+0x40/0x54 [ 38.706825] [cecd5a00] [c00989bc] unmap_vmas+0x328/0x4ec [ 38.712174] [cecd5a80] [c009b1dc] exit_mmap+0xac/0x160 [ 38.717356] [cecd5ae0] [c0027f78] mmput+0x54/0x100 [ 38.722186] [cecd5af0] [c002c418] exit_mm+0x138/0x16c [ 38.727278] [cecd5b20] [c002e5ec] do_exit+0x5bc/0x6dc [ 38.732370] [cecd5b70] [c000c0fc] die+0x228/0x23c [ 38.737136] [cecd5b90] [c0018534] bad_page_fault+0xb4/0xfc [ 38.742651] [cecd5ba0] [c00123b0] handle_page_fault+0x7c/0x80 [ 38.748447] --- Exception: 300 at free_block+0x90/0x1b8 [ 38.748457] LR = __cache_shrink+0x54/0x138 [ 38.758209] [cecd5c60] [20000000] 0x20000000 (unreliable) [ 38.763633] [cecd5ca0] [c00ab538] __cache_shrink+0x54/0x138 [ 38.769254] [cecd5cb0] [c00acac0] kmem_cache_destroy+0x54/0xec [ 38.775143] [cecd5cd0] [c02391f4] ubi_scan_destroy_si+0x230/0x264 [ 38.781286] [cecd5cf0] [c0239d88] ubi_scan+0x190/0xa3c [ 38.786467] [cecd5d60] [c02316a8] ubi_attach_mtd_dev+0x590/0xc98 [ 38.792526] [cecd5e60] [c0232060] ctrl_cdev_ioctl+0x140/0x1d8 [ 38.798325] [cecd5ea0] [c00c0dfc] do_vfs_ioctl+0x9c/0x7bc [ 38.803767] [cecd5f10] [c00c155c] sys_ioctl+0x40/0x88 [ 38.808862] [cecd5f40] [c0011f10] ret_from_syscall+0x0/0x38 [ 38.814479] --- Exception: c01 at 0xff53288 [ 38.814489] LR = 0xff531ec [ 38.822097] BUG: scheduling while atomic: ubiattach/1353/0x10000002 [ 38.828438] Modules linked in: [ 38.831443] Call Trace: [ 38.833949] [cecd5990] [c0008508] show_stack+0x48/0x168 (unreliable) [ 38.840335] [cecd59d0] [c002222c] __schedule_bug+0x68/0x6c [ 38.845864] [cecd59e0] [c03429a8] __schedule+0x400/0x410 [ 38.851216] [cecd5ae0] [c002275c] __cond_resched+0x18/0x2c [ 38.856748] [cecd5af0] [c0342bc8] _cond_resched+0x40/0x54 [ 38.862195] [cecd5b00] [c002c67c] put_files_struct+0x108/0x120 [ 38.868074] [cecd5b20] [c002e600] do_exit+0x5d0/0x6dc [ 38.873184] [cecd5b70] [c000c0fc] die+0x228/0x23c [ 38.877918] [cecd5b90] [c0018534] bad_page_fault+0xb4/0xfc [ 38.883450] [cecd5ba0] [c00123b0] handle_page_fault+0x7c/0x80 [ 38.889244] --- Exception: 300 at free_block+0x90/0x1b8 [ 38.889255] LR = __cache_shrink+0x54/0x138 [ 38.899006] [cecd5c60] [20000000] 0x20000000 (unreliable) [ 38.904431] [cecd5ca0] [c00ab538] __cache_shrink+0x54/0x138 [ 38.910052] [cecd5cb0] [c00acac0] kmem_cache_destroy+0x54/0xec [ 38.915942] [cecd5cd0] [c02391f4] ubi_scan_destroy_si+0x230/0x264 [ 38.922086] [cecd5cf0] [c0239d88] ubi_scan+0x190/0xa3c [ 38.927264] [cecd5d60] [c02316a8] ubi_attach_mtd_dev+0x590/0xc98 [ 38.933325] [cecd5e60] [c0232060] ctrl_cdev_ioctl+0x140/0x1d8 [ 38.939124] [cecd5ea0] [c00c0dfc] do_vfs_ioctl+0x9c/0x7bc [ 38.944564] [cecd5f10] [c00c155c] sys_ioctl+0x40/0x88 [ 38.949661] [cecd5f40] [c0011f10] ret_from_syscall+0x0/0x38 [ 38.955276] --- Exception: c01 at 0xff53288 [ 38.955286] LR = 0xff531ec [ 38.962622] BUG: scheduling while atomic: ubiattach/1353/0x10000002 [ 38.968909] Modules linked in: [ 38.971952] Call Trace: [ 38.974453] [cecd5990] [c0008508] show_stack+0x48/0x168 (unreliable) [ 38.980839] [cecd59d0] [c002222c] __schedule_bug+0x68/0x6c [ 38.986371] [cecd59e0] [c03429a8] __schedule+0x400/0x410 [ 38.991725] [cecd5ae0] [c002275c] __cond_resched+0x18/0x2c [ 38.997258] [cecd5af0] [c0342bc8] _cond_resched+0x40/0x54 [ 39.002702] [cecd5b00] [c002c67c] put_files_struct+0x108/0x120 [ 39.008583] [cecd5b20] [c002e600] do_exit+0x5d0/0x6dc [ 39.013677] [cecd5b70] [c000c0fc] die+0x228/0x23c [ 39.018423] [cecd5b90] [c0018534] bad_page_fault+0xb4/0xfc [ 39.023956] [cecd5ba0] [c00123b0] handle_page_fault+0x7c/0x80 [ 39.029753] --- Exception: 300 at free_block+0x90/0x1b8 [ 39.029763] LR = __cache_shrink+0x54/0x138 [ 39.039514] [cecd5c60] [20000000] 0x20000000 (unreliable) [ 39.044939] [cecd5ca0] [c00ab538] __cache_shrink+0x54/0x138 [ 39.050561] [cecd5cb0] [c00acac0] kmem_cache_destroy+0x54/0xec [ 39.056450] [cecd5cd0] [c02391f4] ubi_scan_destroy_si+0x230/0x264 [ 39.062592] [cecd5cf0] [c0239d88] ubi_scan+0x190/0xa3c [ 39.067773] [cecd5d60] [c02316a8] ubi_attach_mtd_dev+0x590/0xc98 [ 39.073833] [cecd5e60] [c0232060] ctrl_cdev_ioctl+0x140/0x1d8 [ 39.079631] [cecd5ea0] [c00c0dfc] do_vfs_ioctl+0x9c/0x7bc [ 39.085088] [cecd5f10] [c00c155c] sys_ioctl+0x40/0x88 [ 39.090168] [cecd5f40] [c0011f10] ret_from_syscall+0x0/0x38 [ 39.095785] --- Exception: c01 at 0xff53288 [ 39.095794] LR = 0xff531ec Segmentation fault