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:5328 [syz.0.0] __gfs2_lookup+0xac/0x2a0 fs/gfs2/inode.c:990 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000004: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000020-0x0000000000000027] CPU: 0 UID: 0 PID: 5329 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_is_meaningful fs/gfs2/glock.c:1422 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2234 [inline] RIP: 0010:gfs2_dump_glock+0xe2c/0x1a60 fs/gfs2/glock.c:2352 Code: c2 e0 46 19 8c e8 94 ea 83 fd ba 20 00 00 00 48 8d bc 24 c0 00 00 00 31 f6 e8 c0 94 13 fe 4d 8d 7c 24 20 4d 89 fe 49 c1 ee 03 <43> 0f b6 04 2e 84 c0 0f 85 77 06 00 00 41 0f b7 1f 89 de 81 e6 00 RSP: 0018:ffffc9000f3feaa0 EFLAGS: 00010202 RAX: ffffc9000f3feb60 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000f3feb80 RBP: ffffc9000f3fed90 R08: ffffc9000f3feb7f R09: 0000000000000000 R10: ffffc9000f3feb60 R11: fffff52001e7fd70 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000004 R15: 0000000000000020 FS: 00007ff0a09ba6c0(0000) GS:ffff88808ca55000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560a45e89168 CR3: 000000000bb66000 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:2146 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:0x7ff09fb9c799 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:00007ff0a09b9fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007ff09fe16090 RCX: 00007ff09fb9c799 RDX: 0000000000000002 RSI: 0000200000005a40 RDI: 0000000000000007 RBP: 00007ff09fc32c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff09fe16128 R14: 00007ff09fe16090 R15: 00007ffdb14ac968 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:pid_is_meaningful fs/gfs2/glock.c:1422 [inline] RIP: 0010:dump_holder fs/gfs2/glock.c:2234 [inline] RIP: 0010:gfs2_dump_glock+0xe2c/0x1a60 fs/gfs2/glock.c:2352 Code: c2 e0 46 19 8c e8 94 ea 83 fd ba 20 00 00 00 48 8d bc 24 c0 00 00 00 31 f6 e8 c0 94 13 fe 4d 8d 7c 24 20 4d 89 fe 49 c1 ee 03 <43> 0f b6 04 2e 84 c0 0f 85 77 06 00 00 41 0f b7 1f 89 de 81 e6 00 RSP: 0018:ffffc9000f3feaa0 EFLAGS: 00010202 RAX: ffffc9000f3feb60 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000f3feb80 RBP: ffffc9000f3fed90 R08: ffffc9000f3feb7f R09: 0000000000000000 R10: ffffc9000f3feb60 R11: fffff52001e7fd70 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000004 R15: 0000000000000020 FS: 00007ff0a09ba6c0(0000) GS:ffff88808ca55000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd5008a8d20 CR3: 000000000bb66000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: c2 e0 46 ret $0x46e0 3: 19 8c e8 94 ea 83 fd sbb %ecx,-0x27c156c(%rax,%rbp,8) a: ba 20 00 00 00 mov $0x20,%edx f: 48 8d bc 24 c0 00 00 lea 0xc0(%rsp),%rdi 16: 00 17: 31 f6 xor %esi,%esi 19: e8 c0 94 13 fe call 0xfe1394de 1e: 4d 8d 7c 24 20 lea 0x20(%r12),%r15 23: 4d 89 fe mov %r15,%r14 26: 49 c1 ee 03 shr $0x3,%r14 * 2a: 43 0f b6 04 2e movzbl (%r14,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 77 06 00 00 jne 0x6ae 37: 41 0f b7 1f movzwl (%r15),%ebx 3b: 89 de mov %ebx,%esi 3d: 81 .byte 0x81 3e: e6 00 out %al,$0x0