================================================================================ 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: 17823 Comm: syz-executor.0 Not tainted 5.12.0-rc2-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:327 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 neigh_resolve_output net/core/neighbour.c:1491 [inline] neigh_resolve_output+0x50e/0x820 net/core/neighbour.c:1471 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_mc_output+0x212/0x700 net/ipv4/ip_output.c:417 dst_output include/net/dst.h:448 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb net/ipv4/ip_output.c:1568 [inline] ip_push_pending_frames+0x125/0x2b0 net/ipv4/ip_output.c:1588 icmp_push_reply+0x351/0x4a0 net/ipv4/icmp.c:393 __icmp_send+0xb9b/0x1390 net/ipv4/icmp.c:762 icmp_send include/net/icmp.h:43 [inline] ip_options_compile+0xad/0xf0 net/ipv4/ip_options.c:486 ip_rcv_options net/ipv4/ip_input.c:279 [inline] ip_rcv_finish_core.constprop.0+0x4b7/0x1e80 net/ipv4/ip_input.c:371 ip_rcv_finish+0x144/0x2f0 net/ipv4/ip_input.c:427 NF_HOOK include/linux/netfilter.h:301 [inline] NF_HOOK include/linux/netfilter.h:295 [inline] ip_rcv+0xaa/0xd0 net/ipv4/ip_input.c:540 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5365 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5479 netif_receive_skb_internal net/core/dev.c:5584 [inline] netif_receive_skb+0x157/0x8e0 net/core/dev.c:5643 tun_rx_batched.isra.0+0x460/0x720 drivers/net/tun.c:1449 tun_get_user+0x23df/0x3690 drivers/net/tun.c:1896 tun_chr_write_iter+0xe1/0x1d0 drivers/net/tun.c:1926 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x796/0xa30 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x80 arch/x86/entry/common.c:139 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:164 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fd2549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f55cc5c0 EFLAGS: 00000282 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000f0 RCX: 0000000020000100 RDX: 0000000000000036 RSI: 000000000816c000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================