================================================================== BUG: KASAN: out-of-bounds in gfs2_dump_glock+0x1616/0x1c10 Read of size 8 at addr ffffc90002ee7ca0 by task syz.2.26/6967 CPU: 0 UID: 0 PID: 6967 Comm: syz.2.26 Not tainted 6.14.0-rc3-next-20250218-syzkaller-04377-ge5d3fd687aac #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:410 [inline] print_report+0x16b/0x5a0 mm/kasan/report.c:510 kasan_report+0x143/0x180 mm/kasan/report.c:623 gfs2_dump_glock+0x1616/0x1c10 gfs2_consist_inode_i+0xf5/0x110 fs/gfs2/util.c:457 gfs2_dirent_scan+0x52b/0x670 gfs2_dirent_search+0x30e/0x8c0 fs/gfs2/dir.c:853 gfs2_dir_search+0xb2/0x2f0 fs/gfs2/dir.c:1653 gfs2_lookupi+0x3d4/0x5a0 fs/gfs2/inode.c:340 __gfs2_lookup+0xa4/0x280 fs/gfs2/inode.c:897 gfs2_atomic_open+0x9e/0x230 fs/gfs2/inode.c:1298 atomic_open fs/namei.c:3519 [inline] lookup_open fs/namei.c:3630 [inline] open_last_lookups fs/namei.c:3758 [inline] path_openat+0x1040/0x35b0 fs/namei.c:3994 do_filp_open+0x282/0x4e0 fs/namei.c:4024 do_sys_openat2+0x13f/0x1c0 fs/open.c:1428 do_sys_open fs/open.c:1443 [inline] __do_sys_open fs/open.c:1451 [inline] __se_sys_open fs/open.c:1447 [inline] __x64_sys_open+0x225/0x280 fs/open.c:1447 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9103f7dff9 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:00007f9104db6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f9104136058 RCX: 00007f9103f7dff9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00007f9103ff0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f9104136058 R15: 00007ffc2e468c78 The buggy address belongs to the virtual mapping at [ffffc90002ee0000, ffffc90002ee9000) created by: copy_process+0x5d1/0x3cf0 kernel/fork.c:2216 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x5f1f8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff888000000000 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 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 6920, tgid 6920 (dhcpcd-run-hook), ts 160512452433, free_ts 157033823354 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1629 prep_new_page mm/page_alloc.c:1637 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3555 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4817 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2301 alloc_frozen_pages_noprof mm/mempolicy.c:2372 [inline] alloc_pages_noprof+0x121/0x190 mm/mempolicy.c:2392 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x9c6/0x1380 mm/vmalloc.c:3846 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1090 copy_process+0x5d1/0x3cf0 kernel/fork.c:2216 kernel_clone+0x226/0x8e0 kernel/fork.c:2798 __do_sys_clone kernel/fork.c:2941 [inline] __se_sys_clone kernel/fork.c:2925 [inline] __x64_sys_clone+0x267/0x2e0 kernel/fork.c:2925 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 14 tgid 14 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1205 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2738 pagetable_free include/linux/mm.h:2998 [inline] pagetable_dtor_free include/linux/mm.h:3096 [inline] __tlb_remove_table+0x33c/0x420 include/asm-generic/tlb.h:220 __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x76/0xf0 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2566 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2822 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561 run_ksoftirqd+0xca/0x130 kernel/softirq.c:950 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffffc90002ee7b80: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90002ee7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90002ee7c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc90002ee7d00: 00 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00 ffffc90002ee7d80: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ==================================================================