Oops: stack segment: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 5598 Comm: syz.4.119 Not tainted 6.10.0-rc6-next-20240703-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:bpf_net_ctx_get_ri include/linux/filter.h:788 [inline] RIP: 0010:__bpf_xdp_redirect_map include/linux/filter.h:1699 [inline] RIP: 0010:cpu_map_redirect+0x5c/0x470 kernel/bpf/cpumap.c:643 Code: 81 c3 00 18 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 62 6b 3d 00 4c 8b 2b 49 8d 5d 38 48 89 dd 48 c1 ed 03 <42> 0f b6 44 35 00 84 c0 0f 85 fd 02 00 00 44 8b 33 44 89 f6 83 e6 RSP: 0018:ffffc90013daf088 EFLAGS: 00010202 RAX: 1ffff11004dd36c0 RBX: 0000000000000038 RCX: 0000000000040000 RDX: ffffc900096ce000 RSI: 00000000000004b2 RDI: 00000000000004b3 RBP: 0000000000000007 R08: 0000000000000007 R09: ffffffff81b5ee2f R10: 0000000000000004 R11: ffff888026e99e00 R12: 0000000013daf0d8 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88807e3dec00 FS: 00007f4ddb3e46c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c472591 CR3: 000000001e58a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_ec9efaa32d58ce69+0x56/0x5a __bpf_prog_run include/linux/filter.h:682 [inline] bpf_prog_run_xdp include/net/xdp.h:514 [inline] bpf_prog_run_generic_xdp+0x1265/0x14c0 net/core/dev.c:4962 netif_receive_generic_xdp net/core/dev.c:5075 [inline] do_xdp_generic+0x673/0xb90 net/core/dev.c:5134 __netif_receive_skb_core+0x1be6/0x4570 net/core/dev.c:5475 __netif_receive_skb_one_core net/core/dev.c:5653 [inline] __netif_receive_skb+0x12f/0x650 net/core/dev.c:5769 netif_receive_skb_internal net/core/dev.c:5855 [inline] netif_receive_skb+0x1e8/0x890 net/core/dev.c:5915 tun_rx_batched+0x1b7/0x8f0 drivers/net/tun.c:1549 tun_get_user+0x2f3b/0x4560 drivers/net/tun.c:2002 tun_chr_write_iter+0x113/0x1f0 drivers/net/tun.c:2048 new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa72/0xc90 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4dda57475f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 29 8c 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 7c 8c 02 00 48 RSP: 002b:00007f4ddb3e4010 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4dda703f60 RCX: 00007f4dda57475f RDX: 0000000000000022 RSI: 0000000020000a40 RDI: 00000000000000c8 RBP: 00007f4dda5e4e60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000022 R11: 0000000000000293 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4dda703f60 R15: 00007fff89e191f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bpf_net_ctx_get_ri include/linux/filter.h:788 [inline] RIP: 0010:__bpf_xdp_redirect_map include/linux/filter.h:1699 [inline] RIP: 0010:cpu_map_redirect+0x5c/0x470 kernel/bpf/cpumap.c:643 Code: 81 c3 00 18 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 62 6b 3d 00 4c 8b 2b 49 8d 5d 38 48 89 dd 48 c1 ed 03 <42> 0f b6 44 35 00 84 c0 0f 85 fd 02 00 00 44 8b 33 44 89 f6 83 e6 RSP: 0018:ffffc90013daf088 EFLAGS: 00010202 RAX: 1ffff11004dd36c0 RBX: 0000000000000038 RCX: 0000000000040000 RDX: ffffc900096ce000 RSI: 00000000000004b2 RDI: 00000000000004b3 RBP: 0000000000000007 R08: 0000000000000007 R09: ffffffff81b5ee2f R10: 0000000000000004 R11: ffff888026e99e00 R12: 0000000013daf0d8 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88807e3dec00 FS: 00007f4ddb3e46c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c472591 CR3: 000000001e58a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 81 c3 00 18 00 00 add $0x1800,%ebx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 62 6b 3d 00 call 0x3d6b7e 1c: 4c 8b 2b mov (%rbx),%r13 1f: 49 8d 5d 38 lea 0x38(%r13),%rbx 23: 48 89 dd mov %rbx,%rbp 26: 48 c1 ed 03 shr $0x3,%rbp * 2a: 42 0f b6 44 35 00 movzbl 0x0(%rbp,%r14,1),%eax <-- trapping instruction 30: 84 c0 test %al,%al 32: 0f 85 fd 02 00 00 jne 0x335 38: 44 8b 33 mov (%rbx),%r14d 3b: 44 89 f6 mov %r14d,%esi 3e: 83 .byte 0x83 3f: e6 .byte 0xe6