------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xc9/0x120 lib/refcount.c:28, CPU#0: kbnepd bnep0/14253 Modules linked in: CPU: 0 UID: 0 PID: 14253 Comm: kbnepd bnep0 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 9b 1f 12 fd e8 96 1f 12 fd 48 8d 3d 1f 65 e5 0b 67 48 0f b9 3a 5b 5d e9 83 1f 12 fd e8 7e 1f 12 fd 48 8d 3d 17 65 e5 0b <67> 48 0f b9 3a 5b 5d e9 6b 1f 12 fd e8 66 1f 12 fd 48 8d 3d 0f 65 RSP: 0018:ffffc90007007918 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffffffff84acc6ac RDX: ffff888055e58000 RSI: ffffffff84acc712 RDI: ffffffff90922c30 RBP: ffff888039fc4c78 R08: 0000000000000005 R09: 0000000000000004 R10: 0000000000000003 R11: ffff888055e58b30 R12: ffff88802e151000 R13: ffff888039fc4c78 R14: ffffffff85e686e0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880d68f5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2dd517 CR3: 0000000024d4b000 CR4: 0000000000352ef0 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 9b 1f 12 fd jmp 0xfd121fa1 6: e8 96 1f 12 fd call 0xfd121fa1 b: 48 8d 3d 1f 65 e5 0b lea 0xbe5651f(%rip),%rdi # 0xbe56531 12: 67 48 0f b9 3a ud1 (%edx),%rdi 17: 5b pop %rbx 18: 5d pop %rbp 19: e9 83 1f 12 fd jmp 0xfd121fa1 1e: e8 7e 1f 12 fd call 0xfd121fa1 23: 48 8d 3d 17 65 e5 0b lea 0xbe56517(%rip),%rdi # 0xbe56541 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 5b pop %rbx 30: 5d pop %rbp 31: e9 6b 1f 12 fd jmp 0xfd121fa1 36: e8 66 1f 12 fd call 0xfd121fa1 3b: 48 rex.W 3c: 8d .byte 0x8d 3d: 3d .byte 0x3d 3e: 0f .byte 0xf 3f: 65 gs