RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000003ec R14: 00000000004c63f0 R15: 0000000000000020 ================================================================== BUG: KASAN: null-ptr-deref in memset include/linux/string.h:411 [inline] BUG: KASAN: null-ptr-deref in bitmap_zero include/linux/bitmap.h:232 [inline] BUG: KASAN: null-ptr-deref in cpumask_clear include/linux/cpumask.h:406 [inline] BUG: KASAN: null-ptr-deref in blk_mq_map_swqueue+0x102/0xeb0 block/blk-mq.c:2498 Write of size 8 at addr 0000000000000118 by task syz-executor.1/8164 CPU: 1 PID: 8164 Comm: syz-executor.1 Not tainted 5.6.0-rc2-next-20200219-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 __kasan_report.cold+0x5/0x32 mm/kasan/report.c:510 kasan_report+0x12/0x20 mm/kasan/common.c:641 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x134/0x1a0 mm/kasan/generic.c:192 memset+0x24/0x40 mm/kasan/common.c:108 memset include/linux/string.h:411 [inline] bitmap_zero include/linux/bitmap.h:232 [inline] cpumask_clear include/linux/cpumask.h:406 [inline] blk_mq_map_swqueue+0x102/0xeb0 block/blk-mq.c:2498 blk_mq_init_allocated_queue+0xf64/0x1410 block/blk-mq.c:2939 blk_mq_init_queue+0x64/0xb0 block/blk-mq.c:2729 loop_add+0x2dd/0x8d0 drivers/block/loop.c:2022 loop_control_ioctl drivers/block/loop.c:2175 [inline] loop_control_ioctl+0x165/0x360 drivers/block/loop.c:2157 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x123/0x180 fs/ioctl.c:763 __do_sys_ioctl fs/ioctl.c:772 [inline] __se_sys_ioctl fs/ioctl.c:770 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:770 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c449 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f308afcbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f308afcc6d4 RCX: 000000000045c449 RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000003 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000000003ec R14: 00000000004c63f0 R15: 0000000000000020 ==================================================================