kobject_add_internal failed for hci1 (error: -2 parent: bluetooth) Bluetooth: Can't register HCI device WARNING: CPU: 0 PID: 8238 at fs/kernfs/dir.c:494 kernfs_get.part.0+0x73/0x90 fs/kernfs/dir.c:494 kobject: 'hci5' (000000007cdafaf5): kobject_cleanup, parent (null) Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 8238 Comm: syz-executor997 Not tainted 4.19.56 #28 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 panic+0x263/0x507 kernel/panic.c:185 __warn.cold+0x20/0x4a kernel/panic.c:540 kobject: 'bluetooth' (000000001d23b03c): kobject_add_internal: parent: 'virtual', set: '(null)' report_bug+0x263/0x2b0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] fixup_bug arch/x86/kernel/traps.c:173 [inline] do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296 kobject: 'hci1' (00000000e0d19e6a): kobject_add_internal: parent: 'bluetooth', set: 'devices' do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1013 RIP: 0010:kernfs_get.part.0+0x73/0x90 fs/kernfs/dir.c:494 Code: e6 e8 21 55 9e ff 45 85 e4 74 1a e8 97 53 9e ff be 04 00 00 00 48 89 df e8 3a a8 d4 ff f0 ff 03 5b 41 5c 5d c3 e8 7d 53 9e ff <0f> 0b eb dd 48 89 df e8 91 b8 d4 ff eb c1 0f 1f 44 00 00 66 2e 0f RSP: 0018:ffff88807c54f838 EFLAGS: 00010293 RAX: ffff8880a68b2500 RBX: ffff88809b7838c0 RCX: ffffffff81ccc30f RDX: 0000000000000000 RSI: ffffffff81ccc333 RDI: 0000000000000005 kobject: 'hci3' (000000003ae049b7): kobject_add_internal: parent: 'bluetooth', set: 'devices' RBP: ffff88807c54f848 R08: ffff8880a68b2500 R09: ffffed10136f0719 R10: ffffed10136f0718 R11: ffff88809b7838c3 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 kernfs_get fs/kernfs/dir.c:493 [inline] kernfs_new_node+0xb8/0x130 fs/kernfs/dir.c:697 kobject: 'hci3' (000000003ae049b7): kobject_uevent_env kernfs_create_dir_ns+0x52/0x160 fs/kernfs/dir.c:1020 sysfs_create_dir_ns+0x131/0x290 fs/sysfs/dir.c:58 create_dir lib/kobject.c:88 [inline] kobject_add_internal lib/kobject.c:247 [inline] kobject_add_internal.cold+0xe5/0x5d1 lib/kobject.c:217 kobject_add_varg lib/kobject.c:382 [inline] kobject_add+0x150/0x1c0 lib/kobject.c:426 kobject: 'hci5' (000000007cdafaf5): calling ktype release device_add+0x3cc/0x1760 drivers/base/core.c:1885 kobject: 'hci3' (000000003ae049b7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3' hci_register_dev+0x304/0x880 net/bluetooth/hci_core.c:3198 __vhci_create_device+0x2d0/0x5a0 drivers/bluetooth/hci_vhci.c:139 vhci_create_device drivers/bluetooth/hci_vhci.c:163 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:219 [inline] vhci_write+0x2d6/0x470 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1820 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x587/0x810 fs/read_write.c:487 kobject: 'hci1' (00000000e0d19e6a): kobject_uevent_env kobject: 'hci5': free name vfs_write+0x20c/0x560 fs/read_write.c:549 ksys_write+0x14f/0x2d0 fs/read_write.c:599 kobject: 'rfkill392' (000000005c576d31): kobject_add_internal: parent: 'hci3', set: 'devices' __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:608 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x441279 Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe221043b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 kobject: 'rfkill392' (000000005c576d31): kobject_uevent_env RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441279 RDX: 0000000000000002 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000000d6e2 R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000401ff0 R13: 0000000000402080 R14: 0000000000000000 R15: 0000000000000000 Kernel Offset: disabled Rebooting in 86400 seconds..