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: 7298 Comm: syz.0.387 Not tainted 6.15.0-rc4-syzkaller-00296-ge8ab83e34bdc #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/29/2025 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 74 13 50 01 RSP: 0018:ffffc9000b166898 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000002 RCX: ffffc9000beea000 RDX: 0000000000000018 RSI: ffffffff8a1cb2cf RDI: 00000000000000c0 RBP: ffffc9000b1669a0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888035792037 R13: ffff888035792020 R14: 1ffff9200162cd22 R15: 0000000000000000 FS: 00007f1f0c16a6c0(0000) GS:ffff888124adf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1f0c169f98 CR3: 000000002ec11000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 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_dst_lookup_tail.constprop.0+0x115a/0x2140 net/ipv6/ip6_output.c:1156 ip6_dst_lookup_flow+0x99/0x1d0 net/ipv6/ip6_output.c:1259 tcp_v6_send_response+0x10d5/0x2690 net/ipv6/tcp_ipv6.c:996 tcp_v6_send_reset+0x624/0x15c0 net/ipv6/tcp_ipv6.c:1137 tcp_v6_do_rcv+0xda1/0x1740 net/ipv6/tcp_ipv6.c:1678 tcp_v6_rcv+0x3b15/0x41e0 net/ipv6/tcp_ipv6.c:1909 ip6_protocol_deliver_rcu+0x188/0x1520 net/ipv6/ip6_input.c:436 ip6_input_finish+0x102/0x180 net/ipv6/ip6_input.c:480 NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] ip6_input+0x105/0x2f0 net/ipv6/ip6_input.c:491 dst_input include/net/dst.h:469 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:79 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] ipv6_rcv+0x265/0x680 net/ipv6/ip6_input.c:309 __netif_receive_skb_one_core+0x12d/0x1e0 net/core/dev.c:5887 __netif_receive_skb+0x1d/0x160 net/core/dev.c:6000 netif_receive_skb_internal net/core/dev.c:6086 [inline] netif_receive_skb+0x137/0x7b0 net/core/dev.c:6145 tun_rx_batched.isra.0+0x3ee/0x740 drivers/net/tun.c:1509 tun_get_user+0x2897/0x3b10 drivers/net/tun.c:1938 tun_chr_write_iter+0xdc/0x210 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ba/0x1180 fs/read_write.c:684 ksys_write+0x12a/0x240 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1f0b38d41f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f1f0c16a000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1f0b5b5fa0 RCX: 00007f1f0b38d41f RDX: 000000000000004a RSI: 0000200000000480 RDI: 00000000000000c8 RBP: 00007f1f0b410ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000004a R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f1f0b5b5fa0 R15: 00007ffdfd081718 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 74 13 50 01 RSP: 0018:ffffc9000b166898 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000002 RCX: ffffc9000beea000 RDX: 0000000000000018 RSI: ffffffff8a1cb2cf RDI: 00000000000000c0 RBP: ffffc9000b1669a0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888035792037 R13: ffff888035792020 R14: 1ffff9200162cd22 R15: 0000000000000000 FS: 00007f1f0c16a6c0(0000) GS:ffff888124adf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1f0c169f98 CR3: 000000002ec11000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 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 74 13 50 01 call 0x15013b4