syzbot


KASAN: use-after-free Read in cpu_map_generic_redirect

Status: premoderation: reported on 2025/01/15 04:15
Reported-by: syzbot+60f3873ba6b93f40d22d@syzkaller.appspotmail.com
First crash: 85d, last: 3d12h
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: use-after-free Read in cpu_map_generic_redirect 11 20d 63d 0/3 upstream: reported on 2025/02/06 04:04
android-6-1 KASAN: use-after-free Read in cpu_map_generic_redirect 4 153d 232d 0/2 auto-obsoleted due to no activity on 2025/02/06 07:47
linux-6.1 KASAN: use-after-free Read in cpu_map_generic_redirect 5 90d 209d 0/3 upstream: reported on 2024/09/13 03:13

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in cpu_map_generic_redirect+0x1a8/0x6d0 kernel/bpf/cpumap.c:786
Read of size 8 at addr ffff888119bb1c18 by task syz-executor/292

CPU: 1 PID: 292 Comm: syz-executor Not tainted 5.15.178-syzkaller-00034-g5e1b899f19c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106
 print_address_description+0x87/0x3b0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:427 [inline]
 kasan_report+0x179/0x1c0 mm/kasan/report.c:444
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309
 cpu_map_generic_redirect+0x1a8/0x6d0 kernel/bpf/cpumap.c:786
 xdp_do_generic_redirect_map net/core/filter.c:4189 [inline]
 xdp_do_generic_redirect+0x3df/0xb40 net/core/filter.c:4236
 do_xdp_generic+0x50b/0x7c0 net/core/dev.c:4919
 __netif_receive_skb_core+0x1706/0x3640 net/core/dev.c:5324
 __netif_receive_skb_one_core net/core/dev.c:5499 [inline]
 __netif_receive_skb+0x11c/0x530 net/core/dev.c:5615
 process_backlog+0x31c/0x650 net/core/dev.c:6492
 __napi_poll+0xc4/0x5a0 net/core/dev.c:7051
 napi_poll net/core/dev.c:7118 [inline]
 net_rx_action+0x47d/0xc50 net/core/dev.c:7208
 handle_softirqs+0x25e/0x5c0 kernel/softirq.c:565
 __do_softirq kernel/softirq.c:603 [inline]
 invoke_softirq kernel/softirq.c:425 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:652
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:664
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:226 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x8/0x80 kernel/kcov.c:300
Code: 0a 10 48 89 74 0a 18 4c 89 44 0a 20 49 ff c1 4c 89 09 5d c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 4c 8b 45 08 <65> 48 8b 0d 80 fc 91 7e 65 8b 05 81 fc 91 7e 25 00 01 ff 00 74 10
RSP: 0018:ffffc90000a67650 EFLAGS: 00000246
RAX: ffff888125dcfb90 RBX: 00007f70f5d72000 RCX: ffff88810a8e3b40
RDX: 0000000000000000 RSI: 8000000120d27007 RDI: 0000000000000000
RBP: ffffc90000a67650 R08: ffffffff81a722cb R09: fffff94000906931
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881404cbb90
R13: dffffc0000000000 R14: ffff888125dbf4f0 R15: 8000000120d27007
 pte_none arch/x86/include/asm/pgtable.h:727 [inline]
 copy_pte_range mm/memory.c:1119 [inline]
 copy_pmd_range mm/memory.c:1231 [inline]
 copy_pud_range mm/memory.c:1268 [inline]
 copy_p4d_range mm/memory.c:1292 [inline]
 copy_page_range+0x10ab/0x2e20 mm/memory.c:1365
 dup_mmap kernel/fork.c:660 [inline]
 dup_mm kernel/fork.c:1522 [inline]
 copy_mm+0xc7e/0x13e0 kernel/fork.c:1574
 copy_process+0x1149/0x3290 kernel/fork.c:2263
 kernel_clone+0x21e/0x9e0 kernel/fork.c:2661
 __do_sys_clone kernel/fork.c:2787 [inline]
 __se_sys_clone kernel/fork.c:2771 [inline]
 __x64_sys_clone+0x23f/0x290 kernel/fork.c:2771
 x64_sys_call+0x1b0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f70f64c89d3
Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00
RSP: 002b:00007ffd31e34ec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f70f64c89d3
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 00005555605177d0 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000000927c0 R14: 000000000000c51e R15: 00007ffd31e35060
 </TASK>

