================================================================== BUG: KASAN: use-after-free in __lock_acquire+0xf7/0x7c50 kernel/locking/lockdep.c:4919 Read of size 8 at addr ffff88807ccdcbb0 by task gfs2_quotad/4628 CPU: 1 PID: 4628 Comm: gfs2_quotad Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 __lock_acquire+0xf7/0x7c50 kernel/locking/lockdep.c:4919 lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162 finish_wait+0xb8/0x1d0 kernel/sched/wait.c:410 gfs2_quotad+0x4e6/0x670 fs/gfs2/quota.c:1579 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 4620: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] init_sbd fs/gfs2/ops_fstype.c:77 [inline] gfs2_fill_super+0x117/0x1f80 fs/gfs2/ops_fstype.c:1148 get_tree_bdev+0x3f1/0x610 fs/super.c:1366 gfs2_get_tree+0x4d/0x1e0 fs/gfs2/ops_fstype.c:1327 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88807ccdc000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 2992 bytes inside of 8192-byte region [ffff88807ccdc000, ffff88807ccde000) The buggy address belongs to the physical page: page:ffffea0001f33600 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88807ccdc000 pfn:0x7ccd8 head:ffffea0001f33600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0000a28600 dead000000000002 ffff888017442280 raw: ffff88807ccdc000 0000000080020000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 4383, tgid 4383 (syz.1.2), ts 80964225223, free_ts 80854681283 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node+0xa0/0x240 mm/slab_common.c:943 kmalloc_node include/linux/slab.h:589 [inline] kvmalloc_node+0x6c/0x180 mm/util.c:581 kvmalloc include/linux/slab.h:716 [inline] kvzalloc include/linux/slab.h:724 [inline] snd_pcm_plugin_alloc+0x19c/0x780 sound/core/oss/pcm_plugin.c:74 snd_pcm_plug_alloc+0x1c7/0x270 sound/core/oss/pcm_plugin.c:121 snd_pcm_oss_change_params_locked+0x295b/0x3ee0 sound/core/oss/pcm_oss.c:1052 snd_pcm_oss_make_ready_locked sound/core/oss/pcm_oss.c:1197 [inline] snd_pcm_oss_sync+0x363/0xc00 sound/core/oss/pcm_oss.c:1679 snd_pcm_oss_release+0xfe/0x240 sound/core/oss/pcm_oss.c:2589 __fput+0x22c/0x920 fs/file_table.c:320 task_work_run+0x1ca/0x250 kernel/task_work.c:203 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_slab mm/slub.c:2036 [inline] discard_slab mm/slub.c:2042 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2591 put_cpu_partial+0x17c/0x250 mm/slub.c:2667 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3383 mt_alloc_one lib/maple_tree.c:152 [inline] mas_alloc_nodes+0x2ec/0x890 lib/maple_tree.c:1277 mas_node_count_gfp lib/maple_tree.c:1359 [inline] mas_preallocate+0x161/0x3c0 lib/maple_tree.c:5807 vma_expand+0x27a/0x880 mm/mmap.c:544 __mmap_region mm/mmap.c:2740 [inline] mmap_region+0xc24/0x1c70 mm/mmap.c:2916 do_mmap+0x958/0xfd0 mm/mmap.c:1436 vm_mmap_pgoff+0x1b2/0x2b0 mm/util.c:520 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 Memory state around the buggy address: ffff88807ccdca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807ccdcb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807ccdcb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807ccdcc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807ccdcc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================