syzbot


KASAN: use-after-free Read in cpu_map_generic_redirect (2)

Status: premoderation: reported on 2025/04/20 09:29
Reported-by: syzbot+c0c26e0690afbc4d2228@syzkaller.appspotmail.com
First crash: 9d01h, last: 9d01h
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 KASAN: use-after-free Read in cpu_map_generic_redirect 20 7d17h 104d 0/2 premoderation: reported on 2025/01/15 04:15
linux-5.15 KASAN: use-after-free Read in cpu_map_generic_redirect 11 38d 82d 0/3 upstream: reported on 2025/02/06 04:04
android-6-1 KASAN: use-after-free Read in cpu_map_generic_redirect 4 172d 251d 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 108d 228d 0/3 auto-obsoleted due to no activity on 2025/04/20 11:07

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in cpu_map_generic_redirect+0x1c7/0x780 kernel/bpf/cpumap.c:788
Read of size 8 at addr ffff8881158a5d18 by task syz.8.1021/4839

CPU: 1 PID: 4839 Comm: syz.8.1021 Not tainted 6.1.129-syzkaller-00014-gbc3d1d352ab6 #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/0x1b7 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:316 [inline]
 print_report+0x158/0x4e0 mm/kasan/report.c:427
 kasan_report+0x13c/0x170 mm/kasan/report.c:531
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:351
 cpu_map_generic_redirect+0x1c7/0x780 kernel/bpf/cpumap.c:788
 xdp_do_generic_redirect_map net/core/filter.c:4435 [inline]
 xdp_do_generic_redirect+0x3df/0xb40 net/core/filter.c:4482
 do_xdp_generic+0x53e/0x800 net/core/dev.c:4968
 __netif_receive_skb_core+0x19ae/0x43d0 net/core/dev.c:5375
 __netif_receive_skb_one_core net/core/dev.c:5552 [inline]
 __netif_receive_skb+0x11c/0x530 net/core/dev.c:5668
 process_backlog+0x32c/0x630 net/core/dev.c:5996
 __napi_poll+0xbe/0x5c0 net/core/dev.c:6563
 napi_poll net/core/dev.c:6630 [inline]
 net_rx_action+0x595/0xdd0 net/core/dev.c:6744
 handle_softirqs+0x1db/0x650 kernel/softirq.c:624
 __do_softirq+0xb/0xd kernel/softirq.c:662
 do_softirq+0xf6/0x150 kernel/softirq.c:506
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x75/0x80 kernel/softirq.c:430
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:870 [inline]
 __dev_queue_xmit+0x156c/0x3730 net/core/dev.c:4341
 dev_queue_xmit include/linux/netdevice.h:3082 [inline]
 neigh_hh_output include/net/neighbour.h:536 [inline]
 neigh_output include/net/neighbour.h:550 [inline]
 ip6_finish_output2+0x1200/0x1850 net/ipv6/ip6_output.c:138
 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline]
 ip6_finish_output+0x50f/0xa60 net/ipv6/ip6_output.c:216
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0x1f7/0x4c0 net/ipv6/ip6_output.c:237
 dst_output include/net/dst.h:444 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_xmit+0xc5d/0x1650 net/ipv6/ip6_output.c:357
 inet6_csk_xmit+0x341/0x4e0 net/ipv6/inet6_connection_sock.c:135
 __tcp_transmit_skb+0x1e9e/0x35a0 net/ipv4/tcp_output.c:1403
 tcp_transmit_skb net/ipv4/tcp_output.c:1421 [inline]
 tcp_send_syn_data net/ipv4/tcp_output.c:3849 [inline]
 tcp_connect+0x2e27/0x5210 net/ipv4/tcp_output.c:3888
 tcp_v6_connect+0x1251/0x1b10 net/ipv6/tcp_ipv6.c:342
 __inet_stream_connect+0x254/0xe50 net/ipv4/af_inet.c:669
 tcp_sendmsg_fastopen+0x38c/0x5d0 net/ipv4/tcp.c:1205
 tcp_sendmsg_locked+0x39d8/0x4000 net/ipv4/tcp.c:1253
 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1488
 inet6_sendmsg+0xa1/0xc0 net/ipv6/af_inet6.c:668
 sock_sendmsg_nosec net/socket.c:716 [inline]
 __sock_sendmsg net/socket.c:728 [inline]
 __sys_sendto+0x480/0x600 net/socket.c:2143
 __do_sys_sendto net/socket.c:2155 [inline]
 __se_sys_sendto net/socket.c:2151 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2151
 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa012d8e169
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:00007fa013b4c038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fa012fb5fa0 RCX: 00007fa012d8e169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fa012e10a68 R08: 0000200000b63fe4 R09: 000000000000001c
R10: 0000000020000841 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa012fb5fa0 R15: 00007ffd40e8e7a8
 </TASK>

