================================================================== BUG: KASAN: use-after-free in __lock_acquire+0xf7/0x7c50 kernel/locking/lockdep.c:4919 Read of size 8 at addr ffff888030038bb0 by task gfs2_quotad/4744 CPU: 1 PID: 4744 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 5222: 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] kmalloc_array include/linux/slab.h:614 [inline] kcalloc include/linux/slab.h:646 [inline] ceph_alloc_options+0xae/0x1c0 net/ceph/ceph_common.c:317 ceph_init_fs_context+0x64/0x4a0 fs/ceph/super.c:1341 alloc_fs_context+0x5fd/0x780 fs/fs_context.c:290 __do_sys_fsopen fs/fsopen.c:143 [inline] __se_sys_fsopen+0xa0/0x2a0 fs/fsopen.c:121 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 Freed by task 5222: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2d/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x131/0x1a0 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xb6/0x1f0 mm/slub.c:3700 ceph_destroy_options+0xd8/0x120 net/ceph/ceph_common.c:348 ceph_destroy_client+0xa0/0x110 net/ceph/ceph_common.c:773 destroy_fs_client+0x192/0x200 fs/ceph/super.c:872 deactivate_locked_super+0x93/0xf0 fs/super.c:332 ceph_get_tree+0x971/0x13f0 fs/ceph/super.c:1279 vfs_get_tree+0x88/0x270 fs/super.c:1573 vfs_fsconfig_locked+0x22f/0x3f0 fs/fsopen.c:238 __do_sys_fsconfig fs/fsopen.c:445 [inline] __se_sys_fsconfig+0x61b/0x750 fs/fsopen.c:320 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 ffff888030038000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 2992 bytes inside of 8192-byte region [ffff888030038000, ffff88803003a000) The buggy address belongs to the physical page: page:ffffea0000c00e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x30038 head:ffffea0000c00e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001517400 dead000000000002 ffff888017442280 raw: 0000000000000000 0000000000020002 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 21225509621, free_ts 0 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_page_interleave+0x24/0x1e0 mm/mempolicy.c:2115 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 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] cryptomgr_schedule_probe crypto/algboss.c:85 [inline] cryptomgr_notify+0x18a/0x9e0 crypto/algboss.c:238 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0x103/0x1b0 kernel/notifier.c:382 crypto_probing_notify crypto/api.c:306 [inline] crypto_alg_mod_lookup+0x1bf/0x570 crypto/api.c:336 crypto_find_alg crypto/api.c:588 [inline] crypto_alloc_tfm_node+0x149/0x330 crypto/api.c:625 crypto_alloc_tfm crypto/internal.h:109 [inline] crypto_alloc_sync_skcipher+0x2f/0xc0 crypto/skcipher.c:768 rxkad_init+0x1c/0xe0 net/rxrpc/rxkad.c:1357 rxrpc_init_security+0x8a/0x17c net/rxrpc/security.c:31 page_owner free stack trace missing Memory state around the buggy address: ffff888030038a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888030038b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888030038b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888030038c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888030038c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================