------------[ cut here ]------------ refcount_t: increment on 0; use-after-free. WARNING: CPU: 1 PID: 3972 at lib/refcount.c:156 refcount_inc_checked lib/refcount.c:156 [inline] WARNING: CPU: 1 PID: 3972 at lib/refcount.c:156 refcount_inc_checked+0x61/0x70 lib/refcount.c:154 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 3972 Comm: syz-executor.2 Not tainted 5.2.0-rc4 #25 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+0x2cb/0x744 kernel/panic.c:219 __warn.cold+0x20/0x4d kernel/panic.c:576 report_bug+0x263/0x2b0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:179 [inline] fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:986 RIP: 0010:refcount_inc_checked lib/refcount.c:156 [inline] RIP: 0010:refcount_inc_checked+0x61/0x70 lib/refcount.c:154 Code: 1d dd ad 48 06 31 ff 89 de e8 0b 6f 3c fe 84 db 75 dd e8 c2 6d 3c fe 48 c7 c7 20 9d a4 87 c6 05 bd ad 48 06 01 e8 fd ac 0e fe <0f> 0b eb c1 90 90 90 90 90 90 90 90 90 90 90 55 48 89 e5 41 57 41 RSP: 0018:ffff88805828f8f8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000012b59 RSI: ffffffff815ac976 RDI: ffffed100b051f11 RBP: ffff88805828f908 R08: ffff88809e59c380 R09: ffffed1015d240f1 R10: ffffed1015d240f0 R11: ffff8880ae920787 R12: ffff8880a75d0778 R13: ffff88809e85f620 R14: ffff88809e85f618 R15: ffff8880a75d06f8 kref_get include/linux/kref.h:45 [inline] kobject_get+0x66/0xc0 lib/kobject.c:642 kset_get include/linux/kobject.h:214 [inline] kobj_kset_join lib/kobject.c:194 [inline] kobject_add_internal lib/kobject.c:246 [inline] kobject_add_internal+0x14f/0x380 lib/kobject.c:225 kobject_add_varg lib/kobject.c:390 [inline] kobject_add+0x150/0x1c0 lib/kobject.c:442 class_dir_create_and_add drivers/base/core.c:1732 [inline] get_device_parent.isra.0+0x413/0x560 drivers/base/core.c:1787 device_add+0x2df/0x17a0 drivers/base/core.c:2048 hci_register_dev+0x2e8/0x860 net/bluetooth/hci_core.c:3305 __vhci_create_device+0x2d0/0x5a0 drivers/bluetooth/hci_vhci.c:124 vhci_create_device drivers/bluetooth/hci_vhci.c:148 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:204 [inline] vhci_write+0x2d0/0x470 drivers/bluetooth/hci_vhci.c:284 call_write_iter include/linux/fs.h:1872 [inline] new_sync_write+0x4d3/0x770 fs/read_write.c:483 __vfs_write+0xe1/0x110 fs/read_write.c:496 vfs_write+0x20c/0x580 fs/read_write.c:558 ksys_write+0x14f/0x290 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:620 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 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:00007faf8d862c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459279 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007faf8d8636d4 R13: 00000000004c8ca3 R14: 00000000004df948 R15: 00000000ffffffff Kernel Offset: disabled Rebooting in 86400 seconds..