Oops: general protection fault, probably for non-canonical address 0xdffffc0000000018: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7] CPU: 1 UID: 0 PID: 36 Comm: kworker/u8:2 Not tainted 6.15.0-rc5-syzkaller-00277-g345030986df8 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: wg-kex-wg1 wg_packet_handshake_send_worker RIP: 0010:__in6_dev_get include/net/addrconf.h:347 [inline] RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:443 [inline] RIP: 0010:find_match+0x136/0x15d0 net/ipv6/route.c:781 Code: 48 c1 ea 03 80 3c 02 00 0f 85 ac 11 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7d 00 49 8d bf c0 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 93 11 00 00 4d 8b bf c0 00 00 00 e8 84 1c 50 01 RSP: 0018:ffffc90000ad7058 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000003 RCX: ffffffff8a1ca97c RDX: 0000000000000018 RSI: ffffffff8a1ca9bf RDI: 00000000000000c0 RBP: ffffc90000ad7160 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888028b6e437 R13: ffff888028b6e420 R14: 1ffff9200015ae1a R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888124ae1000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b8fe1fd3b1 CR3: 000000002955b000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000004520 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: rt6_nh_find_match+0xfa/0x1a0 net/ipv6/route.c:821 nexthop_for_each_fib6_nh+0x165/0x4a0 net/ipv4/nexthop.c:1515 __find_rr_leaf+0x6e5/0xe00 net/ipv6/route.c:862 find_rr_leaf net/ipv6/route.c:890 [inline] rt6_select net/ipv6/route.c:934 [inline] fib6_table_lookup+0x57c/0xa30 net/ipv6/route.c:2230 ip6_pol_route+0x1cc/0x1230 net/ipv6/route.c:2266 pol_lookup_func include/net/ip6_fib.h:616 [inline] fib6_rule_lookup+0x386/0x720 net/ipv6/fib6_rules.c:125 ip6_route_output_flags_noref net/ipv6/route.c:2674 [inline] ip6_route_output_flags+0x1d0/0x640 net/ipv6/route.c:2686 ip6_route_output include/net/ip6_route.h:93 [inline] ip6_dst_lookup_tail.constprop.0+0xa52/0x2140 net/ipv6/ip6_output.c:1128 ip6_dst_lookup_flow+0x99/0x1d0 net/ipv6/ip6_output.c:1259 send6+0x61c/0xd30 drivers/net/wireguard/socket.c:139 wg_socket_send_skb_to_peer+0xf6/0x210 drivers/net/wireguard/socket.c:178 wg_socket_send_buffer_to_peer+0x148/0x1a0 drivers/net/wireguard/socket.c:200 wg_packet_send_handshake_initiation+0x225/0x360 drivers/net/wireguard/send.c:40 wg_packet_handshake_send_worker+0x1c/0x30 drivers/net/wireguard/send.c:51 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__in6_dev_get include/net/addrconf.h:347 [inline] RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:443 [inline] RIP: 0010:find_match+0x136/0x15d0 net/ipv6/route.c:781 Code: 48 c1 ea 03 80 3c 02 00 0f 85 ac 11 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7d 00 49 8d bf c0 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 93 11 00 00 4d 8b bf c0 00 00 00 e8 84 1c 50 01 RSP: 0018:ffffc90000ad7058 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000003 RCX: ffffffff8a1ca97c RDX: 0000000000000018 RSI: ffffffff8a1ca9bf RDI: 00000000000000c0 RBP: ffffc90000ad7160 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888028b6e437 R13: ffff888028b6e420 R14: 1ffff9200015ae1a R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888124ae1000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b8fe1fd3b1 CR3: 000000000e180000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000004520 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 ac 11 00 00 jne 0x11ba e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 4d 8b 7d 00 mov 0x0(%r13),%r15 1c: 49 8d bf c0 00 00 00 lea 0xc0(%r15),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 93 11 00 00 jne 0x11c7 34: 4d 8b bf c0 00 00 00 mov 0xc0(%r15),%r15 3b: e8 84 1c 50 01 call 0x1501cc4