gfs2: fsid=syz:syz.0: H: s:SH f: e:0 p:20188 [syz-executor.1] iterate_dir+0x224/0x560 gfs2: fsid=syz:syz.0: H: s:?? f:tTeApnaEcHWDs e:0 p:0 [(none)] __init_rwsem.__key+0x0/0x10 general protection fault, probably for non-canonical address 0xdffffc0000000024: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000120-0x0000000000000127] CPU: 0 PID: 20203 Comm: syz-executor.1 Not tainted 6.1.27-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1466 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2335 [inline] RIP: 0010:gfs2_dump_glock+0xdf3/0x1b70 fs/gfs2/glock.c:2449 Code: c6 05 70 3a 8d 0a 01 48 c7 c7 40 0f 30 8b be ed 02 00 00 48 c7 c2 80 0f 30 8b e8 58 85 b8 fd 4d 8d 65 20 4d 89 e6 49 c1 ee 03 <41> 0f b6 04 1e 84 c0 0f 85 50 07 00 00 41 0f b7 1c 24 89 de 81 e6 RSP: 0018:ffffc9000b7f7120 EFLAGS: 00010206 RAX: ffffffff83b1a3d8 RBX: dffffc0000000000 RCX: 0000000000040000 RDX: ffffc90017603000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc9000b7f7410 R08: ffffffff83b1a3c6 R09: fffffbfff2050445 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000120 R13: 0000000000000100 R14: 0000000000000024 R15: dffffc0000000000 FS: 00007fb274f15700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2da23000 CR3: 000000002e078000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_consist_inode_i+0xf1/0x110 fs/gfs2/util.c:465 gfs2_dirent_scan+0x512/0x640 fs/gfs2/dir.c:602 gfs2_dirent_search+0x30a/0x8c0 fs/gfs2/dir.c:850 gfs2_dir_search+0xae/0x2f0 fs/gfs2/dir.c:1650 gfs2_lookupi+0x45f/0x5e0 fs/gfs2/inode.c:323 __gfs2_lookup+0xa0/0x270 fs/gfs2/inode.c:870 gfs2_atomic_open+0x9a/0x220 fs/gfs2/inode.c:1274 atomic_open fs/namei.c:3276 [inline] lookup_open fs/namei.c:3384 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0xf4e/0x2e60 fs/namei.c:3711 do_filp_open+0x230/0x480 fs/namei.c:3741 do_sys_openat2+0x13b/0x500 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb27428c169 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:00007fb274f15168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fb2743ac050 RCX: 00007fb27428c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200025c0 RBP: 00007fb2742e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe5ca430df R14: 00007fb274f15300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1466 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2335 [inline] RIP: 0010:gfs2_dump_glock+0xdf3/0x1b70 fs/gfs2/glock.c:2449 Code: c6 05 70 3a 8d 0a 01 48 c7 c7 40 0f 30 8b be ed 02 00 00 48 c7 c2 80 0f 30 8b e8 58 85 b8 fd 4d 8d 65 20 4d 89 e6 49 c1 ee 03 <41> 0f b6 04 1e 84 c0 0f 85 50 07 00 00 41 0f b7 1c 24 89 de 81 e6 RSP: 0018:ffffc9000b7f7120 EFLAGS: 00010206 RAX: ffffffff83b1a3d8 RBX: dffffc0000000000 RCX: 0000000000040000 RDX: ffffc90017603000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc9000b7f7410 R08: ffffffff83b1a3c6 R09: fffffbfff2050445 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000120 R13: 0000000000000100 R14: 0000000000000024 R15: dffffc0000000000 FS: 00007fb274f15700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2da23000 CR3: 000000002e078000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c6 05 70 3a 8d 0a 01 movb $0x1,0xa8d3a70(%rip) # 0xa8d3a77 7: 48 c7 c7 40 0f 30 8b mov $0xffffffff8b300f40,%rdi e: be ed 02 00 00 mov $0x2ed,%esi 13: 48 c7 c2 80 0f 30 8b mov $0xffffffff8b300f80,%rdx 1a: e8 58 85 b8 fd callq 0xfdb88577 1f: 4d 8d 65 20 lea 0x20(%r13),%r12 23: 4d 89 e6 mov %r12,%r14 26: 49 c1 ee 03 shr $0x3,%r14 * 2a: 41 0f b6 04 1e movzbl (%r14,%rbx,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 50 07 00 00 jne 0x787 37: 41 0f b7 1c 24 movzwl (%r12),%ebx 3c: 89 de mov %ebx,%esi 3e: 81 .byte 0x81 3f: e6 .byte 0xe6