gfs2: fsid=syz:syz.0: H: s:SH f: e:0 p:5432 [syz.0.353] 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: 1 PID: 5458 Comm: syz.0.353 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1468 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2337 [inline] RIP: 0010:gfs2_dump_glock+0xe1b/0x1ba0 fs/gfs2/glock.c:2451 Code: c6 05 49 7f cf 0a 01 48 c7 c7 c0 a9 50 8b be 19 03 00 00 48 c7 c2 00 aa 50 8b e8 70 e7 b4 fd 4d 8d 65 20 4d 89 e6 49 c1 ee 03 <41> 0f b6 04 1e 84 c0 0f 85 64 07 00 00 41 0f b7 1c 24 89 de 81 e6 RSP: 0018:ffffc90004a8ef00 EFLAGS: 00010206 RAX: ffffffff83b5e7e0 RBX: dffffc0000000000 RCX: 0000000000040000 RDX: ffffc90004ec9000 RSI: 000000000003857c RDI: 000000000003857d RBP: ffffc90004a8f1f0 R08: ffffffff83b5e7c9 R09: fffffbfff20e7645 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000120 R13: 0000000000000100 R14: 0000000000000024 R15: dffffc0000000000 FS: 00007ff1ec7c86c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555571835c8 CR3: 0000000072557000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_consist_inode_i+0xf1/0x110 fs/gfs2/util.c:464 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 __lookup_slow+0x27e/0x3d0 fs/namei.c:1690 lookup_slow+0x53/0x70 fs/namei.c:1707 walk_component fs/namei.c:1998 [inline] link_path_walk+0x9d6/0xee0 fs/namei.c:2325 path_openat+0x23d/0x2e60 fs/namei.c:3781 do_filp_open+0x230/0x480 fs/namei.c:3812 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_creat fs/open.c:1410 [inline] __se_sys_creat fs/open.c:1404 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1404 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ff1eb979e79 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff1ec7c8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007ff1ebb16058 RCX: 00007ff1eb979e79 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000020000000 RBP: 00007ff1eb9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007ff1ebb16058 R15: 00007ffd68461458 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1468 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2337 [inline] RIP: 0010:gfs2_dump_glock+0xe1b/0x1ba0 fs/gfs2/glock.c:2451 Code: c6 05 49 7f cf 0a 01 48 c7 c7 c0 a9 50 8b be 19 03 00 00 48 c7 c2 00 aa 50 8b e8 70 e7 b4 fd 4d 8d 65 20 4d 89 e6 49 c1 ee 03 <41> 0f b6 04 1e 84 c0 0f 85 64 07 00 00 41 0f b7 1c 24 89 de 81 e6 RSP: 0018:ffffc90004a8ef00 EFLAGS: 00010206 RAX: ffffffff83b5e7e0 RBX: dffffc0000000000 RCX: 0000000000040000 RDX: ffffc90004ec9000 RSI: 000000000003857c RDI: 000000000003857d RBP: ffffc90004a8f1f0 R08: ffffffff83b5e7c9 R09: fffffbfff20e7645 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000120 R13: 0000000000000100 R14: 0000000000000024 R15: dffffc0000000000 FS: 00007ff1ec7c86c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcfa2275f98 CR3: 0000000072557000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c6 05 49 7f cf 0a 01 movb $0x1,0xacf7f49(%rip) # 0xacf7f50 7: 48 c7 c7 c0 a9 50 8b mov $0xffffffff8b50a9c0,%rdi e: be 19 03 00 00 mov $0x319,%esi 13: 48 c7 c2 00 aa 50 8b mov $0xffffffff8b50aa00,%rdx 1a: e8 70 e7 b4 fd call 0xfdb4e78f 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 64 07 00 00 jne 0x79b 37: 41 0f b7 1c 24 movzwl (%r12),%ebx 3c: 89 de mov %ebx,%esi 3e: 81 .byte 0x81 3f: e6 .byte 0xe6