general protection fault, probably for non-canonical address 0xdffffc000000005e: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000002f0-0x00000000000002f7] CPU: 1 PID: 4421 Comm: syz.1.1193 Not tainted 5.15.180-syzkaller-00947-g8034ec1338e8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__in6_dev_get include/net/addrconf.h:341 [inline] RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:432 [inline] RIP: 0010:find_match+0xb9/0xe50 net/ipv6/route.c:741 Code: 74 08 48 89 df e8 e7 da 57 fd 4c 89 65 b0 48 89 d8 bb f0 02 00 00 48 03 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 b9 da 57 fd 4c 8b 23 4d 85 e4 0f 84 RSP: 0018:ffffc90000a06eb0 EFLAGS: 00010202 RAX: 000000000000005e RBX: 00000000000002f0 RCX: dffffc0000000000 RDX: ffff8881191e0000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000a06f58 R08: ffffffff845b0922 R09: ffffc90000a072b0 R10: ffffc90000a072a0 R11: dffffc0000000001 R12: ffffc90000a072a0 R13: 0000000000000003 R14: 1ffff1102241f2a4 R15: 0000000000000000 FS: 00007f5ee88836c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000000 CR3: 0000000123932000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rt6_nh_find_match+0xdd/0x140 net/ipv6/route.c:781 nexthop_for_each_fib6_nh+0x113/0x210 net/ipv4/nexthop.c:1242 __find_rr_leaf+0x658/0xb70 net/ipv6/route.c:822 find_rr_leaf net/ipv6/route.c:850 [inline] rt6_select net/ipv6/route.c:894 [inline] fib6_table_lookup+0x338/0xaf0 net/ipv6/route.c:2189 ip6_pol_route+0x151/0x14b0 net/ipv6/route.c:2225 ip6_pol_route_output+0x50/0x80 net/ipv6/route.c:2601 pol_lookup_func include/net/ip6_fib.h:592 [inline] __fib6_rule_action net/ipv6/fib6_rules.c:232 [inline] fib6_rule_action+0x1a3/0x6f0 net/ipv6/fib6_rules.c:270 fib_rules_lookup+0x351/0xa50 net/core/fib_rules.c:318 fib6_rule_lookup+0x1f3/0x620 net/ipv6/fib6_rules.c:107 ip6_route_output_flags_noref+0x289/0x350 net/ipv6/route.c:2633 ip6_route_output_flags+0x3f/0x220 net/ipv6/route.c:2646 ip6_route_output include/net/ip6_route.h:98 [inline] ip6_dst_lookup_tail+0x12c/0x12f0 net/ipv6/ip6_output.c:1102 ip6_dst_lookup_flow+0xb5/0x170 net/ipv6/ip6_output.c:1232 ip6_datagram_dst_update+0x605/0xc30 net/ipv6/datagram.c:89 __ip6_datagram_connect+0xbf0/0x1230 net/ipv6/datagram.c:248 ip6_datagram_connect net/ipv6/datagram.c:272 [inline] ip6_datagram_connect_v6_only+0x65/0xa0 net/ipv6/datagram.c:284 inet_dgram_connect+0x1b2/0x3c0 net/ipv4/af_inet.c:585 __sys_connect_file net/socket.c:1923 [inline] __sys_connect+0x38b/0x410 net/socket.c:1940 __do_sys_connect net/socket.c:1950 [inline] __se_sys_connect net/socket.c:1947 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:1947 x64_sys_call+0x14e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:43 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f5eea21a169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5ee8883038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f5eea441fa0 RCX: 00007f5eea21a169 RDX: 000000000000001c RSI: 0000200000000000 RDI: 0000000000000003 RBP: 00007f5eea29ca68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f5eea441fa0 R15: 00007ffe7669fe88 Modules linked in: ---[ end trace e8d91eccccc907b4 ]--- RIP: 0010:__in6_dev_get include/net/addrconf.h:341 [inline] RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:432 [inline] RIP: 0010:find_match+0xb9/0xe50 net/ipv6/route.c:741 Code: 74 08 48 89 df e8 e7 da 57 fd 4c 89 65 b0 48 89 d8 bb f0 02 00 00 48 03 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 b9 da 57 fd 4c 8b 23 4d 85 e4 0f 84 RSP: 0018:ffffc90000a06eb0 EFLAGS: 00010202 RAX: 000000000000005e RBX: 00000000000002f0 RCX: dffffc0000000000 RDX: ffff8881191e0000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000a06f58 R08: ffffffff845b0922 R09: ffffc90000a072b0 R10: ffffc90000a072a0 R11: dffffc0000000001 R12: ffffc90000a072a0 R13: 0000000000000003 R14: 1ffff1102241f2a4 R15: 0000000000000000 FS: 00007f5ee88836c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6af75f6f98 CR3: 0000000123932000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 74 08 je 0xa 2: 48 89 df mov %rbx,%rdi 5: e8 e7 da 57 fd call 0xfd57daf1 a: 4c 89 65 b0 mov %r12,-0x50(%rbp) e: 48 89 d8 mov %rbx,%rax 11: bb f0 02 00 00 mov $0x2f0,%ebx 16: 48 03 18 add (%rax),%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 b9 da 57 fd call 0xfd57daf1 38: 4c 8b 23 mov (%rbx),%r12 3b: 4d 85 e4 test %r12,%r12 3e: 0f .byte 0xf 3f: 84 .byte 0x84