[Bug 603718] Re: sysfs: cannot create duplicate filename '/class/net/bnep0'

Eugene 603718 at bugs.launchpad.net
Tue Jul 20 16:25:19 UTC 2010


Identical problem here, trying to connect to a myTouch 3G running
Android 2.1 (cyanogenmod) via bluetooth tether.  Running on an MSI U-100
laptop.  Connection used to work without issues on the linux-
image-2.6.32-24-generic kernel.  Running lts maverick backport in lucid
lynx; kernel is:

Linux eugbook 2.6.35-9-generic #14~lucid1-Ubuntu SMP Sun Jul 18 13:11:45
UTC 2010 i686 GNU/Linux

(also had the issue with .35-7).  Relevant syslog is nearly identical:

Jul 20 11:08:38 eugbook bluetoothd[5723]: Failed to add device bnep%d: File exists(17)
Jul 20 11:08:38 eugbook bluetoothd[5723]: bnep%d could not be added
Jul 20 11:08:38 eugbook NetworkManager:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0/hci0:43/bnep0, iface: bnep0)
Jul 20 11:08:38 eugbook kernel: [12979.247378] WARNING: at /build/buildd/linux-maverick-2.6.35/fs/sysfs/dir.c:451 sysfs_add_one+0xa1/0x110()
Jul 20 11:08:38 eugbook kernel: [12979.247396] Hardware name: U-100
Jul 20 11:08:38 eugbook kernel: [12979.247406] sysfs: cannot create duplicate filename '/class/net/bnep0'
Jul 20 11:08:38 eugbook kernel: [12979.247418] Modules linked in: rfcomm sco bridge stp bnep l2cap btusb bluetooth aes_i586 aes_generic binfmt_misc ppdev vga16fb snd_hda_codec_realtek vgastate rt2860sta(C) arc4 snd_hda_intel snd_hda_codec rt2800pci snd_hwdep snd_pcm rt2800lib i915 rt2x00usb rt2x00pci snd_seq_midi crc_ccitt snd_rawmidi rt2x00lib snd_seq_midi_event snd_seq mac80211 snd_timer drm_kms_helper snd_seq_device drm snd cfg80211 intel_agp psmouse soundcore snd_page_alloc serio_raw led_class agpgart i2c_algo_bit eeprom_93cx6 video output lp parport usb_storage r8169 mii
Jul 20 11:08:38 eugbook kernel: [12979.247663] Pid: 5723, comm: bluetoothd Tainted: G        WC  2.6.35-7-generic #11~lucid1-Ubuntu
Jul 20 11:08:38 eugbook kernel: [12979.247680] Call Trace:
Jul 20 11:08:38 eugbook kernel: [12979.247714]  [<c014ab52>] warn_slowpath_common+0x72/0xa0
Jul 20 11:08:38 eugbook kernel: [12979.247741]  [<c0271c91>] ? sysfs_add_one+0xa1/0x110
Jul 20 11:08:38 eugbook kernel: [12979.247763]  [<c0271c91>] ? sysfs_add_one+0xa1/0x110
Jul 20 11:08:38 eugbook kernel: [12979.247787]  [<c014ac23>] warn_slowpath_fmt+0x33/0x40
Jul 20 11:08:38 eugbook kernel: [12979.247810]  [<c0271c91>] sysfs_add_one+0xa1/0x110
Jul 20 11:08:38 eugbook kernel: [12979.247835]  [<c0272319>] sysfs_do_create_link+0xa9/0x150
Jul 20 11:08:38 eugbook kernel: [12979.247859]  [<c02723f7>] sysfs_create_link+0x17/0x20
Jul 20 11:08:38 eugbook kernel: [12979.247886]  [<c040197d>] device_add_class_symlinks+0x5d/0xd0
Jul 20 11:08:38 eugbook kernel: [12979.247910]  [<c04025ef>] device_add+0x1cf/0x3b0
Jul 20 11:08:38 eugbook kernel: [12979.247938]  [<c0356884>] ? kobject_set_name_vargs+0x64/0x70
Jul 20 11:08:38 eugbook kernel: [12979.247964]  [<c050b134>] netdev_register_kobject+0x84/0xd0
Jul 20 11:08:38 eugbook kernel: [12979.247993]  [<c04fb787>] register_netdevice+0x207/0x380
Jul 20 11:08:38 eugbook kernel: [12979.248123]  [<c04fb4b9>] ? dev_alloc_name+0x49/0x70
Jul 20 11:08:38 eugbook kernel: [12979.248151]  [<c05cb049>] ? mutex_lock+0x19/0x40
Jul 20 11:08:38 eugbook NetworkManager: <WARN>  nm_device_bt_connect_cb(): Error connecting with bluez: bnep setup failed
Jul 20 11:08:38 eugbook kernel: [12979.248177]  [<c04fb937>] register_netdev+0x37/0x50
Jul 20 11:08:38 eugbook kernel: [12979.248209]  [<fc8f549f>] bnep_add_connection+0x24f/0x370 [bnep]
Jul 20 11:08:38 eugbook kernel: [12979.248240]  [<fc8f6290>] bnep_sock_ioctl+0x100/0x1f0 [bnep]
Jul 20 11:08:38 eugbook kernel: [12979.248266]  [<c035ec0d>] ? _copy_from_user+0x3d/0x130
Jul 20 11:08:38 eugbook kernel: [12979.248292]  [<c05cc4d6>] ? _raw_spin_unlock_bh+0x16/0x20
Jul 20 11:08:38 eugbook kernel: [12979.248319]  [<c04ec2e0>] ? release_sock+0xc0/0xe0
Jul 20 11:08:38 eugbook kernel: [12979.248348]  [<c04e864d>] sock_ioctl+0x6d/0x270
Jul 20 11:08:38 eugbook kernel: [12979.248375]  [<c0226992>] vfs_ioctl+0x32/0xb0
Jul 20 11:08:38 eugbook kernel: [12979.248399]  [<c04e85e0>] ? sock_ioctl+0x0/0x270
Jul 20 11:08:38 eugbook kernel: [12979.248425]  [<c0227209>] do_vfs_ioctl+0x79/0x2d0
Jul 20 11:08:38 eugbook kernel: [12979.248449]  [<c02274c7>] sys_ioctl+0x67/0x80
Jul 20 11:08:38 eugbook kernel: [12979.248472]  [<c05cc79c>] syscall_call+0x7/0xb
Jul 20 11:08:38 eugbook kernel: [12979.248490] ---[ end trace 62a1f093ff5a19bf ]---

The link /sys/class/net/bnep0 is a link to a nonexistent file.  Tried
restarting networking and modprobe -r bnep.  Neither worked.

-- 
sysfs: cannot create duplicate filename '/class/net/bnep0'
https://bugs.launchpad.net/bugs/603718
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list