syzbot


KASAN: slab-use-after-free Write in gro_cells_receive

Status: closed as invalid on 2025/11/04 11:28
Subsystems: net
[Documentation on labels]
First crash: 151d, last: 137d
Cause bisection: failed (error log, bisect log)
  
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/10/30 07:54 24m retest repro upstream OK log
2025/10/30 07:54 24m retest repro upstream OK log

Sample crash report:
==================================================================
BUG: KASAN: slab-use-after-free in __skb_insert include/linux/skbuff.h:2331 [inline]
BUG: KASAN: slab-use-after-free in __skb_queue_before include/linux/skbuff.h:2437 [inline]
BUG: KASAN: slab-use-after-free in __skb_queue_tail include/linux/skbuff.h:2470 [inline]
BUG: KASAN: slab-use-after-free in gro_cells_receive+0x51d/0x690 net/core/gro_cells.c:38
Write of size 8 at addr ffff88805d8a73c0 by task syz.5.1881/10406

CPU: 0 UID: 0 PID: 10406 Comm: syz.5.1881 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
Call Trace:
 <TASK>
 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
 __skb_insert include/linux/skbuff.h:2331 [inline]
 __skb_queue_before include/linux/skbuff.h:2437 [inline]
 __skb_queue_tail include/linux/skbuff.h:2470 [inline]
 gro_cells_receive+0x51d/0x690 net/core/gro_cells.c:38
 ip6_tnl_rcv+0x7c/0xa0 net/ipv6/ip6_tunnel.c:903
 ip6gre_rcv net/ipv6/ip6_gre.c:-1 [inline]
 gre_rcv+0xbfa/0x11e0 net/ipv6/ip6_gre.c:588
 ip6_protocol_deliver_rcu+0xe0b/0x15c0 net/ipv6/ip6_input.c:438
 ip6_input_finish+0x191/0x370 net/ipv6/ip6_input.c:489
 NF_HOOK+0x30c/0x3a0 include/linux/netfilter.h:318
 ip6_input+0x16a/0x270 net/ipv6/ip6_input.c:500
 dst_input include/net/dst.h:474 [inline]
 ip6_sublist_rcv_finish+0x1c8/0x2a0 net/ipv6/ip6_input.c:88
 ip6_list_rcv_finish net/ipv6/ip6_input.c:145 [inline]
 ip6_sublist_rcv+0xb11/0xdd0 net/ipv6/ip6_input.c:321
 ipv6_list_rcv+0x3e5/0x430 net/ipv6/ip6_input.c:355
 __netif_receive_skb_list_ptype net/core/dev.c:6122 [inline]
 __netif_receive_skb_list_core+0x5f4/0x800 net/core/dev.c:6169
 __netif_receive_skb_list net/core/dev.c:6221 [inline]
 netif_receive_skb_list_internal+0x96f/0xcb0 net/core/dev.c:6312
 netif_receive_skb_list+0x54/0x450 net/core/dev.c:6364
 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+0x1790/0x1b20 net/bpf/test_run.c:390
 bpf_prog_test_run_xdp+0x75b/0x10e0 net/bpf/test_run.c:1331
 bpf_prog_test_run+0x2cd/0x340 kernel/bpf/syscall.c:4673
 __sys_bpf+0x562/0x860 kernel/bpf/syscall.c:6152
 __do_sys_bpf kernel/bpf/syscall.c:6244 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6242 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6242
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f641224eec9
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:00007f64104ae038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f64124a5fa0 RCX: 00007f641224eec9
RDX: 0000000000000048 RSI: 0000200000000600 RDI: 000000000000000a
RBP: 00007f64122d1f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f64124a6038 R14: 00007f64124a5fa0 R15: 00007fff954781f8
 </TASK>

