RBP: 00007f0b184201d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffebe7d0edf R14: 00007f0b18420300 R15: 0000000000022000 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 17987 at block/genhd.c:540 device_add_disk+0x611/0xfa0 block/genhd.c:540 Modules linked in: CPU: 0 PID: 17987 Comm: syz-executor.2 Not tainted 5.15.0-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:device_add_disk+0x611/0xfa0 block/genhd.c:540 Code: 8e c9 07 00 00 8b 5d 00 bf 03 01 00 00 89 de e8 95 19 af fd 81 fb 03 01 00 00 0f 85 69 fd ff ff e9 22 fd ff ff e8 cf 10 af fd <0f> 0b 41 bc 01 00 00 00 e9 6a fd ff ff e8 bd 10 af fd 0f 0b 41 bc RSP: 0018:ffffc90002e07458 EFLAGS: 00010212 RAX: 0000000000033163 RBX: 000000000000002b RCX: ffffc9002245d000 RDX: 0000000000040000 RSI: ffffffff83c78c11 RDI: 0000000000000003 RBP: ffff8880244b7000 R08: 0000000000000103 R09: ffff888025146143 R10: ffffffff83c78922 R11: 0000000000000000 R12: 00000000fffffff4 R13: ffff8880244b7080 R14: ffff8880244b7008 R15: ffff888025146108 FS: 00007f0b18420700(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31c23000 CR3: 000000004f6a3000 CR4: 0000000000150ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: add_disk include/linux/genhd.h:212 [inline] nbd_dev_add+0x837/0xbb0 drivers/block/nbd.c:1819 nbd_genl_connect+0x11f3/0x1930 drivers/block/nbd.c:1947 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:731 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:792 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2510 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1935 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f0b1aeaaae9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0b18420188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f0b1afbdf60 RCX: 00007f0b1aeaaae9 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000005 RBP: 00007f0b184201d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffebe7d0edf R14: 00007f0b18420300 R15: 0000000000022000