general protection fault, probably for non-canonical address 0xdffffc000000005a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000002d0-0x00000000000002d7] CPU: 0 PID: 8704 Comm: kworker/u4:29 Not tainted 6.1.145-syzkaller-00002-gc750dc582629 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: wg-kex-wg1 wg_packet_handshake_send_worker RIP: 0010:ip_ignore_linkdown include/linux/inetdevice.h:259 [inline] RIP: 0010:fib_lookup_good_nhc net/ipv4/fib_trie.c:1413 [inline] RIP: 0010:nexthop_get_nhc_lookup+0x17e/0x750 include/net/nexthop.h:405 Code: d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 78 15 7c fd 48 89 5d a8 48 8b 1b b8 d0 02 00 00 48 01 c3 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 53 15 7c fd 48 8b 1b 48 85 db 0f RSP: 0018:ffffc900012a7698 EFLAGS: 00010206 RAX: 000000000000005a RBX: 00000000000002d0 RCX: 0000000000000000 RDX: ffff88811d000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900012a7708 R08: dffffc0000000000 R09: ffffc900012a7900 R10: fffff52000254f26 R11: 1ffff92000254f20 R12: ffff88812ca97900 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc900012a7a40 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c31ed85 CR3: 000000017df4e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: fib_table_lookup+0x10b7/0x1a60 net/ipv4/fib_trie.c:1590 fib_lookup include/net/ip_fib.h:384 [inline] ip_route_output_key_hash_rcu+0x497/0x2060 net/ipv4/route.c:2781 ip_route_output_key_hash net/ipv4/route.c:2671 [inline] __ip_route_output_key include/net/route.h:137 [inline] ip_route_output_flow+0x12e/0x2e0 net/ipv4/route.c:2901 send4+0x317/0x9a0 drivers/net/wireguard/socket.c:61 wg_socket_send_skb_to_peer+0xd4/0x1d0 drivers/net/wireguard/socket.c:175 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+0x71f/0xc40 kernel/workqueue.c:2302 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2449 kthread+0x281/0x320 kernel/kthread.c:397 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ip_ignore_linkdown include/linux/inetdevice.h:259 [inline] RIP: 0010:fib_lookup_good_nhc net/ipv4/fib_trie.c:1413 [inline] RIP: 0010:nexthop_get_nhc_lookup+0x17e/0x750 include/net/nexthop.h:405 Code: d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 78 15 7c fd 48 89 5d a8 48 8b 1b b8 d0 02 00 00 48 01 c3 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 53 15 7c fd 48 8b 1b 48 85 db 0f RSP: 0018:ffffc900012a7698 EFLAGS: 00010206 RAX: 000000000000005a RBX: 00000000000002d0 RCX: 0000000000000000 RDX: ffff88811d000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900012a7708 R08: dffffc0000000000 R09: ffffc900012a7900 R10: fffff52000254f26 R11: 1ffff92000254f20 R12: ffff88812ca97900 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc900012a7a40 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c31ed85 CR3: 000000017df4e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: d8 48 c1 fmuls -0x3f(%rax) 3: e8 03 42 80 3c call 0x3c80420b 8: 28 00 sub %al,(%rax) a: 74 08 je 0x14 c: 48 89 df mov %rbx,%rdi f: e8 78 15 7c fd call 0xfd7c158c 14: 48 89 5d a8 mov %rbx,-0x58(%rbp) 18: 48 8b 1b mov (%rbx),%rbx 1b: b8 d0 02 00 00 mov $0x2d0,%eax 20: 48 01 c3 add %rax,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 53 15 7c fd call 0xfd7c158c 39: 48 8b 1b mov (%rbx),%rbx 3c: 48 85 db test %rbx,%rbx 3f: 0f .byte 0xf