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: 16252 Comm: syz-executor.3 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 task: ffff8880965a8140 task.stack: ffff8880a43f8000 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:ffff8880a43ffbf0 EFLAGS: 00010202 RAX: 0000000000000037 RBX: ffff8880b1adc918 RCX: ffffc9000940e000 RDX: 0000000000000056 RSI: ffffffff838d5391 RDI: 00000000000001b8 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: ffff8880965a8140 R12: ffff8880b1adc180 R13: dffffc0000000000 R14: 00000000fffffff0 R15: ffff8880b38e2000 FS: 00007fbb7e2cf700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6232c73988 CR3: 00000000b46ef000 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:0x7fbb7fd5d0f9 RSP: 002b:00007fbb7e2cf168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fbb7fe7cf80 RCX: 00007fbb7fd5d0f9 RDX: 0000000000000003 RSI: 0000000000004c00 RDI: 0000000000000004 RBP: 00007fbb7fdb8ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff48db24df R14: 00007fbb7e2cf300 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: ffff8880a43ffbf0 RIP: loop_validate_file+0x1ef/0x2c0 drivers/block/loop.c:643 RSP: ffff8880a43ffbf0 ---[ end trace ed4c68c831c7023f ]--- ---------------- 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