------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in net/ipv6/route.c:1095:9 index 148 is out of range for type 'const int[12]' CPU: 1 UID: 0 PID: 10645 Comm: syz.4.1230 Not tainted 6.15.0-rc3-syzkaller-00644-gdeeed351e982 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x40 lib/ubsan.c:231 __ubsan_handle_out_of_bounds+0xe9/0xf0 lib/ubsan.c:453 ip6_rt_type_to_error net/ipv6/route.c:1095 [inline] ip6_rt_init_dst_reject net/ipv6/route.c:1112 [inline] ip6_rt_init_dst net/ipv6/route.c:1137 [inline] ip6_rt_copy_init+0x8e7/0x970 net/ipv6/route.c:1175 ip6_rt_pcpu_alloc net/ipv6/route.c:1424 [inline] rt6_make_pcpu_route net/ipv6/route.c:1467 [inline] ip6_pol_route+0xbac/0x1180 net/ipv6/route.c:2302 pol_lookup_func include/net/ip6_fib.h:617 [inline] __fib6_rule_action net/ipv6/fib6_rules.c:237 [inline] fib6_rule_action+0x206/0x7d0 net/ipv6/fib6_rules.c:275 fib_rules_lookup+0x767/0xe90 net/core/fib_rules.c:339 fib6_rule_lookup+0x18e/0x6f0 net/ipv6/fib6_rules.c:112 ip6_route_output_flags_noref net/ipv6/route.c:2681 [inline] ip6_route_output_flags+0x364/0x5d0 net/ipv6/route.c:2693 ip6_route_output include/net/ip6_route.h:93 [inline] ip6_dst_lookup_tail+0x1ae/0x1510 net/ipv6/ip6_output.c:1128 ip6_dst_lookup_flow+0x47/0xe0 net/ipv6/ip6_output.c:1259 sctp_v6_get_dst+0x7cc/0x1bc0 net/sctp/ipv6.c:326 sctp_transport_route+0x115/0x2f0 net/sctp/transport.c:457 sctp_assoc_add_peer+0x657/0x13b0 net/sctp/associola.c:663 sctp_connect_new_asoc+0x30a/0x690 net/sctp/socket.c:1100 sctp_sendmsg_new_asoc net/sctp/socket.c:1694 [inline] sctp_sendmsg+0x155c/0x2810 net/sctp/socket.c:2005 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x19c/0x270 net/socket.c:727 __sys_sendto+0x3bd/0x520 net/socket.c:2180 __do_sys_sendto net/socket.c:2187 [inline] __se_sys_sendto net/socket.c:2183 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2183 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f11fa58e969 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:00007f11fb491038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f11fa7b5fa0 RCX: 00007f11fa58e969 RDX: 0000000000000001 RSI: 0000200000000040 RDI: 0000000000000006 RBP: 00007f11fa610ab1 R08: 0000200000000280 R09: 000000000000001c R10: 0000000000008910 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f11fa7b5fa0 R15: 00007ffd6edc0618 ---[ end trace ]---