Allocated by task 4820:
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505
 ____kasan_kmalloc mm/kasan/common.c:379 [inline]
 __kasan_kmalloc+0x9c/0xb0 mm/kasan/common.c:388
 kasan_kmalloc include/linux/kasan.h:212 [inline]
 __do_kmalloc_node mm/slab_common.c:938 [inline]
 __kmalloc_node+0xb4/0x1e0 mm/slab_common.c:945
 kmalloc_node include/linux/slab.h:589 [inline]
 bpf_map_kmalloc_node+0xd0/0x2c0 kernel/bpf/syscall.c:454
 __cpu_map_entry_alloc kernel/bpf/cpumap.c:445 [inline]
 cpu_map_update_elem+0x28f/0xf50 kernel/bpf/cpumap.c:603
 bpf_map_update_value+0x1a3/0x410 kernel/bpf/syscall.c:190
 map_update_elem+0x500/0x680 kernel/bpf/syscall.c:1443
 __sys_bpf+0x460/0x7f0 kernel/bpf/syscall.c:4995
 __do_sys_bpf kernel/bpf/syscall.c:5111 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5109 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5109
 x64_sys_call+0x87f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

Freed by task 4821:
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516
 ____kasan_slab_free+0x131/0x180 mm/kasan/common.c:241
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249
 kasan_slab_free include/linux/kasan.h:178 [inline]
 slab_free_hook mm/slub.c:1745 [inline]
 slab_free_freelist_hook mm/slub.c:1771 [inline]
 slab_free mm/slub.c:3686 [inline]
 __kmem_cache_free+0x21d/0x410 mm/slub.c:3702
 kfree+0x7a/0xf0 mm/slab_common.c:990
 put_cpu_map_entry+0x6e2/0x760 kernel/bpf/cpumap.c:161
 cpu_map_kthread_run+0x2463/0x2520 kernel/bpf/cpumap.c:408
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Last potentially related work creation:
 kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45
 __kasan_record_aux_stack+0xb4/0xc0 mm/kasan/generic.c:486
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496
 insert_work+0x56/0x310 kernel/workqueue.c:1368
 __queue_work+0x9b6/0xd70 kernel/workqueue.c:1527
 queue_work_on+0x105/0x170 kernel/workqueue.c:1555
 queue_work include/linux/workqueue.h:510 [inline]
 schedule_work include/linux/workqueue.h:571 [inline]
 __cpu_map_entry_replace kernel/bpf/cpumap.c:558 [inline]
 cpu_map_free+0x1e7/0x2c0 kernel/bpf/cpumap.c:641
 bpf_map_free_deferred+0xf7/0x1b0 kernel/bpf/syscall.c:637
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Second to last potentially related work creation:
 kasan_save_stack+0x3b/0x60 mm/kasan/common.c:45
 __kasan_record_aux_stack+0xb4/0xc0 mm/kasan/generic.c:486
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496
 __call_rcu_common kernel/rcu/tree.c:2807 [inline]
 call_rcu+0xdc/0x10f0 kernel/rcu/tree.c:2926
 __cpu_map_entry_replace kernel/bpf/cpumap.c:556 [inline]
 cpu_map_free+0x109/0x2c0 kernel/bpf/cpumap.c:641
 bpf_map_free_deferred+0xf7/0x1b0 kernel/bpf/syscall.c:637
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

The buggy address belongs to the object at ffff8881158a5d00
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 24 bytes inside of
 192-byte region [ffff8881158a5d00, ffff8881158a5dc0)

