bisecting fixing commit since 01fd1694b93c92ad54fa684dac9c8068ecda8288 building syzkaller on 526709ff0442e985edd498e14c736de8302dc867 testing commit 01fd1694b93c92ad54fa684dac9c8068ecda8288 with gcc (GCC) 8.1.0 kernel signature: 5c4dfcae5a6ee6d407f5f630310d9f4a282ac821e3f5e26cf1003bc478d418ca all runs: crashed: general protection fault in loop_validate_file testing current HEAD 78d697fc93f98054e36a3ab76dca1a88802ba7be testing commit 78d697fc93f98054e36a3ab76dca1a88802ba7be with gcc (GCC) 8.1.0 kernel signature: e59c1408c5ffa036576f22e22e767258f946592d89e797c193383e6061c9de67 all runs: crashed: general protection fault in loop_validate_file revisions tested: 2, total time: 28m5.042345676s (build: 17m9.360399706s, test: 9m38.985586432s) the crash still happens on HEAD commit msg: Linux 4.14.172 crash: general protection fault in loop_validate_file 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: 1 PID: 30736 Comm: syz-executor.1 Not tainted 4.14.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888078696200 task.stack: ffff888076b48000 RIP: 0010:loop_validate_file+0x1da/0x430 drivers/block/loop.c:643 RSP: 0018:ffff888076b4fb68 EFLAGS: 00010202 RAX: 0000000000000037 RBX: dffffc0000000000 RCX: 1ffff1100f0d2d4e RDX: 1ffff11014961a69 RSI: ffff8880a44ae180 RDI: 00000000000001b8 RBP: ffff888076b4fb80 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000028 R11: ffff888078696200 R12: 0000000000000000 R13: 00000000fffffff0 R14: ffff88809a371300 R15: ffff8880a44ae260 FS: 00007f972023b700(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000ac6bf8 CR3: 00000000a8d27000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: loop_set_fd drivers/block/loop.c:907 [inline] lo_ioctl+0x95f/0x1c70 drivers/block/loop.c:1417 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x784/0x16b0 block/ioctl.c:594 block_ioctl+0xd7/0x130 fs/block_dev.c:1881 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x180/0xfb0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x74/0x80 fs/ioctl.c:692 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x459879 RSP: 002b:00007f972023ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459879 RDX: 0000000000000006 RSI: 0000000000004c00 RDI: 0000000000000004 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f972023b6d4 R13: 00000000004c2f80 R14: 00000000004d66b8 R15: 00000000ffffffff Code: 00 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 10 02 00 00 4d 8b a4 24 f0 00 00 00 49 8d bc 24 b8 01 00 00 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 dd 01 00 00 4d 8b a4 24 b8 01 00 00 4c 89 e0 RIP: loop_validate_file+0x1da/0x430 drivers/block/loop.c:643 RSP: ffff888076b4fb68 ---[ end trace 8f47ccdd3be48575 ]---