xfstests on UBIFS - first findings

Richard Weinberger richard at nod.at
Mon Sep 15 02:13:28 PDT 2014


Hi!

Running xfstests on UBIFS exposed some issues.
Out of 76 tests 20 failed, hopefully most of them are false positives.
Please see the attached test log.
I'm sharing my findings very early to work together on it.

xfstests manages also to trigger an UBIFS assert:

---cut---
[  141.072471] UBIFS assert failed in ubifs_jnl_update at 558 (pid 2622)
[  141.074984] CPU: 2 PID: 2622 Comm: setfattr Not tainted 3.17.0-rc4+ #62
[  141.077540] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.7.5-0-ge51488c-20140816_022509-build35 04/01/2014
[  141.081974]  ffff88003ae8bd00 ffff88003ae8bc40 ffffffff818b4563 0000000000000000
[  141.083765]  ffff88003ae8bcd0 ffffffff81299da4 ffff880000000004 0000000000000246
[  141.085564]  ffffffff812c4964 ffff88003aed0560 ffffffff00000000 ffff88003bd604a0
[  141.087373] Call Trace:
[  141.087941]  [<ffffffff818b4563>] dump_stack+0x4d/0x66
[  141.089131]  [<ffffffff81299da4>] ubifs_jnl_update+0x5e4/0x690
[  141.090464]  [<ffffffff812c4964>] ? ubifs_setxattr+0x294/0x680
[  141.091804]  [<ffffffff812c49d1>] ubifs_setxattr+0x301/0x680
[  141.093101]  [<ffffffff81194ac3>] __vfs_setxattr_noperm+0x63/0x1b0
[  141.094522]  [<ffffffff81194cbd>] vfs_setxattr+0xad/0xb0
[  141.095735]  [<ffffffff81194dd6>] setxattr+0x116/0x1a0
[  141.096920]  [<ffffffff8118f87f>] ? mnt_want_write+0x1f/0x50
[  141.098211]  [<ffffffff811714ad>] ? __sb_start_write+0xed/0x1a0
[  141.099489]  [<ffffffff8118f87f>] ? mnt_want_write+0x1f/0x50
[  141.100704]  [<ffffffff8118f87f>] ? mnt_want_write+0x1f/0x50
[  141.101937]  [<ffffffff81195127>] SyS_lsetxattr+0x87/0xd0
[  141.103098]  [<ffffffff818c1dd2>] system_call_fastpath+0x16/0x1b
---cut---

One can simple trigger it by doing:
# mknod foo c 0 0
# setfattr -h -n trusted.name foo

dir_ui->data_len is 4 instead of 0.

Thanks,
//richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.log
Type: text/x-log
Size: 20841 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20140915/ad2d0dea/attachment-0001.bin>


More information about the linux-mtd mailing list