gfs2: fsid=syz:syz.0: H: s:SH f:H e:0 p:2364 [syz-executor.0] iterate_dir+0x487/0x6d0 fs/readdir.c:65 ================================================================== BUG: KASAN: stack-out-of-bounds in gfs2_dump_glock+0x126e/0x16c0 fs/gfs2/glock.c:2424 Read of size 8 at addr ffffc90003797d60 by task syz-executor.0/2365 CPU: 1 PID: 2365 Comm: syz-executor.0 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x41/0x5e lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x320 mm/kasan/report.c:247 __kasan_report mm/kasan/report.c:433 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:450 gfs2_dump_glock+0x126e/0x16c0 fs/gfs2/glock.c:2424 gfs2_consist_inode_i+0xf4/0x1a0 fs/gfs2/util.c:457 gfs2_dirent_scan+0x263/0x300 fs/gfs2/dir.c:602 gfs2_dirent_search+0x35b/0x480 fs/gfs2/dir.c:850 gfs2_dir_search+0x74/0x290 fs/gfs2/dir.c:1651 gfs2_lookupi+0x3bc/0x530 fs/gfs2/inode.c:336 __gfs2_lookup+0x78/0x200 fs/gfs2/inode.c:877 gfs2_atomic_open+0x92/0x1d0 fs/gfs2/inode.c:1281 atomic_open fs/namei.c:3142 [inline] lookup_open.isra.0+0x8ca/0x15d0 fs/namei.c:3251 open_last_lookups fs/namei.c:3350 [inline] path_openat+0x7e4/0x2230 fs/namei.c:3556 do_filp_open+0x199/0x3d0 fs/namei.c:3586 do_sys_openat2+0x11e/0x400 fs/open.c:1212 do_sys_open fs/open.c:1228 [inline] __do_sys_open fs/open.c:1236 [inline] __se_sys_open fs/open.c:1232 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1232 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f8ab4d27959 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8aad4890c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f8ab4e47050 RCX: 00007f8ab4d27959 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200025c0 RBP: 00007f8ab4d83c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8ab4e47050 R15: 00007fffcaf07998 Memory state around the buggy address: ffffc90003797c00: 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 00 00 ffffc90003797c80: 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 >ffffc90003797d00: 00 00 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 00 ^ ffffc90003797d80: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f3 ffffc90003797e00: f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================