general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 1339 Comm: syz.3.429 Not tainted 5.15.176-syzkaller-00972-g829d9f138569 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:dev_map_generic_redirect+0x91/0x6f0 kernel/bpf/devmap.c:667 Code: f1 00 f2 f2 f2 4b 89 44 35 00 43 c7 44 35 0f f3 f3 f3 f3 43 c6 44 35 13 f3 e8 eb 0f e1 ff 48 89 d8 48 c1 e8 03 48 89 44 24 40 <42> 80 3c 30 00 74 08 48 89 df e8 e0 74 23 00 48 89 5c 24 08 4c 8b RSP: 0018:ffffc900001d06e0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881142913c0 RDX: 0000000000000100 RSI: ffff888111335c78 RDI: 0000000000000000 RBP: ffffc900001d0830 R08: ffffffff83f15ffd R09: ffffffff83f15f1b R10: 0000000000000004 R11: ffff8881142913c0 R12: 0000000000000019 R13: 1ffff9200003a0e8 R14: dffffc0000000000 R15: ffff888111335c78 FS: 00007f2d6583a6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001c80 CR3: 00000001267a8000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: xdp_do_generic_redirect_map net/core/filter.c:4177 [inline] xdp_do_generic_redirect+0x42e/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+0xb/0xd kernel/softirq.c:603 do_softirq+0xf6/0x150 kernel/softirq.c:452 __local_bh_enable_ip+0x75/0x80 kernel/softirq.c:379 local_bh_enable+0x1f/0x30 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:818 [inline] ip_finish_output2+0xbef/0xf60 net/ipv4/ip_output.c:229 __ip_finish_output+0x162/0x360 ip_finish_output+0x31/0x210 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip_output+0x1d6/0x420 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:444 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x1105/0x1c20 net/ipv4/ip_output.c:532 ip_queue_xmit+0x4c/0x70 net/ipv4/ip_output.c:546 __tcp_transmit_skb+0x1e84/0x3920 net/ipv4/tcp_output.c:1404 tcp_transmit_skb net/ipv4/tcp_output.c:1422 [inline] tcp_send_syn_data net/ipv4/tcp_output.c:3828 [inline] tcp_connect+0x2c55/0x52d0 net/ipv4/tcp_output.c:3893 tcp_v4_connect+0x10bb/0x1d70 net/ipv4/tcp_ipv4.c:321 __inet_stream_connect+0x254/0xe10 net/ipv4/af_inet.c:669 tcp_sendmsg_fastopen+0x38c/0x5d0 net/ipv4/tcp.c:1195 tcp_sendmsg_locked+0x3468/0x3a90 net/ipv4/tcp.c:1237 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1457 inet_sendmsg+0xa1/0xc0 net/ipv4/af_inet.c:830 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2436 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2490 __sys_sendmmsg+0x2bf/0x530 net/socket.c:2576 __do_sys_sendmmsg net/socket.c:2605 [inline] __se_sys_sendmmsg net/socket.c:2602 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2602 x64_sys_call+0x81d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:308 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:0x7f2d671cfd29 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:00007f2d6583a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f2d673e8fa0 RCX: 00007f2d671cfd29 RDX: 0000000000000001 RSI: 0000000020001c80 RDI: 0000000000000003 RBP: 00007f2d672512a0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000240080c4 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2d673e8fa0 R15: 00007ffe102f7d28 Modules linked in: ---[ end trace d72360d75e4d9782 ]--- RIP: 0010:dev_map_generic_redirect+0x91/0x6f0 kernel/bpf/devmap.c:667 Code: f1 00 f2 f2 f2 4b 89 44 35 00 43 c7 44 35 0f f3 f3 f3 f3 43 c6 44 35 13 f3 e8 eb 0f e1 ff 48 89 d8 48 c1 e8 03 48 89 44 24 40 <42> 80 3c 30 00 74 08 48 89 df e8 e0 74 23 00 48 89 5c 24 08 4c 8b RSP: 0018:ffffc900001d06e0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8881142913c0 RDX: 0000000000000100 RSI: ffff888111335c78 RDI: 0000000000000000 RBP: ffffc900001d0830 R08: ffffffff83f15ffd R09: ffffffff83f15f1b R10: 0000000000000004 R11: ffff8881142913c0 R12: 0000000000000019 R13: 1ffff9200003a0e8 R14: dffffc0000000000 R15: ffff888111335c78 FS: 00007f2d6583a6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001c80 CR3: 00000001267a8000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f1 int1 1: 00 f2 add %dh,%dl 3: f2 f2 4b 89 44 35 00 repnz repnz mov %rax,0x0(%r13,%r14,1) a: 43 c7 44 35 0f f3 f3 movl $0xf3f3f3f3,0xf(%r13,%r14,1) 11: f3 f3 13: 43 c6 44 35 13 f3 movb $0xf3,0x13(%r13,%r14,1) 19: e8 eb 0f e1 ff call 0xffe11009 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 40 mov %rax,0x40(%rsp) * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 e0 74 23 00 call 0x237519 39: 48 89 5c 24 08 mov %rbx,0x8(%rsp) 3e: 4c rex.WR 3f: 8b .byte 0x8b