------------[ 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: kbnepd Ú/11352 Modules linked in: CPU: 3 UID: 0 PID: 11352 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 04/01/2014 RIP: 0010:refcount_warn_saturate+0xf4/0x130 lib/refcount.c:28 Code: cc e8 50 2d eb fc 48 8d 3d b9 e1 2d 0c 67 48 0f b9 3a e8 3f 2d eb fc 5b 5d e9 48 d2 a3 06 e8 33 2d eb fc 48 8d 3d ac e1 2d 0c <67> 48 0f b9 3a e8 22 2d eb fc 5b 5d c3 cc cc cc cc e8 16 2d eb fc RSP: 0018:ffffc900052df958 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88803abe3878 RCX: 0000000000000001 RDX: ffff888034a60000 RSI: ffffffff851fa15d RDI: ffffffff914d8310 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000004 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88803e7dcc00 R13: ffff88803abe3878 R14: ffffffff865d3c80 R15: ffff88802adee000 FS: 0000000000000000(0000) GS:ffff8880d5ec6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055556d96d4a0 CR3: 000000004b344000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000009eba 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 device_del+0x1b8/0x9b0 drivers/base/core.c:3942 unregister_netdevice_many_notify+0x1503/0x2150 net/core/dev.c:12485 unregister_netdevice_many net/core/dev.c:12513 [inline] unregister_netdevice_queue net/core/dev.c:12324 [inline] unregister_netdevice_queue+0x30b/0x3c0 net/core/dev.c:12314 unregister_netdevice include/linux/netdevice.h:3474 [inline] unregister_netdev+0x1f/0x60 net/core/dev.c:12531 bnep_session+0x22e6/0x2f40 net/bluetooth/bnep/core.c:544 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess): 0: cc int3 1: e8 50 2d eb fc call 0xfceb2d56 6: 48 8d 3d b9 e1 2d 0c lea 0xc2de1b9(%rip),%rdi # 0xc2de1c6 d: 67 48 0f b9 3a ud1 (%edx),%rdi 12: e8 3f 2d eb fc call 0xfceb2d56 17: 5b pop %rbx 18: 5d pop %rbp 19: e9 48 d2 a3 06 jmp 0x6a3d266 1e: e8 33 2d eb fc call 0xfceb2d56 23: 48 8d 3d ac e1 2d 0c lea 0xc2de1ac(%rip),%rdi # 0xc2de1d6 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e8 22 2d eb fc call 0xfceb2d56 34: 5b pop %rbx 35: 5d pop %rbp 36: c3 ret 37: cc int3 38: cc int3 39: cc int3 3a: cc int3 3b: e8 16 2d eb fc call 0xfceb2d56