gfs2: fsid=syz:syz.s: gfs2_check_dirent: gfs2_dirent too small (not first in block) gfs2: fsid=syz:syz.s: fatal: filesystem consistency error - inode = 12 2341, function = gfs2_dirent_scan, file = fs/gfs2/dir.c, line = 590 gfs2: fsid=syz:syz.s: G: s:SH n:2/925 f:aqo t:SH d:EX/0 a:0 v:0 r:3 m:20 p:1 gfs2: fsid=syz:syz.s: H: s:SH f:H e:0 p:5327 [syz.0.0] __gfs2_lookup+0xac/0x2a0 fs/gfs2/inode.c:990 Oops: general protection fault, probably for non-canonical address 0xe841e582048d8587: 0000 [#1] SMP KASAN NOPTI KASAN: maybe wild-memory-access in range [0x420f4c10246c2c38-0x420f4c10246c2c3f] CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:pid_nr include/linux/pid.h:183 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2238 [inline] RIP: 0010:gfs2_dump_glock+0xee3/0x1a60 fs/gfs2/glock.c:2352 Code: e8 c2 55 13 fe 4c 8b 2b 4d 85 ed 74 33 e8 15 7f a7 fd 49 8d 9d f0 00 00 00 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 5a 07 00 00 48 63 03 48 89 44 24 10 eb 0e RSP: 0018:ffffc9000d9a6aa0 EFLAGS: 00010207 RAX: 0841e982048d8587 RBX: 420f4c10246c2c3c RCX: dffffc0000000000 RDX: ffffc90020001000 RSI: 0000000000009e2b RDI: 0000000000009e2c RBP: ffffc9000d9a6d90 R08: ffffc9000d9a6b7f R09: 0000000000000000 R10: ffffc9000d9a6b60 R11: fffff52001b34d70 R12: ffffffff8199549b R13: 420f4c10246c2b4c R14: 1ffffffff0332a97 R15: ffffffff819954bb FS: 00007f189ca5d6c0(0000) GS:ffff88808ca51000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f189ca5cff8 CR3: 00000000421e3000 CR4: 0000000000352ef0 Call Trace: gfs2_consist_inode_i+0xf5/0x110 fs/gfs2/util.c:346 gfs2_dirent_scan+0x545/0x690 fs/gfs2/dir.c:-1 gfs2_dirent_search+0x358/0x920 fs/gfs2/dir.c:854 gfs2_dir_search+0x4c/0x220 fs/gfs2/dir.c:1651 gfs2_lookupi+0x45b/0x640 fs/gfs2/inode.c:354 __gfs2_lookup+0xac/0x2a0 fs/gfs2/inode.c:990 __lookup_slow+0x2b7/0x410 fs/namei.c:1916 lookup_slow+0x53/0x70 fs/namei.c:1933 walk_component fs/namei.c:2279 [inline] lookup_last fs/namei.c:2780 [inline] path_lookupat+0x3f5/0x8c0 fs/namei.c:2804 filename_lookup+0x256/0x5d0 fs/namei.c:2833 kern_path+0x3d/0x150 fs/namei.c:3040 unix_find_bsd net/unix/af_unix.c:1215 [inline] unix_find_other+0x197/0xac0 net/unix/af_unix.c:1277 unix_dgram_sendmsg+0x74e/0x18d0 net/unix/af_unix.c:2148 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0x972/0x9f0 net/socket.c:2592 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2646 __sys_sendmmsg+0x27c/0x4e0 net/socket.c:2735 __do_sys_sendmmsg net/socket.c:2762 [inline] __se_sys_sendmmsg net/socket.c:2759 [inline] __x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2759 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f189bb9c799 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f189ca5cfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f189be16090 RCX: 00007f189bb9c799 RDX: 0000000000000002 RSI: 0000200000005a40 RDI: 0000000000000006 RBP: 00007f189bc32c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f189be16128 R14: 00007f189be16090 R15: 00007fffe8e0d638 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_nr include/linux/pid.h:183 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2238 [inline] RIP: 0010:gfs2_dump_glock+0xee3/0x1a60 fs/gfs2/glock.c:2352 Code: e8 c2 55 13 fe 4c 8b 2b 4d 85 ed 74 33 e8 15 7f a7 fd 49 8d 9d f0 00 00 00 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 5a 07 00 00 48 63 03 48 89 44 24 10 eb 0e RSP: 0018:ffffc9000d9a6aa0 EFLAGS: 00010207 RAX: 0841e982048d8587 RBX: 420f4c10246c2c3c RCX: dffffc0000000000 RDX: ffffc90020001000 RSI: 0000000000009e2b RDI: 0000000000009e2c RBP: ffffc9000d9a6d90 R08: ffffc9000d9a6b7f R09: 0000000000000000 R10: ffffc9000d9a6b60 R11: fffff52001b34d70 R12: ffffffff8199549b R13: 420f4c10246c2b4c R14: 1ffffffff0332a97 R15: ffffffff819954bb FS: 00007f189ca5d6c0(0000) GS:ffff88808ca51000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f189ca5cff8 CR3: 00000000421e3000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: e8 c2 55 13 fe call 0xfe1355c7 5: 4c 8b 2b mov (%rbx),%r13 8: 4d 85 ed test %r13,%r13 b: 74 33 je 0x40 d: e8 15 7f a7 fd call 0xfda77f27 12: 49 8d 9d f0 00 00 00 lea 0xf0(%r13),%rbx 19: 48 89 d8 mov %rbx,%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 5a 07 00 00 jne 0x790 36: 48 63 03 movslq (%rbx),%rax 39: 48 89 44 24 10 mov %rax,0x10(%rsp) 3e: eb 0e jmp 0x4e