erofs: (device loop0): mounted with root inode @ nid 36. attempt to access beyond end of device loop0: rw=0, want=2201354232, limit=264192 BUG: unable to handle page fault for address: fffff521001a2ebd #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 23ffef067 P4D 23ffef067 PUD 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 422 Comm: syz-executor.0 Not tainted 5.10.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:z_erofs_decompress_pcluster fs/erofs/zdata.c:813 [inline] RIP: 0010:z_erofs_decompress_queue+0x70f/0x1ca0 fs/erofs/zdata.c:957 Code: 04 03 00 00 8b 03 c1 f8 02 4c 8b 74 24 08 89 c0 48 8b 4c 24 58 4c 8d 2c c1 4d 89 ec 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 04 00 74 08 4c 89 ef e8 d2 c8 8d ff 4d 8b 7d 00 4d 85 ff RSP: 0018:ffffc90000d174e0 EFLAGS: 00010a06 RAX: dffffc0000000000 RBX: ffffea000478fca8 RCX: ffffc90000d175f0 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea000478fca8 RBP: ffffc90000d17930 R08: dffffc0000000000 R09: fffff940008f1f96 R10: fffff940008f1f96 R11: 1ffffd40008f1f95 R12: 1ffff921001a2ebd R13: ffffc90800d175e8 R14: 1ffff110239446ed R15: dffffc0000000000 FS: 00007f16c4b97700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff521001a2ebd CR3: 000000011ac12000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: z_erofs_runqueue+0x14c8/0x1570 fs/erofs/zdata.c:1272 z_erofs_readpage+0x288/0x450 fs/erofs/zdata.c:1290 do_read_cache_page+0x65c/0xbe0 mm/filemap.c:3021 read_cache_page+0x4d/0x70 mm/filemap.c:3120 read_mapping_page include/linux/pagemap.h:500 [inline] find_target_block_classic fs/erofs/namei.c:105 [inline] erofs_namei+0x15e/0x11a0 fs/erofs/namei.c:185 erofs_lookup+0xdf/0x360 fs/erofs/namei.c:229 __lookup_hash+0x141/0x290 fs/namei.c:1447 filename_create+0x187/0x6d0 fs/namei.c:3463 user_path_create fs/namei.c:3520 [inline] do_mknodat+0x10d/0x3c0 fs/namei.c:3583 __do_sys_mknodat fs/namei.c:3618 [inline] __se_sys_mknodat fs/namei.c:3615 [inline] __x64_sys_mknodat+0x9b/0xb0 fs/namei.c:3615 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f16c50235a9 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:00007f16c4b97168 EFLAGS: 00000246 ORIG_RAX: 0000000000000103 RAX: ffffffffffffffda RBX: 00007f16c5143f80 RCX: 00007f16c50235a9 RDX: 0000000000000004 RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00007f16c507e7b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000700 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff7e49918f R14: 00007f16c4b97300 R15: 0000000000022000 Modules linked in: CR2: fffff521001a2ebd ---[ end trace 7257e228e043df77 ]--- RIP: 0010:z_erofs_decompress_pcluster fs/erofs/zdata.c:813 [inline] RIP: 0010:z_erofs_decompress_queue+0x70f/0x1ca0 fs/erofs/zdata.c:957 Code: 04 03 00 00 8b 03 c1 f8 02 4c 8b 74 24 08 89 c0 48 8b 4c 24 58 4c 8d 2c c1 4d 89 ec 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 04 00 74 08 4c 89 ef e8 d2 c8 8d ff 4d 8b 7d 00 4d 85 ff RSP: 0018:ffffc90000d174e0 EFLAGS: 00010a06 RAX: dffffc0000000000 RBX: ffffea000478fca8 RCX: ffffc90000d175f0 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea000478fca8 RBP: ffffc90000d17930 R08: dffffc0000000000 R09: fffff940008f1f96 R10: fffff940008f1f96 R11: 1ffffd40008f1f95 R12: 1ffff921001a2ebd R13: ffffc90800d175e8 R14: 1ffff110239446ed R15: dffffc0000000000 FS: 00007f16c4b97700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff521001a2ebd CR3: 000000011ac12000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 04 03 add $0x3,%al 2: 00 00 add %al,(%rax) 4: 8b 03 mov (%rbx),%eax 6: c1 f8 02 sar $0x2,%eax 9: 4c 8b 74 24 08 mov 0x8(%rsp),%r14 e: 89 c0 mov %eax,%eax 10: 48 8b 4c 24 58 mov 0x58(%rsp),%rcx 15: 4c 8d 2c c1 lea (%rcx,%rax,8),%r13 19: 4d 89 ec mov %r13,%r12 1c: 49 c1 ec 03 shr $0x3,%r12 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 41 80 3c 04 00 cmpb $0x0,(%r12,%rax,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ef mov %r13,%rdi 34: e8 d2 c8 8d ff callq 0xff8dc90b 39: 4d 8b 7d 00 mov 0x0(%r13),%r15 3d: 4d 85 ff test %r15,%r15