Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] CPU: 2 UID: 0 PID: 7749 Comm: syz.1.492 Not tainted syzkaller #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:fib6_nh_get_excptn_bucket+0x11f/0x1e0 net/ipv6/route.c:1662 Code: 05 3f 58 60 06 01 e8 a0 47 8e f7 e9 2e ff ff ff e8 86 b6 b2 f7 48 8d 7b 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 a7 00 00 00 48 8b 5b 60 e8 be 95 56 01 31 ff 89 RSP: 0018:ffffc90005e97370 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8a0a9d23 RDX: 000000000000000c RSI: ffffffff8a0a315a RDI: 0000000000000060 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: fffff52000bd2e9c R14: 1ffff92000bd2e9d R15: dffffc0000000000 FS: 00007f3392d7c6c0(0000) GS:ffff8880d6c05000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000140 CR3: 000000004aec9000 CR4: 0000000000352ef0 Call Trace: rt6_find_cached_rt+0x151/0x280 net/ipv6/route.c:1860 ip6_pol_route+0x238/0x1230 net/ipv6/route.c:2276 pol_lookup_func include/net/ip6_fib.h:617 [inline] fib6_rule_lookup+0x386/0x720 net/ipv6/fib6_rules.c:125 ip6_route_output_flags_noref net/ipv6/route.c:2684 [inline] ip6_route_output_flags+0x1d0/0x640 net/ipv6/route.c:2696 ip6_route_output include/net/ip6_route.h:93 [inline] ip6_dst_lookup_tail.constprop.0+0xa52/0x2140 net/ipv6/ip6_output.c:1141 ip6_dst_lookup_flow+0x99/0x1d0 net/ipv6/ip6_output.c:1272 sctp_v6_get_dst+0x6a2/0x2050 net/sctp/ipv6.c:327 sctp_transport_route+0x132/0x350 net/sctp/transport.c:448 sctp_assoc_add_peer+0x741/0x1550 net/sctp/associola.c:663 sctp_connect_new_asoc+0x1f8/0x770 net/sctp/socket.c:1099 __sctp_connect+0x3f3/0xc60 net/sctp/socket.c:1197 sctp_connect net/sctp/socket.c:4819 [inline] sctp_inet_connect+0x15f/0x200 net/sctp/socket.c:4834 __sys_connect_file+0x141/0x1a0 net/socket.c:2102 __sys_connect+0x13b/0x160 net/socket.c:2121 __do_sys_connect net/socket.c:2127 [inline] __se_sys_connect net/socket.c:2124 [inline] __x64_sys_connect+0x72/0xb0 net/socket.c:2124 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3391f8f749 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:00007f3392d7c038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007f33921e5fa0 RCX: 00007f3391f8f749 RDX: 000000000000001c RSI: 0000200000000300 RDI: 0000000000000003 RBP: 00007f3392013f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f33921e6038 R14: 00007f33921e5fa0 R15: 00007fffac99b538 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:fib6_nh_get_excptn_bucket+0x11f/0x1e0 net/ipv6/route.c:1662 Code: 05 3f 58 60 06 01 e8 a0 47 8e f7 e9 2e ff ff ff e8 86 b6 b2 f7 48 8d 7b 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 a7 00 00 00 48 8b 5b 60 e8 be 95 56 01 31 ff 89 RSP: 0018:ffffc90005e97370 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8a0a9d23 RDX: 000000000000000c RSI: ffffffff8a0a315a RDI: 0000000000000060 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: fffff52000bd2e9c R14: 1ffff92000bd2e9d R15: dffffc0000000000 FS: 00007f3392d7c6c0(0000) GS:ffff8880d6c05000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564d4b6cead8 CR3: 000000004aec9000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 05 3f 58 60 06 add $0x660583f,%eax 5: 01 e8 add %ebp,%eax 7: a0 47 8e f7 e9 2e ff movabs 0xffffff2ee9f78e47,%al e: ff ff 10: e8 86 b6 b2 f7 call 0xf7b2b69b 15: 48 8d 7b 60 lea 0x60(%rbx),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 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 a7 00 00 00 jne 0xdb 34: 48 8b 5b 60 mov 0x60(%rbx),%rbx 38: e8 be 95 56 01 call 0x15695fb 3d: 31 ff xor %edi,%edi 3f: 89 .byte 0x89