Bluetooth: Can't register HCI device kobject_add_internal failed for hci1 (error: -2 parent: bluetooth) Bluetooth: Can't register HCI device ------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 1 PID: 11064 at lib/refcount.c:153 refcount_inc+0x2b/0x30 lib/refcount.c:153 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 11064 Comm: syz-executor.4 Not tainted 4.18.0-rc2+ #1 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+0x109/0x15a lib/dump_stack.c:113 panic+0x1c6/0x36b kernel/panic.c:184 __warn.cold.8+0x120/0x168 kernel/panic.c:536 report_bug+0x1a4/0x200 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x200/0x350 arch/x86/kernel/traps.c:296 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992 RIP: 0010:refcount_inc+0x2b/0x30 lib/refcount.c:153 Code: 48 89 e5 e8 97 fe ff ff 84 c0 74 02 5d c3 80 3d c0 86 bb 05 00 75 f5 48 c7 c7 c0 d4 fd 86 c6 05 b0 86 bb 05 01 e8 28 5b 4b fe <0f> 0b 5d c3 90 55 48 89 e5 41 57 49 89 f7 be 04 00 00 00 41 56 4c RSP: 0018:ffff8800a41bf948 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88021aa3a300 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff86fdef00 RDI: ffffffff89a21960 RBP: ffff8800a41bf948 R08: ffffed0015da4f99 R09: ffffed0015da4f98 R10: ffffed0015da4f98 R11: ffff8800aed27cc7 R12: ffff88009f5ecca0 R13: ffff88009f5ecc80 R14: ffff8800a9d71500 R15: ffff8800a9d71500 kref_get include/linux/kref.h:47 [inline] kobject_get+0x43/0x90 lib/kobject.c:594 kset_get include/linux/kobject.h:209 [inline] kobj_kset_join lib/kobject.c:167 [inline] kobject_add_internal+0x10e/0x310 lib/kobject.c:219 kobject_add_varg lib/kobject.c:363 [inline] kobject_add+0x10f/0x170 lib/kobject.c:407 class_dir_create_and_add drivers/base/core.c:1504 [inline] get_device_parent.isra.27+0x311/0x560 drivers/base/core.c:1559 device_add+0x2ab/0x1630 drivers/base/core.c:1815 hci_register_dev+0x29b/0x750 net/bluetooth/hci_core.c:3108 __vhci_create_device+0x272/0x500 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+0x28a/0x3f0 drivers/bluetooth/hci_vhci.c:299 call_write_iter include/linux/fs.h:1795 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x446/0x880 fs/read_write.c:487 vfs_write+0x150/0x4f0 fs/read_write.c:549 ksys_write+0xcd/0x1b0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:607 do_syscall_64+0xd0/0x4d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459519 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f587f58cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459519 RDX: 0000000000000002 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f587f58d6d4 R13: 00000000004c95ff R14: 00000000004e0958 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..