================================================================== BUG: KASAN: slab-use-after-free in __list_lru_walk_one+0x40f/0x4c0 mm/list_lru.c:293 Read of size 8 at addr ffff88807eb36858 by task syz.2.2780/18844 CPU: 0 UID: 0 PID: 18844 Comm: syz.2.2780 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+0x14f/0x2d0 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+0x493/0x5b0 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:0x7f3616d8f749 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:00007f3617c2c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f3616fe6090 RCX: 00007f3616d8f749 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f3616e13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3616fe6128 R14: 00007f3616fe6090 R15: 00007ffd9499a8b8 Allocated by task 16844: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x25e/0x770 mm/slub.c:5270 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:1691 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1751 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 23: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kmem_cache_free+0x2d8/0x770 mm/slub.c:6781 gfs2_qd_dealloc+0x69/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x15f0 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x950 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3f7/0xae0 kernel/smpboot.c:160 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 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556 __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 fs/sync.c:56 [inline] sync_filesystem+0x111/0x290 fs/sync.c:30 generic_shutdown_super+0x74/0x390 fs/super.c:622 kill_block_super+0x3b/0x90 fs/super.c:1722 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 ffff88807eb367e0 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 120 bytes inside of freed 272-byte region [ffff88807eb367e0, ffff88807eb368f0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807eb36690 pfn:0x7eb36 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801cbfa3c0 dead000000000122 0000000000000000 raw: ffff88807eb36690 00000000800c0006 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 6939, tgid 6937 (syz.3.266), ts 167634881319, free_ts 166832374482 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x25f/0x2430 mm/page_alloc.c:5210 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2486 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:4656 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] kmem_cache_alloc_noprof+0x44d/0x770 mm/slub.c:5270 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:1691 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1751 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 5833 tgid 5833 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7df/0x1170 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x130/0x170 mm/slub.c:3886 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4c/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kvmalloc_node_noprof+0x365/0xa40 mm/slub.c:7136 xt_jumpstack_alloc net/netfilter/x_tables.c:1356 [inline] xt_replace_table+0x1ed/0x970 net/netfilter/x_tables.c:1395 __do_replace+0x1cf/0x9f0 net/ipv4/netfilter/arp_tables.c:912 do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline] do_ip6t_set_ctl+0x94a/0xc50 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x8d/0xf0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x135/0x170 net/ipv6/ipv6_sockglue.c:978 tcp_setsockopt+0xa7/0x100 net/ipv4/tcp.c:4166 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2322 __sys_setsockopt+0x1a0/0x230 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2353 [inline] __se_sys_setsockopt net/socket.c:2350 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2350 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 Memory state around the buggy address: ffff88807eb36700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807eb36780: fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb fb >ffff88807eb36800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807eb36880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff88807eb36900: fc fc 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 ffff88807eb36810 by task syz.2.2780/18844 CPU: 0 UID: 0 PID: 18844 Comm: syz.2.2780 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+0x14f/0x2d0 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+0x493/0x5b0 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:0x7f3616d8f749 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:00007f3617c2c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f3616fe6090 RCX: 00007f3616d8f749 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f3616e13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3616fe6128 R14: 00007f3616fe6090 R15: 00007ffd9499a8b8 Allocated by task 16844: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x25e/0x770 mm/slub.c:5270 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:1691 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1751 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 23: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kmem_cache_free+0x2d8/0x770 mm/slub.c:6781 gfs2_qd_dealloc+0x69/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x15f0 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x950 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3f7/0xae0 kernel/smpboot.c:160 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 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556 __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 fs/sync.c:56 [inline] sync_filesystem+0x111/0x290 fs/sync.c:30 generic_shutdown_super+0x74/0x390 fs/super.c:622 kill_block_super+0x3b/0x90 fs/super.c:1722 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 ffff88807eb367e0 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 48 bytes inside of freed 272-byte region [ffff88807eb367e0, ffff88807eb368f0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807eb36690 pfn:0x7eb36 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801cbfa3c0 dead000000000122 0000000000000000 raw: ffff88807eb36690 00000000800c0006 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 6939, tgid 6937 (syz.3.266), ts 167634881319, free_ts 166832374482 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x25f/0x2430 mm/page_alloc.c:5210 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2486 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:4656 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] kmem_cache_alloc_noprof+0x44d/0x770 mm/slub.c:5270 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:1691 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1751 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 5833 tgid 5833 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7df/0x1170 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x130/0x170 mm/slub.c:3886 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4c/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kvmalloc_node_noprof+0x365/0xa40 mm/slub.c:7136 xt_jumpstack_alloc net/netfilter/x_tables.c:1356 [inline] xt_replace_table+0x1ed/0x970 net/netfilter/x_tables.c:1395 __do_replace+0x1cf/0x9f0 net/ipv4/netfilter/arp_tables.c:912 do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline] do_ip6t_set_ctl+0x94a/0xc50 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x8d/0xf0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x135/0x170 net/ipv6/ipv6_sockglue.c:978 tcp_setsockopt+0xa7/0x100 net/ipv4/tcp.c:4166 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2322 __sys_setsockopt+0x1a0/0x230 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2353 [inline] __se_sys_setsockopt net/socket.c:2350 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2350 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 Memory state around the buggy address: ffff88807eb36700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807eb36780: fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb fb >ffff88807eb36800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807eb36880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff88807eb36900: fc fc 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 ffff88807eb36810 by task syz.2.2780/18844 CPU: 0 UID: 0 PID: 18844 Comm: syz.2.2780 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+0x14f/0x2d0 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+0x493/0x5b0 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:0x7f3616d8f749 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:00007f3617c2c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f3616fe6090 RCX: 00007f3616d8f749 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f3616e13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3616fe6128 R14: 00007f3616fe6090 R15: 00007ffd9499a8b8 Allocated by task 16844: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x25e/0x770 mm/slub.c:5270 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:1691 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1751 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 23: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kmem_cache_free+0x2d8/0x770 mm/slub.c:6781 gfs2_qd_dealloc+0x69/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x15f0 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x950 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3f7/0xae0 kernel/smpboot.c:160 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 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556 __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 fs/sync.c:56 [inline] sync_filesystem+0x111/0x290 fs/sync.c:30 generic_shutdown_super+0x74/0x390 fs/super.c:622 kill_block_super+0x3b/0x90 fs/super.c:1722 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 ffff88807eb367e0 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 48 bytes inside of freed 272-byte region [ffff88807eb367e0, ffff88807eb368f0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807eb36690 pfn:0x7eb36 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801cbfa3c0 dead000000000122 0000000000000000 raw: ffff88807eb36690 00000000800c0006 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 6939, tgid 6937 (syz.3.266), ts 167634881319, free_ts 166832374482 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x25f/0x2430 mm/page_alloc.c:5210 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2486 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:4656 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] kmem_cache_alloc_noprof+0x44d/0x770 mm/slub.c:5270 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:1691 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1751 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 5833 tgid 5833 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7df/0x1170 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x130/0x170 mm/slub.c:3886 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4c/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kvmalloc_node_noprof+0x365/0xa40 mm/slub.c:7136 xt_jumpstack_alloc net/netfilter/x_tables.c:1356 [inline] xt_replace_table+0x1ed/0x970 net/netfilter/x_tables.c:1395 __do_replace+0x1cf/0x9f0 net/ipv4/netfilter/arp_tables.c:912 do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline] do_ip6t_set_ctl+0x94a/0xc50 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x8d/0xf0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x135/0x170 net/ipv6/ipv6_sockglue.c:978 tcp_setsockopt+0xa7/0x100 net/ipv4/tcp.c:4166 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2322 __sys_setsockopt+0x1a0/0x230 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2353 [inline] __se_sys_setsockopt net/socket.c:2350 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2350 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 Memory state around the buggy address: ffff88807eb36700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807eb36780: fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb fb >ffff88807eb36800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807eb36880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff88807eb36900: fc fc 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 ffff88807eb36810 by task syz.2.2780/18844 CPU: 0 UID: 0 PID: 18844 Comm: syz.2.2780 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+0x14f/0x2d0 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+0x493/0x5b0 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:0x7f3616d8f749 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:00007f3617c2c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f3616fe6090 RCX: 00007f3616d8f749 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007f3616e13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3616fe6128 R14: 00007f3616fe6090 R15: 00007ffd9499a8b8 Allocated by task 16844: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x25e/0x770 mm/slub.c:5270 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:1691 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1751 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 23: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kmem_cache_free+0x2d8/0x770 mm/slub.c:6781 gfs2_qd_dealloc+0x69/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x79c/0x15f0 kernel/rcu/tree.c:2857 handle_softirqs+0x219/0x950 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3f7/0xae0 kernel/smpboot.c:160 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 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556 __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 fs/sync.c:56 [inline] sync_filesystem+0x111/0x290 fs/sync.c:30 generic_shutdown_super+0x74/0x390 fs/super.c:622 kill_block_super+0x3b/0x90 fs/super.c:1722 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 ffff88807eb367e0 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 48 bytes inside of freed 272-byte region [ffff88807eb367e0, ffff88807eb368f0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88807eb36690 pfn:0x7eb36 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801cbfa3c0 dead000000000122 0000000000000000 raw: ffff88807eb36690 00000000800c0006 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 6939, tgid 6937 (syz.3.266), ts 167634881319, free_ts 166832374482 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1af/0x220 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0xd0b/0x31a0 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x25f/0x2430 mm/page_alloc.c:5210 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2486 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:4656 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] kmem_cache_alloc_noprof+0x44d/0x770 mm/slub.c:5270 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:1691 gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1332 vfs_get_tree+0x8e/0x330 fs/super.c:1751 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 5833 tgid 5833 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7df/0x1170 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x130/0x170 mm/slub.c:3886 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4c/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kvmalloc_node_noprof+0x365/0xa40 mm/slub.c:7136 xt_jumpstack_alloc net/netfilter/x_tables.c:1356 [inline] xt_replace_table+0x1ed/0x970 net/netfilter/x_tables.c:1395 __do_replace+0x1cf/0x9f0 net/ipv4/netfilter/arp_tables.c:912 do_replace net/ipv6/netfilter/ip6_tables.c:1158 [inline] do_ip6t_set_ctl+0x94a/0xc50 net/ipv6/netfilter/ip6_tables.c:1644 nf_setsockopt+0x8d/0xf0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x135/0x170 net/ipv6/ipv6_sockglue.c:978 tcp_setsockopt+0xa7/0x100 net/ipv4/tcp.c:4166 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2322 __sys_setsockopt+0x1a0/0x230 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2353 [inline] __se_sys_setsockopt net/socket.c:2350 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2350 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 Memory state around the buggy address: ffff88807eb36700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807eb36780: fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb fb >ffff88807eb36800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807eb36880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff88807eb36900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================