bisecting fixing commit since 01fd1694b93c92ad54fa684dac9c8068ecda8288 building syzkaller on 526709ff0442e985edd498e14c736de8302dc867 testing commit 01fd1694b93c92ad54fa684dac9c8068ecda8288 with gcc (GCC) 8.1.0 kernel signature: e5303cc0d1528a079363faa213ee486ea03c314d0919667b6236ff35f5968af0 all runs: crashed: general protection fault in loop_validate_file testing current HEAD c6db52a88798e5a0dfef80041ad4d33cc8cf04eb testing commit c6db52a88798e5a0dfef80041ad4d33cc8cf04eb with gcc (GCC) 8.1.0 kernel signature: 3e8b647e413496b92dc3a860ee2db4f35fedcce6953d5718a8d9607d376bbd53 all runs: crashed: general protection fault in loop_validate_file revisions tested: 2, total time: 25m17.479285542s (build: 15m43.565315758s, test: 8m42.080395385s) the crash still happens on HEAD commit msg: Linux 4.14.183 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: 25875 Comm: syz-executor.2 Not tainted 4.14.183-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888096366300 task.stack: ffff88808dce0000 RIP: 0010:loop_validate_file+0x1da/0x430 drivers/block/loop.c:643 RSP: 0018:ffff88808dce7b68 EFLAGS: 00010202 RAX: 0000000000000037 RBX: dffffc0000000000 RCX: 1ffff11012c6cd6f RDX: 1ffff110432aee71 RSI: ffff8880a77e7700 RDI: 00000000000001b8 RBP: ffff88808dce7b80 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000028 R11: ffff888096366300 R12: 0000000000000000 R13: 00000000fffffff0 R14: ffff88809f4dd840 R15: ffff8880a77e77e0 FS: 00007fd7a83b6700(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000960004 CR3: 0000000092f99000 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+0x46/0xbb RIP: 0033:0x459879 RSP: 002b:00007fd7a83b5c78 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: 00007fd7a83b66d4 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: ffff88808dce7b68 ---[ end trace b58543b0604ecca0 ]---