R13: 00007fff777a736f R14: 00007f214bad89c0 R15: 000000000118bf2c block nbd1: Receive control failed (result -32) block nbd1: shutting down sockets BUG: unable to handle kernel NULL pointer dereference at 0000000000000120 IP: set_bit arch/x86/include/asm/bitops.h:81 [inline] IP: cpumask_set_cpu include/linux/cpumask.h:283 [inline] IP: blk_mq_map_swqueue+0x253/0x990 block/blk-mq.c:2171 PGD 8fc20067 P4D 8fc20067 PUD a8f9b067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 28480 Comm: syz-executor.3 Not tainted 4.14.203-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888061a2e580 task.stack: ffff888062380000 RIP: 0010:set_bit arch/x86/include/asm/bitops.h:81 [inline] RIP: 0010:cpumask_set_cpu include/linux/cpumask.h:283 [inline] RIP: 0010:blk_mq_map_swqueue+0x253/0x990 block/blk-mq.c:2171 RSP: 0018:ffff888062387a80 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880ae98a580 RCX: ffffc90007cf2000 RDX: 0000000000040000 RSI: ffffffff83129683 RDI: ffffffff88cbdd68 RBP: 0000000000000001 R08: ffff8880aef33400 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: ffff88823855ed40 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f214bad8700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000120 CR3: 00000000a1fcb000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: blk_mq_queue_reinit block/blk-mq.c:2512 [inline] __blk_mq_update_nr_hw_queues block/blk-mq.c:2750 [inline] blk_mq_update_nr_hw_queues+0x246/0x3e0 block/blk-mq.c:2760 nbd_start_device+0x1d7/0xc90 drivers/block/nbd.c:1192 nbd_start_device_ioctl drivers/block/nbd.c:1243 [inline] __nbd_ioctl drivers/block/nbd.c:1325 [inline] nbd_ioctl+0x3a8/0xa80 drivers/block/nbd.c:1365 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x540/0x1830 block/ioctl.c:594 block_ioctl+0xd9/0x120 fs/block_dev.c:1893 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45deb9 RSP: 002b:00007f214bad7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000012f00 RCX: 000000000045deb9 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000008 RBP: 00007f214bad7ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 R13: 00007fff777a736f R14: 00007f214bad89c0 R15: 000000000118bf2c Code: 4d 8d 34 c8 4c 89 f1 48 c1 e9 03 42 80 3c 39 00 0f 85 37 05 00 00 83 fd 07 4d 8b 36 0f 87 42 04 00 00 48 89 04 24 e8 2d a8 44 fe 4d 0f ab a6 20 01 00 00 49 8d be 78 01 00 00 48 8b 04 24 48 RIP: set_bit arch/x86/include/asm/bitops.h:81 [inline] RSP: ffff888062387a80 RIP: cpumask_set_cpu include/linux/cpumask.h:283 [inline] RSP: ffff888062387a80 RIP: blk_mq_map_swqueue+0x253/0x990 block/blk-mq.c:2171 RSP: ffff888062387a80 CR2: 0000000000000120 ---[ end trace 883d28319f0d2631 ]---