Allocated by task 2348:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:433 [inline]
 ____kasan_kmalloc+0xdb/0x110 mm/kasan/common.c:512
 __kasan_kmalloc+0x9/0x10 mm/kasan/common.c:521
 kasan_kmalloc include/linux/kasan.h:227 [inline]
 __kmalloc+0x13f/0x2c0 mm/slub.c:4431
 __kmalloc_node include/linux/slab.h:469 [inline]
 kmalloc_node include/linux/slab.h:626 [inline]
 bpf_map_kmalloc_node+0xdb/0x160 kernel/bpf/syscall.c:432
 __cpu_map_entry_alloc kernel/bpf/cpumap.c:442 [inline]
 cpu_map_update_elem+0x26c/0xea0 kernel/bpf/cpumap.c:600
 bpf_map_update_value+0x1a3/0x3c0 kernel/bpf/syscall.c:186
 map_update_elem+0x644/0x770 kernel/bpf/syscall.c:1165
 __sys_bpf+0x405/0x760 kernel/bpf/syscall.c:4626
 __do_sys_bpf kernel/bpf/syscall.c:4742 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4740 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4740
 x64_sys_call+0x87f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

Freed by task 2351:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
 ____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
 kasan_slab_free include/linux/kasan.h:193 [inline]
 slab_free_hook mm/slub.c:1723 [inline]
 slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
 slab_free mm/slub.c:3521 [inline]
 kfree+0xcc/0x270 mm/slub.c:4583
 put_cpu_map_entry+0x6dd/0x750 kernel/bpf/cpumap.c:160
 cpu_map_kthread_run+0x22d0/0x2390 kernel/bpf/cpumap.c:407
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

Last potentially related work creation:
 kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38
 __kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
 insert_work+0x56/0x320 kernel/workqueue.c:1373
 __queue_work+0x92a/0xcd0 kernel/workqueue.c:1539
 queue_work_on+0x105/0x170 kernel/workqueue.c:1566
 queue_work include/linux/workqueue.h:510 [inline]
 schedule_work include/linux/workqueue.h:571 [inline]
 __cpu_map_entry_replace kernel/bpf/cpumap.c:555 [inline]
 cpu_map_free+0x1e7/0x2c0 kernel/bpf/cpumap.c:638
 bpf_map_free_deferred+0x10d/0x1e0 kernel/bpf/syscall.c:481
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

Second to last potentially related work creation:
 kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38
 __kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
 __call_rcu_common kernel/rcu/tree.c:3007 [inline]
 call_rcu+0x123/0x10b0 kernel/rcu/tree.c:3125
 __cpu_map_entry_replace kernel/bpf/cpumap.c:553 [inline]
 cpu_map_free+0x109/0x2c0 kernel/bpf/cpumap.c:638
 bpf_map_free_deferred+0x10d/0x1e0 kernel/bpf/syscall.c:481
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

The buggy address belongs to the object at ffff888119bb1c00
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 24 bytes inside of
 192-byte region [ffff888119bb1c00, ffff888119bb1cc0)
The buggy address belongs to the page:
page:ffffea000466ec40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x119bb1
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 ffffea00042abc40 0000000c00000002 ffff888100042c00
raw: 0000000000000000 0000000000100010 00000001ffffffff 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 101, ts 30049007486, free_ts 30014836444
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2605
 prep_new_page+0x1b/0x110 mm/page_alloc.c:2611
 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4485
 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5780
 alloc_slab_page mm/slub.c:-1 [inline]
 allocate_slab mm/slub.c:1932 [inline]
 new_slab+0x9a/0x4e0 mm/slub.c:1995
 ___slab_alloc+0x39e/0x830 mm/slub.c:3028
 __slab_alloc+0x4a/0x90 mm/slub.c:3115
 slab_alloc_node mm/slub.c:3206 [inline]
 slab_alloc mm/slub.c:3250 [inline]
 kmem_cache_alloc_trace+0x147/0x270 mm/slub.c:3267
 kmalloc include/linux/slab.h:603 [inline]
 kzalloc include/linux/slab.h:733 [inline]
 kernfs_fop_open+0x324/0xab0 fs/kernfs/file.c:628
 do_dentry_open+0x81c/0xfd0 fs/open.c:828
 vfs_open+0x73/0x80 fs/open.c:958
 do_open fs/namei.c:3608 [inline]
 path_openat+0x26f0/0x2f40 fs/namei.c:3742
 do_filp_open+0x21c/0x460 fs/namei.c:3769
 do_sys_openat2+0x13f/0x820 fs/open.c:1234
 do_sys_open fs/open.c:1250 [inline]
 __do_sys_openat fs/open.c:1266 [inline]
 __se_sys_openat fs/open.c:1261 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1261
 x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1472 [inline]
 free_pcp_prepare mm/page_alloc.c:1544 [inline]
 free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3534
 free_unref_page_list+0x14b/0xa60 mm/page_alloc.c:3671
 release_pages+0x1310/0x1370 mm/swap.c:1009
 free_pages_and_swap_cache+0x8a/0xa0 mm/swap_state.c:320
 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline]
 tlb_flush_mmu_free mm/mmu_gather.c:240 [inline]
 tlb_flush_mmu mm/mmu_gather.c:247 [inline]
 tlb_finish_mmu+0x177/0x320 mm/mmu_gather.c:338
 exit_mmap+0x484/0x990 mm/mmap.c:3236
 __mmput+0x95/0x310 kernel/fork.c:1180
 mmput+0x5b/0x170 kernel/fork.c:1203
 exit_mm kernel/exit.c:554 [inline]
 do_exit+0xb9c/0x2ca0 kernel/exit.c:867
 do_group_exit+0x141/0x310 kernel/exit.c:1002
 __do_sys_exit_group kernel/exit.c:1013 [inline]
 __se_sys_exit_group kernel/exit.c:1011 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1011
 x64_sys_call+0x610/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0

