Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VZ9mZ-0003Gv-HM for linux-mtd@lists.infradead.org; Thu, 24 Oct 2013 01:32:16 +0000 Received: by mail-qa0-f50.google.com with SMTP id cm18so1014004qab.16 for ; Wed, 23 Oct 2013 18:31:54 -0700 (PDT) Date: Wed, 23 Oct 2013 18:31:50 -0700 From: Brian Norris To: Artem Bityutskiy Subject: Re: UBIFS: assert failed in ubifs_tnc_next_ent Message-ID: <20131024013150.GB23337@ld-irv-0074.broadcom.com> References: <20131023220950.GW23337@ld-irv-0074.broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131023220950.GW23337@ld-irv-0074.broadcom.com> Cc: David Woodhouse , linux-mtd@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Oct 23, 2013 at 03:09:50PM -0700, Brian Norris wrote: > I am not able to reproduce the failure on nandsim with either my 3.8 > kernel/embedded hardware or with Linus' head of tree on my PC. Perhaps > there's something related to NAND geometry or to driver timing that > uncovers the filesystem bug. Scratch that. It just took a lot longer (over 700 runs of bonnie++ vs. 100 to 200 on real hardware), but I was able to reproduce the bug with nandsim on 3.8. I'll retry on 3.12-rc and with a few extra backported fixes on 3.8. The asserts using nandsim: UBIFS assert failed in ubifs_tnc_next_ent at 2776 (pid 4262) [] (unwind_backtrace+0x0/0x138) from [] (ubifs_tnc_next_ent+0x1c4/0x270) [] (ubifs_tnc_next_ent+0x1c4/0x270) from [] (ubifs_readdir+0x2e4/0x5a0) [] (ubifs_readdir+0x2e4/0x5a0) from [] (vfs_readdir+0x90/0xac) [] (vfs_readdir+0x90/0xac) from [] (sys_getdents+0x74/0xcc) [] (sys_getdents+0x74/0xcc) from [] (ret_fast_syscall+0x0/0x30) UBIFS error (pid 4262): ubifs_validate_entry: bad extended attribute entry node [] (unwind_backtrace+0x0/0x138) from [] (lnc_add_directly.clone.21+0x7c/0xc0) [] (lnc_add_directly.clone.21+0x7c/0xc0) from [] (matches_name.clone.22+0xbc/0xd0) [] (matches_name.clone.22+0xbc/0xd0) from [] (resolve_collision+0x48/0x304) [] (resolve_collision+0x48/0x304) from [] (ubifs_tnc_next_ent+0x148/0x270) [] (ubifs_tnc_next_ent+0x148/0x270) from [] (ubifs_readdir+0x2e4/0x5a0) [] (ubifs_readdir+0x2e4/0x5a0) from [] (vfs_readdir+0x90/0xac) [] (vfs_readdir+0x90/0xac) from [] (sys_getdents+0x74/0xcc) [] (sys_getdents+0x74/0xcc) from [] (ret_fast_syscall+0x0/0x30) magic 0x6101831 crc 0xf87567a6 node_type 0 (inode node) group_type 2 (last of node group) sqnum 324111858 len 160 key (23300960, inode) creat_sqnum 324002935 size 263248 nlink 2 atime 20882.0 mtime 20884.0 ctime 20884.0 uid 0 gid 0 mode 16832 flags 0x1 xattr_cnt 0 xattr_size 0 xattr_names 0 compr_type 0x0 data len 0 UBIFS error (pid 4262): ubifs_readdir: cannot find next direntry, error -22 UBIFS assert failed in ubifs_tnc_next_ent at 2776 (pid 4262) [] (unwind_backtrace+0x0/0x138) from [] (ubifs_tnc_next_ent+0x1c4/0x270) [] (ubifs_tnc_next_ent+0x1c4/0x270) from [] (ubifs_readdir+0x2e4/0x5a0) [] (ubifs_readdir+0x2e4/0x5a0) from [] (vfs_readdir+0x90/0xac) [] (vfs_readdir+0x90/0xac) from [] (sys_getdents+0x74/0xcc) [] (sys_getdents+0x74/0xcc) from [] (ret_fast_syscall+0x0/0x30) UBIFS error (pid 4262): ubifs_validate_entry: bad extended attribute entry node [] (unwind_backtrace+0x0/0x138) from [] (lnc_add_directly.clone.21+0x7c/0xc0) [] (lnc_add_directly.clone.21+0x7c/0xc0) from [] (matches_name.clone.22+0xbc/0xd0) [] (matches_name.clone.22+0xbc/0xd0) from [] (resolve_collision+0x48/0x304) [] (resolve_collision+0x48/0x304) from [] (ubifs_tnc_next_ent+0x148/0x270) [] (ubifs_tnc_next_ent+0x148/0x270) from [] (ubifs_readdir+0x2e4/0x5a0) [] (ubifs_readdir+0x2e4/0x5a0) from [] (vfs_readdir+0x90/0xac) [] (vfs_readdir+0x90/0xac) from [] (sys_getdents+0x74/0xcc) [] (sys_getdents+0x74/0xcc) from [] (ret_fast_syscall+0x0/0x30) magic 0x6101831 crc 0x76707438 node_type 0 (inode node) group_type 2 (last of node group) sqnum 324111861 len 160 key (23300960, inode) creat_sqnum 324002935 size 263184 nlink 2 atime 20882.0 mtime 20884.0 ctime 20884.0 uid 0 gid 0 mode 16832 flags 0x1 xattr_cnt 0 xattr_size 0 xattr_names 0 compr_type 0x0 data len 0 UBIFS error (pid 4262): ubifs_readdir: cannot find next direntry, error -22 Brian