gfs2: fsid=syz:syz.0: gfs2_check_dirent: name length is greater than space in dirent (first in block) gfs2: fsid=syz:syz.0: fatal: filesystem consistency error - inode = 12 2341, function = gfs2_dirent_scan, file = fs/gfs2/dir.c, line = 574 gfs2: fsid=syz:syz.0: G: s:SH n:2/925 f:aqob 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:5328 [syz.0.0] __gfs2_lookup+0xa6/0x280 fs/gfs2/inode.c:897 gfs2: fsid=syz:syz.0: H: s:SH f: e:0 p:5328 [syz.0.0] __gfs2_lookup+0xa6/0x280 fs/gfs2/inode.c:897 Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] CPU: 0 UID: 0 PID: 5329 Comm: syz.0.0 Not tainted 6.15.0-rc1-syzkaller-00246-g900241a5cc15 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1469 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2293 [inline] RIP: 0010:gfs2_dump_glock+0x1042/0x1d30 fs/gfs2/glock.c:2415 Code: c6 05 0b c1 27 0c 01 48 c7 c7 e0 de 8f 8c be 4b 03 00 00 48 c7 c2 20 df 8f 8c e8 b9 31 7d fd 4d 8d 75 20 4d 89 f4 49 c1 ec 03 <43> 0f b6 04 3c 84 c0 0f 85 c8 06 00 00 41 0f b7 1e 89 de 81 e6 00 RSP: 0018:ffffc9000d36e9c0 EFLAGS: 00010207 RAX: ffffffff8421ea1f RBX: 0000000000000001 RCX: 0000000000100000 RDX: ffffc9000e64b000 RSI: 000000000000efd2 RDI: 000000000000efd3 RBP: ffffc9000d36ecb0 R08: ffffffff8421ea08 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000c R13: 0000000000000046 R14: 0000000000000066 R15: dffffc0000000000 FS: 00007f80e61aa6c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f80e61a9fd8 CR3: 00000000417f4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_consist_inode_i+0xf5/0x110 fs/gfs2/util.c:457 gfs2_dirent_scan+0x531/0x680 fs/gfs2/dir.c:-1 gfs2_dirent_search+0x307/0x8f0 fs/gfs2/dir.c:853 gfs2_dir_search+0xb4/0x300 fs/gfs2/dir.c:1653 gfs2_lookupi+0x3d6/0x5b0 fs/gfs2/inode.c:340 __gfs2_lookup+0xa6/0x280 fs/gfs2/inode.c:897 __lookup_slow+0x2b1/0x400 fs/namei.c:1807 lookup_slow+0x53/0x70 fs/namei.c:1824 walk_component+0x2f4/0x420 fs/namei.c:2128 lookup_last fs/namei.c:2626 [inline] path_lookupat+0x169/0x440 fs/namei.c:2650 filename_lookup+0x290/0x670 fs/namei.c:2679 kern_path+0x35/0x50 fs/namei.c:2787 unix_find_bsd net/unix/af_unix.c:1112 [inline] unix_find_other+0x166/0x990 net/unix/af_unix.c:1173 unix_dgram_sendmsg+0x951/0x1ea0 net/unix/af_unix.c:2028 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:727 ____sys_sendmsg+0x523/0x860 net/socket.c:2566 ___sys_sendmsg net/socket.c:2620 [inline] __sys_sendmmsg+0x3a0/0x7b0 net/socket.c:2709 __do_sys_sendmmsg net/socket.c:2736 [inline] __se_sys_sendmmsg net/socket.c:2733 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2733 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f80e538d169 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:00007f80e61aa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f80e55a6080 RCX: 00007f80e538d169 RDX: 0000000000000002 RSI: 0000200000000ec0 RDI: 000000000000000a RBP: 00007f80e540e990 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f80e55a6080 R15: 00007fff9e549eb8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1469 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2293 [inline] RIP: 0010:gfs2_dump_glock+0x1042/0x1d30 fs/gfs2/glock.c:2415 Code: c6 05 0b c1 27 0c 01 48 c7 c7 e0 de 8f 8c be 4b 03 00 00 48 c7 c2 20 df 8f 8c e8 b9 31 7d fd 4d 8d 75 20 4d 89 f4 49 c1 ec 03 <43> 0f b6 04 3c 84 c0 0f 85 c8 06 00 00 41 0f b7 1e 89 de 81 e6 00 RSP: 0018:ffffc9000d36e9c0 EFLAGS: 00010207 RAX: ffffffff8421ea1f RBX: 0000000000000001 RCX: 0000000000100000 RDX: ffffc9000e64b000 RSI: 000000000000efd2 RDI: 000000000000efd3 RBP: ffffc9000d36ecb0 R08: ffffffff8421ea08 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000c R13: 0000000000000046 R14: 0000000000000066 R15: dffffc0000000000 FS: 00007f80e61aa6c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564e01858078 CR3: 00000000417f4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c6 05 0b c1 27 0c 01 movb $0x1,0xc27c10b(%rip) # 0xc27c112 7: 48 c7 c7 e0 de 8f 8c mov $0xffffffff8c8fdee0,%rdi e: be 4b 03 00 00 mov $0x34b,%esi 13: 48 c7 c2 20 df 8f 8c mov $0xffffffff8c8fdf20,%rdx 1a: e8 b9 31 7d fd call 0xfd7d31d8 1f: 4d 8d 75 20 lea 0x20(%r13),%r14 23: 4d 89 f4 mov %r14,%r12 26: 49 c1 ec 03 shr $0x3,%r12 * 2a: 43 0f b6 04 3c movzbl (%r12,%r15,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 c8 06 00 00 jne 0x6ff 37: 41 0f b7 1e movzwl (%r14),%ebx 3b: 89 de mov %ebx,%esi 3d: 81 .byte 0x81 3e: e6 00 out %al,$0x0