gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:12231 [syz-executor.0] iterate_dir+0x257/0x5f0 gfs2: fsid=syz:syz.0: H: s:?? f:c e:-1 p:0 [(none)] 0xffffffffffffffff general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 PID: 12281 Comm: syz-executor.0 Not tainted 6.2.0-rc2-syzkaller-00282-g0a71553536d2 #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+0xd9c/0x1ae0 fs/gfs2/glock.c:2376 Code: b9 b5 c8 0a 01 48 c7 c7 40 9c 3c 8b be fe 02 00 00 48 c7 c2 80 9c 3c 8b e8 11 a5 b1 fd 90 4d 8d 6c 24 20 4d 89 ee 49 c1 ee 03 <43> 0f b6 04 3e 84 c0 0f 85 45 07 00 00 41 0f b7 5d 00 89 de 81 e6 RSP: 0018:ffffc90015357120 EFLAGS: 00010202 RAX: ffffffff83b9bf3f RBX: ffff888021174350 RCX: 0000000000040000 RDX: ffffc90003f51000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90015357408 R08: dffffc0000000000 R09: fffffbfff20fc231 R10: fffffbfff20fc231 R11: 1ffffffff20fc230 R12: 0000000000000000 R13: 0000000000000020 R14: 0000000000000004 R15: dffffc0000000000 FS: 00007fc5e9a8f700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555ccc708 CR3: 000000001d728000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_consist_inode_i+0xf3/0x110 fs/gfs2/util.c:465 gfs2_dirent_scan+0x535/0x650 fs/gfs2/dir.c:602 gfs2_dirent_search+0x2ea/0xb10 fs/gfs2/dir.c:850 gfs2_dir_search+0x8c/0x2a0 fs/gfs2/dir.c:1650 gfs2_lookupi+0x498/0x680 fs/gfs2/inode.c:328 __gfs2_lookup+0x8c/0x260 fs/gfs2/inode.c:880 gfs2_atomic_open+0xa4/0x230 fs/gfs2/inode.c:1284 atomic_open fs/namei.c:3276 [inline] lookup_open fs/namei.c:3384 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0xf15/0x2dd0 fs/namei.c:3711 do_filp_open+0x264/0x4f0 fs/namei.c:3741 do_sys_openat2+0x124/0x4e0 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:0x7fc5e8c8c0c9 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:00007fc5e9a8f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fc5e8dac050 RCX: 00007fc5e8c8c0c9 RDX: 0500000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007fc5e8ce7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc0cd7f46f R14: 00007fc5e9a8f300 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+0xd9c/0x1ae0 fs/gfs2/glock.c:2376 Code: b9 b5 c8 0a 01 48 c7 c7 40 9c 3c 8b be fe 02 00 00 48 c7 c2 80 9c 3c 8b e8 11 a5 b1 fd 90 4d 8d 6c 24 20 4d 89 ee 49 c1 ee 03 <43> 0f b6 04 3e 84 c0 0f 85 45 07 00 00 41 0f b7 5d 00 89 de 81 e6 RSP: 0018:ffffc90015357120 EFLAGS: 00010202 RAX: ffffffff83b9bf3f RBX: ffff888021174350 RCX: 0000000000040000 RDX: ffffc90003f51000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90015357408 R08: dffffc0000000000 R09: fffffbfff20fc231 R10: fffffbfff20fc231 R11: 1ffffffff20fc230 R12: 0000000000000000 R13: 0000000000000020 R14: 0000000000000004 R15: dffffc0000000000 FS: 00007fc5e9a8f700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c02f1ff000 CR3: 000000001d728000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: b9 b5 c8 0a 01 mov $0x10ac8b5,%ecx 5: 48 c7 c7 40 9c 3c 8b mov $0xffffffff8b3c9c40,%rdi c: be fe 02 00 00 mov $0x2fe,%esi 11: 48 c7 c2 80 9c 3c 8b mov $0xffffffff8b3c9c80,%rdx 18: e8 11 a5 b1 fd callq 0xfdb1a52e 1d: 90 nop 1e: 4d 8d 6c 24 20 lea 0x20(%r12),%r13 23: 4d 89 ee mov %r13,%r14 26: 49 c1 ee 03 shr $0x3,%r14 * 2a: 43 0f b6 04 3e movzbl (%r14,%r15,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 45 07 00 00 jne 0x77c 37: 41 0f b7 5d 00 movzwl 0x0(%r13),%ebx 3c: 89 de mov %ebx,%esi 3e: 81 .byte 0x81 3f: e6 .byte 0xe6