================================================================== BUG: KASAN: stack-out-of-bounds in gfs2_dump_glock+0x1505/0x1b00 Read of size 8 at addr ffffc90009dd7cc0 by task syz.3.49/4026 CPU: 0 PID: 4026 Comm: syz.3.49 Not tainted 6.1.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 gfs2_dump_glock+0x1505/0x1b00 gfs2_consist_inode_i+0xf1/0x110 fs/gfs2/util.c:467 gfs2_dirent_scan+0x512/0x640 fs/gfs2/dir.c:602 gfs2_dirent_search+0x30a/0x8c0 fs/gfs2/dir.c:850 gfs2_dir_search+0xae/0x2f0 fs/gfs2/dir.c:1650 gfs2_lookupi+0x45f/0x5e0 fs/gfs2/inode.c:323 __gfs2_lookup+0xa0/0x270 fs/gfs2/inode.c:870 __lookup_slow+0x27e/0x3d0 fs/namei.c:1690 lookup_slow+0x53/0x70 fs/namei.c:1707 walk_component fs/namei.c:1998 [inline] link_path_walk+0x9d6/0xee0 fs/namei.c:2325 path_openat+0x23d/0x2e60 fs/namei.c:3781 do_filp_open+0x230/0x480 fs/namei.c:3812 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_creat fs/open.c:1410 [inline] __se_sys_creat fs/open.c:1404 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1404 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f5095f7cef9 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:00007f5096de1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f5096136058 RCX: 00007f5095f7cef9 RDX: 0000000000000000 RSI: 0000000000000010 RDI: 0000000020000000 RBP: 00007f5095fef01e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f5096136058 R15: 00007fff6457fff8 The buggy address belongs to the virtual mapping at [ffffc90009dd0000, ffffc90009dd9000) created by: copy_process+0x637/0x4060 kernel/fork.c:2098 The buggy address belongs to the physical page: page:ffffea00009a3fc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x268ff flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 3986, tgid 3986 (syz.3.48), ts 81598558394, free_ts 81400326298 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2517 prep_new_page mm/page_alloc.c:2524 [inline] get_page_from_freelist+0x322e/0x33b0 mm/page_alloc.c:4290 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5558 vm_area_alloc_pages mm/vmalloc.c:2992 [inline] __vmalloc_area_node mm/vmalloc.c:3061 [inline] __vmalloc_node_range+0x9b3/0x14b0 mm/vmalloc.c:3233 alloc_thread_stack_node kernel/fork.c:311 [inline] dup_task_struct+0x3e5/0x6d0 kernel/fork.c:988 copy_process+0x637/0x4060 kernel/fork.c:2098 kernel_clone+0x222/0x920 kernel/fork.c:2682 __do_sys_clone3 kernel/fork.c:2981 [inline] __se_sys_clone3+0x373/0x410 kernel/fork.c:2965 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1444 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3510 release_pages+0x2836/0x2b40 mm/swap.c:1055 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:261 tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361 exit_mmap+0x3c3/0x9f0 mm/mmap.c:3239 __mmput+0x115/0x3c0 kernel/fork.c:1199 exit_mm+0x226/0x300 kernel/exit.c:565 do_exit+0x9f6/0x26a0 kernel/exit.c:858 do_group_exit+0x202/0x2b0 kernel/exit.c:1021 __do_sys_exit_group kernel/exit.c:1032 [inline] __se_sys_exit_group kernel/exit.c:1030 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffffc90009dd7b80: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ffffc90009dd7c00: 04 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90009dd7c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc90009dd7d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90009dd7d80: f1 f1 f1 f1 00 f2 f2 f2 00 f2 f2 f2 00 00 00 00 ==================================================================