================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x107/0x7bd0 kernel/locking/lockdep.c:4919 Read of size 8 at addr ffff88805885cbb0 by task gfs2_quotad/5511 CPU: 0 PID: 5511 Comm: gfs2_quotad Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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/0x7bd0 kernel/locking/lockdep.c:4919 lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662 __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 30: 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 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xb0/0x240 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x226/0x7d0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1303 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:748 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline] nsim_dev_trap_report_work+0x24f/0xa80 drivers/net/netdevsim/dev.c:851 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 30: 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 skb_free_head net/core/skbuff.c:762 [inline] skb_release_data+0x5e9/0x7e0 net/core/skbuff.c:791 skb_release_all net/core/skbuff.c:856 [inline] __kfree_skb net/core/skbuff.c:870 [inline] consume_skb+0xa2/0x100 net/core/skbuff.c:1035 nsim_dev_trap_report drivers/net/netdevsim/dev.c:821 [inline] nsim_dev_trap_report_work+0x71f/0xa80 drivers/net/netdevsim/dev.c:851 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88805885c000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 2992 bytes inside of 4096-byte region [ffff88805885c000, ffff88805885d000) The buggy address belongs to the physical page: page:ffffea0001621600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x58858 head:ffffea0001621600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888017442140 raw: 0000000000000000 0000000000040004 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 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 30, tgid 30 (kworker/u4:2), ts 161752604248, free_ts 161676511463 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 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node_track_caller+0xa0/0x240 mm/slab_common.c:956 kmalloc_reserve net/core/skbuff.c:446 [inline] __alloc_skb+0x226/0x7d0 net/core/skbuff.c:515 alloc_skb include/linux/skbuff.h:1303 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:748 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline] nsim_dev_trap_report_work+0x24f/0xa80 drivers/net/netdevsim/dev.c:851 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 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 __skb_frag_unref include/linux/skbuff.h:3491 [inline] skb_release_data+0x4a7/0x7e0 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+0x2210/0x6630 net/ipv4/tcp_input.c:3971 tcp_rcv_established+0xf3f/0x1de0 net/ipv4/tcp_input.c:6022 tcp_v4_do_rcv+0x67c/0xaf0 net/ipv4/tcp_ipv4.c:1684 tcp_v4_rcv+0x2810/0x2e90 net/ipv4/tcp_ipv4.c:2115 ip_protocol_deliver_rcu+0x38c/0x740 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2c0/0x510 net/ipv4/ip_input.c:233 NF_HOOK+0x329/0x3b0 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+0xa2e/0xd50 net/ipv4/ip_input.c:639 ip_list_rcv+0x3e9/0x440 net/ipv4/ip_input.c:674 __netif_receive_skb_list_ptype net/core/dev.c:5662 [inline] __netif_receive_skb_list_core+0x57e/0x770 net/core/dev.c:5710 __netif_receive_skb_list net/core/dev.c:5762 [inline] netif_receive_skb_list_internal+0x93f/0xca0 net/core/dev.c:5853 gro_normal_list include/net/gro.h:433 [inline] napi_complete_done+0x37e/0x850 net/core/dev.c:6194 Memory state around the buggy address: ffff88805885ca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805885cb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805885cb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805885cc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805885cc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================