erofs: mounted on /dev/loop2 with opts: . attempt to access beyond end of device loop2: rw=4096, want=104, limit=47 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: 28853 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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:ffff88809a04f1e0 EFLAGS: 00010206 RAX: 0000a10fffffff3a RBX: 0005087ffffff9d0 RCX: 0000000000000005 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff8880a33075dc RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880a3307540 R13: 0000000000000000 R14: 000000000000c550 R15: ffff88809adc4500 FS: 00007f26adcab700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30022000 CR3: 00000000a995e000 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_slow+0x246/0x4a0 fs/namei.c:1672 lookup_slow fs/namei.c:1689 [inline] walk_component+0x7ac/0xda0 fs/namei.c:1811 link_path_walk.part.0+0x901/0x1230 fs/namei.c:2142 link_path_walk fs/namei.c:2073 [inline] path_parentat+0x51/0x140 fs/namei.c:2367 filename_parentat+0x198/0x590 fs/namei.c:2389 filename_create+0x9e/0x490 fs/namei.c:3621 user_path_create fs/namei.c:3696 [inline] do_mknodat.part.0+0xcd/0x480 fs/namei.c:3757 do_mknodat fs/namei.c:3789 [inline] __do_sys_mknodat fs/namei.c:3792 [inline] __se_sys_mknodat fs/namei.c:3789 [inline] __x64_sys_mknodat+0x116/0x160 fs/namei.c:3789 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f26af336059 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:00007f26adcab168 EFLAGS: 00000246 ORIG_RAX: 0000000000000103 RAX: ffffffffffffffda RBX: 00007f26af448f60 RCX: 00007f26af336059 RDX: 0000000000000000 RSI: 0000000020000540 RDI: 0000000000000006 RBP: 00007f26af39008d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000705 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe30b9f4af R14: 00007f26adcab300 R15: 0000000000022000 Modules linked in: ---[ end trace 78e6a75632762bf2 ]--- 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:ffff88809a04f1e0 EFLAGS: 00010206 RAX: 0000a10fffffff3a RBX: 0005087ffffff9d0 RCX: 0000000000000005 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff8880a33075dc RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880a3307540 R13: 0000000000000000 R14: 000000000000c550 R15: ffff88809adc4500 FS: 00007f26adcab700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30022000 CR3: 00000000a995e000 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