Allocated by task 10406:
 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:4955 [inline]
 kmem_cache_alloc_bulk_noprof+0x413/0x620 mm/slub.c:7466
 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+0x15fb/0x1b20 net/bpf/test_run.c:390
 bpf_prog_test_run_xdp+0x75b/0x10e0 net/bpf/test_run.c:1331
 bpf_prog_test_run+0x2cd/0x340 kernel/bpf/syscall.c:4673
 __sys_bpf+0x562/0x860 kernel/bpf/syscall.c:6152
 __do_sys_bpf kernel/bpf/syscall.c:6244 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6242 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6242
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 16:
 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:2523 [inline]
 slab_free mm/slub.c:6611 [inline]
 kmem_cache_free+0x19a/0x910 mm/slub.c:6721
 kfree_skb_reason include/linux/skbuff.h:1322 [inline]
 __netif_receive_skb_core+0x3d5f/0x4380 net/core/dev.c:6053
 __netif_receive_skb_list_core+0x23f/0x800 net/core/dev.c:6154
 __netif_receive_skb_list net/core/dev.c:6221 [inline]
 netif_receive_skb_list_internal+0x96f/0xcb0 net/core/dev.c:6312
 gro_normal_list include/net/gro.h:524 [inline]
 gro_flush_normal include/net/gro.h:532 [inline]
 napi_complete_done+0x2f2/0x7c0 net/core/dev.c:6681
 gro_cell_poll+0x19f/0x1d0 net/core/gro_cells.c:66
 __napi_poll+0xb6/0x540 net/core/dev.c:7594
 napi_poll net/core/dev.c:7657 [inline]
 net_rx_action+0x5f7/0xda0 net/core/dev.c:7784
 handle_softirqs+0x22f/0x710 kernel/softirq.c:622
 __do_softirq kernel/softirq.c:656 [inline]
 run_ktimerd+0xcf/0x190 kernel/softirq.c:1138
 smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160
 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 ffff88805d8a73c0
 which belongs to the cache skbuff_head_cache of size 240
The buggy address is located 0 bytes inside of
 freed 240-byte region [ffff88805d8a73c0, ffff88805d8a74b0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5d8a7
flags: 0x80000000000000(node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000000 ffff888140ec68c0 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 10406, tgid 10405 (syz.5.1881), ts 282310836180, free_ts 280580511364
 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+0x28c0/0x2960 mm/page_alloc.c:3884
 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183
 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2416
 alloc_slab_page mm/slub.c:3039 [inline]
 allocate_slab+0x96/0x3a0 mm/slub.c:3212
 new_slab mm/slub.c:3266 [inline]
 ___slab_alloc+0xb12/0x13f0 mm/slub.c:4636
 __kmem_cache_alloc_bulk+0x1c0/0x5a0 mm/slub.c:7375
 kmem_cache_alloc_bulk_noprof+0xbc/0x620 mm/slub.c:7455
 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+0x15fb/0x1b20 net/bpf/test_run.c:390
 bpf_prog_test_run_xdp+0x75b/0x10e0 net/bpf/test_run.c:1331
 bpf_prog_test_run+0x2cd/0x340 kernel/bpf/syscall.c:4673
 __sys_bpf+0x562/0x860 kernel/bpf/syscall.c:6152
 __do_sys_bpf kernel/bpf/syscall.c:6244 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6242 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6242
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5812 tgid 5812 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1394 [inline]
 __free_frozen_pages+0xfb6/0x1140 mm/page_alloc.c:2906
 discard_slab mm/slub.c:3310 [inline]
 __put_partials+0x149/0x170 mm/slub.c:3857
 __slab_free+0x29e/0x370 mm/slub.c:5906
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:352
 kasan_slab_alloc include/linux/kasan.h:252 [inline]
 slab_post_alloc_hook mm/slub.c:4955 [inline]
 slab_alloc_node mm/slub.c:5265 [inline]
 kmem_cache_alloc_noprof+0x181/0x6b0 mm/slub.c:5272
 vm_area_dup+0x2b/0x670 mm/vma_init.c:123
 dup_mmap+0x90a/0x1ae0 mm/mmap.c:1780
 dup_mm kernel/fork.c:1489 [inline]
 copy_mm+0x13c/0x4b0 kernel/fork.c:1541
 copy_process+0x1704/0x3ae0 kernel/fork.c:2181
 kernel_clone+0x224/0x7c0 kernel/fork.c:2609
 __do_sys_clone kernel/fork.c:2750 [inline]
 __se_sys_clone kernel/fork.c:2734 [inline]
 __x64_sys_clone+0x18b/0x1e0 kernel/fork.c:2734
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88805d8a7280: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88805d8a7300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc
>ffff88805d8a7380: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
                                           ^
 ffff88805d8a7400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88805d8a7480: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/16 06:59 upstream 7ea30958b305 19568248 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
2025/10/15 17:49 upstream 1f4a222b0e33 19568248 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
2025/10/15 14:30 upstream 9b332cece987 19568248 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
2025/10/10 19:52 upstream 917167ed1211 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
2025/10/10 03:04 upstream 18a7e218cfcd 7e2882b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
2025/10/06 03:53 upstream 7a405dbb0f03 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
2025/10/03 02:55 upstream 7f7072574127 49379ee0 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
2025/10/02 23:19 upstream 7f7072574127 49379ee0 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
2025/10/02 15:16 upstream 7f7072574127 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in gro_cells_receive
* Struck through repros no longer work on HEAD.