================================================================== BUG: KASAN: use-after-free in __lock_acquire+0xf0/0x6544 kernel/locking/lockdep.c:4919 Read of size 8 at addr ffff0000d1a14bb0 by task gfs2_quotad/4870 CPU: 0 PID: 4870 Comm: gfs2_quotad Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0x100 mm/kasan/report.c:524 __asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:351 __lock_acquire+0xf0/0x6544 kernel/locking/lockdep.c:4919 lock_acquire+0x20c/0x644 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x6c/0xb4 kernel/locking/spinlock.c:162 finish_wait+0xc8/0x1ac kernel/sched/wait.c:410 gfs2_quotad+0x390/0x4fc fs/gfs2/quota.c:1579 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 Allocated by task 5723: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x28/0x34 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa0/0xb8 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] cryptomgr_schedule_probe crypto/algboss.c:85 [inline] cryptomgr_notify+0x164/0x8d4 crypto/algboss.c:238 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0xf0/0x198 kernel/notifier.c:382 crypto_probing_notify crypto/api.c:309 [inline] crypto_alg_mod_lookup+0x298/0x500 crypto/api.c:336 crypto_find_alg crypto/api.c:588 [inline] crypto_alloc_tfm_node+0x140/0x34c crypto/api.c:625 crypto_alloc_tfm crypto/internal.h:109 [inline] crypto_alloc_skcipher+0x40/0x54 crypto/skcipher.c:756 skcipher_bind+0x34/0x48 crypto/algif_skcipher.c:295 alg_bind+0x2a0/0x4d0 crypto/af_alg.c:178 __sys_bind+0x1dc/0x27c net/socket.c:1811 __do_sys_bind net/socket.c:1822 [inline] __se_sys_bind net/socket.c:1820 [inline] __arm64_sys_bind+0x7c/0x94 net/socket.c:1820 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Freed by task 5723: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_free_info+0x3c/0x60 mm/kasan/generic.c:516 ____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:236 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:244 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x16c/0x1ec mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xc0/0x224 mm/slub.c:3700 kfree+0xd0/0x1ac mm/slab_common.c:988 cryptomgr_notify+0x5a4/0x8d4 crypto/algboss.c:-1 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0xf0/0x198 kernel/notifier.c:382 crypto_probing_notify crypto/api.c:309 [inline] crypto_alg_mod_lookup+0x298/0x500 crypto/api.c:336 crypto_find_alg crypto/api.c:588 [inline] crypto_alloc_tfm_node+0x140/0x34c crypto/api.c:625 crypto_alloc_tfm crypto/internal.h:109 [inline] crypto_alloc_skcipher+0x40/0x54 crypto/skcipher.c:756 skcipher_bind+0x34/0x48 crypto/algif_skcipher.c:295 alg_bind+0x2a0/0x4d0 crypto/af_alg.c:178 __sys_bind+0x1dc/0x27c net/socket.c:1811 __do_sys_bind net/socket.c:1822 [inline] __se_sys_bind net/socket.c:1820 [inline] __arm64_sys_bind+0x7c/0x94 net/socket.c:1820 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 call_rcu+0x100/0x954 kernel/rcu/tree.c:2849 fat_put_super+0x98/0xac fs/fat/inode.c:742 generic_shutdown_super+0x130/0x324 fs/super.c:501 kill_block_super+0x70/0xdc fs/super.c:1470 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xe8/0x108 fs/super.c:363 cleanup_mnt+0x37c/0x404 fs/namespace.c:1191 __cleanup_mnt+0x20/0x30 fs/namespace.c:1198 task_work_run+0x1ec/0x270 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2038/0x2b28 arch/arm64/kernel/signal.c:1137 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x98/0x138 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 The buggy address belongs to the object at ffff0000d1a14000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 2992 bytes inside of 8192-byte region [ffff0000d1a14000, ffff0000d1a16000) The buggy address belongs to the physical page: page:00000000488ba9cc refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000d1a10000 pfn:0x111a10 head:00000000488ba9cc order:3 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc00036c5400 dead000000000002 ffff0000c0002c00 raw: ffff0000d1a10000 0000000080020001 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d1a14a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d1a14b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000d1a14b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000d1a14c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d1a14c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 0 PID: 4870 Comm: gfs2_quotad Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 assign_lock_key+0x224/0x258 kernel/locking/lockdep.c:974 register_lock_class+0x1ac/0x694 kernel/locking/lockdep.c:1287 __lock_acquire+0x150/0x6544 kernel/locking/lockdep.c:4928 lock_acquire+0x20c/0x644 kernel/locking/lockdep.c:5662 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x6c/0xb4 kernel/locking/spinlock.c:162 finish_wait+0xc8/0x1ac kernel/sched/wait.c:410 gfs2_quotad+0x390/0x4fc fs/gfs2/quota.c:1579 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 list_del corruption. prev->next should be ffff800020f77d98, but was 0000000000000000. (prev=ffff0000d1a14bd8) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:61! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4870 Comm: gfs2_quotad Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 624000c5 (nZCv daIF +PAN -UAO +TCO -DIT -SSBS BTYPE=--) pc : __list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59 lr : __list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59 sp : ffff800020f77c70 x29: ffff800020f77c70 x28: 0000000000000000 x27: 0000000000000bb8 x26: 0000000000001770 x25: dfff800000000000 x24: dfff800000000000 x23: ffff0000d1a147c0 x22: dfff800000000000 x21: ffff0000d1a14bd8 x20: ffff0000d1a14bd8 x19: ffff800020f77d98 x18: ffff800011abbcc0 x17: 20747562202c3839 x16: ffff8000082e7de8 x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000ff0100 x11: ff0080000830a28c x10: 0000000000000000 x9 : 125ec2d99001ae00 x8 : 125ec2d99001ae00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800020f77738 x4 : ffff8000151a4920 x3 : ffff800008311fcc x2 : 0000000000000001 x1 : 0000000100000001 x0 : 000000000000006d Call trace: __list_del_entry_valid+0x13c/0x158 lib/list_debug.c:59 __list_del_entry include/linux/list.h:134 [inline] list_del_init include/linux/list.h:206 [inline] finish_wait+0xd4/0x1ac kernel/sched/wait.c:411 gfs2_quotad+0x390/0x4fc fs/gfs2/quota.c:1579 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:850 Code: 91028000 aa1303e1 aa1503e3 95bfbbe3 (d4210000) ---[ end trace 0000000000000000 ]---