[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170313021816.GD13540@yexl-desktop>
Date: Mon, 13 Mar 2017 10:18:16 +0800
From: kernel test robot <xiaolong.ye@...el.com>
To: Alban <albeu@...e.fr>
Cc: linux-kernel@...r.kernel.org,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Maxime Ripard <maxime.ripard@...e-electrons.com>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
David Woodhouse <dwmw2@...radead.org>,
Brian Norris <computersforpeace@...il.com>,
Boris Brezillon <boris.brezillon@...e-electrons.com>,
Marek Vasut <marek.vasut@...il.com>,
Richard Weinberger <richard@....at>,
Cyrille Pitchen <cyrille.pitchen@...el.com>,
devicetree@...r.kernel.org, linux-mtd@...ts.infradead.org,
Moritz Fischer <moritz.fischer@...us.com>,
Alban <albeu@...e.fr>, lkp@...org
Subject: [lkp-robot] [mtd] 88eb23fa5e: kernel_BUG_at_fs/sysfs/file.c
FYI, we noticed the following commit:
commit: 88eb23fa5ebda607c8e78c57ab3aa3da4daf2780 ("mtd: Add support for reading MTD devices via the nvmem API")
url: https://github.com/0day-ci/linux/commits/Alban/mtd-Add-support-for-reading-MTD-devices-via-the-nvmem-API/20170309-221824
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -m 420M
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-------------------------------------------+------------+------------+
| | 5d63b41078 | 88eb23fa5e |
+-------------------------------------------+------------+------------+
| boot_successes | 10 | 0 |
| boot_failures | 5 | 20 |
| BUG:kernel_hang_in_test_stage | 5 | |
| WARNING:at_fs/sysfs/dir.c:#sysfs_warn_dup | 0 | 20 |
| kernel_BUG_at_fs/sysfs/file.c | 0 | 20 |
| invalid_opcode:#[##]SMP | 0 | 10 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 20 |
| invalid_opcode:#[##] | 0 | 10 |
+-------------------------------------------+------------+------------+
[ 6.250800] WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x62/0x71
[ 6.253413] sysfs: cannot create duplicate filename '/bus/nvmem/devices/nvmem0'
[ 6.255675] Modules linked in:
[ 6.256734] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-rc1-next-20170308-00002-g88eb23f #23
[ 6.259294] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014
[ 6.262137] Call Trace:
[ 6.263062] dump_stack+0x82/0xb8
[ 6.264167] __warn+0xc2/0xdd
[ 6.265204] warn_slowpath_fmt+0x4b/0x53
[ 6.266447] ? kernfs_path_from_node+0x54/0x60
[ 6.267796] sysfs_warn_dup+0x62/0x71
[ 6.268980] sysfs_do_create_link_sd+0x97/0xa5
[ 6.270465] sysfs_create_link+0x33/0x35
[ 6.271704] bus_add_device+0xca/0x172
[ 6.272907] device_add+0x326/0x509
[ 6.274053] nvmem_register+0x150/0x368
[ 6.275274] ? __mutex_unlock_slowpath+0x3a/0x229
[ 6.276683] mtd_nvmem_add+0x59/0x8a
[ 6.277844] ? mtdchar_unlocked_ioctl+0x4b/0x4b
[ 6.279226] add_mtd_device+0x1cd/0x269
[ 6.280449] add_mtd_partitions+0xde/0x107
[ 6.281725] ? set_debug_rodata+0x12/0x12
[ 6.282978] mtd_device_parse_register+0xfc/0x174
[ 6.284389] ns_init_module+0x693/0x6ab
[ 6.285620] ? init_nandsim+0x57e/0x57e
[ 6.286834] ? set_debug_rodata+0x12/0x12
[ 6.288090] do_one_initcall+0x90/0x142
[ 6.289316] ? set_debug_rodata+0x12/0x12
[ 6.290568] kernel_init_freeable+0x1cb/0x253
[ 6.291892] ? rest_init+0x13b/0x13b
[ 6.293055] kernel_init+0xe/0xf5
[ 6.294159] ret_from_fork+0x31/0x40
[ 6.295396] ---[ end trace cf2e75dc8a036eed ]---
[ 6.296867] mtd mtd1: Failed to register NVMEM device
[ 6.298919] ------------[ cut here ]------------
[ 6.300280] kernel BUG at fs/sysfs/file.c:330!
[ 6.322389] invalid opcode: 0000 [#1] SMP
[ 6.323618] Modules linked in:
[ 6.324641] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.11.0-rc1-next-20170308-00002-g88eb23f #23
[ 6.327411] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014
[ 6.330198] task: ffff880037894040 task.stack: ffffc90000194000
[ 6.331827] RIP: 0010:sysfs_create_file_ns+0x18/0x2e
[ 6.333259] RSP: 0018:ffffc90000197d80 EFLAGS: 00010246
[ 6.334747] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 00000000000000ff
[ 6.336641] RDX: 0000000000000000 RSI: ffffffff84247ae0 RDI: 0000000000000000
[ 6.338532] RBP: ffffc90000197da8 R08: 00000002817900e8 R09: 0000000000000000
[ 6.340419] R10: ffff880032f48b19 R11: ffff880032f48af8 R12: ffffffff84247ad0
[ 6.342306] R13: ffff8800314639b0 R14: ffff880031e54000 R15: ffffffff84247bc0
[ 6.344197] FS: 0000000000000000(0000) GS:ffff880039c00000(0000) knlGS:0000000000000000
[ 6.346542] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6.348144] CR2: 0000000000000000 CR3: 000000000402c000 CR4: 00000000000006f0
[ 6.350043] Call Trace:
[ 6.350944] ? sysfs_create_files+0x35/0x6e
[ 6.352209] mtd_add_partition_attrs+0x1d/0x36
[ 6.353534] add_mtd_partitions+0xe6/0x107
[ 6.354787] ? set_debug_rodata+0x12/0x12
[ 6.356019] mtd_device_parse_register+0xfc/0x174
[ 6.357393] ns_init_module+0x693/0x6ab
[ 6.358587] ? init_nandsim+0x57e/0x57e
[ 6.359801] ? set_debug_rodata+0x12/0x12
[ 6.361036] do_one_initcall+0x90/0x142
[ 6.362232] ? set_debug_rodata+0x12/0x12
[ 6.363463] kernel_init_freeable+0x1cb/0x253
[ 6.364765] ? rest_init+0x13b/0x13b
[ 6.365905] kernel_init+0xe/0xf5
[ 6.366991] ret_from_fork+0x31/0x40
[ 6.368139] Code: 0f 44 c2 e9 31 ff ff ff 48 8d 65 e8 5b 41 5c 41 5d 5d c3 0f 1f 44 00 00 48 85 ff 74 0e 48 8b 7f 30 48 85 ff 74 05 48 85 f6 75 02 <0f> 0b 0f b7 4e 08 55 49 89 d0 31 d2 48 89 e5 e8 5e fe ff ff 5d
[ 6.373104] RIP: sysfs_create_file_ns+0x18/0x2e RSP: ffffc90000197d80
[ 6.374881] ---[ end trace cf2e75dc8a036eee ]---
[ 6.376252] Kernel panic - not syncing: Fatal exception
[ 6.377918] Kernel Offset: disabled
To reproduce:
git clone https://github.com/01org/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
Thanks,
Xiaolong
View attachment "config-4.11.0-rc1-next-20170308-00002-g88eb23f" of type "text/plain" (159467 bytes)
View attachment "job-script" of type "text/plain" (3905 bytes)
Download attachment "dmesg.xz" of type "application/octet-stream" (14572 bytes)
Powered by blists - more mailing lists