================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 109 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 21200 Comm: syz-executor.2 Not tainted 5.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:395 red_calc_qavg_from_idle_time include/net/red.h:312 [inline] red_calc_qavg include/net/red.h:353 [inline] red_enqueue.cold+0x64/0x452 net/sched/sch_red.c:77 __dev_xmit_skb net/core/dev.c:3837 [inline] __dev_queue_xmit+0x1943/0x2e00 net/core/dev.c:4150 arp_xmit_finish net/ipv4/arp.c:632 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] NF_HOOK include/linux/netfilter.h:295 [inline] arp_xmit+0x8d/0xc0 net/ipv4/arp.c:641 arp_send_dst net/ipv4/arp.c:319 [inline] arp_send_dst+0x16b/0x1a0 net/ipv4/arp.c:300 arp_solicit+0x6a7/0x11e0 net/ipv4/arp.c:391 neigh_probe+0xc2/0x110 net/core/neighbour.c:1010 __neigh_event_send+0x37d/0x14c0 net/core/neighbour.c:1171 neigh_event_send include/net/neighbour.h:444 [inline] neigh_resolve_output+0x538/0x820 net/core/neighbour.c:1475 neigh_output include/net/neighbour.h:510 [inline] ip_finish_output2+0x83d/0x21f0 net/ipv4/ip_output.c:230 __ip_finish_output net/ipv4/ip_output.c:308 [inline] __ip_finish_output+0x396/0x640 net/ipv4/ip_output.c:290 ip_finish_output+0x35/0x200 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip_output+0x196/0x310 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:448 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x8e9/0x1a00 net/ipv4/ip_output.c:533 __tcp_transmit_skb+0x188c/0x38f0 net/ipv4/tcp_output.c:1405 tcp_transmit_skb net/ipv4/tcp_output.c:1423 [inline] tcp_send_syn_data net/ipv4/tcp_output.c:3816 [inline] tcp_connect+0x203a/0x4180 net/ipv4/tcp_output.c:3855 tcp_v4_connect+0x1522/0x1c40 net/ipv4/tcp_ipv4.c:312 __inet_stream_connect+0x8cf/0xed0 net/ipv4/af_inet.c:664 tcp_sendmsg_fastopen net/ipv4/tcp.c:1189 [inline] tcp_sendmsg_locked+0x208f/0x2e40 net/ipv4/tcp.c:1231 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1457 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:821 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 __sys_sendto+0x21c/0x320 net/socket.c:1975 __do_sys_sendto net/socket.c:1987 [inline] __se_sys_sendto net/socket.c:1983 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1983 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465f69 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6358c8e188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00000000004bfa67 R08: 0000000020000100 R09: 0000000000000010 R10: 0000000020044011 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007fff4462047f R14: 00007f6358c8e300 R15: 0000000000022000 ================================================================================