================================================================== BUG: KASAN: slab-use-after-free in __list_lru_walk_one+0x40f/0x4c0 mm/list_lru.c:293 Read of size 8 at addr ffff88803a2d8078 by task syz.5.4360/25977 CPU: 1 UID: 0 PID: 25977 Comm: syz.5.4360 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 __list_lru_walk_one+0x40f/0x4c0 mm/list_lru.c:293 list_lru_walk_one+0x3c/0x50 mm/list_lru.c:341 list_lru_shrink_walk include/linux/list_lru.h:262 [inline] gfs2_qd_shrink_scan+0x12a/0x330 fs/gfs2/quota.c:182 do_shrink_slab+0x42e/0x1130 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:434 [inline] drop_slab+0x14e/0x2c0 mm/vmscan.c:452 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x445/0x570 fs/proc/proc_sysctl.c:600 do_iter_readv_writev+0x662/0x9e0 fs/read_write.c:827 vfs_writev+0x35f/0xde0 fs/read_write.c:1057 do_writev+0x132/0x340 fs/read_write.c:1103 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe77f38f749 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:00007fe7801a2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fe77f5e5fa0 RCX: 00007fe77f38f749 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007fe77f413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe77f5e6038 R14: 00007fe77f5e5fa0 R15: 00007ffc963c7668 Allocated by task 19185: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4948 [inline] slab_alloc_node mm/slub.c:5258 [inline] kmem_cache_alloc_noprof+0x250/0x760 mm/slub.c:5265 qd_alloc+0x4e/0x2f0 fs/gfs2/quota.c:234 gfs2_quota_init+0x67a/0x13c0 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x180/0x2d0 fs/gfs2/super.c:149 gfs2_fill_super+0x2bbd/0x2f90 fs/gfs2/ops_fstype.c:1275 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1699 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7bf/0x23a0 fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 0: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 __kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6663 [inline] kmem_cache_free+0x2d8/0x770 mm/slub.c:6774 gfs2_qd_dealloc+0x69/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1500 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x8b0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:559 __call_rcu_common.constprop.0+0xa5/0xa10 kernel/rcu/tree.c:3119 qd_put+0x153/0x190 fs/gfs2/quota.c:337 qd_ungrab_sync fs/gfs2/quota.c:493 [inline] gfs2_quota_sync+0x417/0x570 fs/gfs2/quota.c:1351 gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:658 sync_filesystem+0x111/0x290 fs/sync.c:56 generic_shutdown_super+0x74/0x390 fs/super.c:622 kill_block_super+0x3b/0x90 fs/super.c:1730 gfs2_kill_sb+0x4ab/0x590 fs/gfs2/ops_fstype.c:1797 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1318 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xfb/0x540 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x4ee/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803a2d8000 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 120 bytes inside of freed 272-byte region [ffff88803a2d8000, ffff88803a2d8110) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803a2d8000 pfn:0x3a2d8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888147a83780 dead000000000122 0000000000000000 raw: ffff88803a2d8000 00000000800c000b 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x52c50(GFP_NOFS|__GFP_RECLAIMABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 19185, tgid 19184 (syz.3.2632), ts 2182856780090, free_ts 594789401745 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2440 mm/page_alloc.c:5183 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab mm/slub.c:3248 [inline] new_slab+0x2c3/0x430 mm/slub.c:3302 ___slab_alloc+0xe18/0x1c90 mm/slub.c:4651 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4774 __slab_alloc_node mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:5246 [inline] kmem_cache_alloc_noprof+0x43f/0x760 mm/slub.c:5265 qd_alloc+0x4e/0x2f0 fs/gfs2/quota.c:234 gfs2_quota_init+0x67a/0x13c0 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x180/0x2d0 fs/gfs2/super.c:149 gfs2_fill_super+0x2bbd/0x2f90 fs/gfs2/ops_fstype.c:1275 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1699 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7bf/0x23a0 fs/namespace.c:4022 page last free pid 6450 tgid 6450 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] free_unref_folios+0xa15/0x1600 mm/page_alloc.c:2958 folios_put_refs+0x4be/0x750 mm/swap.c:1002 release_pages+0x2a2/0x4b0 mm/swap.c:1042 io_free_region+0x102/0x2b0 io_uring/memmap.c:102 io_rings_free io_uring/io_uring.c:2756 [inline] io_ring_ctx_free io_uring/io_uring.c:2863 [inline] io_ring_exit_work+0xa0a/0x1130 io_uring/io_uring.c:3073 process_one_work+0x9ba/0x1b20 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3421 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Memory state around the buggy address: ffff88803a2d7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88803a2d7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88803a2d8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803a2d8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803a2d8100: fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: slab-use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: slab-use-after-free in queued_spin_trylock include/asm-generic/qspinlock.h:92 [inline] BUG: KASAN: slab-use-after-free in do_raw_spin_trylock+0x65/0x180 kernel/locking/spinlock_debug.c:123 Read of size 4 at addr ffff88803a2d8030 by task syz.5.4360/25977 CPU: 1 UID: 0 PID: 25977 Comm: syz.5.4360 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:194 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:200 instrument_atomic_read include/linux/instrumented.h:68 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] queued_spin_trylock include/asm-generic/qspinlock.h:92 [inline] do_raw_spin_trylock+0x65/0x180 kernel/locking/spinlock_debug.c:123 __raw_spin_trylock include/linux/spinlock_api_smp.h:89 [inline] _raw_spin_trylock+0x1b/0x80 kernel/locking/spinlock.c:138 spin_trylock include/linux/spinlock.h:361 [inline] gfs2_qd_isolate+0x2e/0xd0 fs/gfs2/quota.c:159 __list_lru_walk_one+0x14f/0x4c0 mm/list_lru.c:304 list_lru_walk_one+0x3c/0x50 mm/list_lru.c:341 list_lru_shrink_walk include/linux/list_lru.h:262 [inline] gfs2_qd_shrink_scan+0x12a/0x330 fs/gfs2/quota.c:182 do_shrink_slab+0x42e/0x1130 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:434 [inline] drop_slab+0x14e/0x2c0 mm/vmscan.c:452 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x445/0x570 fs/proc/proc_sysctl.c:600 do_iter_readv_writev+0x662/0x9e0 fs/read_write.c:827 vfs_writev+0x35f/0xde0 fs/read_write.c:1057 do_writev+0x132/0x340 fs/read_write.c:1103 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe77f38f749 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:00007fe7801a2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fe77f5e5fa0 RCX: 00007fe77f38f749 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007fe77f413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe77f5e6038 R14: 00007fe77f5e5fa0 R15: 00007ffc963c7668 Allocated by task 19185: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4948 [inline] slab_alloc_node mm/slub.c:5258 [inline] kmem_cache_alloc_noprof+0x250/0x760 mm/slub.c:5265 qd_alloc+0x4e/0x2f0 fs/gfs2/quota.c:234 gfs2_quota_init+0x67a/0x13c0 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x180/0x2d0 fs/gfs2/super.c:149 gfs2_fill_super+0x2bbd/0x2f90 fs/gfs2/ops_fstype.c:1275 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1699 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7bf/0x23a0 fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 0: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 __kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6663 [inline] kmem_cache_free+0x2d8/0x770 mm/slub.c:6774 gfs2_qd_dealloc+0x69/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1500 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x8b0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:559 __call_rcu_common.constprop.0+0xa5/0xa10 kernel/rcu/tree.c:3119 qd_put+0x153/0x190 fs/gfs2/quota.c:337 qd_ungrab_sync fs/gfs2/quota.c:493 [inline] gfs2_quota_sync+0x417/0x570 fs/gfs2/quota.c:1351 gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:658 sync_filesystem+0x111/0x290 fs/sync.c:56 generic_shutdown_super+0x74/0x390 fs/super.c:622 kill_block_super+0x3b/0x90 fs/super.c:1730 gfs2_kill_sb+0x4ab/0x590 fs/gfs2/ops_fstype.c:1797 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1318 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xfb/0x540 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x4ee/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803a2d8000 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 48 bytes inside of freed 272-byte region [ffff88803a2d8000, ffff88803a2d8110) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803a2d8000 pfn:0x3a2d8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888147a83780 dead000000000122 0000000000000000 raw: ffff88803a2d8000 00000000800c000b 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x52c50(GFP_NOFS|__GFP_RECLAIMABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 19185, tgid 19184 (syz.3.2632), ts 2182856780090, free_ts 594789401745 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2440 mm/page_alloc.c:5183 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab mm/slub.c:3248 [inline] new_slab+0x2c3/0x430 mm/slub.c:3302 ___slab_alloc+0xe18/0x1c90 mm/slub.c:4651 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4774 __slab_alloc_node mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:5246 [inline] kmem_cache_alloc_noprof+0x43f/0x760 mm/slub.c:5265 qd_alloc+0x4e/0x2f0 fs/gfs2/quota.c:234 gfs2_quota_init+0x67a/0x13c0 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x180/0x2d0 fs/gfs2/super.c:149 gfs2_fill_super+0x2bbd/0x2f90 fs/gfs2/ops_fstype.c:1275 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1699 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7bf/0x23a0 fs/namespace.c:4022 page last free pid 6450 tgid 6450 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] free_unref_folios+0xa15/0x1600 mm/page_alloc.c:2958 folios_put_refs+0x4be/0x750 mm/swap.c:1002 release_pages+0x2a2/0x4b0 mm/swap.c:1042 io_free_region+0x102/0x2b0 io_uring/memmap.c:102 io_rings_free io_uring/io_uring.c:2756 [inline] io_ring_ctx_free io_uring/io_uring.c:2863 [inline] io_ring_exit_work+0xa0a/0x1130 io_uring/io_uring.c:3073 process_one_work+0x9ba/0x1b20 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3421 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Memory state around the buggy address: ffff88803a2d7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88803a2d7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88803a2d8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803a2d8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803a2d8100: fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline] BUG: KASAN: slab-use-after-free in raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline] BUG: KASAN: slab-use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:33 [inline] BUG: KASAN: slab-use-after-free in queued_spin_trylock include/asm-generic/qspinlock.h:92 [inline] BUG: KASAN: slab-use-after-free in do_raw_spin_trylock+0x162/0x180 kernel/locking/spinlock_debug.c:123 Read of size 4 at addr ffff88803a2d8030 by task syz.5.4360/25977 CPU: 1 UID: 0 PID: 25977 Comm: syz.5.4360 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline] raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:33 [inline] queued_spin_trylock include/asm-generic/qspinlock.h:92 [inline] do_raw_spin_trylock+0x162/0x180 kernel/locking/spinlock_debug.c:123 __raw_spin_trylock include/linux/spinlock_api_smp.h:89 [inline] _raw_spin_trylock+0x1b/0x80 kernel/locking/spinlock.c:138 spin_trylock include/linux/spinlock.h:361 [inline] gfs2_qd_isolate+0x2e/0xd0 fs/gfs2/quota.c:159 __list_lru_walk_one+0x14f/0x4c0 mm/list_lru.c:304 list_lru_walk_one+0x3c/0x50 mm/list_lru.c:341 list_lru_shrink_walk include/linux/list_lru.h:262 [inline] gfs2_qd_shrink_scan+0x12a/0x330 fs/gfs2/quota.c:182 do_shrink_slab+0x42e/0x1130 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:434 [inline] drop_slab+0x14e/0x2c0 mm/vmscan.c:452 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x445/0x570 fs/proc/proc_sysctl.c:600 do_iter_readv_writev+0x662/0x9e0 fs/read_write.c:827 vfs_writev+0x35f/0xde0 fs/read_write.c:1057 do_writev+0x132/0x340 fs/read_write.c:1103 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe77f38f749 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:00007fe7801a2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fe77f5e5fa0 RCX: 00007fe77f38f749 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007fe77f413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe77f5e6038 R14: 00007fe77f5e5fa0 R15: 00007ffc963c7668 Allocated by task 19185: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4948 [inline] slab_alloc_node mm/slub.c:5258 [inline] kmem_cache_alloc_noprof+0x250/0x760 mm/slub.c:5265 qd_alloc+0x4e/0x2f0 fs/gfs2/quota.c:234 gfs2_quota_init+0x67a/0x13c0 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x180/0x2d0 fs/gfs2/super.c:149 gfs2_fill_super+0x2bbd/0x2f90 fs/gfs2/ops_fstype.c:1275 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1699 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7bf/0x23a0 fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 0: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 __kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6663 [inline] kmem_cache_free+0x2d8/0x770 mm/slub.c:6774 gfs2_qd_dealloc+0x69/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1500 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x8b0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:559 __call_rcu_common.constprop.0+0xa5/0xa10 kernel/rcu/tree.c:3119 qd_put+0x153/0x190 fs/gfs2/quota.c:337 qd_ungrab_sync fs/gfs2/quota.c:493 [inline] gfs2_quota_sync+0x417/0x570 fs/gfs2/quota.c:1351 gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:658 sync_filesystem+0x111/0x290 fs/sync.c:56 generic_shutdown_super+0x74/0x390 fs/super.c:622 kill_block_super+0x3b/0x90 fs/super.c:1730 gfs2_kill_sb+0x4ab/0x590 fs/gfs2/ops_fstype.c:1797 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1318 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xfb/0x540 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x4ee/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803a2d8000 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 48 bytes inside of freed 272-byte region [ffff88803a2d8000, ffff88803a2d8110) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803a2d8000 pfn:0x3a2d8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888147a83780 dead000000000122 0000000000000000 raw: ffff88803a2d8000 00000000800c000b 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x52c50(GFP_NOFS|__GFP_RECLAIMABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 19185, tgid 19184 (syz.3.2632), ts 2182856780090, free_ts 594789401745 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2440 mm/page_alloc.c:5183 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab mm/slub.c:3248 [inline] new_slab+0x2c3/0x430 mm/slub.c:3302 ___slab_alloc+0xe18/0x1c90 mm/slub.c:4651 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4774 __slab_alloc_node mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:5246 [inline] kmem_cache_alloc_noprof+0x43f/0x760 mm/slub.c:5265 qd_alloc+0x4e/0x2f0 fs/gfs2/quota.c:234 gfs2_quota_init+0x67a/0x13c0 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x180/0x2d0 fs/gfs2/super.c:149 gfs2_fill_super+0x2bbd/0x2f90 fs/gfs2/ops_fstype.c:1275 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1699 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7bf/0x23a0 fs/namespace.c:4022 page last free pid 6450 tgid 6450 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] free_unref_folios+0xa15/0x1600 mm/page_alloc.c:2958 folios_put_refs+0x4be/0x750 mm/swap.c:1002 release_pages+0x2a2/0x4b0 mm/swap.c:1042 io_free_region+0x102/0x2b0 io_uring/memmap.c:102 io_rings_free io_uring/io_uring.c:2756 [inline] io_ring_ctx_free io_uring/io_uring.c:2863 [inline] io_ring_exit_work+0xa0a/0x1130 io_uring/io_uring.c:3073 process_one_work+0x9ba/0x1b20 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3421 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Memory state around the buggy address: ffff88803a2d7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88803a2d7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88803a2d8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803a2d8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803a2d8100: fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: slab-use-after-free in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1300 [inline] BUG: KASAN: slab-use-after-free in queued_spin_trylock include/asm-generic/qspinlock.h:97 [inline] BUG: KASAN: slab-use-after-free in do_raw_spin_trylock+0xa1/0x180 kernel/locking/spinlock_debug.c:123 Write of size 4 at addr ffff88803a2d8030 by task syz.5.4360/25977 CPU: 1 UID: 0 PID: 25977 Comm: syz.5.4360 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:194 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:200 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1300 [inline] queued_spin_trylock include/asm-generic/qspinlock.h:97 [inline] do_raw_spin_trylock+0xa1/0x180 kernel/locking/spinlock_debug.c:123 __raw_spin_trylock include/linux/spinlock_api_smp.h:89 [inline] _raw_spin_trylock+0x1b/0x80 kernel/locking/spinlock.c:138 spin_trylock include/linux/spinlock.h:361 [inline] gfs2_qd_isolate+0x2e/0xd0 fs/gfs2/quota.c:159 __list_lru_walk_one+0x14f/0x4c0 mm/list_lru.c:304 list_lru_walk_one+0x3c/0x50 mm/list_lru.c:341 list_lru_shrink_walk include/linux/list_lru.h:262 [inline] gfs2_qd_shrink_scan+0x12a/0x330 fs/gfs2/quota.c:182 do_shrink_slab+0x42e/0x1130 mm/shrinker.c:437 shrink_slab+0x32a/0x12b0 mm/shrinker.c:664 drop_slab_node mm/vmscan.c:434 [inline] drop_slab+0x14e/0x2c0 mm/vmscan.c:452 drop_caches_sysctl_handler fs/drop_caches.c:68 [inline] drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:51 proc_sys_call_handler+0x445/0x570 fs/proc/proc_sysctl.c:600 do_iter_readv_writev+0x662/0x9e0 fs/read_write.c:827 vfs_writev+0x35f/0xde0 fs/read_write.c:1057 do_writev+0x132/0x340 fs/read_write.c:1103 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe77f38f749 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:00007fe7801a2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fe77f5e5fa0 RCX: 00007fe77f38f749 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007fe77f413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe77f5e6038 R14: 00007fe77f5e5fa0 R15: 00007ffc963c7668 Allocated by task 19185: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4948 [inline] slab_alloc_node mm/slub.c:5258 [inline] kmem_cache_alloc_noprof+0x250/0x760 mm/slub.c:5265 qd_alloc+0x4e/0x2f0 fs/gfs2/quota.c:234 gfs2_quota_init+0x67a/0x13c0 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x180/0x2d0 fs/gfs2/super.c:149 gfs2_fill_super+0x2bbd/0x2f90 fs/gfs2/ops_fstype.c:1275 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1699 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7bf/0x23a0 fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 0: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 __kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6663 [inline] kmem_cache_free+0x2d8/0x770 mm/slub.c:6774 gfs2_qd_dealloc+0x69/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x1500 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x8b0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:559 __call_rcu_common.constprop.0+0xa5/0xa10 kernel/rcu/tree.c:3119 qd_put+0x153/0x190 fs/gfs2/quota.c:337 qd_ungrab_sync fs/gfs2/quota.c:493 [inline] gfs2_quota_sync+0x417/0x570 fs/gfs2/quota.c:1351 gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:658 sync_filesystem+0x111/0x290 fs/sync.c:56 generic_shutdown_super+0x74/0x390 fs/super.c:622 kill_block_super+0x3b/0x90 fs/super.c:1730 gfs2_kill_sb+0x4ab/0x590 fs/gfs2/ops_fstype.c:1797 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1318 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:44 [inline] exit_to_user_mode_loop+0xfb/0x540 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x4ee/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803a2d8000 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 48 bytes inside of freed 272-byte region [ffff88803a2d8000, ffff88803a2d8110) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803a2d8000 pfn:0x3a2d8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888147a83780 dead000000000122 0000000000000000 raw: ffff88803a2d8000 00000000800c000b 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x52c50(GFP_NOFS|__GFP_RECLAIMABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 19185, tgid 19184 (syz.3.2632), ts 2182856780090, free_ts 594789401745 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1845 prep_new_page mm/page_alloc.c:1853 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3879 __alloc_frozen_pages_noprof+0x25f/0x2440 mm/page_alloc.c:5183 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab mm/slub.c:3248 [inline] new_slab+0x2c3/0x430 mm/slub.c:3302 ___slab_alloc+0xe18/0x1c90 mm/slub.c:4651 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4774 __slab_alloc_node mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:5246 [inline] kmem_cache_alloc_noprof+0x43f/0x760 mm/slub.c:5265 qd_alloc+0x4e/0x2f0 fs/gfs2/quota.c:234 gfs2_quota_init+0x67a/0x13c0 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x180/0x2d0 fs/gfs2/super.c:149 gfs2_fill_super+0x2bbd/0x2f90 fs/gfs2/ops_fstype.c:1275 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1699 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1759 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7bf/0x23a0 fs/namespace.c:4022 page last free pid 6450 tgid 6450 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] free_unref_folios+0xa15/0x1600 mm/page_alloc.c:2958 folios_put_refs+0x4be/0x750 mm/swap.c:1002 release_pages+0x2a2/0x4b0 mm/swap.c:1042 io_free_region+0x102/0x2b0 io_uring/memmap.c:102 io_rings_free io_uring/io_uring.c:2756 [inline] io_ring_ctx_free io_uring/io_uring.c:2863 [inline] io_ring_exit_work+0xa0a/0x1130 io_uring/io_uring.c:3073 process_one_work+0x9ba/0x1b20 kernel/workqueue.c:3257 process_scheduled_works kernel/workqueue.c:3340 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3421 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Memory state around the buggy address: ffff88803a2d7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88803a2d7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88803a2d8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803a2d8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803a2d8100: fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================