general protection fault, probably for non-canonical address 0xdffffc000000006b: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000358-0x000000000000035f] CPU: 1 PID: 9 Comm: kworker/u4:0 Not tainted 5.15.186-syzkaller #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:ip_ignore_linkdown include/linux/inetdevice.h:254 [inline] RIP: 0010:fib_lookup_good_nhc+0x81/0x3d0 net/ipv4/fib_trie.c:1407 Code: 4c 89 24 24 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 af c3 51 f9 41 bc 58 03 00 00 4c 03 23 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 90 c3 51 f9 4d 8b 24 24 e8 87 0a RSP: 0018:ffffc90000ce7398 EFLAGS: 00010202 RAX: 000000000000006b RBX: ffff888024906320 RCX: ffff88813fed0000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88802490632f R08: dffffc0000000000 R09: fffffbfff1ff7419 R10: fffffbfff1ff7419 R11: 1ffffffff1ff7418 R12: 0000000000000358 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff11004920c65 FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fc13ff8 CR3: 000000004b4c9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 3a810b1eb6134bdc DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nexthop_get_nhc_lookup+0x1a8/0x400 include/net/nexthop.h:405 fib_table_lookup+0xe76/0x15e0 net/ipv4/fib_trie.c:1583 fib4_rule_action+0x1cf/0x2f0 net/ipv4/fib_rules.c:135 fib_rules_lookup+0x5ab/0xaf0 net/core/fib_rules.c:318 __fib_lookup+0xf6/0x200 net/ipv4/fib_rules.c:92 ip_route_output_key_hash_rcu+0x305/0x2460 net/ipv4/route.c:2785 ip_route_output_key_hash+0x1b1/0x2e0 net/ipv4/route.c:2675 __ip_route_output_key include/net/route.h:126 [inline] ip_route_output_flow+0x26/0x150 net/ipv4/route.c:2905 send4+0x425/0xd90 drivers/net/wireguard/socket.c:61 wg_socket_send_skb_to_peer+0xcd/0x1c0 drivers/net/wireguard/socket.c:175 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x1d8/0x310 drivers/net/wireguard/send.c:51 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Modules linked in: ---[ end trace 4b0174280158d199 ]--- RIP: 0010:ip_ignore_linkdown include/linux/inetdevice.h:254 [inline] RIP: 0010:fib_lookup_good_nhc+0x81/0x3d0 net/ipv4/fib_trie.c:1407 Code: 4c 89 24 24 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 af c3 51 f9 41 bc 58 03 00 00 4c 03 23 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 90 c3 51 f9 4d 8b 24 24 e8 87 0a RSP: 0018:ffffc90000ce7398 EFLAGS: 00010202 RAX: 000000000000006b RBX: ffff888024906320 RCX: ffff88813fed0000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88802490632f R08: dffffc0000000000 R09: fffffbfff1ff7419 R10: fffffbfff1ff7419 R11: 1ffffffff1ff7418 R12: 0000000000000358 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff11004920c65 FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fc13ff8 CR3: 000000004b4c9000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 3a810b1eb6134bdc DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 4c 89 24 24 mov %r12,(%rsp) 4: 48 89 d8 mov %rbx,%rax 7: 48 c1 e8 03 shr $0x3,%rax b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 10: 74 08 je 0x1a 12: 48 89 df mov %rbx,%rdi 15: e8 af c3 51 f9 call 0xf951c3c9 1a: 41 bc 58 03 00 00 mov $0x358,%r12d 20: 4c 03 23 add (%rbx),%r12 23: 4c 89 e0 mov %r12,%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: 4c 89 e7 mov %r12,%rdi 34: e8 90 c3 51 f9 call 0xf951c3c9 39: 4d 8b 24 24 mov (%r12),%r12 3d: e8 .byte 0xe8 3e: 87 0a xchg %ecx,(%rdx)