The buggy address belongs to the physical page:
page:ffffea0004562940 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8881158a5b00 pfn:0x1158a5
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 ffffea000461b948 ffffea0004469fc8 ffff888100042c00
raw: ffff8881158a5b00 000000000010000f 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 102, tgid 102 (udevd), ts 5582558061, free_ts 0
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x213/0x220 mm/page_alloc.c:2637
 prep_new_page+0x1b/0x110 mm/page_alloc.c:2644
 get_page_from_freelist+0x3a98/0x3b10 mm/page_alloc.c:4539
 __alloc_pages+0x234/0x610 mm/page_alloc.c:5837
 alloc_slab_page+0x6c/0xf0 include/linux/gfp.h:-1
 allocate_slab mm/slub.c:1962 [inline]
 new_slab+0x90/0x3e0 mm/slub.c:2015
 ___slab_alloc+0x6f9/0xb80 mm/slub.c:3203
 __slab_alloc+0x5d/0xa0 mm/slub.c:3302
 slab_alloc_node mm/slub.c:3387 [inline]
 __kmem_cache_alloc_node+0x207/0x2a0 mm/slub.c:3462
 kmalloc_trace+0x2a/0xa0 mm/slab_common.c:1028
 kmalloc include/linux/slab.h:563 [inline]
 kzalloc include/linux/slab.h:699 [inline]
 kernfs_fop_open+0x350/0xb10 fs/kernfs/file.c:672
 do_dentry_open+0x891/0x1250 fs/open.c:884
 vfs_open+0x73/0x80 fs/open.c:1015
 do_open fs/namei.c:3625 [inline]
 path_openat+0x2532/0x2d60 fs/namei.c:3782
 do_filp_open+0x230/0x480 fs/namei.c:3809
 do_sys_openat2+0x151/0x870 fs/open.c:1341
page_owner free stack trace missing

Memory state around the buggy address:
 ffff8881158a5c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881158a5c80: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
>ffff8881158a5d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                            ^
 ffff8881158a5d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8881158a5e00: 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:131:9
index 16382 is out of range for type 'unsigned long[8]'
CPU: 1 PID: 4839 Comm: syz.8.1021 Tainted: G    B              6.1.129-syzkaller-00014-gbc3d1d352ab6 #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/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x1e lib/dump_stack.c:113
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_out_of_bounds+0x13a/0x160 lib/ubsan.c:282
 decode_tail kernel/locking/qspinlock.c:131 [inline]
 __pv_queued_spin_lock_slowpath+0xb96/0xda0 kernel/locking/qspinlock.c:471
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock include/linux/spinlock_api_smp.h:134 [inline]
 _raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 ptr_ring_produce include/linux/ptr_ring.h:128 [inline]
 cpu_map_generic_redirect+0x1f4/0x780 kernel/bpf/cpumap.c:788
 xdp_do_generic_redirect_map net/core/filter.c:4435 [inline]
 xdp_do_generic_redirect+0x3df/0xb40 net/core/filter.c:4482
 do_xdp_generic+0x53e/0x800 net/core/dev.c:4968
 __netif_receive_skb_core+0x19ae/0x43d0 net/core/dev.c:5375
 __netif_receive_skb_one_core net/core/dev.c:5552 [inline]
 __netif_receive_skb+0x11c/0x530 net/core/dev.c:5668
 process_backlog+0x32c/0x630 net/core/dev.c:5996
 __napi_poll+0xbe/0x5c0 net/core/dev.c:6563
 napi_poll net/core/dev.c:6630 [inline]
 net_rx_action+0x595/0xdd0 net/core/dev.c:6744
 handle_softirqs+0x1db/0x650 kernel/softirq.c:624
 __do_softirq+0xb/0xd kernel/softirq.c:662
 do_softirq+0xf6/0x150 kernel/softirq.c:506
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x75/0x80 kernel/softirq.c:430
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:870 [inline]
 __dev_queue_xmit+0x156c/0x3730 net/core/dev.c:4341
 dev_queue_xmit include/linux/netdevice.h:3082 [inline]
 neigh_hh_output include/net/neighbour.h:536 [inline]
 neigh_output include/net/neighbour.h:550 [inline]
 ip6_finish_output2+0x1200/0x1850 net/ipv6/ip6_output.c:138
 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline]
 ip6_finish_output+0x50f/0xa60 net/ipv6/ip6_output.c:216
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0x1f7/0x4c0 net/ipv6/ip6_output.c:237
 dst_output include/net/dst.h:444 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_xmit+0xc5d/0x1650 net/ipv6/ip6_output.c:357
 inet6_csk_xmit+0x341/0x4e0 net/ipv6/inet6_connection_sock.c:135
 __tcp_transmit_skb+0x1e9e/0x35a0 net/ipv4/tcp_output.c:1403
 tcp_transmit_skb net/ipv4/tcp_output.c:1421 [inline]
 tcp_send_syn_data net/ipv4/tcp_output.c:3849 [inline]
 tcp_connect+0x2e27/0x5210 net/ipv4/tcp_output.c:3888
 tcp_v6_connect+0x1251/0x1b10 net/ipv6/tcp_ipv6.c:342
 __inet_stream_connect+0x254/0xe50 net/ipv4/af_inet.c:669
 tcp_sendmsg_fastopen+0x38c/0x5d0 net/ipv4/tcp.c:1205
 tcp_sendmsg_locked+0x39d8/0x4000 net/ipv4/tcp.c:1253
 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1488
 inet6_sendmsg+0xa1/0xc0 net/ipv6/af_inet6.c:668
 sock_sendmsg_nosec net/socket.c:716 [inline]
 __sock_sendmsg net/socket.c:728 [inline]
 __sys_sendto+0x480/0x600 net/socket.c:2143
 __do_sys_sendto net/socket.c:2155 [inline]
 __se_sys_sendto net/socket.c:2151 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2151
 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa012d8e169
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:00007fa013b4c038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fa012fb5fa0 RCX: 00007fa012d8e169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fa012e10a68 R08: 0000200000b63fe4 R09: 000000000000001c
R10: 0000000020000841 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa012fb5fa0 R15: 00007ffd40e8e7a8
 </TASK>
