------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in net/ipv6/route.c:1095:9
index 254 is out of range for type 'const int[12]'
CPU: 0 UID: 0 PID: 7697 Comm: syz.0.572 Not tainted 6.15.0-rc3-syzkaller-00614-g0d15a26b247d #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_dst_lookup_tail+0x1ae/0x1510 net/ipv6/ip6_output.c:1128
ip6_dst_lookup_flow+0x47/0xe0 net/ipv6/ip6_output.c:1259
udp_tunnel6_dst_lookup+0x231/0x3c0 net/ipv6/ip6_udp_tunnel.c:165
geneve6_xmit_skb drivers/net/geneve.c:957 [inline]
geneve_xmit+0xd2e/0x2b70 drivers/net/geneve.c:1043
__netdev_start_xmit include/linux/netdevice.h:5203 [inline]
netdev_start_xmit include/linux/netdevice.h:5212 [inline]
xmit_one net/core/dev.c:3828 [inline]
dev_hard_start_xmit+0x2d4/0x830 net/core/dev.c:3844
__dev_queue_xmit+0x1adf/0x3a70 net/core/dev.c:4681
dev_queue_xmit include/linux/netdevice.h:3349 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip6_finish_output2+0x11bc/0x16a0 net/ipv6/ip6_output.c:141
__ip6_finish_output net/ipv6/ip6_output.c:-1 [inline]
ip6_finish_output+0x234/0x7d0 net/ipv6/ip6_output.c:226
NF_HOOK include/linux/netfilter.h:314 [inline]
ndisc_send_skb+0xb47/0x1400 net/ipv6/ndisc.c:513
addrconf_rs_timer+0x369/0x670 net/ipv6/addrconf.c:4038
call_timer_fn+0x17b/0x5f0 kernel/time/timer.c:1789
expire_timers kernel/time/timer.c:1840 [inline]
__run_timers kernel/time/timer.c:2414 [inline]
__run_timer_base+0x61a/0x860 kernel/time/timer.c:2426
run_timer_base kernel/time/timer.c:2435 [inline]
run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2445
handle_softirqs+0x283/0x870 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:246 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x18/0x90 kernel/kcov.c:314
Code: 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 65 48 8b 14 25 08 c0 75 92 65 8b 0d 58 fe b5 10 <81> e1 00 01 ff 00 74 11 81 f9 00 01 00 00 75 5b 83 ba 3c 16 00 00
RSP: 0018:ffffc900015b7968 EFLAGS: 00000246
RAX: ffffffff84b69914 RBX: 0000000000000001 RCX: 0000000080000000
RDX: ffff888025e25a00 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffc900015b7d10
R10: ffffc900015b7d50 R11: fffff520002b6fac R12: 0000000000000000
R13: 0000000000000000 R14: ffffc900015b7d10 R15: dffffc0000000000
iov_iter_init lib/iov_iter.c:170 [inline]
__import_iovec+0x3a4/0x7f0 lib/iov_iter.c:1492
import_iovec+0x74/0xa0 lib/iov_iter.c:1526
copy_msghdr_from_user net/socket.c:2503 [inline]
sendmsg_copy_msghdr net/socket.c:2597 [inline]
___sys_sendmsg+0x1e7/0x2a0 net/socket.c:2616
__sys_sendmmsg+0x227/0x430 net/socket.c:2709
__do_sys_sendmmsg net/socket.c:2736 [inline]
__se_sys_sendmmsg net/socket.c:2733 [inline]
__x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2733
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:0x7f814738e969
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:00007f81481fd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f81475b5fa0 RCX: 00007f814738e969
RDX: 000000000800001d RSI: 0000200000007fc0 RDI: 0000000000000003
RBP: 00007f8147410ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f81475b5fa0 R15: 00007ffe3508a9d8
---[ end trace ]---
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 90 nop
3: 90 nop
4: 90 nop
5: 90 nop
6: 90 nop
7: 90 nop
8: 90 nop
9: 90 nop
a: 90 nop
b: 90 nop
c: 90 nop
d: 90 nop
e: 90 nop
f: 90 nop
10: 90 nop
11: 90 nop
12: f3 0f 1e fa endbr64
16: 48 8b 04 24 mov (%rsp),%rax
1a: 65 48 8b 14 25 08 c0 mov %gs:0xffffffff9275c008,%rdx
21: 75 92
23: 65 8b 0d 58 fe b5 10 mov %gs:0x10b5fe58(%rip),%ecx # 0x10b5fe82
* 2a: 81 e1 00 01 ff 00 and $0xff0100,%ecx <-- trapping instruction
30: 74 11 je 0x43
32: 81 f9 00 01 00 00 cmp $0x100,%ecx
38: 75 5b jne 0x95
3a: 83 .byte 0x83
3b: ba 3c 16 00 00 mov $0x163c,%edx