PROBLEM: JFFS2 Empty summary info causes OOPS
From: Veluthakkal, Sreeram
Date: Fri Jun 15 2018 - 15:13:07 EST
Hi,
[1.] Summary: JFFS2 Empty summary node info causes OOPS
[2.] Description: Under stress situations on the filesystem, OOPs are observed. The OOPs points to empty summary node info bug. Confirmed that the filesystem is not full, not corrupted and is accessible.
[3.] Keywords (i.e., modules, networking, kernel): filesystem
[4.] Kernel information
[4.1.] Kernel version (from /proc/version): 4.1.12
Driver version: jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[6.] Output of Oops..
Kernel BUG at c0268c78 [verbose debug info unavailable]
Internal error: Oops - BUG: 0 [#1] SMP ARM
Modules linked in: npcm750_rng dell_usbmuxdrv(O) g_edm_mass_storage3 vcd_dev(O) usb_storage sd_mod scsi_mod rng_core oprofile md4 g_edm_mass_storage2 des_generi c dell_regmem_adds(O) dell_pmdrv(O) dell_oom_notify(O) dell_msgbox(O) g_edm_mass _storage1 dell_fpdrv(O) dell_early_board(O) dell_ipmbdrv(O) dell_i2cdrv(O) dell_ cplddrv(O) g_edm_mass_storage cifs bonding g_edm_kbdmouse usb_f_ecm g_ether_usb arc4 aess_vkcsdrv(O) aess_smadrv(O) usb_f_rndis u_ether aess_pwmdrv(O) aess_pcim ailboxdrv(O) aess_mtddrv_spi_nor(O) aess_memdrv(O) libcomposite aess_fansensordr v(O) aess_dynairqdrv(O) aess_gpiodrv(O) aess_video(O) aess_biospostdrv(O) aess_k csdrv(O) aess_eventhandlerdrv(O) aess_adcsensordrv(O)
CPU: 1 PID: 998 Comm: cfgmgrd Tainted: G O 4.1.12
Hardware name: NPCMX50 Chip family
task: d7ccd340 ti: d7c8a000 task.ti: d7c8a000
PC is at jffs2_sum_write_sumnode+0x508/0x518
LR is at jffs2_sum_write_sumnode+0x508/0x518
pc : [<c0268c78>] lr : [<c0268c78>] psr: 600b0013
sp : d7c8ba90 ip : 00000000 fp : d7c8bb80
r10: 000000c4 r9 : d84510a8 r8 : 00200200
r7 : 00000fa4 r6 : d84510a8 r5 : d9aac000 r4 : d98ca5c0
r3 : 00000000 r2 : dcba772c r1 : dcba52dc r0 : 00000044
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 18c5387d Table: 17ea404a DAC: 00000015
Process cfgmgrd (pid: 998, stack limit = 0xd7c8a190)
Stack: (0xd7c8ba90 to 0xd7c8c000)
ba80: 00000000 d7c8ba88 c08a6080 c09159c0
baa0: 0000000a 0091ccfe d9aac11c d7c8bac0 bf074c4c bf072de0 c08a2ae8 de32a000
bac0: 0c200319 b1000000 00e41eb0 00000000 bf074c4c 00000000 00000000 00000002
bae0: 001eb000 bf074c4c 00000000 d9aac000 00000fcc d84510a8 00000fa4 00200200
bb00: 00100100 000000c4 d7c8bb80 c0259678 bf074c58 d7c8bb47 00000001 00000000
bb20: d7c8bc38 d95f5958 d9aac11c 000000c4 d9aac000 00000fa4 d7c8bb80 db4aa480
bb40: d845100c c0259c98 d95f5958 d9aac000 00000fa4 d9aac000 d85b3d80 d9be43f8
bb60: db4aa480 c0604dc8 00000000 c0124818 d95f5998 0019d7bf d9ad9400 c060b44c
bb80: 000000c4 c060b44c d95f5998 d95f5958 d9aac000 00028000 d8626700 d85b3d80
bba0: d95f5980 d9be43f8 d845100c c0605688 0019d7bf 00000000 d9be43f8 d845100c
bbc0: db4aa480 00029000 00000000 c00532a8 00000000 d9aac000 0003b000 c060b464
bbe0: 200b0013 c060b464 0003b000 c025fee4 00000000 00000000 d7c8bc20 00000000
bc00: d7c8bc1c 00000001 d9aac0fc 00000000 c094fe90 00100100 00200200 d9aac000
bc20: d9aac000 0019d7bf 00000000 c02614ec 0000000c e41eb0b1 d9aac000 d9aac000
bc40: d9aac11c 0019d7bf d9aac04c d9be43f8 d845100c d95f5958 d9aac164 c025ed54
bc60: 00000000 c0029350 0000000c 00000001 00000048 c025960c ffffffff 00000001
bc80: d8496040 00000001 00000000 d9aac000 d9aac11c 00000014 d9aac04c d7c8a000
bca0: 00000013 00000000 d7c8bd24 c0259acc d8496040 0000001c 800b0013 c060b464
bcc0: d8496040 c002a158 d9aac000 800b0013 dab67208 00000000 dab67208 dab67208
bce0: c7b77954 d9aac2fc c0793f84 d9aac000 d9aac41c c0266228 00000006 c060b5c0
bd00: 00000000 c7b77940 c5f06c00 00000007 c7b77954 d7c8bd7c d9aac0c0 d7c8bd74
bd20: cc59aba8 00000fb8 d9575c98 d7c8bd74 cc59aba8 00000000 c0266aac cc59ab68
bd40: d9aac000 d9575c98 d96c4280 c0266b00 0000001e 00000000 c02ca360 00000000
bd60: cc59aba8 c02c2f74 d7c8bd78 d7c8bd7c d9575c98 c0793f84 c5f06c00 0000001e
bd80: 00000000 00000000 00000000 00000000 00000000 00000000 d9aac000 cc59aba8
bda0: d85f07c0 d9aac000 d95a41d8 c0266c24 00000000 d85f07c0 d9aac000 c025c7fc
bdc0: 00000000 00000000 000081b4 00000058 cc59aba8 d95a4218 cc59ab68 d85f07c0
bde0: d96c4280 c0256f18 d96c4298 ffffffff 00000001 c0256e70 00000000 d95a4218
be00: 00000000 d96c4280 000081b4 c0118b24 00000301 c0116dcc d7c8bef0 d7c8bf74
be20: d9575c98 00020042 d7c8beb0 c01191b8 00000000 0000001b 00000000 c3fd8700
be40: 00000026 00000000 00000000 00000001 dbff4810 d9575c98 db42fc10 d95ca578
be60: 00cfa5c8 c02c7fe8 c3fd8700 c3fd8700 d7c8bef0 00000000 d7c8bf74 c7aac000
be80: d7c8beb0 00000000 47cfa5c8 c0119884 d7c8beac c7aac000 ffffff9c c02c5dd0
bea0: d7ccd340 c02c5dd0 dbff4810 00000001 3b3a2618 00000000 beacfef8 000000c3
bec0: c000a628 d7c8bf74 00000001 ffffff9c c7aac000 c000a628 d7c8a000 00000000
bee0: 47cfa5c8 c011ad94 00000041 00000001 dbff4810 d9575c98 00f359c0 0000001b
bf00: c7aac023 00000000 dbd83a10 dc1a1d30 d95a4218 00000301 00000002 00001632
bf20: 00000000 00000000 00000000 c060b44c dc1d3658 c0127630 c08b07d4 000a0042
bf40: 00000000 000a0042 ffffff9c c7aac000 00000005 00000022 ffffff9c c7aac000
bf60: 00000005 c010b0ec 000003e4 00000000 00005000 00020042 390b81b4 00000026
bf80: 00000300 00000001 390d2ec2 000a0042 00064128 000001b4 00000005 c000a628
bfa0: d7c8a000 c000a460 000a0042 00064128 00064128 000a0042 000001b4 00000000
bfc0: 000a0042 00064128 000001b4 00000005 00020042 000001b4 000003e5 47cfa5c8
bfe0: beacfdfc beacfe10 b6f0b4c0 473d0fec 800b0010 00064128 00000000 00000000
[<c0268c78>] (jffs2_sum_write_sumnode) from [<c0259678>] (jffs2_do_reserve_space +0x138/0x41c)
[<c0259678>] (jffs2_do_reserve_space) from [<c0259c98>] (jffs2_reserve_space_gc+ 0x48/0x80)
[<c0259c98>] (jffs2_reserve_space_gc) from [<c0604dc8>] (jffs2_garbage_collect_p ristine+0x50/0x3b8)
[<c0604dc8>] (jffs2_garbage_collect_pristine) from [<c0605688>] (jffs2_garbage_c ollect_live+0x3f0/0xf44)
[<c0605688>] (jffs2_garbage_collect_live) from [<c025ed54>] (jffs2_garbage_colle ct_pass+0x42c/0x854)
[<c025ed54>] (jffs2_garbage_collect_pass) from [<c0259acc>] (jffs2_reserve_space +0x170/0x2f4)
[<c0259acc>] (jffs2_reserve_space) from [<c0266228>] (do_jffs2_setxattr+0x414/0x 664)
[<c0266228>] (do_jffs2_setxattr) from [<c0266b00>] (jffs2_initxattrs+0x54/0x6c)
[<c0266b00>] (jffs2_initxattrs) from [<c02c2f74>] (security_inode_init_security+ 0xec/0x114)
[<c02c2f74>] (security_inode_init_security) from [<c0266c24>] (jffs2_init_securi ty+0x24/0x2c)
[<c0266c24>] (jffs2_init_security) from [<c025c7fc>] (jffs2_do_create+0xc8/0x270 )
[<c025c7fc>] (jffs2_do_create) from [<c0256f18>] (jffs2_create+0xa8/0x128)
[<c0256f18>] (jffs2_create) from [<c0118b24>] (vfs_create+0xb8/0xec)
[<c0118b24>] (vfs_create) from [<c01191b8>] (do_last+0x660/0xca4)
[<c01191b8>] (do_last) from [<c0119884>] (path_openat+0x88/0x614)
[<c0119884>] (path_openat) from [<c011ad94>] (do_filp_open+0x34/0x90)
[<c011ad94>] (do_filp_open) from [<c010b0ec>] (do_sys_open+0x110/0x1d4)
[<c010b0ec>] (do_sys_open) from [<c000a460>] (ret_fast_syscall+0x0/0x3c)
Code: e34c0078 e593300c e5931330 eb0e6d3f (e7f001f2)
[8.] Environment
[8.2.] Processor information (from /proc/cpuinfo):
processor : 0
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 1594.16
Features : half thumb fastmult edsp tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1
processor : 1
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 1594.16
Features : half thumb fastmult edsp tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x4
CPU part : 0xc09
CPU revision : 1
Hardware : NPCMX50 Chip family
Revision : 0000
Serial : 0000000000000000
[8.3.] Module information (from /proc/modules):
[8.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem)
00000000-1cffffff : System RAM
00008000-007f6d9f : Kernel code
0085e000-00938133 : Kernel data
1d000000-1e1fffff : aess_video
c0000000-c0000fff : fb000000.fiu
c0008000-c0008fff : shmem_sram
f0008000-f0008fff : f0008000.watchdog
f000b000-f000bfff : f000b000.rng
f0189000-f0189fff : f0189000.otp
f018a000-f018afff : f0189000.otp
f0802000-f0803fff : /ahb/eth@f0802000
f0806000-f0806fff : ehci_hcd
f0808000-f0808fff : aess_video
f0825000-f0825fff : f0825000.eth
f0826000-f0826fff : f0826000.eth
f0830000-f0830fff : /ahb/udc@f0830000
f0831000-f0831fff : /ahb/udc@f0831000
f0832000-f0832fff : /ahb/udc@f0832000
f0833000-f0833fff : /ahb/udc@f0833000
f0834000-f0834fff : /ahb/udc@f0834000
f0835000-f0835fff : /ahb/udc@f0835000
f0836000-f0836fff : /ahb/udc@f0836000
f0837000-f0837fff : /ahb/udc@f0837000
f0838000-f0838fff : /ahb/udc@f0838000
f0839000-f0839fff : /ahb/udc@f0839000
f0840000-f08401ff : /ahb/sdhci@f0840000
f0842000-f08421ff : /ahb/sdhci@f0842000
f0858000-f0858fff : f0858000.aes
fb000000-fb000fff : fb000000.fiu
fb001000-fb001fff : fb000000.fiu
fffe3000-fffeffff : fffe3000.trab
Thanks,
Sreeram