kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN NOPTI Modules linked in: CPU: 1 PID: 17771 Comm: syz-executor5 Not tainted 4.14.87+ #19 task: ffff8881a0985e00 task.stack: ffff8881c47f0000 RIP: 0010:is_loop_device drivers/block/loop.c:622 [inline] RIP: 0010:loop_validate_file+0x1f5/0x3e0 drivers/block/loop.c:633 RSP: 0018:ffff8881c47f7b08 EFLAGS: 00010202 RAX: 0000000000000037 RBX: dffffc0000000000 RCX: 00000000000000ac RDX: ffffffff81deb0d8 RSI: ffffc90000569000 RDI: 00000000000001b8 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: ffff8881a0986658 R11: 0000000000000001 R12: ffff8881d53e8b80 R13: ffff8881c9205b80 R14: ffff8881d53e8c60 R15: ffff8881d93fe9d0 FS: 00007f2335c10700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020293000 CR3: 00000001c9f48005 CR4: 00000000001606a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: loop_set_fd drivers/block/loop.c:897 [inline] lo_ioctl+0x89c/0x17d0 drivers/block/loop.c:1376 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x57d/0x18c0 block/ioctl.c:594 block_ioctl+0xd9/0x120 fs/block_dev.c:1873 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x1a0/0x1030 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7e/0xb0 fs/ioctl.c:692 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x457659 RSP: 002b:00007f2335c0fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457659 RDX: 0000000000000004 RSI: 0000000000004c00 RDI: 0000000000000003 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2335c106d4 R13: 00000000004c0937 R14: 00000000004d1a78 R15: 00000000ffffffff Code: bd f0 00 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 e9 01 00 00 48 8b ad f0 00 00 00 48 8d bd b8 01 00 00 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 c0 01 00 00 48 8b ad b8 01 00 00 48 89 e8 48 RIP: is_loop_device drivers/block/loop.c:622 [inline] RSP: ffff8881c47f7b08 RIP: loop_validate_file+0x1f5/0x3e0 drivers/block/loop.c:633 RSP: ffff8881c47f7b08 ---[ end trace 04f358ddd03b62e7 ]---