erofs: (device loop0): mounted with root inode @ nid 36. erofs: (device loop0): z_erofs_pcluster_readmore: readmore error at page 3 @ nid 36 syz-executor.0: attempt to access beyond end of device loop0: rw=0, sector=2201354224, nr_sectors = 8 limit=264192 syz-executor.0: attempt to access beyond end of device loop0: rw=0, sector=20841953376, nr_sectors = 8 limit=264192 BUG: unable to handle page fault for address: fffff5210055de61 #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: 0 PID: 462 Comm: syz-executor.0 Not tainted 5.19.0-rc4-syzkaller-00019-g2bfab9c0edac #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:z_erofs_do_decompressed_bvec fs/erofs/zdata.c:856 [inline] RIP: 0010:z_erofs_parse_in_bvecs fs/erofs/zdata.c:927 [inline] RIP: 0010:z_erofs_decompress_pcluster fs/erofs/zdata.c:977 [inline] RIP: 0010:z_erofs_decompress_queue+0x132b/0x29e0 fs/erofs/zdata.c:1071 Code: 48 8b 7c 24 50 e8 85 84 7e ff 44 89 f3 48 c1 e3 03 48 03 9c 24 00 03 00 00 49 89 dc 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 04 00 74 08 48 89 df e8 56 84 7e ff 4c 8b 33 48 b8 00 00 RSP: 0018:ffffc90002aef120 EFLAGS: 00010a02 RAX: dffffc0000000000 RBX: ffffc90802aef308 RCX: dffffc0000000000 RDX: ffff88810e613240 RSI: 0000000000000001 RDI: fffffffffffffffc RBP: ffffc90002aef4d0 R08: ffffffff82375e25 R09: ffffc90002aef310 R10: fffff5200055de86 R11: 1ffff9200055de84 R12: 1ffff9210055de61 R13: ffff888123491910 R14: 00000000ffffffff R15: 0000000000000000 FS: 00007ff86a53a700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff5210055de61 CR3: 000000011c6e9000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: z_erofs_runqueue+0x13ce/0x14f0 fs/erofs/zdata.c:1447 z_erofs_read_folio+0x3cf/0x5f0 fs/erofs/zdata.c:1533 do_read_cache_folio+0x28a/0x480 mm/filemap.c:3524 read_cache_folio+0x4d/0x70 mm/filemap.c:3592 erofs_bread+0x13a/0x480 fs/erofs/data.c:46 find_target_block_classic fs/erofs/namei.c:108 [inline] erofs_namei+0x1bd/0xda0 fs/erofs/namei.c:184 erofs_lookup+0x141/0x3b0 fs/erofs/namei.c:221 __lookup_hash+0x141/0x290 fs/namei.c:1602 filename_create+0x276/0x4f0 fs/namei.c:3747 do_mknodat+0x16c/0x5b0 fs/namei.c:3890 __do_sys_mknodat fs/namei.c:3932 [inline] __se_sys_mknodat fs/namei.c:3929 [inline] __x64_sys_mknodat+0xa9/0xc0 fs/namei.c:3929 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2f/0x50 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7ff86988b5a9 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:00007ff86a53a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000103 RAX: ffffffffffffffda RBX: 00007ff8699abf80 RCX: 00007ff86988b5a9 RDX: 0000000000000004 RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00007ff8698e67b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000700 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff05db3c4f R14: 00007ff86a53a300 R15: 0000000000022000 Modules linked in: CR2: fffff5210055de61 ---[ end trace 0000000000000000 ]--- RIP: 0010:z_erofs_do_decompressed_bvec fs/erofs/zdata.c:856 [inline] RIP: 0010:z_erofs_parse_in_bvecs fs/erofs/zdata.c:927 [inline] RIP: 0010:z_erofs_decompress_pcluster fs/erofs/zdata.c:977 [inline] RIP: 0010:z_erofs_decompress_queue+0x132b/0x29e0 fs/erofs/zdata.c:1071 Code: 48 8b 7c 24 50 e8 85 84 7e ff 44 89 f3 48 c1 e3 03 48 03 9c 24 00 03 00 00 49 89 dc 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 04 00 74 08 48 89 df e8 56 84 7e ff 4c 8b 33 48 b8 00 00 RSP: 0018:ffffc90002aef120 EFLAGS: 00010a02 RAX: dffffc0000000000 RBX: ffffc90802aef308 RCX: dffffc0000000000 RDX: ffff88810e613240 RSI: 0000000000000001 RDI: fffffffffffffffc RBP: ffffc90002aef4d0 R08: ffffffff82375e25 R09: ffffc90002aef310 R10: fffff5200055de86 R11: 1ffff9200055de84 R12: 1ffff9210055de61 R13: ffff888123491910 R14: 00000000ffffffff R15: 0000000000000000 FS: 00007ff86a53a700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffff5210055de61 CR3: 000000011c6e9000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 8b 7c 24 50 mov 0x50(%rsp),%rdi 5: e8 85 84 7e ff callq 0xff7e848f a: 44 89 f3 mov %r14d,%ebx d: 48 c1 e3 03 shl $0x3,%rbx 11: 48 03 9c 24 00 03 00 add 0x300(%rsp),%rbx 18: 00 19: 49 89 dc mov %rbx,%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: 48 89 df mov %rbx,%rdi 34: e8 56 84 7e ff callq 0xff7e848f 39: 4c 8b 33 mov (%rbx),%r14 3c: 48 rex.W 3d: b8 .byte 0xb8