general protection fault, probably for non-canonical address 0xdffffc000000005e: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000002f0-0x00000000000002f7] CPU: 0 PID: 7252 Comm: kworker/u4:496 Tainted: G W 5.15.185-syzkaller-00071-g79bd7c447241 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: wg-kex-wg2 wg_packet_handshake_send_worker RIP: 0010:__in6_dev_get include/net/addrconf.h:341 [inline] RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:432 [inline] RIP: 0010:find_match+0xb7/0xf20 net/ipv6/route.c:744 Code: 7c 05 00 00 74 08 48 89 df e8 65 36 87 fd 48 89 d8 bb f0 02 00 00 48 03 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 3b 36 87 fd 48 8b 1b 48 85 db 0f 84 RSP: 0000:ffffc900069d7000 EFLAGS: 00010202 RAX: 000000000000005e RBX: 00000000000002f0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900069d70b8 R08: ffffc900069d73e0 R09: ffffc900069d73f0 R10: fffff52000d3ae9e R11: 1ffff92000d3ae9a R12: 0000000000000201 R13: 1ffff110258a7f24 R14: 0000000000000000 R15: 0000000000000003 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d70fff8 CR3: 000000011cf8c000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rt6_nh_find_match+0xd9/0x140 net/ipv6/route.c:784 nexthop_for_each_fib6_nh+0xf6/0x1e0 net/ipv4/nexthop.c:1242 __find_rr_leaf+0x50f/0x900 net/ipv6/route.c:825 find_rr_leaf net/ipv6/route.c:853 [inline] rt6_select net/ipv6/route.c:897 [inline] fib6_table_lookup+0x2f4/0x9f0 net/ipv6/route.c:2189 ip6_pol_route+0x145/0x1110 net/ipv6/route.c:2225 ip6_pol_route_output+0x51/0x80 net/ipv6/route.c:2601 pol_lookup_func include/net/ip6_fib.h:592 [inline] fib6_rule_lookup+0x2ef/0x560 net/ipv6/fib6_rules.c:120 ip6_route_output_flags_noref+0x283/0x340 net/ipv6/route.c:2633 ip6_route_output_flags+0x3c/0x200 net/ipv6/route.c:2646 ip6_route_output include/net/ip6_route.h:98 [inline] ip6_dst_lookup_tail+0x139/0x1370 net/ipv6/ip6_output.c:1102 ip6_dst_lookup_flow+0x49/0xc0 net/ipv6/ip6_output.c:1232 send6+0x3a0/0x640 drivers/net/wireguard/socket.c:139 wg_socket_send_skb_to_peer+0x114/0x1d0 drivers/net/wireguard/socket.c:178 wg_socket_send_buffer_to_peer+0x118/0x170 drivers/net/wireguard/socket.c:200 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x1d4/0x240 drivers/net/wireguard/send.c:51 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Modules linked in: ---[ end trace 0be8d4842d8c826f ]--- RIP: 0010:__in6_dev_get include/net/addrconf.h:341 [inline] RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:432 [inline] RIP: 0010:find_match+0xb7/0xf20 net/ipv6/route.c:744 Code: 7c 05 00 00 74 08 48 89 df e8 65 36 87 fd 48 89 d8 bb f0 02 00 00 48 03 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 3b 36 87 fd 48 8b 1b 48 85 db 0f 84 RSP: 0000:ffffc900069d7000 EFLAGS: 00010202 RAX: 000000000000005e RBX: 00000000000002f0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900069d70b8 R08: ffffc900069d73e0 R09: ffffc900069d73f0 R10: fffff52000d3ae9e R11: 1ffff92000d3ae9a R12: 0000000000000201 R13: 1ffff110258a7f24 R14: 0000000000000000 R15: 0000000000000003 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d70fff8 CR3: 000000000660f000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 7c 05 jl 0x7 2: 00 00 add %al,(%rax) 4: 74 08 je 0xe 6: 48 89 df mov %rbx,%rdi 9: e8 65 36 87 fd call 0xfd873673 e: 48 89 d8 mov %rbx,%rax 11: bb f0 02 00 00 mov $0x2f0,%ebx 16: 48 03 18 add (%rax),%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 3b 36 87 fd call 0xfd873673 38: 48 8b 1b mov (%rbx),%rbx 3b: 48 85 db test %rbx,%rbx 3e: 0f .byte 0xf 3f: 84 .byte 0x84