================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: slab-use-after-free in atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:400 [inline] BUG: KASAN: slab-use-after-free in __refcount_sub_and_test include/linux/refcount.h:389 [inline] BUG: KASAN: slab-use-after-free in __refcount_dec_and_test include/linux/refcount.h:432 [inline] BUG: KASAN: slab-use-after-free in refcount_dec_and_test include/linux/refcount.h:450 [inline] BUG: KASAN: slab-use-after-free in skb_unref include/linux/skbuff.h:1292 [inline] BUG: KASAN: slab-use-after-free in __sk_skb_reason_drop net/core/skbuff.c:1187 [inline] BUG: KASAN: slab-use-after-free in sk_skb_reason_drop+0x37/0x170 net/core/skbuff.c:1215 Write of size 4 at addr ffff88805d321c24 by task kworker/0:0/9 CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Workqueue: mld mld_ifc_work Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:200 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:400 [inline] __refcount_sub_and_test include/linux/refcount.h:389 [inline] __refcount_dec_and_test include/linux/refcount.h:432 [inline] refcount_dec_and_test include/linux/refcount.h:450 [inline] skb_unref include/linux/skbuff.h:1292 [inline] __sk_skb_reason_drop net/core/skbuff.c:1187 [inline] sk_skb_reason_drop+0x37/0x170 net/core/skbuff.c:1215 kfree_skb_reason include/linux/skbuff.h:1322 [inline] dev_kfree_skb_any_reason+0x111/0x120 net/core/dev.c:3450 dev_kfree_skb_any include/linux/netdevice.h:4180 [inline] team_dummy_transmit+0x1a/0x30 drivers/net/team/team_core.c:503 team_xmit+0x2e9/0x490 drivers/net/team/team_core.c:1675 __netdev_start_xmit include/linux/netdevice.h:5259 [inline] netdev_start_xmit include/linux/netdevice.h:5268 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3869 __dev_queue_xmit+0x172a/0x3740 net/core/dev.c:4811 __bond_start_xmit include/linux/netdevice.h:-1 [inline] bond_start_xmit+0xdc7/0x1a10 drivers/net/bonding/bond_main.c:5487 __netdev_start_xmit include/linux/netdevice.h:5259 [inline] netdev_start_xmit include/linux/netdevice.h:5268 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3869 sch_direct_xmit+0x241/0x4b0 net/sched/sch_generic.c:344 qdisc_restart net/sched/sch_generic.c:409 [inline] __qdisc_run+0xb16/0x15f0 net/sched/sch_generic.c:417 qdisc_run+0xc5/0x290 include/net/pkt_sched.h:120 __dev_xmit_skb net/core/dev.c:4245 [inline] __dev_queue_xmit+0x1b21/0x3740 net/core/dev.c:4777 dev_queue_xmit include/linux/netdevice.h:3368 [inline] vlan_dev_hard_start_xmit+0x346/0x5e0 net/8021q/vlan_dev.c:126 __netdev_start_xmit include/linux/netdevice.h:5259 [inline] netdev_start_xmit include/linux/netdevice.h:5268 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3869 __dev_queue_xmit+0x172a/0x3740 net/core/dev.c:4811 neigh_output include/net/neighbour.h:556 [inline] ip6_finish_output2+0xfb3/0x1480 net/ipv6/ip6_output.c:136 NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip6_output+0x340/0x550 net/ipv6/ip6_output.c:247 NF_HOOK+0x9e/0x380 include/linux/netfilter.h:318 mld_sendpack+0x8d4/0xe60 net/ipv6/mcast.c:1855 mld_send_cr net/ipv6/mcast.c:2154 [inline] mld_ifc_work+0x83e/0xd60 net/ipv6/mcast.c:2693 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 9: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4970 [inline] slab_alloc_node mm/slub.c:5280 [inline] kmem_cache_alloc_node_noprof+0x433/0x710 mm/slub.c:5332 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:663 alloc_skb include/linux/skbuff.h:1383 [inline] mld_newpack+0x13c/0xc40 net/ipv6/mcast.c:1775 add_grhead+0x5a/0x2a0 net/ipv6/mcast.c:1886 add_grec+0x1452/0x1740 net/ipv6/mcast.c:2025 mld_send_cr net/ipv6/mcast.c:2148 [inline] mld_ifc_work+0x6ed/0xd60 net/ipv6/mcast.c:2693 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 9: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:77 __kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2539 [inline] slab_free_freelist_hook mm/slub.c:2568 [inline] slab_free_bulk mm/slub.c:6662 [inline] kmem_cache_free_bulk+0xb0c/0xdb0 mm/slub.c:7346 kfree_skb_list_reason+0x3eb/0x460 net/core/skbuff.c:1266 __dev_xmit_skb net/core/dev.c:4252 [inline] __dev_queue_xmit+0x1fb7/0x3740 net/core/dev.c:4777 dev_queue_xmit include/linux/netdevice.h:3368 [inline] team_dev_queue_xmit include/linux/if_team.h:239 [inline] team_queue_override_transmit drivers/net/team/team_core.c:815 [inline] team_xmit+0x247/0x490 drivers/net/team/team_core.c:1673 __netdev_start_xmit include/linux/netdevice.h:5259 [inline] netdev_start_xmit include/linux/netdevice.h:5268 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3869 __dev_queue_xmit+0x172a/0x3740 net/core/dev.c:4811 __bond_start_xmit include/linux/netdevice.h:-1 [inline] bond_start_xmit+0xdc7/0x1a10 drivers/net/bonding/bond_main.c:5487 __netdev_start_xmit include/linux/netdevice.h:5259 [inline] netdev_start_xmit include/linux/netdevice.h:5268 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3869 sch_direct_xmit+0x241/0x4b0 net/sched/sch_generic.c:344 qdisc_restart net/sched/sch_generic.c:409 [inline] __qdisc_run+0xb16/0x15f0 net/sched/sch_generic.c:417 qdisc_run+0xc5/0x290 include/net/pkt_sched.h:120 __dev_xmit_skb net/core/dev.c:4245 [inline] __dev_queue_xmit+0x1b21/0x3740 net/core/dev.c:4777 dev_queue_xmit include/linux/netdevice.h:3368 [inline] vlan_dev_hard_start_xmit+0x346/0x5e0 net/8021q/vlan_dev.c:126 __netdev_start_xmit include/linux/netdevice.h:5259 [inline] netdev_start_xmit include/linux/netdevice.h:5268 [inline] xmit_one net/core/dev.c:3853 [inline] dev_hard_start_xmit+0x2d7/0x830 net/core/dev.c:3869 __dev_queue_xmit+0x172a/0x3740 net/core/dev.c:4811 neigh_output include/net/neighbour.h:556 [inline] ip6_finish_output2+0xfb3/0x1480 net/ipv6/ip6_output.c:136 NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip6_output+0x340/0x550 net/ipv6/ip6_output.c:247 NF_HOOK+0x9e/0x380 include/linux/netfilter.h:318 mld_sendpack+0x8d4/0xe60 net/ipv6/mcast.c:1855 mld_send_cr net/ipv6/mcast.c:2154 [inline] mld_ifc_work+0x83e/0xd60 net/ipv6/mcast.c:2693 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88805d321b40 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 228 bytes inside of freed 240-byte region [ffff88805d321b40, ffff88805d321c30) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5d321 anon flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801dee4a00 0000000000000000 dead000000000001 raw: 0000000000000000 00000000800c000c 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 15521, tgid 15516 (syz.0.2894), ts 372211489082, free_ts 368716102711 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3055 [inline] allocate_slab+0x96/0x350 mm/slub.c:3228 new_slab mm/slub.c:3282 [inline] ___slab_alloc+0xe94/0x18a0 mm/slub.c:4651 __slab_alloc+0x65/0x100 mm/slub.c:4770 __slab_alloc_node mm/slub.c:4846 [inline] slab_alloc_node mm/slub.c:5268 [inline] kmem_cache_alloc_node_noprof+0x4c5/0x710 mm/slub.c:5332 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:663 alloc_skb include/linux/skbuff.h:1383 [inline] nlmsg_new include/net/netlink.h:1055 [inline] xfrm_send_acquire+0x154/0xee0 net/xfrm/xfrm_user.c:3836 km_query+0x11c/0x210 net/xfrm/xfrm_state.c:2770 xfrm_state_find+0x3bca/0x5400 net/xfrm/xfrm_state.c:1558 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2522 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2573 [inline] xfrm_resolve_and_create_bundle+0x768/0x2f80 net/xfrm/xfrm_policy.c:2871 xfrm_lookup_with_ifid+0x2a7/0x1a70 net/xfrm/xfrm_policy.c:3205 xfrm_lookup net/xfrm/xfrm_policy.c:3336 [inline] xfrm_lookup_route+0x3c/0x1c0 net/xfrm/xfrm_policy.c:3347 udp_sendmsg+0x142e/0x2170 net/ipv4/udp.c:1450 page last free pid 5830 tgid 5830 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2906 __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xcab/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x286/0x870 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1052 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1052 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Memory state around the buggy address: ffff88805d321b00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ffff88805d321b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805d321c00: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ^ ffff88805d321c80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805d321d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ==================================================================