gfs2: fsid=syz:syz.0: gfs2_check_dirent: name length is greater than space in dirent (first in block) 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:5334 [syz.0.0] __gfs2_lookup+0xa6/0x280 fs/gfs2/inode.c:897 Oops: general protection fault, probably for non-canonical address 0xe02611f1a9850910: 0000 [#1] SMP KASAN NOPTI KASAN: maybe wild-memory-access in range [0x0130af8d4c284880-0x0130af8d4c284887] CPU: 0 UID: 0 PID: 5335 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_nr include/linux/pid.h:179 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2297 [inline] RIP: 0010:gfs2_dump_glock+0x10f7/0x1d30 fs/gfs2/glock.c:2415 Code: e8 ae 91 0b fe 48 8b 1b 48 85 db 74 2e e8 11 6a a1 fd 4c 8d bb f8 00 00 00 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 d2 07 00 00 45 8b 3f eb 08 e8 e3 69 a1 fd RSP: 0018:ffffc9000d43e9c0 EFLAGS: 00010202 RAX: 002615f1a9850910 RBX: 0130af8d4c28478b RCX: dffffc0000000000 RDX: ffffc9000e7db000 RSI: 0000000000001ffc RDI: 0000000000001ffd RBP: ffffc9000d43ecb0 R08: ffffffff8421eaa2 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 1ffffffff26d1408 R13: ffffffff9368a020 R14: ffffffff9368a040 R15: 0130af8d4c284883 FS: 00007f5c6a5e56c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5c6a5e4fd8 CR3: 0000000042af4000 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:0x7f5c6978d169 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:00007f5c6a5e5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f5c699a6080 RCX: 00007f5c6978d169 RDX: 0000000000000001 RSI: 0000200000000ec0 RDI: 0000000000000008 RBP: 00007f5c6980e990 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5c699a6080 R15: 00007ffc6aa3a0e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_nr include/linux/pid.h:179 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2297 [inline] RIP: 0010:gfs2_dump_glock+0x10f7/0x1d30 fs/gfs2/glock.c:2415 Code: e8 ae 91 0b fe 48 8b 1b 48 85 db 74 2e e8 11 6a a1 fd 4c 8d bb f8 00 00 00 4c 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 d2 07 00 00 45 8b 3f eb 08 e8 e3 69 a1 fd RSP: 0018:ffffc9000d43e9c0 EFLAGS: 00010202 RAX: 002615f1a9850910 RBX: 0130af8d4c28478b RCX: dffffc0000000000 RDX: ffffc9000e7db000 RSI: 0000000000001ffc RDI: 0000000000001ffd RBP: ffffc9000d43ecb0 R08: ffffffff8421eaa2 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 1ffffffff26d1408 R13: ffffffff9368a020 R14: ffffffff9368a040 R15: 0130af8d4c284883 FS: 00007f5c6a5e56c0(0000) GS:ffff88808c596000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb37eada580 CR3: 0000000042af4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: e8 ae 91 0b fe call 0xfe0b91b3 5: 48 8b 1b mov (%rbx),%rbx 8: 48 85 db test %rbx,%rbx b: 74 2e je 0x3b d: e8 11 6a a1 fd call 0xfda16a23 12: 4c 8d bb f8 00 00 00 lea 0xf8(%rbx),%r15 19: 4c 89 f8 mov %r15,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 d2 07 00 00 jne 0x808 36: 45 8b 3f mov (%r15),%r15d 39: eb 08 jmp 0x43 3b: e8 e3 69 a1 fd call 0xfda16a23