Memory state around the buggy address:
 ffff888119bb1b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888119bb1b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888119bb1c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                            ^
 ffff888119bb1c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff888119bb1d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
================================================================================
UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:130:9
index 16382 is out of range for type 'unsigned long[8]'
CPU: 1 PID: 292 Comm: syz-executor Tainted: G    B             5.15.178-syzkaller-00034-g5e1b899f19c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106
 dump_stack+0x15/0x20 lib/dump_stack.c:113
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_out_of_bounds+0x118/0x140 lib/ubsan.c:282
 decode_tail kernel/locking/qspinlock.c:130 [inline]
 __pv_queued_spin_lock_slowpath+0xb9d/0xc40 kernel/locking/qspinlock.c:468
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:363 [inline]
 ptr_ring_produce include/linux/ptr_ring.h:128 [inline]
 cpu_map_generic_redirect+0x1d5/0x6d0 kernel/bpf/cpumap.c:786
 xdp_do_generic_redirect_map net/core/filter.c:4189 [inline]
 xdp_do_generic_redirect+0x3df/0xb40 net/core/filter.c:4236
 do_xdp_generic+0x50b/0x7c0 net/core/dev.c:4919
 __netif_receive_skb_core+0x1706/0x3640 net/core/dev.c:5324
 __netif_receive_skb_one_core net/core/dev.c:5499 [inline]
 __netif_receive_skb+0x11c/0x530 net/core/dev.c:5615
 process_backlog+0x31c/0x650 net/core/dev.c:6492
 __napi_poll+0xc4/0x5a0 net/core/dev.c:7051
 napi_poll net/core/dev.c:7118 [inline]
 net_rx_action+0x47d/0xc50 net/core/dev.c:7208
 handle_softirqs+0x25e/0x5c0 kernel/softirq.c:565
 __do_softirq kernel/softirq.c:603 [inline]
 invoke_softirq kernel/softirq.c:425 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:652
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:664
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:226 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x8/0x80 kernel/kcov.c:300
Code: 0a 10 48 89 74 0a 18 4c 89 44 0a 20 49 ff c1 4c 89 09 5d c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 4c 8b 45 08 <65> 48 8b 0d 80 fc 91 7e 65 8b 05 81 fc 91 7e 25 00 01 ff 00 74 10
RSP: 0018:ffffc90000a67650 EFLAGS: 00000246
RAX: ffff888125dcfb90 RBX: 00007f70f5d72000 RCX: ffff88810a8e3b40
RDX: 0000000000000000 RSI: 8000000120d27007 RDI: 0000000000000000
RBP: ffffc90000a67650 R08: ffffffff81a722cb R09: fffff94000906931
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881404cbb90
R13: dffffc0000000000 R14: ffff888125dbf4f0 R15: 8000000120d27007
 pte_none arch/x86/include/asm/pgtable.h:727 [inline]
 copy_pte_range mm/memory.c:1119 [inline]
 copy_pmd_range mm/memory.c:1231 [inline]
 copy_pud_range mm/memory.c:1268 [inline]
 copy_p4d_range mm/memory.c:1292 [inline]
 copy_page_range+0x10ab/0x2e20 mm/memory.c:1365
 dup_mmap kernel/fork.c:660 [inline]
 dup_mm kernel/fork.c:1522 [inline]
 copy_mm+0xc7e/0x13e0 kernel/fork.c:1574
 copy_process+0x1149/0x3290 kernel/fork.c:2263
 kernel_clone+0x21e/0x9e0 kernel/fork.c:2661
 __do_sys_clone kernel/fork.c:2787 [inline]
 __se_sys_clone kernel/fork.c:2771 [inline]
 __x64_sys_clone+0x23f/0x290 kernel/fork.c:2771
 x64_sys_call+0x1b0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f70f64c89d3
Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00
RSP: 002b:00007ffd31e34ec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f70f64c89d3
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 00005555605177d0 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000000927c0 R14: 000000000000c51e R15: 00007ffd31e35060
 </TASK>
