refcount_t: underflow; use-after-free. ------------[ cut here ]------------ WARNING: CPU: 1 PID: 8125 at lib/refcount.c:281 refcount_dec_not_one.cold+0x18/0x25 lib/refcount.c:281 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 8125 Comm: syz-executor361 Not tainted 4.14.294-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 panic+0x1f9/0x42d kernel/panic.c:183 __warn.cold+0x20/0x44 kernel/panic.c:547 report_bug+0x208/0x250 lib/bug.c:183 fixup_bug arch/x86/kernel/traps.c:177 [inline] fixup_bug arch/x86/kernel/traps.c:172 [inline] do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964 RIP: 0010:refcount_dec_not_one.cold+0x18/0x25 lib/refcount.c:281 RSP: 0018:ffff88809515f5e8 EFLAGS: 00010282 RAX: 0000000000000026 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff878bc9e0 RDI: ffffed1012a2beb3 RBP: ffff8880b3f67198 R08: 0000000000000026 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 00000000ffffffff R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880b3f671a8 refcount_dec_and_mutex_lock+0x1a/0x60 lib/refcount.c:309 nbd_put drivers/block/nbd.c:228 [inline] nbd_config_put+0x442/0x6c0 drivers/block/nbd.c:1172 nbd_genl_connect+0xcb9/0x13e0 drivers/block/nbd.c:1901 genl_family_rcv_msg+0x572/0xb20 net/netlink/genetlink.c:600 genl_rcv_msg+0xaf/0x140 net/netlink/genetlink.c:625 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2454 genl_rcv+0x24/0x40 net/netlink/genetlink.c:636 netlink_unicast_kernel net/netlink/af_netlink.c:1296 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1322 netlink_sendmsg+0x648/0xbc0 net/netlink/af_netlink.c:1893 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f11de28ba99 RSP: 002b:00007ffc507ff5e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007f11de28ba99 RDX: 0000000000004080 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000703f R13: 00007ffc507ff5fc R14: 00007ffc507ff610 R15: 00007ffc507ff600 Kernel Offset: disabled Rebooting in 86400 seconds..