================================================================== 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:270 [inline] BUG: KASAN: slab-use-after-free in folio_evictable mm/internal.h:568 [inline] BUG: KASAN: slab-use-after-free in lru_add+0x25b/0xd70 mm/swap.c:136 Read of size 8 at addr ffff88803262f350 by task syz.0.32/6503 CPU: 0 UID: 0 PID: 6503 Comm: syz.0.32 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/13/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 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:270 [inline] folio_evictable mm/internal.h:568 [inline] lru_add+0x25b/0xd70 mm/swap.c:136 folio_batch_move_lru+0x29a/0x430 mm/swap.c:172 __folio_batch_add_and_move+0x510/0xc50 mm/swap.c:196 do_anonymous_page mm/memory.c:5322 [inline] do_pte_missing+0x2e37/0x3750 mm/memory.c:4485 handle_pte_fault mm/memory.c:6326 [inline] __handle_mm_fault mm/memory.c:6464 [inline] handle_mm_fault+0x1bec/0x3310 mm/memory.c:6633 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:0x7f3e6cd694c7 Code: 4e e0 d9 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:00007fff640611a8 EFLAGS: 00010206 RAX: 0000200000012540 RBX: 0000000000000004 RCX: 0000000000002b2b RDX: 00000000000125eb RSI: 00007f3e6c80fca2 RDI: 0000200000022000 RBP: fffffffffffffffe R08: 0000200000012540 R09: 0000000000000009 R10: 00000000000125eb R11: 0000000000000002 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000021d0d R15: 00007fff64061440 Allocated by task 6498: 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:4452 [inline] slab_alloc_node mm/slub.c:4781 [inline] kmem_cache_alloc_noprof+0x2bc/0x650 mm/slub.c:4788 gfs2_glock_get+0x27b/0xf40 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+0x45b/0x640 fs/gfs2/inode.c:354 gfs2_jindex_hold fs/gfs2/ops_fstype.c:573 [inline] init_journal+0x592/0x2260 fs/gfs2/ops_fstype.c:713 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:844 gfs2_fill_super+0x1a38/0x21d0 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:3760 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3836 do_mount fs/namespace.c:4159 [inline] __do_sys_mount fs/namespace.c:4348 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4325 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 23: 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:2667 [inline] slab_free mm/slub.c:6075 [inline] kmem_cache_free+0x180/0x610 mm/slub.c:6201 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x7c0 kernel/softirq.c:626 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1067 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51b/0xa40 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 gfs2_glock_put_eventually fs/gfs2/super.c:1170 [inline] gfs2_evict_inode+0x598/0x1050 fs/gfs2/super.c:1445 evict+0x61e/0xb10 fs/inode.c:837 gfs2_jindex_free+0x3a4/0x450 fs/gfs2/super.c:79 init_journal+0x8aa/0x2260 fs/gfs2/ops_fstype.c:826 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:844 gfs2_fill_super+0x1a38/0x21d0 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:3760 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3836 do_mount fs/namespace.c:4159 [inline] __do_sys_mount fs/namespace.c:4348 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4325 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:2199 __queue_work+0xccf/0xf90 kernel/workqueue.c:2354 queue_delayed_work_on+0x11a/0x1e0 kernel/workqueue.c:2574 queue_delayed_work include/linux/workqueue.h:684 [inline] gfs2_glock_queue_work fs/gfs2/glock.c:224 [inline] do_xmote+0x515/0x760 fs/gfs2/glock.c:745 glock_work_func+0x2a8/0x580 fs/gfs2/glock.c:1011 process_one_work+0x949/0x15a0 kernel/workqueue.c:3279 process_scheduled_works kernel/workqueue.c:3362 [inline] worker_thread+0xb46/0x1140 kernel/workqueue.c:3443 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51b/0xa40 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 ffff88803262ef88 which belongs to the cache gfs2_glock(aspace) of size 1224 The buggy address is located 968 bytes inside of freed 1224-byte region [ffff88803262ef88, ffff88803262f450) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3262c head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801e3f0500 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000c000c 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801e3f0500 dead000000000122 0000000000000000 head: 0000000000000000 00000000000c000c 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffea0000c98b01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6498, tgid 6497 (syz.0.31), ts 138044239239, free_ts 137757996031 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1883 prep_new_page mm/page_alloc.c:1891 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3956 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5244 alloc_slab_page mm/slub.c:3235 [inline] allocate_slab+0x7b/0x660 mm/slub.c:3408 new_slab mm/slub.c:3466 [inline] refill_objects+0x33a/0x3d0 mm/slub.c:7077 refill_sheaf mm/slub.c:2784 [inline] __pcs_replace_empty_main+0x2b9/0x620 mm/slub.c:4529 alloc_from_pcs mm/slub.c:4632 [inline] slab_alloc_node mm/slub.c:4766 [inline] kmem_cache_alloc_noprof+0x37d/0x650 mm/slub.c:4788 gfs2_glock_get+0x27b/0xf40 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+0x16d6/0x21d0 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:3760 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3836 do_mount fs/namespace.c:4159 [inline] __do_sys_mount fs/namespace.c:4348 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4325 page last free pid 6170 tgid 6170 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc01/0xd80 mm/page_alloc.c:2972 __slab_free+0x263/0x2b0 mm/slub.c:5483 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/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:4452 [inline] slab_alloc_node mm/slub.c:4781 [inline] kmem_cache_alloc_noprof+0x2bc/0x650 mm/slub.c:4788 alloc_filename fs/namei.c:142 [inline] do_getname+0x2e/0x250 fs/namei.c:182 getname_flags fs/namei.c:225 [inline] getname include/linux/fs.h:2512 [inline] class_filename_constructor include/linux/fs.h:2539 [inline] __do_sys_unlink fs/namei.c:5574 [inline] __se_sys_unlink+0x1e/0x140 fs/namei.c:5572 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88803262f200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803262f280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88803262f300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803262f380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803262f400: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc ==================================================================