================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x107/0x7c40 kernel/locking/lockdep.c:4933 Read of size 8 at addr ffff8880738d8bb0 by task gfs2_quotad/4436 CPU: 0 PID: 4436 Comm: gfs2_quotad Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e 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+0x107/0x7c40 kernel/locking/lockdep.c:4933 lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5676 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162 finish_wait+0xbb/0x1c0 kernel/sched/wait.c:410 gfs2_quotad+0x501/0x690 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 4677: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 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/0xa40 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+0x14e/0x360 crypto/api.c:625 cryptd_alloc_skcipher+0x102/0x220 crypto/cryptd.c:916 simd_skcipher_init+0x63/0x140 crypto/simd.c:122 crypto_create_tfm_node+0x151/0x380 crypto/api.c:530 crypto_alloc_tfm_node+0x177/0x360 crypto/api.c:631 fscrypt_allocate_skcipher fs/crypto/keysetup.c:91 [inline] fscrypt_prepare_key+0x89/0x350 fs/crypto/keysetup.c:144 fscrypt_set_per_file_enc_key fs/crypto/keysetup.c:170 [inline] fscrypt_setup_v2_file_key+0x335/0x6f0 fs/crypto/keysetup.c:359 setup_file_encryption_key fs/crypto/keysetup.c:470 [inline] fscrypt_setup_encryption_info+0x684/0xbf0 fs/crypto/keysetup.c:550 fscrypt_prepare_new_inode+0x213/0x2e0 fs/crypto/keysetup.c:695 __ext4_new_inode+0x7ad/0x3b50 fs/ext4/ialloc.c:996 ext4_create+0x234/0x470 fs/ext4/namei.c:2883 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0x11b9/0x2f10 fs/namei.c:3831 do_filp_open+0x1ee/0x420 fs/namei.c:3861 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 4677: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1f0 mm/kasan/common.c:237 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x133/0x1b0 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] __kmem_cache_free+0xb6/0x200 mm/slub.c:3700 cryptomgr_notify+0x5fe/0xa40 crypto/algboss.c:-1 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+0x14e/0x360 crypto/api.c:625 cryptd_alloc_skcipher+0x102/0x220 crypto/cryptd.c:916 simd_skcipher_init+0x63/0x140 crypto/simd.c:122 crypto_create_tfm_node+0x151/0x380 crypto/api.c:530 crypto_alloc_tfm_node+0x177/0x360 crypto/api.c:631 fscrypt_allocate_skcipher fs/crypto/keysetup.c:91 [inline] fscrypt_prepare_key+0x89/0x350 fs/crypto/keysetup.c:144 fscrypt_set_per_file_enc_key fs/crypto/keysetup.c:170 [inline] fscrypt_setup_v2_file_key+0x335/0x6f0 fs/crypto/keysetup.c:359 setup_file_encryption_key fs/crypto/keysetup.c:470 [inline] fscrypt_setup_encryption_info+0x684/0xbf0 fs/crypto/keysetup.c:550 fscrypt_prepare_new_inode+0x213/0x2e0 fs/crypto/keysetup.c:695 __ext4_new_inode+0x7ad/0x3b50 fs/ext4/ialloc.c:996 ext4_create+0x234/0x470 fs/ext4/namei.c:2883 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0x11b9/0x2f10 fs/namei.c:3831 do_filp_open+0x1ee/0x420 fs/namei.c:3861 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880738d8000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 2992 bytes inside of 8192-byte region [ffff8880738d8000, ffff8880738da000) The buggy address belongs to the physical page: page:ffffea0001ce3600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x738d8 head:ffffea0001ce3600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001e81600 dead000000000005 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 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4266, tgid 4266 (syz-executor), ts 67633456440, free_ts 67269446635 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2d0 mm/slub.c:1997 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x126/0x270 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] tomoyo_print_bprm security/tomoyo/audit.c:26 [inline] tomoyo_init_log+0x10a3/0x1f90 security/tomoyo/audit.c:264 tomoyo_supervisor+0x361/0x11b0 security/tomoyo/common.c:2088 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x14e/0x1f0 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:672 [inline] tomoyo_find_next_domain+0x12dd/0x1a30 security/tomoyo/domain.c:882 tomoyo_bprm_check_security+0x100/0x150 security/tomoyo/tomoyo.c:101 security_bprm_check+0x5e/0x90 security/security.c:873 search_binary_handler fs/exec.c:1752 [inline] exec_binprm fs/exec.c:1805 [inline] bprm_execve+0xa5d/0x17e0 fs/exec.c:1874 do_execveat_common+0x501/0x6b0 fs/exec.c:1979 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 page_to_skb+0x46b/0xac0 drivers/net/virtio_net.c:566 receive_mergeable drivers/net/virtio_net.c:1162 [inline] receive_buf+0x360/0x4e00 drivers/net/virtio_net.c:1301 virtnet_receive drivers/net/virtio_net.c:1596 [inline] virtnet_poll+0x5ed/0x1140 drivers/net/virtio_net.c:1717 __napi_poll+0xbb/0x460 net/core/dev.c:6628 napi_poll net/core/dev.c:6695 [inline] net_rx_action+0x622/0xbc0 net/core/dev.c:6809 handle_softirqs+0x291/0x910 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 common_interrupt+0xb5/0xd0 arch/x86/kernel/irq.c:242 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:682 Memory state around the buggy address: ffff8880738d8a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880738d8b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880738d8b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880738d8c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880738d8c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================