------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in net/ipv6/route.c:1095:9 index 191 is out of range for type 'const int[12]' CPU: 0 UID: 0 PID: 7229 Comm: syz.4.343 Not tainted 6.15.0-rc3-syzkaller-00584-gcc17b4b9c332 #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_lookup+0x348/0x6f0 net/ipv6/fib6_rules.c:125 ip6_route_output_flags_noref net/ipv6/route.c:2674 [inline] ip6_route_output_flags+0x364/0x5d0 net/ipv6/route.c:2686 ip6_route_output include/net/ip6_route.h:93 [inline] ip6_update_pmtu+0x1f9/0x320 net/ipv6/route.c:2988 icmpv6_err+0x18d/0x360 net/ipv6/icmp.c:82 icmpv6_notify+0x38e/0x7e0 net/ipv6/icmp.c:879 icmpv6_rcv+0x1352/0x1c80 net/ipv6/icmp.c:-1 ip6_protocol_deliver_rcu+0xe08/0x15c0 net/ipv6/ip6_input.c:436 ip6_input_finish+0xde/0x190 net/ipv6/ip6_input.c:480 NF_HOOK+0x309/0x3a0 include/linux/netfilter.h:314 ip6_input+0x16a/0x270 net/ipv6/ip6_input.c:491 ip6_mc_input+0x79a/0xbe0 net/ipv6/ip6_input.c:588 NF_HOOK+0x309/0x3a0 include/linux/netfilter.h:314 __netif_receive_skb_one_core net/core/dev.c:5941 [inline] __netif_receive_skb+0xd3/0x380 net/core/dev.c:6054 netif_receive_skb_internal net/core/dev.c:6140 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6199 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2879/0x3c20 drivers/net/tun.c:1938 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1984 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x548/0xa90 fs/read_write.c:684 ksys_write+0x145/0x250 fs/read_write.c:736 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:0x7f1a4278d41f 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:00007f1a4367c000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1a429b5fa0 RCX: 00007f1a4278d41f RDX: 0000000000000082 RSI: 0000200000000040 RDI: 00000000000000c8 RBP: 00007f1a42810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000082 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f1a429b5fa0 R15: 00007fffeb8ca7d8 ---[ end trace ]---