Bug 9218 - sysfs: duplicate filename 'bInterfaceNumber' can not be created
Summary: sysfs: duplicate filename 'bInterfaceNumber' can not be created
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 08:01 UTC by Vladimir Brik
Modified: 2007-10-28 10:03 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.24-rc1
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
dmesg (23.39 KB, text/plain)
2007-10-24 08:02 UTC, Vladimir Brik
Details
lspci (1.70 KB, text/plain)
2007-10-24 08:03 UTC, Vladimir Brik
Details

Description Vladimir Brik 2007-10-24 08:01:18 UTC
Most recent kernel where this bug did not occur: 2.6.23.1
Distribution: Gentoo
Hardware Environment: x86_64 Intel(R) Core(TM)2, Intel USB UHCI, EHCI
Software Environment: gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-rc1 x86_64
Problem Description: Scary message during boot (below). Everything seems to work fine though.

hub 7-0:1.0: USB hub found
hub 7-0:1.0: 2 ports detected
sysfs: duplicate filename 'bInterfaceNumber' can not be created
WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()

Call Trace:
 [<ffffffff802b9b58>] sysfs_add_one+0x54/0xbd
 [<ffffffff802b9644>] sysfs_add_file+0x50/0x81
 [<ffffffff802bafe3>] sysfs_create_group+0x9a/0xf7
 [<ffffffff80443490>] usb_create_sysfs_intf_files+0x3a/0xc8
 [<ffffffff8043feeb>] usb_set_configuration+0x4bb/0x4fe
 [<ffffffff80446fbd>] generic_probe+0x53/0x92
 [<ffffffff803e921e>] __device_attach+0x0/0x5
 [<ffffffff803e9195>] driver_probe_device+0xf6/0x17f
 [<ffffffff803e921e>] __device_attach+0x0/0x5
 [<ffffffff803e8441>] bus_for_each_drv+0x3d/0x6c
 [<ffffffff803e92a9>] device_attach+0x63/0x7a
 [<ffffffff803e83b8>] bus_attach_device+0x2a/0x76
 [<ffffffff803e72e9>] device_add+0x391/0x604
 [<ffffffff8043b5a6>] usb_new_device+0x45/0x7e
 [<ffffffff8043ca2e>] hub_thread+0x728/0xb92
 [<ffffffff8024572c>] autoremove_wake_function+0x0/0x2e
 [<ffffffff8043c306>] hub_thread+0x0/0xb92
 [<ffffffff8024561a>] kthread+0x47/0x75
 [<ffffffff8020cc18>] child_rip+0xa/0x12
 [<ffffffff802455d3>] kthread+0x0/0x75
 [<ffffffff8020cc0e>] child_rip+0x0/0x12

Steps to reproduce: boot
Comment 1 Vladimir Brik 2007-10-24 08:02:31 UTC
Created attachment 13262 [details]
dmesg
Comment 2 Vladimir Brik 2007-10-24 08:03:02 UTC
Created attachment 13263 [details]
lspci
Comment 3 Anonymous Emailer 2007-10-24 08:17:06 UTC
Reply-To: akpm@linux-foundation.org

On Wed, 24 Oct 2007 08:01:19 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=9218
> 
>            Summary: sysfs: duplicate filename 'bInterfaceNumber' can not be
>                     created
>            Product: Drivers
>            Version: 2.5
>      KernelVersion: 2.6.24-rc1
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: USB
>         AssignedTo: greg@kroah.com
>         ReportedBy: no.hope@gmail.com
> 
> 
> Most recent kernel where this bug did not occur: 2.6.23.1
> Distribution: Gentoo
> Hardware Environment: x86_64 Intel(R) Core(TM)2, Intel USB UHCI, EHCI
> Software Environment: gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-rc1 x86_64
> Problem Description: Scary message during boot (below). Everything seems to
> work fine though.
> 
> hub 7-0:1.0: USB hub found
> hub 7-0:1.0: 2 ports detected
> sysfs: duplicate filename 'bInterfaceNumber' can not be created
> WARNING: at fs/sysfs/dir.c:424 sysfs_add_one()
> 
> Call Trace:
>  [<ffffffff802b9b58>] sysfs_add_one+0x54/0xbd
>  [<ffffffff802b9644>] sysfs_add_file+0x50/0x81
>  [<ffffffff802bafe3>] sysfs_create_group+0x9a/0xf7
>  [<ffffffff80443490>] usb_create_sysfs_intf_files+0x3a/0xc8
>  [<ffffffff8043feeb>] usb_set_configuration+0x4bb/0x4fe
>  [<ffffffff80446fbd>] generic_probe+0x53/0x92
>  [<ffffffff803e921e>] __device_attach+0x0/0x5
>  [<ffffffff803e9195>] driver_probe_device+0xf6/0x17f
>  [<ffffffff803e921e>] __device_attach+0x0/0x5
>  [<ffffffff803e8441>] bus_for_each_drv+0x3d/0x6c
>  [<ffffffff803e92a9>] device_attach+0x63/0x7a
>  [<ffffffff803e83b8>] bus_attach_device+0x2a/0x76
>  [<ffffffff803e72e9>] device_add+0x391/0x604
>  [<ffffffff8043b5a6>] usb_new_device+0x45/0x7e
>  [<ffffffff8043ca2e>] hub_thread+0x728/0xb92
>  [<ffffffff8024572c>] autoremove_wake_function+0x0/0x2e
>  [<ffffffff8043c306>] hub_thread+0x0/0xb92
>  [<ffffffff8024561a>] kthread+0x47/0x75
>  [<ffffffff8020cc18>] child_rip+0xa/0x12
>  [<ffffffff802455d3>] kthread+0x0/0x75
>  [<ffffffff8020cc0e>] child_rip+0x0/0x12
> 
> Steps to reproduce: boot
> 
> 
Comment 4 Avuton Olrich 2007-10-24 09:12:04 UTC
FYI- this breaks suspend-to-ram here.
Comment 5 Avuton Olrich 2007-10-24 09:12:37 UTC
Also, this bisects to: efefc6eb38d43b8e5daef482f575d767b002004e
Comment 6 Alan Stern 2007-10-24 10:13:07 UTC
There's a patch to fix this problem here:

http://marc.info/?l=linux-usb-devel&m=119280459503731&w=2

Apparently Greg KH hasn't merged this patch into his development tree yet.
Comment 7 Avuton Olrich 2007-10-24 10:14:42 UTC
I actually tried that patch, it didn't work here, though I admittedly make many mistakes :) Anyone else had success?
Comment 8 Alan Stern 2007-10-24 10:25:42 UTC
Yes.  The person who reported this bug before you found that the patch fixed it.

Are you sure that you installed the patched driver correctly?  Some distributions load the usbcore module in an initramfs image during boot-up; if you don't rebuild that image then you would still be using the original driver.
Comment 9 Avuton Olrich 2007-10-24 11:58:58 UTC
Whoops, I guess only I can screw up such a small patch. Yes the fix worked. Thanks
Comment 10 Alan Stern 2007-10-28 09:58:56 UTC
Okay, you can go ahead and close this bug report.  Mark it as PATCH ALREADY AVAILABLE.

Note You need to log in before you can comment on or make changes to this bug.