================================================================================
general protection fault, probably for non-canonical address 0xe010f1f79fab70e5: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x0087afbcfd5b8728-0x0087afbcfd5b872f]
CPU: 1 PID: 292 Comm: syz-executor Tainted: G    B             5.15.178-syzkaller-00034-g5e1b899f19c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:__pv_queued_spin_lock_slowpath+0x2f3/0xc40 kernel/locking/qspinlock.c:471
Code: 74 1e 48 89 4c 24 10 48 8b 7c 24 10 e8 c6 9e 5d 00 48 8b 4c 24 10 48 ba 00 00 00 00 00 fc ff df 4c 03 21 4c 89 e0 48 c1 e8 03 <80> 3c 10 00 74 12 4c 89 e7 e8 3f 9f 5d 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc900001d05a0 EFLAGS: 00010203
RAX: 0010f5f79fab70e5 RBX: ffff8881f7138ad4 RCX: ffffffff86286820
RDX: dffffc0000000000 RSI: 0000000000000002 RDI: 00000000ffffffff
RBP: ffffc900001d0690 R08: ffffffff8141a9ab R09: 0000000000000003
R10: fffffbfff0e9aa4c R11: dffffc0000000001 R12: 0087afbcfd5b872d
R13: 1ffff110233762e0 R14: 1ffff1103ee27159 R15: ffff888119bb1704
FS:  0000555560517500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f70f721a6c0 CR3: 0000000125dbe000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:363 [inline]
 ptr_ring_produce include/linux/ptr_ring.h:128 [inline]
 cpu_map_generic_redirect+0x1d5/0x6d0 kernel/bpf/cpumap.c:786
 xdp_do_generic_redirect_map net/core/filter.c:4189 [inline]
 xdp_do_generic_redirect+0x3df/0xb40 net/core/filter.c:4236
 do_xdp_generic+0x50b/0x7c0 net/core/dev.c:4919
 __netif_receive_skb_core+0x1706/0x3640 net/core/dev.c:5324
 __netif_receive_skb_one_core net/core/dev.c:5499 [inline]
 __netif_receive_skb+0x11c/0x530 net/core/dev.c:5615
 process_backlog+0x31c/0x650 net/core/dev.c:6492
 __napi_poll+0xc4/0x5a0 net/core/dev.c:7051
 napi_poll net/core/dev.c:7118 [inline]
 net_rx_action+0x47d/0xc50 net/core/dev.c:7208
 handle_softirqs+0x25e/0x5c0 kernel/softirq.c:565
 __do_softirq kernel/softirq.c:603 [inline]
 invoke_softirq kernel/softirq.c:425 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:652
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:664
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:226 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x8/0x80 kernel/kcov.c:300
Code: 0a 10 48 89 74 0a 18 4c 89 44 0a 20 49 ff c1 4c 89 09 5d c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 4c 8b 45 08 <65> 48 8b 0d 80 fc 91 7e 65 8b 05 81 fc 91 7e 25 00 01 ff 00 74 10
RSP: 0018:ffffc90000a67650 EFLAGS: 00000246
RAX: ffff888125dcfb90 RBX: 00007f70f5d72000 RCX: ffff88810a8e3b40
RDX: 0000000000000000 RSI: 8000000120d27007 RDI: 0000000000000000
RBP: ffffc90000a67650 R08: ffffffff81a722cb R09: fffff94000906931
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881404cbb90
R13: dffffc0000000000 R14: ffff888125dbf4f0 R15: 8000000120d27007
 pte_none arch/x86/include/asm/pgtable.h:727 [inline]
 copy_pte_range mm/memory.c:1119 [inline]
 copy_pmd_range mm/memory.c:1231 [inline]
 copy_pud_range mm/memory.c:1268 [inline]
 copy_p4d_range mm/memory.c:1292 [inline]
 copy_page_range+0x10ab/0x2e20 mm/memory.c:1365
 dup_mmap kernel/fork.c:660 [inline]
 dup_mm kernel/fork.c:1522 [inline]
 copy_mm+0xc7e/0x13e0 kernel/fork.c:1574
 copy_process+0x1149/0x3290 kernel/fork.c:2263
 kernel_clone+0x21e/0x9e0 kernel/fork.c:2661
 __do_sys_clone kernel/fork.c:2787 [inline]
 __se_sys_clone kernel/fork.c:2771 [inline]
 __x64_sys_clone+0x23f/0x290 kernel/fork.c:2771
 x64_sys_call+0x1b0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:57
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f70f64c89d3
Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00
RSP: 002b:00007ffd31e34ec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f70f64c89d3
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 00005555605177d0 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000000927c0 R14: 000000000000c51e R15: 00007ffd31e35060
 </TASK>
