------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in net/ipv6/route.c:1095:9 index 109 is out of range for type 'const int[12]' CPU: 1 UID: 0 PID: 8050 Comm: syz.4.421 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_create_rt_rcu+0x294/0x4c0 net/ipv6/route.c:1242 ip6_pol_route_lookup+0xb0b/0xcd0 net/ipv6/route.c:1293 pol_lookup_func include/net/ip6_fib.h:617 [inline] __fib6_rule_action net/ipv6/fib6_rules.c:237 [inline] fib6_rule_action+0x748/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 rt6_lookup+0x119/0x1d0 net/ipv6/route.c:1327 ip6gre_tnl_link_config_route+0x102/0x3e0 net/ipv6/ip6_gre.c:1159 ip6gre_tnl_link_config net/ipv6/ip6_gre.c:1212 [inline] ip6gre_tunnel_locate+0x355/0x3f0 net/ipv6/ip6_gre.c:385 ip6gre_tunnel_siocdevprivate+0x4f2/0x700 net/ipv6/ip6_gre.c:1332 dev_siocdevprivate net/core/dev_ioctl.c:521 [inline] dev_ifsioc+0xb54/0xf00 net/core/dev_ioctl.c:631 dev_ioctl+0x84c/0x1150 net/core/dev_ioctl.c:848 sock_ioctl+0x719/0x790 net/socket.c:1236 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:892 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:0x7f305238e969 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:00007f3053190038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f30525b6160 RCX: 00007f305238e969 RDX: 00002000000000c0 RSI: 00000000000089f1 RDI: 000000000000000b RBP: 00007f3052410ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f30525b6160 R15: 00007ffcc73e06e8 ---[ end trace ]---