Oops: general protection fault, probably for non-canonical address 0xdffffc0000000018: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7] CPU: 0 UID: 0 PID: 8602 Comm: syz.0.1066 Not tainted 6.14.0-syzkaller-07422-gacb4f33713b9 #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 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:747 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 d4 21 53 01 RSP: 0018:ffffc9000363f200 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000003 RCX: ffffc900077e3000 RDX: 0000000000000018 RSI: ffffffff8a13a38f RDI: 00000000000000c0 RBP: ffffc9000363f308 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888031d6e537 R13: ffff888031d6e520 R14: 1ffff920006c7e4f R15: 0000000000000000 FS: 00007f8e83fea6c0(0000) GS:ffff8880d6a1a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f21dff8 CR3: 000000005170a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rt6_nh_find_match+0xfa/0x1a0 net/ipv6/route.c:787 nexthop_for_each_fib6_nh+0x165/0x4a0 net/ipv4/nexthop.c:1515 __find_rr_leaf+0x6e5/0xe00 net/ipv6/route.c:828 find_rr_leaf net/ipv6/route.c:856 [inline] rt6_select net/ipv6/route.c:900 [inline] fib6_table_lookup+0x57c/0xa30 net/ipv6/route.c:2195 ip6_pol_route+0x1cc/0x1230 net/ipv6/route.c:2231 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:2639 [inline] ip6_route_output_flags+0x1d0/0x640 net/ipv6/route.c:2651 ip6_route_output include/net/ip6_route.h:93 [inline] ip6_dst_lookup_tail.constprop.0+0xa52/0x2140 net/ipv6/ip6_output.c:1128 ip6_dst_lookup_flow+0x99/0x1d0 net/ipv6/ip6_output.c:1259 ip6_datagram_dst_update+0x641/0xe50 net/ipv6/datagram.c:96 __ip6_datagram_connect+0x7b5/0x1480 net/ipv6/datagram.c:255 udpv6_connect+0x38/0x270 net/ipv6/udp.c:1310 inet_dgram_connect+0x15b/0x2f0 net/ipv4/af_inet.c:592 __sys_connect_file+0x13e/0x1a0 net/socket.c:2038 __sys_connect+0x14d/0x170 net/socket.c:2057 __do_sys_connect net/socket.c:2063 [inline] __se_sys_connect net/socket.c:2060 [inline] __x64_sys_connect+0x72/0xb0 net/socket.c:2060 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:0x7f8e8318d169 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:00007f8e83fea038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f8e833a5fa0 RCX: 00007f8e8318d169 RDX: 000000000000001c RSI: 0000200000000080 RDI: 0000000000000003 RBP: 00007f8e8320e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8e833a5fa0 R15: 00007ffe5787aff8 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:747 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 d4 21 53 01 RSP: 0018:ffffc9000363f200 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000003 RCX: ffffc900077e3000 RDX: 0000000000000018 RSI: ffffffff8a13a38f RDI: 00000000000000c0 RBP: ffffc9000363f308 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888031d6e537 R13: ffff888031d6e520 R14: 1ffff920006c7e4f R15: 0000000000000000 FS: 00007f8e83fea6c0(0000) GS:ffff8880d6c1a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001380 CR3: 000000005170a000 CR4: 0000000000352ef0 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 d4 21 53 01 call 0x1532214