https://bugzilla.kernel.org/show_bug.cgi?id=199285 Bug ID: 199285 Summary: system unusable after sysfs: cannot create duplicate filename '[...]/bluetooth/hci0/hci0:256' Product: Drivers Version: 2.5 Kernel Version: 4.15.11 (Debian) Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Bluetooth Assignee: linux-bluetooth@xxxxxxxxxxxxxxx Reporter: post+kernel@xxxxxxxx Regression: No Occasionally (I have now seen the symptoms twice in the last three weeks), while I have an active bluetooth connection to my phone for tethering, that connection will stop working. if I then look into the system log, I can see the following: Apr 02 18:59:36 r-thinktop kernel: sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/hci0:256' Apr 02 18:59:36 r-thinktop kernel: WARNING: CPU: 7 PID: 10220 at /build/linux-jIx23a/linux-4.15.11/fs/sysfs/dir.c:31 sysfs_warn_dup+0x51/0x60 Apr 02 18:59:36 r-thinktop kernel: Modules linked in: snd_seq_dummy snd_seq snd_seq_device uas usb_storage hid_cherry ctr ccm pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) ipt_MASQUERADE nf_nat_masq Apr 02 18:59:36 r-thinktop kernel: ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter cmac bnep arc4 binfmt_misc snd_hda_codec_realtek btusb iwlmvm btrtl intel_rapl btbcm snd_hda_codec_generic nl Apr 02 18:59:36 r-thinktop kernel: efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic fscrypto ecb algif_skcipher af_alg dm_crypt dm_mod sd_mod hid_generic usbhid hid crct10dif_pclmul cr Apr 02 18:59:36 r-thinktop kernel: CPU: 7 PID: 10220 Comm: kworker/u17:4 Tainted: G W O 4.15.0-2-amd64 #1 Debian 4.15.11-1 Apr 02 18:59:36 r-thinktop kernel: Hardware name: LENOVO 20ENCTO1WW/20ENCTO1WW, BIOS N1EET75W (1.48 ) 12/13/2017 Apr 02 18:59:36 r-thinktop kernel: Workqueue: hci0 hci_rx_work [bluetooth] Apr 02 18:59:36 r-thinktop kernel: RIP: 0010:sysfs_warn_dup+0x51/0x60 Apr 02 18:59:36 r-thinktop kernel: RSP: 0018:ffffbe9b46b6fbf0 EFLAGS: 00010282 Apr 02 18:59:36 r-thinktop kernel: RAX: 0000000000000000 RBX: ffff95c5e1985000 RCX: 0000000000000006 Apr 02 18:59:36 r-thinktop kernel: RDX: 0000000000000007 RSI: 0000000000000082 RDI: ffff95c6a15d66f0 Apr 02 18:59:36 r-thinktop kernel: RBP: ffff95c617bb2770 R08: 00000000000007c9 R09: 0000000000000004 Apr 02 18:59:36 r-thinktop kernel: R10: 0000000000000000 R11: 0000000000000001 R12: ffff95c5f4902770 Apr 02 18:59:36 r-thinktop kernel: R13: ffff95c68c73b518 R14: ffff95c5e2bc9a80 R15: 0000000000000003 Apr 02 18:59:36 r-thinktop kernel: FS: 0000000000000000(0000) GS:ffff95c6a15c0000(0000) knlGS:0000000000000000 Apr 02 18:59:36 r-thinktop kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Apr 02 18:59:36 r-thinktop kernel: CR2: 00007f8040e76000 CR3: 00000001d240a005 CR4: 00000000003606e0 Apr 02 18:59:36 r-thinktop kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Apr 02 18:59:36 r-thinktop kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Apr 02 18:59:36 r-thinktop kernel: Call Trace: Apr 02 18:59:36 r-thinktop kernel: sysfs_create_dir_ns+0x70/0x80 Apr 02 18:59:36 r-thinktop kernel: kobject_add_internal+0xaf/0x2e0 Apr 02 18:59:36 r-thinktop kernel: kobject_add+0x71/0xd0 Apr 02 18:59:36 r-thinktop kernel: ? kobject_set_name_vargs+0x6f/0x90 Apr 02 18:59:36 r-thinktop kernel: device_add+0x129/0x670 Apr 02 18:59:36 r-thinktop kernel: ? start_creating+0xb4/0x100 Apr 02 18:59:36 r-thinktop kernel: hci_conn_add_sysfs+0x43/0xb0 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: hci_conn_complete_evt.isra.44+0xc0/0x400 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: hci_event_packet+0x1737/0x2c50 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x40/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x40/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x40/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x40/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? hci_rx_work+0x17e/0x340 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: hci_rx_work+0x17e/0x340 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: process_one_work+0x17b/0x370 Apr 02 18:59:36 r-thinktop kernel: worker_thread+0x2e/0x390 Apr 02 18:59:36 r-thinktop kernel: ? process_one_work+0x370/0x370 Apr 02 18:59:36 r-thinktop kernel: kthread+0x113/0x130 Apr 02 18:59:36 r-thinktop kernel: ? kthread_create_worker_on_cpu+0x70/0x70 Apr 02 18:59:36 r-thinktop kernel: ? SyS_exit+0x13/0x20 Apr 02 18:59:36 r-thinktop kernel: ret_from_fork+0x35/0x40 Apr 02 18:59:36 r-thinktop kernel: Code: 85 c0 48 89 c3 74 12 b9 00 10 00 00 48 89 c2 31 f6 4c 89 e7 e8 31 c9 ff ff 48 89 ea 48 89 de 48 c7 c7 18 b9 e3 bd e8 9f ff db ff <0f> 0b 48 89 df 5b 5d 41 5c e9 b1 32 f5 02 18:59:36 r-thinktop kernel: kobject_add_internal failed for hci0:256 with -EEXIST, don't try to register things with the same name in the same directory. Apr 02 18:59:36 r-thinktop kernel: WARNING: CPU: 7 PID: 10220 at /build/linux-jIx23a/linux-4.15.11/lib/kobject.c:240 kobject_add_internal+0x296/0x2e0 Apr 02 18:59:36 r-thinktop kernel: Modules linked in: snd_seq_dummy snd_seq snd_seq_device uas usb_storage hid_cherry ctr ccm pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) ipt_MASQUERADE nf_nat_masq Apr 02 18:59:36 r-thinktop kernel: ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter cmac bnep arc4 binfmt_misc snd_hda_codec_realtek btusb iwlmvm btrtl intel_rapl btbcm snd_hda_codec_generic nl Apr 02 18:59:36 r-thinktop kernel: efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic fscrypto ecb algif_skcipher af_alg dm_crypt dm_mod sd_mod hid_generic usbhid hid crct10dif_pclmul cr Apr 02 18:59:36 r-thinktop kernel: CPU: 7 PID: 10220 Comm: kworker/u17:4 Tainted: G W O 4.15.0-2-amd64 #1 Debian 4.15.11-1 Apr 02 18:59:36 r-thinktop kernel: Hardware name: LENOVO 20ENCTO1WW/20ENCTO1WW, BIOS N1EET75W (1.48 ) 12/13/2017 Apr 02 18:59:36 r-thinktop kernel: Workqueue: hci0 hci_rx_work [bluetooth] Apr 02 18:59:36 r-thinktop kernel: RIP: 0010:kobject_add_internal+0x296/0x2e0 Apr 02 18:59:36 r-thinktop kernel: RSP: 0018:ffffbe9b46b6fc30 EFLAGS: 00010282 Apr 02 18:59:36 r-thinktop kernel: RAX: 0000000000000000 RBX: ffff95c5e2bc9a78 RCX: 0000000000000006 Apr 02 18:59:36 r-thinktop kernel: RDX: 0000000000000007 RSI: 0000000000000086 RDI: ffff95c6a15d66f0 Apr 02 18:59:36 r-thinktop kernel: RBP: ffff95c684ddcc20 R08: 00000000000007fe R09: 0000000000000004 Apr 02 18:59:36 r-thinktop kernel: R10: fffffa1b8f866000 R11: 0000000000000001 R12: 00000000ffffffef Apr 02 18:59:36 r-thinktop kernel: R13: ffff95c68c73b518 R14: ffff95c5e2bc9a80 R15: 0000000000000003 Apr 02 18:59:36 r-thinktop kernel: FS: 0000000000000000(0000) GS:ffff95c6a15c0000(0000) knlGS:0000000000000000 Apr 02 18:59:36 r-thinktop kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Apr 02 18:59:36 r-thinktop kernel: CR2: 00007f8040e76000 CR3: 00000001d240a005 CR4: 00000000003606e0 Apr 02 18:59:36 r-thinktop kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Apr 02 18:59:36 r-thinktop kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Apr 02 18:59:36 r-thinktop kernel: Call Trace: Apr 02 18:59:36 r-thinktop kernel: kobject_add+0x71/0xd0 Apr 02 18:59:36 r-thinktop kernel: ? kobject_set_name_vargs+0x6f/0x90 Apr 02 18:59:36 r-thinktop kernel: device_add+0x129/0x670 Apr 02 18:59:36 r-thinktop kernel: ? start_creating+0xb4/0x100 Apr 02 18:59:36 r-thinktop kernel: hci_conn_add_sysfs+0x43/0xb0 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: hci_conn_complete_evt.isra.44+0xc0/0x400 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: hci_event_packet+0x1737/0x2c50 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x40/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x40/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x40/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x40/0x70 Apr 02 18:59:36 r-thinktop kernel: ? __switch_to_asm+0x34/0x70 Apr 02 18:59:36 r-thinktop kernel: ? hci_rx_work+0x17e/0x340 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: hci_rx_work+0x17e/0x340 [bluetooth] Apr 02 18:59:36 r-thinktop kernel: process_one_work+0x17b/0x370 Apr 02 18:59:36 r-thinktop kernel: worker_thread+0x2e/0x390 Apr 02 18:59:36 r-thinktop kernel: ? process_one_work+0x370/0x370 Apr 02 18:59:36 r-thinktop kernel: kthread+0x113/0x130 Apr 02 18:59:36 r-thinktop kernel: ? kthread_create_worker_on_cpu+0x70/0x70 Apr 02 18:59:36 r-thinktop kernel: ? SyS_exit+0x13/0x20 Apr 02 18:59:36 r-thinktop kernel: ret_from_fork+0x35/0x40 Apr 02 18:59:36 r-thinktop kernel: Code: 48 89 c5 48 85 ff 0f 84 1c fe ff ff 48 83 c7 18 e9 cf fd ff ff 48 8b 13 48 c7 c6 90 7e cc bd 48 c7 c7 70 c6 e9 bd e8 1a 10 9f ff <0f> 0b e9 6a fe ff ff 0f 0b eb 84 0f 0b Subsequently, WiFi and Bluetooth (both are on the same device for me) are entirely broken. Moreover, applications trying to do network-y things block forever -- "htop" fills with processes in the "D" state: 875 root 20 0 590M 18616 13252 D 0.0 0.1 0:08.22 /usr/sbin/NetworkManager --no-daemon 11229 root 20 0 83840 6784 6028 D 0.0 0.0 0:00.00 bounce -z -n defer -t unix -u -c 11345 root 20 0 32264 2820 2588 D 0.0 0.0 0:00.00 sudo /sbin/iw dev wlp6s0 scan At this point, I have to reboot my machine is it is becoming increasingly unusable. This only started happening within the last three weeks---so, either with the update to Debian's 4.14.0-3 or with Debian's 4.15.0-2. Some further system information: $ uname -a Linux r-thinktop 4.15.0-2-amd64 #1 SMP Debian 4.15.11-1 (2018-03-20) x86_64 GNU/Linux $ lspci -v 02:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a) Subsystem: Intel Corporation Wireless 8260 Flags: bus master, fast devsel, latency 0, IRQ 133 Memory at d4200000 (64-bit, non-prefetchable) [size=8K] Capabilities: [c8] Power Management version 3 Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [40] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number e4-a4-71-ff-ff-65-d2-a4 Capabilities: [14c] Latency Tolerance Reporting Capabilities: [154] L1 PM Substates Kernel driver in use: iwlwifi Kernel modules: iwlwifi -- You are receiving this mail because: You are the assignee for the bug.-- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html