erofs: mounted on /dev/loop0 with opts: . attempt to access beyond end of device loop0: rw=4096, want=104, limit=8 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 CPU: 0 PID: 14500 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:vle_compressed_index_clusterofs drivers/staging/erofs/unzip_vle.c:1470 [inline] RIP: 0010:z_erofs_map_blocks_iter+0x632/0x1aa0 drivers/staging/erofs/unzip_vle.c:1624 Code: 0f b6 8c 24 9c 00 00 00 48 ba 00 00 00 00 00 fc ff df 48 d3 e3 44 01 f3 81 e3 ff 0f 00 00 48 03 5c 24 30 48 89 d8 48 c1 e8 03 <0f> b6 0c 10 48 8d 43 01 48 89 c6 48 c1 ee 03 0f b6 14 16 48 89 de RSP: 0018:ffff888045ad7360 EFLAGS: 00010202 RAX: 0000a10fffffff40 RBX: 0005087ffffffa00 RCX: 0000000000000005 RDX: dffffc0000000000 RSI: 0000000000000010 RDI: ffff8880b264831c RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b2648280 R13: 0000000000000000 R14: 000000000000c580 R15: ffff888044244500 FS: 00007f67bd98d700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6c594acac5 CR3: 00000000983ab000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: erofs_map_blocks_iter+0x6d/0x3b0 drivers/staging/erofs/data.c:168 z_erofs_do_read_page+0x670/0x2820 drivers/staging/erofs/unzip_vle.c:644 z_erofs_vle_normalaccess_readpage+0x136/0x460 drivers/staging/erofs/unzip_vle.c:1353 do_read_cache_page+0x533/0x1170 mm/filemap.c:2828 read_mapping_page include/linux/pagemap.h:402 [inline] find_target_block_classic drivers/staging/erofs/namei.c:112 [inline] erofs_namei+0x1ab/0x1740 drivers/staging/erofs/namei.c:189 erofs_lookup+0x143/0x500 drivers/staging/erofs/namei.c:232 lookup_open+0x698/0x1a20 fs/namei.c:3214 do_last fs/namei.c:3327 [inline] path_openat+0x1804/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f67bf41a639 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f67bd98d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f67bf53af80 RCX: 00007f67bf41a639 RDX: 0000000000000000 RSI: 00000000200004c0 RDI: ffffffffffffff9c RBP: 00007f67bf4757e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc32b7409f R14: 00007f67bd98d300 R15: 0000000000022000 Modules linked in: ---[ end trace a63477bca4e3ca7d ]--- RIP: 0010:vle_compressed_index_clusterofs drivers/staging/erofs/unzip_vle.c:1470 [inline] RIP: 0010:z_erofs_map_blocks_iter+0x632/0x1aa0 drivers/staging/erofs/unzip_vle.c:1624 Code: 0f b6 8c 24 9c 00 00 00 48 ba 00 00 00 00 00 fc ff df 48 d3 e3 44 01 f3 81 e3 ff 0f 00 00 48 03 5c 24 30 48 89 d8 48 c1 e8 03 <0f> b6 0c 10 48 8d 43 01 48 89 c6 48 c1 ee 03 0f b6 14 16 48 89 de RSP: 0018:ffff888045ad7360 EFLAGS: 00010202 RAX: 0000a10fffffff40 RBX: 0005087ffffffa00 RCX: 0000000000000005 RDX: dffffc0000000000 RSI: 0000000000000010 RDI: ffff8880b264831c RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b2648280 R13: 0000000000000000 R14: 000000000000c580 R15: ffff888044244500 FS: 00007f67bd98d700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6c594acac5 CR3: 00000000983ab000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 0f b6 8c 24 9c 00 00 movzbl 0x9c(%rsp),%ecx 7: 00 8: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx f: fc ff df 12: 48 d3 e3 shl %cl,%rbx 15: 44 01 f3 add %r14d,%ebx 18: 81 e3 ff 0f 00 00 and $0xfff,%ebx 1e: 48 03 5c 24 30 add 0x30(%rsp),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 0f b6 0c 10 movzbl (%rax,%rdx,1),%ecx <-- trapping instruction 2e: 48 8d 43 01 lea 0x1(%rbx),%rax 32: 48 89 c6 mov %rax,%rsi 35: 48 c1 ee 03 shr $0x3,%rsi 39: 0f b6 14 16 movzbl (%rsi,%rdx,1),%edx 3d: 48 89 de mov %rbx,%rsi