================================================================== BUG: KASAN: use-after-free in __lock_acquire+0xf7/0x7c50 kernel/locking/lockdep.c:4919 Read of size 8 at addr ffff88807cf14bb0 by task gfs2_quotad/4817 CPU: 1 PID: 4817 Comm: gfs2_quotad Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/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 5133: 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 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xae/0x230 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x22a/0x7e0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1271 [inline] alloc_skb_with_frags+0xa7/0x710 net/core/skbuff.c:6162 sock_alloc_send_pskb+0x853/0x980 net/core/sock.c:2755 sock_alloc_send_skb include/net/sock.h:1962 [inline] rawv6_send_hdrinc+0x2f8/0x1750 net/ipv6/raw.c:607 rawv6_sendmsg+0x1179/0x1730 net/ipv6/raw.c:912 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] sock_sendmsg net/socket.c:753 [inline] kernel_sendmsg+0x214/0x310 net/socket.c:777 sock_no_sendpage+0x10a/0x160 net/core/sock.c:3260 kernel_sendpage+0x2cd/0x640 net/socket.c:3606 sock_sendpage+0x7a/0xb0 net/socket.c:1081 pipe_to_sendpage+0x225/0x310 fs/splice.c:360 splice_from_pipe_feed fs/splice.c:414 [inline] __splice_from_pipe+0x302/0x820 fs/splice.c:558 splice_from_pipe fs/splice.c:593 [inline] generic_splice_sendpage+0xf5/0x150 fs/splice.c:742 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:950 splice_direct_to_actor+0x480/0xb60 fs/splice.c:896 do_splice_direct+0x1b0/0x2b0 fs/splice.c:1002 do_sendfile+0x5cc/0xeb0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x13b/0x190 fs/read_write.c:1309 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 5133: 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 skb_free_head net/core/skbuff.c:762 [inline] skb_release_data+0x5db/0x7c0 net/core/skbuff.c:791 skb_release_all net/core/skbuff.c:856 [inline] __kfree_skb net/core/skbuff.c:870 [inline] kfree_skb_reason+0x163/0x370 net/core/skbuff.c:893 ip6_rcv_core+0xe58/0x1750 net/ipv6/ip6_input.c:-1 ipv6_rcv+0x6e/0xb0 net/ipv6/ip6_input.c:307 __netif_receive_skb_one_core net/core/dev.c:5581 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5695 process_backlog+0x37c/0x6e0 net/core/dev.c:6023 __napi_poll+0xc0/0x460 net/core/dev.c:6590 napi_poll net/core/dev.c:6657 [inline] net_rx_action+0x5b1/0xad0 net/core/dev.c:6771 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 do_softirq+0x13b/0x200 kernel/softirq.c:497 __local_bh_enable_ip+0x174/0x1b0 kernel/softirq.c:421 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:861 [inline] __dev_queue_xmit+0x15c9/0x3760 net/core/dev.c:4373 dev_queue_xmit include/linux/netdevice.h:3051 [inline] neigh_hh_output include/net/neighbour.h:529 [inline] neigh_output include/net/neighbour.h:543 [inline] ip6_finish_output2+0xd6b/0x1590 net/ipv6/ip6_output.c:138 dst_output include/net/dst.h:453 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] rawv6_send_hdrinc+0xe40/0x1750 net/ipv6/raw.c:654 rawv6_sendmsg+0x1179/0x1730 net/ipv6/raw.c:912 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] sock_sendmsg net/socket.c:753 [inline] kernel_sendmsg+0x214/0x310 net/socket.c:777 sock_no_sendpage+0x10a/0x160 net/core/sock.c:3260 kernel_sendpage+0x2cd/0x640 net/socket.c:3606 sock_sendpage+0x7a/0xb0 net/socket.c:1081 pipe_to_sendpage+0x225/0x310 fs/splice.c:360 splice_from_pipe_feed fs/splice.c:414 [inline] __splice_from_pipe+0x302/0x820 fs/splice.c:558 splice_from_pipe fs/splice.c:593 [inline] generic_splice_sendpage+0xf5/0x150 fs/splice.c:742 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:950 splice_direct_to_actor+0x480/0xb60 fs/splice.c:896 do_splice_direct+0x1b0/0x2b0 fs/splice.c:1002 do_sendfile+0x5cc/0xeb0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x13b/0x190 fs/read_write.c:1309 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 ffff88807cf14000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 2992 bytes inside of 8192-byte region [ffff88807cf14000, ffff88807cf16000) The buggy address belongs to the physical page: page:ffffea0001f3c400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7cf10 head:ffffea0001f3c400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea00009caa00 dead000000000004 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 3923, tgid 3923 (ifup), ts 45880257779, free_ts 45663796615 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 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:154 [inline] mas_alloc_nodes+0x2ec/0x890 lib/maple_tree.c:1279 mas_node_count_gfp lib/maple_tree.c:1361 [inline] mas_preallocate+0x161/0x3c0 lib/maple_tree.c:5809 do_mas_align_munmap+0x1f3/0x1220 mm/mmap.c:2453 do_mas_munmap+0x240/0x2b0 mm/mmap.c:2650 __mmap_region mm/mmap.c:2698 [inline] mmap_region+0x6e5/0x1c70 mm/mmap.c:2916 do_mmap+0x958/0xfd0 mm/mmap.c:1436 vm_mmap_pgoff+0x1b2/0x2b0 mm/util.c:520 ksys_mmap_pgoff+0x516/0x6f0 mm/mmap.c:1482 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: ffff88807cf14a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807cf14b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88807cf14b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807cf14c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807cf14c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================