================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 65 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 30941 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] choke_enqueue.cold+0x18/0x3dd net/sched/sch_choke.c:221 __dev_xmit_skb net/core/dev.c:3837 [inline] __dev_queue_xmit+0x1943/0x2e00 net/core/dev.c:4150 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip6_finish_output2+0x911/0x1700 net/ipv6/ip6_output.c:117 __ip6_finish_output net/ipv6/ip6_output.c:182 [inline] __ip6_finish_output+0x4c1/0xe10 net/ipv6/ip6_output.c:161 ip6_finish_output+0x35/0x200 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip6_output+0x1e4/0x530 net/ipv6/ip6_output.c:215 dst_output include/net/dst.h:448 [inline] ip6_local_out+0xaf/0x1a0 net/ipv6/output_core.c:179 ip6_send_skb+0xb7/0x340 net/ipv6/ip6_output.c:1904 ip6_push_pending_frames+0xdd/0x100 net/ipv6/ip6_output.c:1924 icmpv6_push_pending_frames+0x294/0x470 net/ipv6/icmp.c:310 icmp6_send+0x1a27/0x2280 net/ipv6/icmp.c:626 icmpv6_send include/linux/icmpv6.h:24 [inline] ip6_link_failure+0x29/0x510 net/ipv6/route.c:2673 dst_link_failure include/net/dst.h:427 [inline] ip6_tnl_xmit+0x44f/0x3450 net/ipv6/ip6_tunnel.c:1267 ipxip6_tnl_xmit net/ipv6/ip6_tunnel.c:1381 [inline] ip6_tnl_start_xmit+0x674/0x16f0 net/ipv6/ip6_tunnel.c:1430 __netdev_start_xmit include/linux/netdevice.h:4793 [inline] netdev_start_xmit include/linux/netdevice.h:4807 [inline] xmit_one net/core/dev.c:3593 [inline] dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3609 __dev_queue_xmit+0x2121/0x2e00 net/core/dev.c:4182 neigh_connected_output+0x3b6/0x510 net/core/neighbour.c:1520 neigh_output include/net/neighbour.h:510 [inline] ip6_finish_output2+0x6ee/0x1700 net/ipv6/ip6_output.c:117 __ip6_finish_output net/ipv6/ip6_output.c:182 [inline] __ip6_finish_output+0x4c1/0xe10 net/ipv6/ip6_output.c:161 ip6_finish_output+0x35/0x200 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip6_output+0x1e4/0x530 net/ipv6/ip6_output.c:215 dst_output include/net/dst.h:448 [inline] ip6_local_out+0xaf/0x1a0 net/ipv6/output_core.c:179 ip6_send_skb+0xb7/0x340 net/ipv6/ip6_output.c:1904 udp_v6_send_skb+0x7c3/0x15e0 net/ipv6/udp.c:1234 udpv6_sendmsg+0x2345/0x2c40 net/ipv6/udp.c:1532 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:642 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 ____sys_sendmsg+0x331/0x810 net/socket.c:2348 ___sys_sendmsg+0xf3/0x170 net/socket.c:2402 __sys_sendmmsg+0x195/0x470 net/socket.c:2492 __do_sys_sendmmsg net/socket.c:2521 [inline] __se_sys_sendmmsg net/socket.c:2518 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2518 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:00007f2b05fbc188 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 000000000056c158 RCX: 0000000000465f69 RDX: 040000000000003f RSI: 00000000200092c0 RDI: 0000000000000003 RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c158 R13: 00007fffc27eb27f R14: 00007f2b05fbc300 R15: 0000000000022000 ================================================================================