BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:82 [inline] BUG: KASAN: slab-use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: slab-use-after-free in mapping_unevictable include/linux/pagemap.h:269 [inline] BUG: KASAN: slab-use-after-free in folio_evictable mm/internal.h:584 [inline] BUG: KASAN: slab-use-after-free in lru_add+0x265/0xee0 mm/swap.c:136 Read of size 8 at addr ffff8880360df208 by task syz.0.27/6050 CPU: 0 UID: 0 PID: 6050 Comm: syz.0.27 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 instrument_atomic_read include/linux/instrumented.h:82 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] mapping_unevictable include/linux/pagemap.h:269 [inline] folio_evictable mm/internal.h:584 [inline] lru_add+0x265/0xee0 mm/swap.c:136 folio_batch_move_lru+0x336/0x550 mm/swap.c:172 __folio_batch_add_and_move+0x446/0xa90 mm/swap.c:196 folio_add_lru_vma+0x196/0x210 mm/swap.c:536 map_anon_folio_pte_nopf+0x2ee/0x5e0 mm/memory.c:5301 map_anon_folio_pte_pf+0xbe/0x220 mm/memory.c:5311 do_anonymous_page mm/memory.c:5413 [inline] do_pte_missing+0x2822/0x2950 mm/memory.c:4548 handle_pte_fault mm/memory.c:6411 [inline] __handle_mm_fault mm/memory.c:6549 [inline] handle_mm_fault+0xdb5/0x14c0 mm/memory.c:6718 do_user_addr_fault+0xa73/0x1340 arch/x86/mm/fault.c:1334 handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0033:0x7fbb9e23bf07 Code: 2e b6 dd 00 01 74 9d 83 f9 c0 0f 87 8f fe ff ff c5 fe 6f 4e 20 48 29 fe 48 83 c7 3f 49 8d 0c 10 48 83 e7 c0 48 01 fe 48 29 f9 a4 c4 c1 7e 7f 00 c4 c1 7e 7f 48 20 e9 0e fd ff ff 0f 1f 80 00 RSP: 002b:00007ffefa32a168 EFLAGS: 00010206 RAX: 0000200000000140 RBX: 0000000000000004 RCX: 000000000000e890 RDX: 0000000000012750 RSI: 0000001b2eb24120 RDI: 0000200000004000 RBP: fffffffffffffffe R08: 0000200000000140 R09: 0000000000000009 R10: 0000000000012750 R11: 0000000000000002 R12: 0000000000000000 R13: 0000000000000000 R14: 000000000001eadb R15: 00007ffefa32a400 Allocated by task 6046: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4905 gfs2_glock_get+0x27b/0xf50 fs/gfs2/glock.c:1098 gfs2_inode_lookup+0x29f/0xc50 fs/gfs2/inode.c:149 gfs2_dir_search+0x168/0x220 fs/gfs2/dir.c:1665 gfs2_lookupi+0x45e/0x640 fs/gfs2/inode.c:354 gfs2_jindex_hold fs/gfs2/ops_fstype.c:573 [inline] init_journal+0x592/0x2280 fs/gfs2/ops_fstype.c:713 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:844 gfs2_fill_super+0x1a92/0x2220 fs/gfs2/ops_fstype.c:1250 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x92/0x2a0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3758 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3834 do_mount fs/namespace.c:4167 [inline] __do_sys_mount fs/namespace.c:4383 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4360 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 29: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6246 [inline] kmem_cache_free+0x187/0x6c0 mm/slub.c:6373 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core kernel/rcu/tree.c:2869 [inline] rcu_cpu_kthread+0x99e/0x1470 kernel/rcu/tree.c:2957 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3131 [inline] call_rcu+0xee/0x890 kernel/rcu/tree.c:3251 gfs2_glock_free+0x3c/0xa0 fs/gfs2/glock.c:152 process_one_work+0x9a3/0x1710 kernel/workqueue.c:3312 process_scheduled_works kernel/workqueue.c:3403 [inline] worker_thread+0xba8/0x11e0 kernel/workqueue.c:3489 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 insert_work+0x3d/0x330 kernel/workqueue.c:2226 __queue_work+0xcfd/0x1010 kernel/workqueue.c:2381 queue_delayed_work_on+0x11a/0x1e0 kernel/workqueue.c:2600 queue_delayed_work include/linux/workqueue.h:711 [inline] gfs2_glock_queue_work fs/gfs2/glock.c:224 [inline] do_xmote+0x51b/0x760 fs/gfs2/glock.c:745 glock_work_func+0x2a8/0x580 fs/gfs2/glock.c:1011 process_one_work+0x9a3/0x1710 kernel/workqueue.c:3312 process_scheduled_works kernel/workqueue.c:3403 [inline] worker_thread+0xba8/0x11e0 kernel/workqueue.c:3489 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff8880360dedd8 which belongs to the cache gfs2_glock(aspace) of size 1352 The buggy address is located 1072 bytes inside of freed 1352-byte region [ffff8880360dedd8, ffff8880360df320) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x360d8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88801f721780 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800160016 00000000f5000000 0000000000000000 head: 0080000000000040 ffff88801f721780 dead000000000100 dead000000000122 head: 0000000000000000 0000000800160016 00000000f5000000 0000000000000000 head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6012, tgid 6012 (syz.0.17), ts 116768578750, free_ts 113850859257 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x27d6/0x2850 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x33c/0x3d0 mm/slub.c:7251 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] kmem_cache_alloc_noprof+0x433/0x680 mm/slub.c:4905 gfs2_glock_get+0x27b/0xf50 fs/gfs2/glock.c:1098 gfs2_inode_lookup+0x29f/0xc50 fs/gfs2/inode.c:149 gfs2_lookup_root fs/gfs2/ops_fstype.c:426 [inline] init_sb+0xb0d/0x12f0 fs/gfs2/ops_fstype.c:501 gfs2_fill_super+0x1739/0x2220 fs/gfs2/ops_fstype.c:1217 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x92/0x2a0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3758 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3834 do_mount fs/namespace.c:4167 [inline] __do_sys_mount fs/namespace.c:4383 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4360 page last free pid 5980 tgid 5980 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0xf9b/0x10f0 mm/page_alloc.c:2943 __slab_free+0x252/0x2a0 mm/slub.c:5608 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4905 mt_alloc_one lib/maple_tree.c:139 [inline] mas_alloc_nodes+0x291/0x350 lib/maple_tree.c:1089 mas_preallocate+0x2d6/0x640 lib/maple_tree.c:4961 vma_iter_prealloc mm/vma.h:577 [inline] commit_merge+0x21a/0x660 mm/vma.c:754 vma_expand+0x87d/0xfa0 mm/vma.c:1219 relocate_vma_down+0x375/0x590 mm/vma_exec.c:59 setup_arg_pages+0x70a/0xbd0 fs/exec.c:690 load_elf_binary+0xc67/0x29b0 fs/binfmt_elf.c:1028 search_binary_handler fs/exec.c:1664 [inline] exec_binprm fs/exec.c:1696 [inline] bprm_execve+0x94a/0x1440 fs/exec.c:1748 do_execveat_common+0x50d/0x690 fs/exec.c:1846 __do_sys_execve fs/exec.c:1930 [inline] __se_sys_execve fs/exec.c:1924 [inline] __x64_sys_execve+0x97/0xc0 fs/exec.c:1924 Memory state around the buggy address: ffff8880360df100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880360df180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880360df200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880360df280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880360df300: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================