================================================================== BUG: KASAN: slab-use-after-free in __skb_insert include/linux/skbuff.h:2284 [inline] BUG: KASAN: slab-use-after-free in __skb_queue_before include/linux/skbuff.h:2390 [inline] BUG: KASAN: slab-use-after-free in __skb_queue_tail include/linux/skbuff.h:2423 [inline] BUG: KASAN: slab-use-after-free in gro_cells_receive+0x2ef/0x440 net/core/gro_cells.c:38 Write of size 8 at addr ffff88804a97e780 by task syz.2.58/5174 CPU: 0 UID: 0 PID: 5174 Comm: syz.2.58 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: dump_stack_lvl+0xf4/0x170 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 __skb_insert include/linux/skbuff.h:2284 [inline] __skb_queue_before include/linux/skbuff.h:2390 [inline] __skb_queue_tail include/linux/skbuff.h:2423 [inline] gro_cells_receive+0x2ef/0x440 net/core/gro_cells.c:38 ip6_tnl_rcv+0x4e/0xa0 net/ipv6/ip6_tunnel.c:903 ip6gre_rcv net/ipv6/ip6_gre.c:-1 [inline] gre_rcv+0xa96/0xfe0 net/ipv6/ip6_gre.c:588 ip6_protocol_deliver_rcu+0x9c2/0x10e0 net/ipv6/ip6_input.c:438 ip6_input_finish+0x159/0x340 net/ipv6/ip6_input.c:489 NF_HOOK include/linux/netfilter.h:318 [inline] ip6_input+0xf2/0x230 net/ipv6/ip6_input.c:500 dst_input include/net/dst.h:471 [inline] ip6_sublist_rcv_finish+0x167/0x220 net/ipv6/ip6_input.c:88 ip6_list_rcv_finish net/ipv6/ip6_input.c:145 [inline] ip6_sublist_rcv+0x827/0x960 net/ipv6/ip6_input.c:321 ipv6_list_rcv+0x378/0x3c0 net/ipv6/ip6_input.c:355 __netif_receive_skb_list_ptype net/core/dev.c:6022 [inline] __netif_receive_skb_list_core+0x5ca/0x7b0 net/core/dev.c:6069 __netif_receive_skb_list net/core/dev.c:6121 [inline] netif_receive_skb_list_internal+0x832/0xab0 net/core/dev.c:6212 netif_receive_skb_list+0x42/0x240 net/core/dev.c:6264 xdp_recv_frames net/bpf/test_run.c:280 [inline] xdp_test_run_batch net/bpf/test_run.c:361 [inline] bpf_test_run_xdp_live+0x14e7/0x1840 net/bpf/test_run.c:390 bpf_prog_test_run_xdp+0x57f/0xd50 net/bpf/test_run.c:1322 bpf_prog_test_run+0x1ca/0x2c0 kernel/bpf/syscall.c:4590 __sys_bpf+0x49c/0x6c0 kernel/bpf/syscall.c:6047 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline] __se_sys_bpf kernel/bpf/syscall.c:6137 [inline] __x64_sys_bpf+0x77/0x90 kernel/bpf/syscall.c:6137 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x250 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9208e2eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9208c97038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f9209085fa0 RCX: 00007f9208e2eec9 RDX: 0000000000000048 RSI: 0000200000000600 RDI: 000000000000000a RBP: 00007f9208eb1f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9209086038 R14: 00007f9209085fa0 R15: 00007ffedc1feb18 Allocated by task 5174: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:330 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:356 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] kmem_cache_alloc_bulk_noprof+0x2f4/0x580 mm/slub.c:5411 xdp_recv_frames net/bpf/test_run.c:260 [inline] xdp_test_run_batch net/bpf/test_run.c:361 [inline] bpf_test_run_xdp_live+0x1392/0x1840 net/bpf/test_run.c:390 bpf_prog_test_run_xdp+0x57f/0xd50 net/bpf/test_run.c:1322 bpf_prog_test_run+0x1ca/0x2c0 kernel/bpf/syscall.c:4590 __sys_bpf+0x49c/0x6c0 kernel/bpf/syscall.c:6047 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline] __se_sys_bpf kernel/bpf/syscall.c:6137 [inline] __x64_sys_bpf+0x77/0x90 kernel/bpf/syscall.c:6137 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x250 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 21: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x5b/0x80 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kmem_cache_free+0x171/0x500 mm/slub.c:4782 kfree_skb_reason include/linux/skbuff.h:1275 [inline] __netif_receive_skb_core+0x2d95/0x3100 net/core/dev.c:5953 __netif_receive_skb_list_core+0x271/0x7b0 net/core/dev.c:6054 __netif_receive_skb_list net/core/dev.c:6121 [inline] netif_receive_skb_list_internal+0x832/0xab0 net/core/dev.c:6212 gro_normal_list include/net/gro.h:532 [inline] gro_flush_normal include/net/gro.h:540 [inline] napi_complete_done+0x220/0x610 net/core/dev.c:6581 gro_cell_poll+0x181/0x1a0 net/core/gro_cells.c:66 __napi_poll+0x95/0x3e0 net/core/dev.c:7489 napi_poll net/core/dev.c:7552 [inline] net_rx_action+0x633/0xc30 net/core/dev.c:7679 handle_softirqs+0x19c/0x4e0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] __local_bh_enable_ip+0x15b/0x300 kernel/softirq.c:302 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_cpu_kthread+0xf7d/0x1800 kernel/rcu/tree.c:2950 smpboot_thread_fn+0x3f4/0x7d0 kernel/smpboot.c:160 kthread+0x598/0x690 kernel/kthread.c:463 ret_from_fork+0x139/0x2d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88804a97e780 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 0 bytes inside of freed 232-byte region [ffff88804a97e780, ffff88804a97e868) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4a97e flags: 0x80000000000000(node=0|zone=1) page_type: f5(slab) raw: 0080000000000000 ffff888014ea5a00 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000c000c 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 5174, tgid 5173 (syz.2.58), ts 103929100295, free_ts 103767884261 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x168/0x1a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x27da/0x2870 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x26b/0x460 mm/page_alloc.c:5148 alloc_pages_mpol+0xcb/0x270 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab+0x8a/0x320 mm/slub.c:2655 new_slab mm/slub.c:2709 [inline] ___slab_alloc+0x7e6/0xc10 mm/slub.c:3891 __kmem_cache_alloc_bulk mm/slub.c:5331 [inline] kmem_cache_alloc_bulk_noprof+0x141/0x580 mm/slub.c:5403 xdp_recv_frames net/bpf/test_run.c:260 [inline] xdp_test_run_batch net/bpf/test_run.c:361 [inline] bpf_test_run_xdp_live+0x1392/0x1840 net/bpf/test_run.c:390 bpf_prog_test_run_xdp+0x57f/0xd50 net/bpf/test_run.c:1322 bpf_prog_test_run+0x1ca/0x2c0 kernel/bpf/syscall.c:4590 __sys_bpf+0x49c/0x6c0 kernel/bpf/syscall.c:6047 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline] __se_sys_bpf kernel/bpf/syscall.c:6137 [inline] __x64_sys_bpf+0x77/0x90 kernel/bpf/syscall.c:6137 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x250 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5168 tgid 5167 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbf4/0xd80 mm/page_alloc.c:2895 __folio_put+0x1eb/0x270 mm/swap.c:112 page_pool_empty_alloc_cache_once net/core/page_pool.c:1112 [inline] page_pool_scrub net/core/page_pool.c:1121 [inline] page_pool_release+0x150/0xcd0 net/core/page_pool.c:1153 page_pool_destroy+0x241/0x440 net/core/page_pool.c:1233 xdp_test_run_teardown net/bpf/test_run.c:218 [inline] bpf_test_run_xdp_live+0x1785/0x1840 net/bpf/test_run.c:396 bpf_prog_test_run_xdp+0x57f/0xd50 net/bpf/test_run.c:1322 bpf_prog_test_run+0x1ca/0x2c0 kernel/bpf/syscall.c:4590 __sys_bpf+0x49c/0x6c0 kernel/bpf/syscall.c:6047 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline] __se_sys_bpf kernel/bpf/syscall.c:6137 [inline] __x64_sys_bpf+0x77/0x90 kernel/bpf/syscall.c:6137 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x250 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804a97e680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88804a97e700: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc >ffff88804a97e780: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88804a97e800: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff88804a97e880: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ==================================================================