Oops: general protection fault, probably for non-canonical address 0xdffffc0000000083: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000418-0x000000000000041f] CPU: 0 UID: 0 PID: 6839 Comm: kworker/0:4 Not tainted 6.16.0-rc3-syzkaller-00042-g78f4e737a53e #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: wg-crypt-wg1 wg_packet_tx_worker RIP: 0010:ip_ignore_linkdown include/linux/inetdevice.h:270 [inline] RIP: 0010:fib_lookup_good_nhc+0xaf/0x3f0 net/ipv4/fib_trie.c:1408 Code: df 48 c1 ea 03 80 3c 02 00 0f 85 1e 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 2b 48 8d bd 18 04 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ef 02 00 00 4c 8b bd 18 04 00 00 e8 9b 7f 7c 01 RSP: 0018:ffffc90006fcf7e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888044792420 RCX: ffffffff8a002157 RDX: 0000000000000083 RSI: ffffffff8a002179 RDI: 0000000000000418 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90006fcfaf8 R13: ffff888044792437 R14: 0000000000000001 R15: ffff88807009c818 FS: 0000000000000000(0000) GS:ffff888097560000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000c2b61ec CR3: 000000007140a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nexthop_get_nhc_lookup include/net/nexthop.h:437 [inline] fib_table_lookup+0x158e/0x2300 net/ipv4/fib_trie.c:1584 fib_lookup.constprop.0+0x13e/0x530 include/net/ip_fib.h:390 ip_route_output_key_hash_rcu+0xde2/0x28f0 net/ipv4/route.c:2803 ip_route_output_key_hash+0x137/0x2e0 net/ipv4/route.c:2694 __ip_route_output_key include/net/route.h:169 [inline] ip_route_output_flow+0x27/0x150 net/ipv4/route.c:2921 send4+0x54b/0x1070 drivers/net/wireguard/socket.c:61 wg_socket_send_skb_to_peer+0x18f/0x210 drivers/net/wireguard/socket.c:175 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x1aa/0x810 drivers/net/wireguard/send.c:276 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ip_ignore_linkdown include/linux/inetdevice.h:270 [inline] RIP: 0010:fib_lookup_good_nhc+0xaf/0x3f0 net/ipv4/fib_trie.c:1408 Code: df 48 c1 ea 03 80 3c 02 00 0f 85 1e 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 2b 48 8d bd 18 04 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ef 02 00 00 4c 8b bd 18 04 00 00 e8 9b 7f 7c 01 RSP: 0018:ffffc90006fcf7e8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888044792420 RCX: ffffffff8a002157 RDX: 0000000000000083 RSI: ffffffff8a002179 RDI: 0000000000000418 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90006fcfaf8 R13: ffff888044792437 R14: 0000000000000001 R15: ffff88807009c818 FS: 0000000000000000(0000) GS:ffff888097560000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000c2b61ec CR3: 000000007140a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 1e 03 00 00 jne 0x32c e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 48 8b 2b mov (%rbx),%rbp 1b: 48 8d bd 18 04 00 00 lea 0x418(%rbp),%rdi 22: 48 89 fa mov %rdi,%rdx 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2d: 0f 85 ef 02 00 00 jne 0x322 33: 4c 8b bd 18 04 00 00 mov 0x418(%rbp),%r15 3a: e8 9b 7f 7c 01 call 0x17c7fda