erofs: mounted on /dev/loop1 with opts: . attempt to access beyond end of device loop1: 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: 1 PID: 26913 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/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:ffff8880492ff850 EFLAGS: 00010202 RAX: 0000a10fffffff3e RBX: 0005087ffffff9f0 RCX: 0000000000000005 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff8880a5395b1c RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880a5395a80 R13: 0000000000000000 R14: 000000000000c570 R15: ffff88802d60b4c0 FS: 00007fcf43cea700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcf454b01b0 CR3: 00000000aafa8000 CR4: 00000000003406e0 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] erofs_readdir+0x1af/0xa50 drivers/staging/erofs/dir.c:102 iterate_dir+0x1fe/0x5c0 fs/readdir.c:53 ksys_getdents64+0x175/0x2b0 fs/readdir.c:357 __do_sys_getdents64 fs/readdir.c:376 [inline] __se_sys_getdents64 fs/readdir.c:373 [inline] __x64_sys_getdents64+0x6f/0xb0 fs/readdir.c:373 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fcf453985a9 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:00007fcf43cea168 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007fcf454b9050 RCX: 00007fcf453985a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007fcf453f3580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe78f2793f R14: 00007fcf43cea300 R15: 0000000000022000 Modules linked in: ---[ end trace ca60b787c7c583bc ]--- 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:ffff8880492ff850 EFLAGS: 00010202 RAX: 0000a10fffffff3e RBX: 0005087ffffff9f0 RCX: 0000000000000005 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff8880a5395b1c RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880a5395a80 R13: 0000000000000000 R14: 000000000000c570 R15: ffff88802d60b4c0 FS: 00007fcf43cea700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcf454b01b0 CR3: 00000000aafa8000 CR4: 00000000003406e0 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