2010-06-07 00:23:30

by Ryan Wang

[permalink] [raw]
Subject: [BUG on 2.6.35-rc2] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:11.0/0000:02:03.0/slot'

Hi,

I have just compiled 2.6.35-rc2 on my VMWare Player box, and
got the warning info after boot up from dmesg.

------------[ cut here ]------------
WARNING: at /home/crossover/kernel-dev/src/linux-2.6.35-rc2/fs/sysfs/dir.c:451
sysfs_add_one+0xa1/0x110()
Hardware name: VMware Virtual Platform
sysfs: cannot create duplicate filename
'/devices/pci0000:00/0000:00:11.0/0000:02:02.0/slot'
Modules linked in:
Pid: 1, comm: swapper Tainted: G W 2.6.35-rc2 #1
Call Trace:
[<c0444402>] warn_slowpath_common+0x72/0xa0
[<c054ed81>] ? sysfs_add_one+0xa1/0x110
[<c054ed81>] ? sysfs_add_one+0xa1/0x110
[<c04444d3>] warn_slowpath_fmt+0x33/0x40
[<c054ed81>] sysfs_add_one+0xa1/0x110
[<c054f415>] sysfs_do_create_link+0xa5/0x150
[<c054fdc1>] ? sysfs_create_bin_file+0x21/0x30
[<c054f4f7>] sysfs_create_link+0x17/0x20
[<c060c976>] pci_create_sysfs_dev_files+0x356/0x4d0
[<c060b186>] ? pci_get_subsys+0x76/0xa0
[<c0aa6fc1>] pci_sysfs_init+0x1a/0x44
[<c0401132>] do_one_initcall+0x32/0x1d0
[<c0aa6fa7>] ? pci_sysfs_init+0x0/0x44
[<c0a823b7>] kernel_init+0x13e/0x1d9
[<c0a82279>] ? kernel_init+0x0/0x1d9
[<c04035c2>] kernel_thread_helper+0x6/0x10
---[ end trace f545de55182313ba ]---


2010-06-07 14:31:45

by Breno Leitao

[permalink] [raw]
Subject: Re: [BUG on 2.6.35-rc2] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:11.0/0000:02:03.0/slot'

Ryan Wang wrote:
> Hi,
>
> I have just compiled 2.6.35-rc2 on my VMWare Player box, and
> got the warning info after boot up from dmesg.
>
I also found the same problem on PPC64

