JFFS2 Non-Contiguous Write Oops on 2.6.18

Scott Shumate scott.shumate at ucontrol.com
Mon Oct 2 10:36:20 EDT 2006


I have ported my platform from 2.6.15 to 2.6.18 and I am now getting a kernel oops in JFFS2.  The JFFS2 filesystem is the root filesystem and was created from the latest mkfs.jffs2 from the git repository.  The 2.6.15 kernel will mount and run this filesystem flawlessly but if I switch to 2.6.18, it will produce this same oops every time.
 
Kernel: mainline 2.6.18
MTD Device: Atmel AT45DB642D (mtd_dataflash driver)
Bus: SPI (spi_at91_bitbang driver)
Platform: AT91RM9200-based
MTD Partitions:
mtd_dataflash spi0.0: AT45DB642x (8448 KBytes)
Creating 5 MTD partitions on "dataflash":
0x00000000-0x00004200 : "u-load"
0x00004200-0x00006300 : "u-boot env"
0x00006300-0x00021000 : "u-boot code"
0x00021000-0x00129000 : "kernel"
0x00129000-0x00840000 : "filesystem"

Kernel Oops:
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 88K
init started:  BusyBox v1.1.0 (2006.06.30-19:08+0000) multi-call binary
Initializing random number generator... 
jffs2_flash_writev(): Non-contiguous write to 0009945c
wbuf was previously 00099240-00099434
kernel BUG at fs/jffs2/wbuf.c:793!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0d68000
[00000000] *pgd=20d61031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
Modules linked in:
CPU: 0
PC is at __bug+0x40/0x54
LR is at 0x1
pc : [<c0022b7c>]    lr : [<00000001>]    Not tainted
sp : c0d2fda0  ip : 60000093  fp : c0d2fdac
r10: c0d2fe40  r9 : 00000000  r8 : 0009945c
r7 : c039b600  r6 : 000002cf  r5 : 000001f4  r4 : 00000000
r3 : 00000000  r2 : 00000000  r1 : 00001aef  r0 : 00000001
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: C000717F  Table: 20D68000  DAC: 00000015
Process rm (pid: 719, stack limit = 0xc0d2e250)
Stack: (0xc0d2fda0 to 0xc0d30000)
fda0: c0d2fe00 c0d2fdb0 c00bd418 c0022b4c 00099240 00098a00 00000000 c039b71c
fdc0: 00000000 0009945c 00000000 00000001 c0d2fe14 c00d4494 0009945c 00000000
fde0: c0d2fe40 00000244 0009945c 00000000 c0d2fe40 c0d2fe34 c0d2fe08 c00bd73c
fe00: c00bd218 0009945c 00000000 c0d2fe40 00000000 c0d2fe48 0000000c c0d2fe48
fe20: c039b600 c03deb80 c0d2fe7c c0d2fe38 c00b2f0c c00bd6f4 c0d2fe40 c0d2fe48
fe40: 0000000c c005c002 c0021985 00000244 9b732f73 c0017470 c0d32b48 c039b600
fe60: c0d2ff24 c0cdd24c c0d2e000 400a91fc c0d2fe98 c0d2fe80 c00b134c c00b2ad8
fe80: 00000001 c0d32b48 c039b600 c0d2feb4 c0d2fe9c c00b375c c00b12e8 c0d32b74
fea0: 00000000 c0d32b74 c0d2fec4 c0d2feb8 c00bac94 c00b36cc c0d2fed8 c0d2fec8
fec0: c008653c c00bac88 c0d32b74 c0d2fef0 c0d2fedc c0087594 c00864b4 c0d32b74
fee0: c0cf9000 c0d2ff0c c0d2fef4 c0087618 c0087500 c0d32b74 c0cf9000 c0d32b74
ff00: c0d2ff20 c0d2ff10 c0086770 c0087608 00000000 c0d2ff94 c0d2ff24 c007dcf8
ff20: c00866f4 c0394780 c0238220 62ebf992 0000000b c0cf9005 00000010 00000000
ff40: 00000000 c004090c c0029550 c0cf601c c02882e0 00000015 c0d2ff74 c0d2ff68
ff60: c0040988 c00408e0 c0d2ffac c0d2ff78 c001ed08 be8caf90 00000008 00000008
ff80: 0000000a c001eec4 c0d2ffa4 c0d2ff98 c007dd98 c007dc08 00000000 c0d2ffa8
ffa0: c001ed20 c007dd90 be8caf90 00000008 be8caf90 be8cada8 00000000 00008000
ffc0: be8caf90 00000008 00000008 00000003 00082e94 00000003 400a91fc 0000c97c
ffe0: 40098464 be8cada0 0005d804 4009846c 20000010 be8caf90 00000000 00000000
Backtrace:
[<c0022b3c>] (__bug+0x0/0x54) from [<c00bd418>] (jffs2_flash_writev+0x214/0x4e0)
[<c00bd208>] (jffs2_flash_writev+0x4/0x4e0) from [<c00bd73c>] (jffs2_flash_write
+0x58/0x60)
[<c00bd6e4>] (jffs2_flash_write+0x0/0x60) from [<c00b2f0c>] (jffs2_mark_node_obs
olete+0x444/0x544)
 r6 = C03DEB80  r5 = C039B600  r4 = C0D2FE48
[<c00b2ac8>] (jffs2_mark_node_obsolete+0x0/0x544) from [<c00b134c>] (jffs2_kill_
fragtree+0x74/0xbc)
[<c00b12d8>] (jffs2_kill_fragtree+0x0/0xbc) from [<c00b375c>] (jffs2_do_clear_in
ode+0xa0/0x134)
 r6 = C039B600  r5 = C0D32B48  r4 = 00000001
[<c00b36bc>] (jffs2_do_clear_inode+0x0/0x134) from [<c00bac94>] (jffs2_clear_ino
de+0x1c/0x20)
 r6 = C0D32B74  r5 = 00000000  r4 = C0D32B74
[<c00bac78>] (jffs2_clear_inode+0x0/0x20) from [<c008653c>] (clear_inode+0x98/0x
cc)
[<c00864a4>] (clear_inode+0x0/0xcc) from [<c0087594>] (generic_delete_inode+0xa4
/0x108)
 r4 = C0D32B74
[<c00874f0>] (generic_delete_inode+0x0/0x108) from [<c0087618>] (generic_drop_in
ode+0x20/0x178)
 r5 = C0CF9000  r4 = C0D32B74
[<c00875f8>] (generic_drop_inode+0x0/0x178) from [<c0086770>] (iput+0x8c/0xa0)
 r6 = C0D32B74  r5 = C0CF9000  r4 = C0D32B74
[<c00866e4>] (iput+0x0/0xa0) from [<c007dcf8>] (do_unlinkat+0x100/0x150)
 r4 = 00000000
[<c007dbf8>] (do_unlinkat+0x0/0x150) from [<c007dd98>] (sys_unlink+0x18/0x1c)
 r8 = C001EEC4  r7 = 0000000A  r6 = 00000008  r5 = 00000008
 r4 = BE8CAF90
[<c007dd80>] (sys_unlink+0x0/0x1c) from [<c001ed20>] (ret_fast_syscall+0x0/0x2c)
Code: 1b004512 e59f0014 eb004510 e3a03000 (e5833000)
 Segmentation fault






More information about the linux-mtd mailing list