gfs2: fsid=syz:syz.0: fatal: filesystem consistency error inode = 12 2341 function = gfs2_dirent_scan, file = fs/gfs2/dir.c, line = 602 gfs2: fsid=syz:syz.0: G: s:SH n:2/925 f:qob t:SH d:EX/0 a:0 v:0 r:3 m:20 p:1 gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:14474 [syz-executor.1] iterate_dir+0x56e/0x6f0 fs/readdir.c:65 gfs2: fsid=syz:syz.0: H: s:SH f:AH e:0 p:14499 [syz-executor.1] do_inode_permission fs/namei.c:458 [inline] gfs2: fsid=syz:syz.0: H: s:SH f:AH e:0 p:14499 [syz-executor.1] inode_permission.part.0+0x3d6/0x670 fs/namei.c:525 general protection fault, probably for non-canonical address 0xdffffc005bd1f2c4: 0000 [#1] PREEMPT SMP KASAN KASAN: probably user-memory-access in range [0x00000002de8f9620-0x00000002de8f9627] CPU: 1 PID: 14474 Comm: syz-executor.1 Not tainted 6.1.0-syzkaller-14594-g72a85e2b0a1e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1437 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2262 [inline] RIP: 0010:gfs2_dump_glock+0xcf6/0x1bd0 fs/gfs2/glock.c:2376 Code: e8 bf 36 dd fd 31 ff 89 c3 89 c6 e8 04 75 f3 fd 84 db 58 0f 84 a4 08 00 00 e8 86 78 f3 fd 4d 8d 74 24 20 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 38 84 c0 74 08 3c 01 0f 8e c2 0a 00 00 41 0f b7 6c 24 RSP: 0018:ffffc90014bff830 EFLAGS: 00010212 RAX: 000000005bd1f2c4 RBX: 0000000000000001 RCX: ffffc9000be81000 RDX: 0000000000040000 RSI: ffffffff838dd9ba RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff18f37b9 R12: 00000002de8f9600 R13: ffffffff8a97b7c0 R14: 00000002de8f9620 R15: dffffc0000000000 FS: 00007f7ee7f76700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005587eddb0000 CR3: 00000000294dd000 CR4: 0000000000350ee0 Call Trace: gfs2_consist_inode_i+0x104/0x150 fs/gfs2/util.c:465 gfs2_dirent_scan+0x2f7/0x3a0 fs/gfs2/dir.c:602 gfs2_dir_read+0x348/0x1390 fs/gfs2/dir.c:1599 gfs2_readdir+0x12c/0x1c0 fs/gfs2/file.c:115 iterate_dir+0x56e/0x6f0 fs/readdir.c:65 __do_sys_getdents fs/readdir.c:286 [inline] __se_sys_getdents fs/readdir.c:271 [inline] __x64_sys_getdents+0x13e/0x2c0 fs/readdir.c:271 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7ee728c0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007f7ee7f76168 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 00007f7ee73abf80 RCX: 00007f7ee728c0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f7ee72e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcec38bd4f R14: 00007f7ee7f76300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1437 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2262 [inline] RIP: 0010:gfs2_dump_glock+0xcf6/0x1bd0 fs/gfs2/glock.c:2376 Code: e8 bf 36 dd fd 31 ff 89 c3 89 c6 e8 04 75 f3 fd 84 db 58 0f 84 a4 08 00 00 e8 86 78 f3 fd 4d 8d 74 24 20 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 38 84 c0 74 08 3c 01 0f 8e c2 0a 00 00 41 0f b7 6c 24 RSP: 0018:ffffc90014bff830 EFLAGS: 00010212 RAX: 000000005bd1f2c4 RBX: 0000000000000001 RCX: ffffc9000be81000 RDX: 0000000000040000 RSI: ffffffff838dd9ba RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff18f37b9 R12: 00000002de8f9600 R13: ffffffff8a97b7c0 R14: 00000002de8f9620 R15: dffffc0000000000 FS: 00007f7ee7f76700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32f28000 CR3: 00000000294dd000 CR4: 0000000000350ee0 ---------------- Code disassembly (best guess): 0: e8 bf 36 dd fd callq 0xfddd36c4 5: 31 ff xor %edi,%edi 7: 89 c3 mov %eax,%ebx 9: 89 c6 mov %eax,%esi b: e8 04 75 f3 fd callq 0xfdf37514 10: 84 db test %bl,%bl 12: 58 pop %rax 13: 0f 84 a4 08 00 00 je 0x8bd 19: e8 86 78 f3 fd callq 0xfdf378a4 1e: 4d 8d 74 24 20 lea 0x20(%r12),%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 74 08 je 0x3b 33: 3c 01 cmp $0x1,%al 35: 0f 8e c2 0a 00 00 jle 0xafd 3b: 41 rex.B 3c: 0f .byte 0xf 3d: b7 6c mov $0x6c,%bh 3f: 24 .byte 0x24