------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: lib/refcount.c:28 at 0x0, CPU#1: kbnepd /8051 Modules linked in: CPU: 1 UID: 0 PID: 8051 Comm: kbnepd  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~bpo12+1 04/01/2014 RIP: 0010:refcount_warn_saturate+0xc9/0x120 lib/refcount.c:28 Code: 5d e9 0b e2 12 fd e8 06 e2 12 fd 48 8d 3d 7f 78 e5 0b 67 48 0f b9 3a 5b 5d e9 f3 e1 12 fd e8 ee e1 12 fd 48 8d 3d 77 78 e5 0b <67> 48 0f b9 3a 5b 5d e9 db e1 12 fd e8 d6 e1 12 fd 48 8d 3d 6f 78 RSP: 0018:ffffc90005bd7918 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffffffff84ac021c RDX: ffff88802b9524c0 RSI: ffffffff84ac0282 RDI: ffffffff90917b00 RBP: ffff88803dc4e078 R08: 0000000000000005 R09: 0000000000000004 R10: 0000000000000003 R11: ffff88802b952ff0 R12: ffff888030f94c00 R13: ffff88803dc4e078 R14: ffffffff85e5c140 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880d6a07000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc818269e0 CR3: 000000000e184000 CR4: 0000000000352ef0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083 DR3: ffffffffefffff15 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+0x11b/0x1b0 lib/klist.c:217 device_del+0x1d8/0x9f0 drivers/base/core.c:3855 unregister_netdevice_many_notify+0x151e/0x2590 net/core/dev.c:12416 unregister_netdevice_many net/core/dev.c:12444 [inline] unregister_netdevice_queue net/core/dev.c:12258 [inline] unregister_netdevice_queue+0x305/0x3c0 net/core/dev.c:12248 unregister_netdevice include/linux/netdevice.h:3405 [inline] unregister_netdev+0x1f/0x60 net/core/dev.c:12462 bnep_session+0x22db/0x2e10 net/bluetooth/bnep/core.c:525 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 ---------------- Code disassembly (best guess): 0: 5d pop %rbp 1: e9 0b e2 12 fd jmp 0xfd12e211 6: e8 06 e2 12 fd call 0xfd12e211 b: 48 8d 3d 7f 78 e5 0b lea 0xbe5787f(%rip),%rdi # 0xbe57891 12: 67 48 0f b9 3a ud1 (%edx),%rdi 17: 5b pop %rbx 18: 5d pop %rbp 19: e9 f3 e1 12 fd jmp 0xfd12e211 1e: e8 ee e1 12 fd call 0xfd12e211 23: 48 8d 3d 77 78 e5 0b lea 0xbe57877(%rip),%rdi # 0xbe578a1 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 5b pop %rbx 30: 5d pop %rbp 31: e9 db e1 12 fd jmp 0xfd12e211 36: e8 d6 e1 12 fd call 0xfd12e211 3b: 48 rex.W 3c: 8d .byte 0x8d 3d: 3d .byte 0x3d 3e: 6f outsl %ds:(%rsi),(%dx) 3f: 78 .byte 0x78