================================================================== BUG: KASAN: use-after-free in __lock_acquire+0xf7/0x7c50 kernel/locking/lockdep.c:4919 Read of size 8 at addr ffff888072c44bb0 by task gfs2_quotad/4450 CPU: 0 PID: 4450 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 4435: 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 ffff888072c44000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 2992 bytes inside of 8192-byte region [ffff888072c44000, ffff888072c46000) The buggy address belongs to the physical page: page:ffffea0001cb1000 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888072c44000 pfn:0x72c40 head:ffffea0001cb1000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0001e79a08 ffffea0001cc0808 ffff888017442280 raw: ffff888072c44000 0000000000020000 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 4260, tgid 4260 (syz-executor), ts 67116326646, free_ts 66134638686 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 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+0x1081/0x1f50 security/tomoyo/audit.c:264 tomoyo_supervisor+0x326/0x10b0 security/tomoyo/common.c:2088 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x146/0x1e0 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:672 [inline] tomoyo_find_next_domain+0x157a/0x1a40 security/tomoyo/domain.c:882 tomoyo_bprm_check_security+0x100/0x150 security/tomoyo/tomoyo.c:101 security_bprm_check+0x5e/0x90 security/security.c:869 search_binary_handler fs/exec.c:1752 [inline] exec_binprm fs/exec.c:1805 [inline] bprm_execve+0xa77/0x18a0 fs/exec.c:1874 do_execveat_common+0x51b/0x6c0 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: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 __skb_frag_unref include/linux/skbuff.h:3459 [inline] skb_release_data+0x499/0x7c0 net/core/skbuff.c:785 skb_release_all net/core/skbuff.c:856 [inline] __kfree_skb+0x4c/0x60 net/core/skbuff.c:870 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3412 [inline] tcp_ack+0x1f57/0x65b0 net/ipv4/tcp_input.c:3971 tcp_rcv_established+0xbb3/0x1d30 net/ipv4/tcp_input.c:6102 tcp_v4_do_rcv+0x48d/0xb00 net/ipv4/tcp_ipv4.c:1683 tcp_v4_rcv+0x2789/0x2e30 net/ipv4/tcp_ipv4.c:2114 ip_protocol_deliver_rcu+0x3ad/0x780 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2c7/0x510 net/ipv4/ip_input.c:233 NF_HOOK+0x2ff/0x390 include/linux/netfilter.h:302 dst_input include/net/dst.h:463 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:631 [inline] ip_sublist_rcv+0xa30/0xd10 net/ipv4/ip_input.c:639 ip_list_rcv+0x3df/0x430 net/ipv4/ip_input.c:674 __netif_receive_skb_list_ptype net/core/dev.c:5624 [inline] __netif_receive_skb_list_core+0x574/0x740 net/core/dev.c:5672 __netif_receive_skb_list net/core/dev.c:5724 [inline] netif_receive_skb_list_internal+0x90f/0xc50 net/core/dev.c:5815 gro_normal_list include/net/gro.h:433 [inline] napi_complete_done+0x37d/0x830 net/core/dev.c:6156 Memory state around the buggy address: ffff888072c44a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888072c44b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888072c44b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888072c44c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888072c44c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================