------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28, CPU#3: syz-executor/8787 Modules linked in: CPU: 3 UID: 0 PID: 8787 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28 Code: 06 e8 00 cd ec fc 48 8d 3d f9 f6 0f 0c 67 48 0f b9 3a e8 ef cc ec fc 5b 5d c3 cc cc cc cc e8 e3 cc ec fc 48 8d 3d ec f6 0f 0c <67> 48 0f b9 3a e8 d2 cc ec fc 5b 5d e9 8b dd a0 06 e8 c6 cc ec fc RSP: 0018:ffffc9000d5df6d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888039197878 RCX: ffffffff851d94ab RDX: ffff88802b2d2540 RSI: ffffffff851d953d RDI: ffffffff912d8c30 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000004 R10: 0000000000000003 R11: 0000000000000001 R12: ffff888058d82400 R13: ffff888039197878 R14: ffffffff865c30c0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880d60d8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f035f04ca10 CR3: 000000003339a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 00000000000018d1 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:400 [inline] __refcount_dec_and_test include/linux/refcount.h:432 [inline] refcount_dec_and_test include/linux/refcount.h:450 [inline] kref_put include/linux/kref.h:64 [inline] klist_dec_and_del lib/klist.c:206 [inline] klist_put+0x18a/0x1d0 lib/klist.c:217 klist_del lib/klist.c:230 [inline] klist_remove+0x14c/0x2e0 lib/klist.c:249 device_move+0x12d/0x1140 drivers/base/core.c:4698 hci_conn_del_sysfs+0x86/0x1a0 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:170 [inline] hci_conn_del+0x506/0x1180 net/bluetooth/hci_conn.c:1308 hci_conn_hash_flush+0x186/0x280 net/bluetooth/hci_conn.c:2736 hci_dev_close_sync+0x5cf/0x13c0 net/bluetooth/hci_sync.c:5513 hci_dev_do_close+0x2e/0xb0 net/bluetooth/hci_core.c:499 hci_unregister_dev+0x23f/0x690 net/bluetooth/hci_core.c:2678 vhci_release+0x17d/0x230 drivers/bluetooth/hci_vhci.c:700 __fput+0x3ff/0xb50 fs/file_table.c:512 task_work_run+0x150/0x240 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x951/0x2ae0 kernel/exit.c:1009 do_group_exit+0xd5/0x2a0 kernel/exit.c:1152 get_signal+0x1ec7/0x21e0 kernel/signal.c:3046 arch_do_signal_or_restart+0x91/0x7e0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop+0x139/0x6f0 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x666/0x870 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f270559d107 Code: Unable to access opcode bytes at 0x7f270559d0dd. RSP: 002b:00007ffefb9d7a18 EFLAGS: 00000202 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffff RBX: 000000000000e2ef RCX: 00007f270559d107 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffefb9d7ad0 RBP: 00007ffefb9d7ad0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffefb9d8b60 R13: 00007f270563445c R14: 00005555915bd4e8 R15: 0000000000000005 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: e8 00 cd ec fc call 0xfceccd05 5: 48 8d 3d f9 f6 0f 0c lea 0xc0ff6f9(%rip),%rdi # 0xc0ff705 c: 67 48 0f b9 3a ud1 (%edx),%rdi 11: e8 ef cc ec fc call 0xfceccd05 16: 5b pop %rbx 17: 5d pop %rbp 18: c3 ret 19: cc int3 1a: cc int3 1b: cc int3 1c: cc int3 1d: e8 e3 cc ec fc call 0xfceccd05 22: 48 8d 3d ec f6 0f 0c lea 0xc0ff6ec(%rip),%rdi # 0xc0ff715 * 29: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2e: e8 d2 cc ec fc call 0xfceccd05 33: 5b pop %rbx 34: 5d pop %rbp 35: e9 8b dd a0 06 jmp 0x6a0ddc5 3a: e8 c6 cc ec fc call 0xfceccd05