general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 16056 Comm: syz-executor.3 Not tainted 4.14.302-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 task: ffff88807c0c4540 task.stack: ffff8880991b8000 RIP: 0010:is_loop_device drivers/block/loop.c:632 [inline] RIP: 0010:loop_validate_file+0x1ef/0x2c0 drivers/block/loop.c:643 RSP: 0018:ffff8880991bfbf0 EFLAGS: 00010202 RAX: 0000000000000037 RBX: ffff8880a582b2d8 RCX: ffffc90007800000 RDX: 0000000000000056 RSI: ffffffff838d4431 RDI: 00000000000001b8 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: ffff88807c0c4540 R12: ffff8880906fe200 R13: dffffc0000000000 R14: 00000000fffffff0 R15: ffff8880aa4135c0 FS: 00007f707a138700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b534ebb817 CR3: 00000000a8e11000 CR4: 00000000003406e0 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+0xa7c/0x1cd0 drivers/block/loop.c:1422 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x540/0x1830 block/ioctl.c:594 block_ioctl+0xd9/0x120 fs/block_dev.c:1893 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f707bbc60a9 RSP: 002b:00007f707a138168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f707bce5f80 RCX: 00007f707bbc60a9 RDX: 0000000000000003 RSI: 0000000000004c00 RDI: 0000000000000004 RBP: 00007f707bc21ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffab349fdf R14: 00007f707a138300 R15: 0000000000022000 Code: f0 00 00 00 48 89 f8 48 c1 e8 03 42 80 3c 28 00 0f 85 d1 00 00 00 48 8b ad f0 00 00 00 48 8d bd b8 01 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 a7 00 00 00 48 8b ad b8 01 00 00 48 89 e8 RIP: is_loop_device drivers/block/loop.c:632 [inline] RSP: ffff8880991bfbf0 RIP: loop_validate_file+0x1ef/0x2c0 drivers/block/loop.c:643 RSP: ffff8880991bfbf0 ---[ end trace 794a34c7fefc3457 ]--- ---------------- Code disassembly (best guess): 0: f0 00 00 lock add %al,(%rax) 3: 00 48 89 add %cl,-0x77(%rax) 6: f8 clc 7: 48 c1 e8 03 shr $0x3,%rax b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 10: 0f 85 d1 00 00 00 jne 0xe7 16: 48 8b ad f0 00 00 00 mov 0xf0(%rbp),%rbp 1d: 48 8d bd b8 01 00 00 lea 0x1b8(%rbp),%rdi 24: 48 89 f8 mov %rdi,%rax 27: 48 c1 e8 03 shr $0x3,%rax * 2b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 30: 0f 85 a7 00 00 00 jne 0xdd 36: 48 8b ad b8 01 00 00 mov 0x1b8(%rbp),%rbp 3d: 48 89 e8 mov %rbp,%rax