Modules linked in:
---[ end trace 9fde2657ca4ed6a5 ]---
RIP: 0010:__pv_queued_spin_lock_slowpath+0x2f3/0xc40 kernel/locking/qspinlock.c:471
Code: 74 1e 48 89 4c 24 10 48 8b 7c 24 10 e8 c6 9e 5d 00 48 8b 4c 24 10 48 ba 00 00 00 00 00 fc ff df 4c 03 21 4c 89 e0 48 c1 e8 03 <80> 3c 10 00 74 12 4c 89 e7 e8 3f 9f 5d 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc900001d05a0 EFLAGS: 00010203
RAX: 0010f5f79fab70e5 RBX: ffff8881f7138ad4 RCX: ffffffff86286820
RDX: dffffc0000000000 RSI: 0000000000000002 RDI: 00000000ffffffff
RBP: ffffc900001d0690 R08: ffffffff8141a9ab R09: 0000000000000003
R10: fffffbfff0e9aa4c R11: dffffc0000000001 R12: 0087afbcfd5b872d
R13: 1ffff110233762e0 R14: 1ffff1103ee27159 R15: ffff888119bb1704
FS:  0000555560517500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f70f721a6c0 CR3: 0000000125dbe000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0a 10                	or     (%rax),%dl
   2:	48 89 74 0a 18       	mov    %rsi,0x18(%rdx,%rcx,1)
   7:	4c 89 44 0a 20       	mov    %r8,0x20(%rdx,%rcx,1)
   c:	49 ff c1             	inc    %r9
   f:	4c 89 09             	mov    %r9,(%rcx)
  12:	5d                   	pop    %rbp
  13:	c3                   	ret
  14:	66 2e 0f 1f 84 00 00 	cs nopw 0x0(%rax,%rax,1)
  1b:	00 00 00
  1e:	0f 1f 40 00          	nopl   0x0(%rax)
  22:	55                   	push   %rbp
  23:	48 89 e5             	mov    %rsp,%rbp
  26:	4c 8b 45 08          	mov    0x8(%rbp),%r8
* 2a:	65 48 8b 0d 80 fc 91 	mov    %gs:0x7e91fc80(%rip),%rcx        # 0x7e91fcb2 <-- trapping instruction
  31:	7e
  32:	65 8b 05 81 fc 91 7e 	mov    %gs:0x7e91fc81(%rip),%eax        # 0x7e91fcba
  39:	25 00 01 ff 00       	and    $0xff0100,%eax
  3e:	74 10                	je     0x50

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/07 13:30 android13-5.15-lts 5e1b899f19c3 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/04/07 13:30 android13-5.15-lts 5e1b899f19c3 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/04/07 13:30 android13-5.15-lts 5e1b899f19c3 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/04/05 03:02 android13-5.15-lts 5e1b899f19c3 c53ea9c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/03/16 19:25 android13-5.15-lts 7d1f9b5c2ff5 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/03/15 21:13 android13-5.15-lts 7d1f9b5c2ff5 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/03/15 16:04 android13-5.15-lts 7d1f9b5c2ff5 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/02/24 20:38 android13-5.15-lts 7d1f9b5c2ff5 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/29 13:03 android13-5.15-lts d1a25a6a4b3b 136953f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/29 00:50 android13-5.15-lts d1a25a6a4b3b 865ef71e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/29 00:50 android13-5.15-lts d1a25a6a4b3b 865ef71e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/24 14:28 android13-5.15-lts 829d9f138569 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/23 18:09 android13-5.15-lts 829d9f138569 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/20 15:34 android13-5.15-lts 829d9f138569 6e87cfa2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/16 14:01 android13-5.15-lts 829d9f138569 f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/15 04:14 android13-5.15-lts 829d9f138569 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/01/15 04:14 android13-5.15-lts 829d9f138569 7315a7cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect
2025/02/19 17:04 android13-5.15-lts 058abb720bd1 b257a9b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: array-index-out-of-bounds in cpu_map_generic_redirect
* Struck through repros no longer work on HEAD.