sysfs: cannot create duplicate filename '/devices/pci0002:00/0002:00:01.0/slot'
------------[ cut here ]------------
Badness at fs/sysfs/dir.c:451
NIP: c00000000022b1fc LR: c00000000022b1f8 CTR: 0000000000000001
REGS: c00000097c1238e0 TRAP: 0700 Not tainted (2.6.35-rc2+)
MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 28008084 XER: 20000000
TASK = c00000078c8d0090[1] 'swapper' THREAD: c00000097c120000 CPU: 0
GPR00: c00000000022b1f8 c00000097c123b60 c000000000fc1950 0000000000000056
GPR04: 0000000000000000 ffffffffffffffff 0000000000000007 0000000000020000
GPR08: 00000000000035fc 0000000000000000 00000000000035ae 000000000000000a
GPR12: 0000000028008082 c00000000ed70000 0000000001adfa78 0000000000f86800
GPR16: 0000000003400000 000000000021e1af 0000000000c89468 0000000002a5a970
GPR20: 0000000000000000 0000000002a5a4f0 0000000000000040 c0000000002ddbd8
GPR24: c00000000022b17c 0000000000001000 c00000078ce97580 c0000003ae040180
GPR28: c00000097c123c80 c0000003a9313b40 c000000000f61558 ffffffffffffffef
NIP [c00000000022b1fc] .sysfs_add_one+0xfc/0x170
LR [c00000000022b1f8] .sysfs_add_one+0xf8/0x170
Call Trace:
[c00000097c123b60] [c00000000022b1f8] .sysfs_add_one+0xf8/0x170 (unreliable)
[c00000097c123c10] [c00000000022cbb8] .sysfs_do_create_link+0x118/0x250
[c00000097c123cd0] [c0000000002ddb14] .pci_create_sysfs_dev_files+0x414/0x640
[c00000097c123da0] [c000000000943dc0] .pci_sysfs_init+0x34/0x90
[c00000097c123e30] [c00000000000972c] .do_one_initcall+0x5c/0x200
[c00000097c123ee0] [c0000000009104e0] .kernel_init+0x270/0x32c
[c00000097c123f90] [c000000000030f54] .kernel_thread+0x54/0x70
Instruction dump:
7f44d378 4bfffec1 e89e8030 4be1eb05 60000000 e89d0018 4be1eaf9 60000000
7c641b78 e87e8038 48369195 60000000 <0fe00000> 7f43d378 4bf5e1bd 60000000
sysfs: cannot create duplicate filename '/devices/pci0002:00/0002:00:01.1/slot'
------------[ cut here ]------------
Badness at fs/sysfs/dir.c:451
NIP: c00000000022b1fc LR: c00000000022b1f8 CTR: 0000000000000001
REGS: c00000097c1238e0 TRAP: 0700 Tainted: G W (2.6.35-rc2+)
MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 28008084 XER: 20000000
TASK = c00000078c8d0090[1] 'swapper' THREAD: c00000097c120000 CPU: 0
GPR00: c00000000022b1f8 c00000097c123b60 c000000000fc1950 0000000000000056
GPR04: 0000000000000000 ffffffffffffffff 0000000000000007 0000000000020000
GPR08: 0000000000003d42 0000000000000000 0000000000003cf4 000000000000000a
GPR12: 0000000028008082 c00000000ed70000 0000000001adfa78 0000000000f86800
GPR16: 0000000003400000 000000000021e1af 0000000000c89468 0000000002a5a970
GPR20: 0000000000000000 0000000002a5a4f0 0000000000000040 c0000000002ddbd8
GPR24: c00000000022b17c 0000000000001000 c00000097c680500 c0000003ae040180
GPR28: c00000097c123c80 c0000007893591d0 c000000000f61558 ffffffffffffffef
NIP [c00000000022b1fc] .sysfs_add_one+0xfc/0x170
LR [c00000000022b1f8] .sysfs_add_one+0xf8/0x170
Call Trace:
[c00000097c123b60] [c00000000022b1f8] .sysfs_add_one+0xf8/0x170 (unreliable)
[c00000097c123c10] [c00000000022cbb8] .sysfs_do_create_link+0x118/0x250
[c00000097c123cd0] [c0000000002ddb14] .pci_create_sysfs_dev_files+0x414/0x640
[c00000097c123da0] [c000000000943dc0] .pci_sysfs_init+0x34/0x90
[c00000097c123e30] [c00000000000972c] .do_one_initcall+0x5c/0x200
[c00000097c123ee0] [c0000000009104e0] .kernel_init+0x270/0x32c
[c00000097c123f90] [c000000000030f54] .kernel_thread+0x54/0x70
Instruction dump:
7f44d378 4bfffec1 e89e8030 4be1eb05 60000000 e89d0018 4be1eaf9 60000000
7c641b78 e87e8038 48369195 60000000 <0fe00000> 7f43d378 4bf5e1bd 60000000
sysfs: cannot create duplicate filename '/devices/pci0003:00/0003:00:01.0/slot'
------------[ cut here ]------------
Badness at fs/sysfs/dir.c:451
NIP: c00000000022b1fc LR: c00000000022b1f8 CTR: 0000000000000001
REGS: c00000097c1238e0 TRAP: 0700 Tainted: G W (2.6.35-rc2+)
MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 28008084 XER: 20000000
TASK = c00000078c8d0090[1] 'swapper' THREAD: c00000097c120000 CPU: 0
GPR00: c00000000022b1f8 c00000097c123b60 c000000000fc1950 0000000000000056
GPR04: 0000000000000000 ffffffffffffffff 0000000000000007 0000000000020000
GPR08: 0000000000004492 0000000000000000 0000000000004444 000000000000000a
GPR12: 0000000028008082 c00000000ed70000 0000000001adfa78 0000000000f86800
GPR16: 0000000003400000 000000000021e1af 0000000000c89468 0000000002a5a970
GPR20: 0000000000000000 0000000002a5a4f0 0000000000000040 c0000000002ddbd8
GPR24: c00000000022b17c 0000000000001000 c000000b7c6ce580 c0000003ae040180
GPR28: c00000097c123c80 c00000097ac45260 c000000000f61558 ffffffffffffffef
NIP [c00000000022b1fc] .sysfs_add_one+0xfc/0x170
LR [c00000000022b1f8] .sysfs_add_one+0xf8/0x170
Call Trace:
[c00000097c123b60] [c00000000022b1f8] .sysfs_add_one+0xf8/0x170 (unreliable)
[c00000097c123c10] [c00000000022cbb8] .sysfs_do_create_link+0x118/0x250
[c00000097c123cd0] [c0000000002ddb14] .pci_create_sysfs_dev_files+0x414/0x640
[c00000097c123da0] [c000000000943dc0] .pci_sysfs_init+0x34/0x90
[c00000097c123e30] [c00000000000972c] .do_one_initcall+0x5c/0x200
[c00000097c123ee0] [c0000000009104e0] .kernel_init+0x270/0x32c
[c00000097c123f90] [c000000000030f54] .kernel_thread+0x54/0x70
Instruction dump:
7f44d378 4bfffec1 e89e8030 4be1eb05 60000000 e89d0018 4be1eaf9 60000000
7c641b78 e87e8038 48369195 60000000 <0fe00000> 7f43d378 4bf5e1bd 60000000
sysfs: cannot create duplicate filename '/devices/pci0003:00/0003:00:01.1/slot'
------------[ cut here ]------------
Badness at fs/sysfs/dir.c:451
NIP: c00000000022b1fc LR: c00000000022b1f8 CTR: 0000000000000001
REGS: c00000097c1238e0 TRAP: 0700 Tainted: G W (2.6.35-rc2+)
MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 28008084 XER: 20000000
TASK = c00000078c8d0090[1] 'swapper' THREAD: c00000097c120000 CPU: 0
GPR00: c00000000022b1f8 c00000097c123b60 c000000000fc1950 0000000000000056
GPR04: 0000000000000000 ffffffffffffffff 0000000000000007 0000000000020000
GPR08: 0000000000004be2 0000000000000000 0000000000004b94 000000000000000a
GPR12: 0000000028008082 c00000000ed70000 0000000001adfa78 0000000000f86800
GPR16: 0000000003400000 000000000021e1af 0000000000c89468 0000000002a5a970
GPR20: 0000000000000000 0000000002a5a4f0 0000000000000040 c0000000002ddbd8
GPR24: c00000000022b17c 0000000000001000 c0000003a91f0280 c0000003ae040180
GPR28: c00000097c123c80 c000000b7aaa99a0 c000000000f61558 ffffffffffffffef
NIP [c00000000022b1fc] .sysfs_add_one+0xfc/0x170
LR [c00000000022b1f8] .sysfs_add_one+0xf8/0x170
Call Trace:
[c00000097c123b60] [c00000000022b1f8] .sysfs_add_one+0xf8/0x170 (unreliable)
[c00000097c123c10] [c00000000022cbb8] .sysfs_do_create_link+0x118/0x250
[c00000097c123cd0] [c0000000002ddb14] .pci_create_sysfs_dev_files+0x414/0x640
[c00000097c123da0] [c000000000943dc0] .pci_sysfs_init+0x34/0x90
[c00000097c123e30] [c00000000000972c] .do_one_initcall+0x5c/0x200
[c00000097c123ee0] [c0000000009104e0] .kernel_init+0x270/0x32c
[c00000097c123f90] [c000000000030f54] .kernel_thread+0x54/0x70
Instruction dump:
7f44d378 4bfffec1 e89e8030 4be1eb05 60000000 e89d0018 4be1eaf9 60000000
7c641b78 e87e8038 48369195 60000000 <0fe00000> 7f43d378 4bf5e1bd 60000000
sysfs: cannot create duplicate filename '/devices/pci0005:01/0005:01:00.0/slot'
------------[ cut here ]------------
Badness at fs/sysfs/dir.c:451
NIP: c00000000022b1fc LR: c00000000022b1f8 CTR: 0000000000000001
REGS: c00000097c1238e0 TRAP: 0700 Tainted: G W (2.6.35-rc2+)
MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 28008084 XER: 20000000
TASK = c00000078c8d0090[1] 'swapper' THREAD: c00000097c120000 CPU: 0
GPR00: c00000000022b1f8 c00000097c123b60 c000000000fc1950 0000000000000056
GPR04: 0000000000000000 ffffffffffffffff 0000000000000007 0000000000020000
GPR08: 0000000000005332 0000000000000000 00000000000052e4 000000000000000a
GPR12: 0000000028008082 c00000000ed70000 0000000001adfa78 0000000000f86800
GPR16: 0000000003400000 000000000021e1af 0000000000c89468 0000000002a5a970
GPR20: 0000000000000000 0000000002a5a4f0 0000000000000040 c0000000002ddbd8
GPR24: c00000000022b17c 0000000000001000 c00000078ce95580 c0000003ae040180
GPR28: c00000097c123c80 c0000003a93138c0 c000000000f61558 ffffffffffffffef
NIP [c00000000022b1fc] .sysfs_add_one+0xfc/0x170
LR [c00000000022b1f8] .sysfs_add_one+0xf8/0x170
Call Trace:
[c00000097c123b60] [c00000000022b1f8] .sysfs_add_one+0xf8/0x170 (unreliable)
[c00000097c123c10] [c00000000022cbb8] .sysfs_do_create_link+0x118/0x250
[c00000097c123cd0] [c0000000002ddb14] .pci_create_sysfs_dev_files+0x414/0x640
[c00000097c123da0] [c000000000943dc0] .pci_sysfs_init+0x34/0x90
[c00000097c123e30] [c00000000000972c] .do_one_initcall+0x5c/0x200
[c00000097c123ee0] [c0000000009104e0] .kernel_init+0x270/0x32c
[c00000097c123f90] [c000000000030f54] .kernel_thread+0x54/0x70
Instruction dump:
7f44d378 4bfffec1 e89e8030 4be1eb05 60000000 e89d0018 4be1eaf9 60000000
7c641b78 e87e8038 48369195 60000000 <0fe00000> 7f43d378 4bf5e1bd 60000000
sysfs: cannot create duplicate filename '/devices/pci0005:01/0005:01:00.1/slot'
------------[ cut here ]------------
Badness at fs/sysfs/dir.c:451
NIP: c00000000022b1fc LR: c00000000022b1f8 CTR: 0000000000000001
REGS: c00000097c1238e0 TRAP: 0700 Tainted: G W (2.6.35-rc2+)
MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 28008084 XER: 20000000
TASK = c00000078c8d0090[1] 'swapper' THREAD: c00000097c120000 CPU: 0
GPR00: c00000000022b1f8 c00000097c123b60 c000000000fc1950 0000000000000056
GPR04: 0000000000000000 ffffffffffffffff 0000000000000007 0000000000020000
GPR08: 0000000000005a82 0000000000000000 0000000000005a34 000000000000000a
GPR12: 0000000028008082 c00000000ed70000 0000000001adfa78 0000000000f86800
GPR16: 0000000003400000 000000000021e1af 0000000000c89468 0000000002a5a970
GPR20: 0000000000000000 0000000002a5a4f0 0000000000000040 c0000000002ddbd8
GPR24: c00000000022b17c 0000000000001000 c00000097c3d9480 c0000003ae040180
GPR28: c00000097c123c80 c0000007893594a0 c000000000f61558 ffffffffffffffef
NIP [c00000000022b1fc] .sysfs_add_one+0xfc/0x170
LR [c00000000022b1f8] .sysfs_add_one+0xf8/0x170
Call Trace:
[c00000097c123b60] [c00000000022b1f8] .sysfs_add_one+0xf8/0x170 (unreliable)
[c00000097c123c10] [c00000000022cbb8] .sysfs_do_create_link+0x118/0x250
[c00000097c123cd0] [c0000000002ddb14] .pci_create_sysfs_dev_files+0x414/0x640
[c00000097c123da0] [c000000000943dc0] .pci_sysfs_init+0x34/0x90
[c00000097c123e30] [c00000000000972c] .do_one_initcall+0x5c/0x200
[c00000097c123ee0] [c0000000009104e0] .kernel_init+0x270/0x32c
[c00000097c123f90] [c000000000030f54] .kernel_thread+0x54/0x70
Instruction dump:
7f44d378 4bfffec1 e89e8030 4be1eb05 60000000 e89d0018 4be1eaf9 60000000
7c641b78 e87e8038 48369195 60000000 <0fe00000> 7f43d378 4bf5e1bd 60000000
sysfs: cannot create duplicate filename '/devices/pci0005:01/0005:01:00.2/slot'
------------[ cut here ]------------
Badness at fs/sysfs/dir.c:451
NIP: c00000000022b1fc LR: c00000000022b1f8 CTR: 0000000000000001
REGS: c00000097c1238e0 TRAP: 0700 Tainted: G W (2.6.35-rc2+)
MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 28008084 XER: 20000000
TASK = c00000078c8d0090[1] 'swapper' THREAD: c00000097c120000 CPU: 0
GPR00: c00000000022b1f8 c00000097c123b60 c000000000fc1950 0000000000000056
GPR04: 0000000000000000 ffffffffffffffff 0000000000000007 0000000000020000
GPR08: 00000000000061d2 0000000000000000 0000000000006184 000000000000000a
GPR12: 0000000028008082 c00000000ed70000 0000000001adfa78 0000000000f86800
GPR16: 0000000003400000 000000000021e1af 0000000000c89468 0000000002a5a970
GPR20: 0000000000000000 0000000002a5a4f0 0000000000000040 c0000000002ddbd8
GPR24: c00000000022b17c 0000000000001000 c000000b7c6cd580 c0000003ae040180
GPR28: c00000097c123c80 c00000097ac45530 c000000000f61558 ffffffffffffffef
NIP [c00000000022b1fc] .sysfs_add_one+0xfc/0x170
LR [c00000000022b1f8] .sysfs_add_one+0xf8/0x170
Call Trace:
[c00000097c123b60] [c00000000022b1f8] .sysfs_add_one+0xf8/0x170 (unreliable)
[c00000097c123c10] [c00000000022cbb8] .sysfs_do_create_link+0x118/0x250
[c00000097c123cd0] [c0000000002ddb14] .pci_create_sysfs_dev_files+0x414/0x640
[c00000097c123da0] [c000000000943dc0] .pci_sysfs_init+0x34/0x90
[c00000097c123e30] [c00000000000972c] .do_one_initcall+0x5c/0x200
[c00000097c123ee0] [c0000000009104e0] .kernel_init+0x270/0x32c
[c00000097c123f90] [c000000000030f54] .kernel_thread+0x54/0x70
Instruction dump:
7f44d378 4bfffec1 e89e8030 4be1eb05 60000000 e89d0018 4be1eaf9 60000000
7c641b78 e87e8038 48369195 60000000 <0fe00000> 7f43d378 4bf5e1bd 60000000
sysfs: cannot create duplicate filename '/devices/pci0005:01/0005:01:00.3/slot'
------------[ cut here ]------------
Badness at fs/sysfs/dir.c:451
NIP: c00000000022b1fc LR: c00000000022b1f8 CTR: 0000000000000001
REGS: c00000097c1238e0 TRAP: 0700 Tainted: G W (2.6.35-rc2+)
MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 28008084 XER: 20000000
TASK = c00000078c8d0090[1] 'swapper' THREAD: c00000097c120000 CPU: 0
GPR00: c00000000022b1f8 c00000097c123b60 c000000000fc1950 0000000000000056
GPR04: 0000000000000000 ffffffffffffffff 0000000000000007 0000000000020000
GPR08: 0000000000006922 0000000000000000 00000000000068d4 000000000000000a
GPR12: 0000000028008082 c00000000ed70000 0000000001adfa78 0000000000f86800
GPR16: 0000000003400000 000000000021e1af 0000000000c89468 0000000002a5a970
GPR20: 0000000000000000 0000000002a5a4f0 0000000000000040 c0000000002ddbd8
GPR24: c00000000022b17c 0000000000001000 c0000003a91f0280 c0000003ae040180
GPR28: c00000097c123c80 c000000b7aaa9c70 c000000000f61558 ffffffffffffffef
NIP [c00000000022b1fc] .sysfs_add_one+0xfc/0x170
LR [c00000000022b1f8] .sysfs_add_one+0xf8/0x170
Call Trace:
[c00000097c123b60] [c00000000022b1f8] .sysfs_add_one+0xf8/0x170 (unreliable)
[c00000097c123c10] [c00000000022cbb8] .sysfs_do_create_link+0x118/0x250
[c00000097c123cd0] [c0000000002ddb14] .pci_create_sysfs_dev_files+0x414/0x640
[c00000097c123da0] [c000000000943dc0] .pci_sysfs_init+0x34/0x90
[c00000097c123e30] [c00000000000972c] .do_one_initcall+0x5c/0x200
[c00000097c123ee0] [c0000000009104e0] .kernel_init+0x270/0x32c
[c00000097c123f90] [c000000000030f54] .kernel_thread+0x54/0x70
Instruction dump:
7f44d378 4bfffec1 e89e8030 4be1eb05 60000000 e89d0018 4be1eaf9 60000000
7c641b78 e87e8038 48369195 60000000 <0fe00000> 7f43d378 4bf5e1bd 60000000
rtc-generic rtc-generic: setting system clock to 2010-06-07 14:08:21 UTC (1275919701)