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 Modules linked in: CPU: 0 PID: 19181 Comm: syz-executor2 Not tainted 4.9.135+ #117 task: ffff8801d8c5df00 task.stack: ffff8801a1848000 RIP: 0010:[] [] is_loop_device drivers/block/loop.c:645 [inline] RIP: 0010:[] [] loop_validate_file+0x208/0x400 drivers/block/loop.c:656 RSP: 0018:ffff8801a184fae0 EFLAGS: 00010206 RAX: 0000000000000036 RBX: dffffc0000000000 RCX: ffffc90000098000 RDX: 0000000000000090 RSI: ffffffff81de0858 RDI: 00000000000001b0 RBP: ffff8801a184faf8 R08: ffff8801d8c5e7b0 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff8801d3f38b80 R14: ffff8801d3f38b80 R15: ffff8801d7029c58 FS: 00007f180be07700(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efebfaa1518 CR3: 00000001aeeac000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8801d7029b00 ffff880144b3ac00 00000000fffffff0 ffff8801a184fb80 ffffffff81de79b5 000000000072b000 ffff8801a7834780 0000000000000f0c ffff8801a184fb80 ffff8801a184fde0 ffff8801d7029c50 1ffff10034309f6c Call Trace: [] loop_set_fd drivers/block/loop.c:909 [inline] [] lo_ioctl+0x865/0x1910 drivers/block/loop.c:1375 [] __blkdev_driver_ioctl block/ioctl.c:294 [inline] [] blkdev_ioctl+0x7a4/0x1a50 block/ioctl.c:590 [] block_ioctl+0xde/0x120 fs/block_dev.c:1688 [] vfs_ioctl fs/ioctl.c:43 [inline] [] file_ioctl fs/ioctl.c:493 [inline] [] do_vfs_ioctl+0x1ac/0x11a0 fs/ioctl.c:677 [] SYSC_ioctl fs/ioctl.c:694 [inline] [] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:685 [] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Code: 00 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 f7 01 00 00 4d 8b a4 24 f0 00 00 00 49 8d bc 24 b0 01 00 00 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 cc 01 00 00 4d 8b a4 24 b0 01 00 00 4c 89 e0 RIP [] is_loop_device drivers/block/loop.c:645 [inline] RIP [] loop_validate_file+0x208/0x400 drivers/block/loop.c:656 RSP ---[ end trace 7e01f2802ffe79f2 ]---