RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe49ad4faf R14: 00007f529b582300 R15: 0000000000022000 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4187 at block/genhd.c:532 device_add_disk+0x60b/0xfc0 block/genhd.c:532 Modules linked in: CPU: 1 PID: 4187 Comm: syz-executor.1 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:device_add_disk+0x60b/0xfc0 block/genhd.c:532 Code: 8e ec 07 00 00 8b 5d 00 bf 03 01 00 00 89 de e8 db 30 af fd 81 fb 03 01 00 00 0f 85 69 fd ff ff e9 22 fd ff ff e8 15 28 af fd <0f> 0b 41 bc 01 00 00 00 e9 6a fd ff ff e8 03 28 af fd 0f 0b 41 bc RSP: 0018:ffffc9000d9ef458 EFLAGS: 00010246 RAX: 0000000000040000 RBX: 000000000000002b RCX: ffffc9001e451000 RDX: 0000000000040000 RSI: ffffffff83c6266b RDI: 0000000000000003 RBP: ffff88805e82b800 R08: 0000000000000103 R09: ffff88815455537b R10: ffffffff83c6237c R11: 0000000000000000 R12: 00000000ffffffef R13: ffff88805e82b880 R14: ffff88805e82b808 R15: ffff888154555340 FS: 00007f529b582700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5223d1c718 CR3: 0000000149e58000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: add_disk include/linux/genhd.h:221 [inline] nbd_dev_add+0x83e/0xb90 drivers/block/nbd.c:1760 nbd_genl_connect+0x11f3/0x1930 drivers/block/nbd.c:1884 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:739 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline] genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:800 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504 genl_rcv+0x24/0x40 net/netlink/genetlink.c:811 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:703 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:723 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2395 ___sys_sendmsg+0xf3/0x170 net/socket.c:2449 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2478 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:0x4665f9 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:00007f529b582188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000000000000 RSI: 0000000020000940 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe49ad4faf R14: 00007f529b582300 R15: 0000000000022000