------------[ 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 рн╬/8935 Modules linked in: CPU: 0 UID: 0 PID: 8935 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 7b 0a 12 fd e8 76 0a 12 fd 48 8d 3d 0f 54 e5 0b 67 48 0f b9 3a 5b 5d e9 63 0a 12 fd e8 5e 0a 12 fd 48 8d 3d 07 54 e5 0b <67> 48 0f b9 3a 5b 5d e9 4b 0a 12 fd e8 46 0a 12 fd 48 8d 3d ff 53 RSP: 0018:ffffc9000f1af918 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffffffff84acde2c RDX: ffff88802ebac980 RSI: ffffffff84acde92 RDI: ffffffff909232a0 RBP: ffff888054d67878 R08: 0000000000000005 R09: 0000000000000004 R10: 0000000000000003 R11: ffff88802ebad4b0 R12: ffff88803d87b000 R13: ffff888054d67878 R14: ffffffff85e6ac60 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880d68f5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc0e46ec00 CR3: 000000000e184000 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:12418 unregister_netdevice_many net/core/dev.c:12446 [inline] unregister_netdevice_queue net/core/dev.c:12260 [inline] unregister_netdevice_queue+0x305/0x3c0 net/core/dev.c:12250 unregister_netdevice include/linux/netdevice.h:3405 [inline] unregister_netdev+0x1f/0x60 net/core/dev.c:12464 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 7b 0a 12 fd jmp 0xfd120a81 6: e8 76 0a 12 fd call 0xfd120a81 b: 48 8d 3d 0f 54 e5 0b lea 0xbe5540f(%rip),%rdi # 0xbe55421 12: 67 48 0f b9 3a ud1 (%edx),%rdi 17: 5b pop %rbx 18: 5d pop %rbp 19: e9 63 0a 12 fd jmp 0xfd120a81 1e: e8 5e 0a 12 fd call 0xfd120a81 23: 48 8d 3d 07 54 e5 0b lea 0xbe55407(%rip),%rdi # 0xbe55431 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 5b pop %rbx 30: 5d pop %rbp 31: e9 4b 0a 12 fd jmp 0xfd120a81 36: e8 46 0a 12 fd call 0xfd120a81 3b: 48 rex.W 3c: 8d .byte 0x8d 3d: 3d .byte 0x3d 3e: ff .byte 0xff 3f: 53 push %rbx