================================================================================
general protection fault, probably for non-canonical address 0xe012274d9f53bee9: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x00915a6cfa9df748-0x00915a6cfa9df74f]
CPU: 1 PID: 4839 Comm: syz.8.1021 Tainted: G    B              6.1.129-syzkaller-00014-gbc3d1d352ab6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:__pv_queued_spin_lock_slowpath+0x2f5/0xda0 kernel/locking/qspinlock.c:474
Code: 4c 89 e8 48 c1 e8 03 80 3c 10 00 74 12 4c 89 ef e8 60 9c 9a fc 48 ba 00 00 00 00 00 fc ff df 49 03 5d 00 48 89 d8 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 dd 9c 9a fc 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc900001b0540 EFLAGS: 00010203
RAX: 00122b4d9f53bee9 RBX: 00915a6cfa9df74d RCX: ffff88811f22bcc0
RDX: dffffc0000000000 RSI: 0000000000000002 RDI: 00000000ffffffff
RBP: ffffc900001b0630 R08: ffffffff814485fb R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff11022b14b00
R13: ffffffff8676d980 R14: 1ffff1103ede7179 R15: ffff8881158a5804
FS:  00007fa013b4c6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000b63fe4 CR3: 0000000124ce4000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock include/linux/spinlock_api_smp.h:134 [inline]
 _raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 ptr_ring_produce include/linux/ptr_ring.h:128 [inline]
 cpu_map_generic_redirect+0x1f4/0x780 kernel/bpf/cpumap.c:788
 xdp_do_generic_redirect_map net/core/filter.c:4435 [inline]
 xdp_do_generic_redirect+0x3df/0xb40 net/core/filter.c:4482
 do_xdp_generic+0x53e/0x800 net/core/dev.c:4968
 __netif_receive_skb_core+0x19ae/0x43d0 net/core/dev.c:5375
 __netif_receive_skb_one_core net/core/dev.c:5552 [inline]
 __netif_receive_skb+0x11c/0x530 net/core/dev.c:5668
 process_backlog+0x32c/0x630 net/core/dev.c:5996
 __napi_poll+0xbe/0x5c0 net/core/dev.c:6563
 napi_poll net/core/dev.c:6630 [inline]
 net_rx_action+0x595/0xdd0 net/core/dev.c:6744
 handle_softirqs+0x1db/0x650 kernel/softirq.c:624
 __do_softirq+0xb/0xd kernel/softirq.c:662
 do_softirq+0xf6/0x150 kernel/softirq.c:506
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x75/0x80 kernel/softirq.c:430
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:870 [inline]
 __dev_queue_xmit+0x156c/0x3730 net/core/dev.c:4341
 dev_queue_xmit include/linux/netdevice.h:3082 [inline]
 neigh_hh_output include/net/neighbour.h:536 [inline]
 neigh_output include/net/neighbour.h:550 [inline]
 ip6_finish_output2+0x1200/0x1850 net/ipv6/ip6_output.c:138
 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline]
 ip6_finish_output+0x50f/0xa60 net/ipv6/ip6_output.c:216
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0x1f7/0x4c0 net/ipv6/ip6_output.c:237
 dst_output include/net/dst.h:444 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_xmit+0xc5d/0x1650 net/ipv6/ip6_output.c:357
 inet6_csk_xmit+0x341/0x4e0 net/ipv6/inet6_connection_sock.c:135
 __tcp_transmit_skb+0x1e9e/0x35a0 net/ipv4/tcp_output.c:1403
 tcp_transmit_skb net/ipv4/tcp_output.c:1421 [inline]
 tcp_send_syn_data net/ipv4/tcp_output.c:3849 [inline]
 tcp_connect+0x2e27/0x5210 net/ipv4/tcp_output.c:3888
 tcp_v6_connect+0x1251/0x1b10 net/ipv6/tcp_ipv6.c:342
 __inet_stream_connect+0x254/0xe50 net/ipv4/af_inet.c:669
 tcp_sendmsg_fastopen+0x38c/0x5d0 net/ipv4/tcp.c:1205
 tcp_sendmsg_locked+0x39d8/0x4000 net/ipv4/tcp.c:1253
 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1488
 inet6_sendmsg+0xa1/0xc0 net/ipv6/af_inet6.c:668
 sock_sendmsg_nosec net/socket.c:716 [inline]
 __sock_sendmsg net/socket.c:728 [inline]
 __sys_sendto+0x480/0x600 net/socket.c:2143
 __do_sys_sendto net/socket.c:2155 [inline]
 __se_sys_sendto net/socket.c:2151 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2151
 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fa012d8e169
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:00007fa013b4c038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fa012fb5fa0 RCX: 00007fa012d8e169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fa012e10a68 R08: 0000200000b63fe4 R09: 000000000000001c
R10: 0000000020000841 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa012fb5fa0 R15: 00007ffd40e8e7a8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__pv_queued_spin_lock_slowpath+0x2f5/0xda0 kernel/locking/qspinlock.c:474
Code: 4c 89 e8 48 c1 e8 03 80 3c 10 00 74 12 4c 89 ef e8 60 9c 9a fc 48 ba 00 00 00 00 00 fc ff df 49 03 5d 00 48 89 d8 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 dd 9c 9a fc 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc900001b0540 EFLAGS: 00010203
RAX: 00122b4d9f53bee9 RBX: 00915a6cfa9df74d RCX: ffff88811f22bcc0
RDX: dffffc0000000000 RSI: 0000000000000002 RDI: 00000000ffffffff
RBP: ffffc900001b0630 R08: ffffffff814485fb R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff11022b14b00
R13: ffffffff8676d980 R14: 1ffff1103ede7179 R15: ffff8881158a5804
FS:  00007fa013b4c6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000b63fe4 CR3: 0000000124ce4000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	4c 89 e8             	mov    %r13,%rax
   3:	48 c1 e8 03          	shr    $0x3,%rax
   7:	80 3c 10 00          	cmpb   $0x0,(%rax,%rdx,1)
   b:	74 12                	je     0x1f
   d:	4c 89 ef             	mov    %r13,%rdi
  10:	e8 60 9c 9a fc       	call   0xfc9a9c75
  15:	48 ba 00 00 00 00 00 	movabs $0xdffffc0000000000,%rdx
  1c:	fc ff df
  1f:	49 03 5d 00          	add    0x0(%r13),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 10 00          	cmpb   $0x0,(%rax,%rdx,1) <-- trapping instruction
  2e:	74 12                	je     0x42
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 dd 9c 9a fc       	call   0xfc9a9d15
  38:	48                   	rex.W
  39:	ba 00 00 00 00       	mov    $0x0,%edx
  3e:	00 fc                	add    %bh,%ah

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/20 09:29 android14-6.1 bc3d1d352ab6 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in cpu_map_generic_redirect
* Struck through repros no longer work on HEAD.