================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 109 is too large for 64-bit type 'unsigned long' CPU: 1 PID: 15773 Comm: syz-executor.3 Not tainted 5.11.0-rc7-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+0x137/0x1be lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:148 [inline] __ubsan_handle_shift_out_of_bounds+0x432/0x4d0 lib/ubsan.c:395 red_calc_qavg_from_idle_time include/net/red.h:312 [inline] red_adaptative_algo include/net/red.h:444 [inline] red_adaptative_timer+0x729/0x750 net/sched/sch_red.c:324 call_timer_fn+0x91/0x160 kernel/time/timer.c:1417 expire_timers kernel/time/timer.c:1462 [inline] __run_timers+0x6c0/0x8a0 kernel/time/timer.c:1731 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1744 __do_softirq+0x318/0x714 kernel/softirq.c:343 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x9a/0xe0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu+0x1d8/0x200 kernel/softirq.c:420 irq_exit_rcu+0x5/0x20 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0xe0/0xf0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629 RIP: 0010:ip6_finish_output2+0x5fd/0x13f0 net/ipv6/ip6_output.c:103 Code: c1 e8 03 8a 04 28 84 c0 0f 85 67 0c 00 00 0f b6 1b 83 e3 0e 31 ff 89 de e8 10 1d 3f f9 84 db 0f 84 ce 00 00 00 e8 33 1a 3f f9 <49> 8d 5c 24 50 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 RSP: 0018:ffffc90001a875a0 EFLAGS: 00000283 RAX: ffffffff8838c286 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000f87e000 RSI: 00000000000023b5 RDI: 00000000000023b6 RBP: dffffc0000000000 R08: ffffffff8838c16c R09: fffffbfff1b67326 R10: fffffbfff1b67326 R11: 0000000000000000 R12: ffff88801454f140 R13: ffff888014f50430 R14: ffff888014f503c0 R15: ffff888014f50368 dst_output include/net/dst.h:441 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip6_xmit+0x1061/0x17b0 net/ipv6/ip6_output.c:319 inet6_csk_xmit+0x31f/0x480 net/ipv6/inet6_connection_sock.c:135 __tcp_transmit_skb+0x1d48/0x3300 net/ipv4/tcp_output.c:1405 tcp_transmit_skb net/ipv4/tcp_output.c:1423 [inline] tcp_write_xmit+0x1cc0/0x8020 net/ipv4/tcp_output.c:2689 tcp_sendmsg_locked+0x1f5c/0x3f40 net/ipv4/tcp.c:1410 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1459 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] __sys_sendto+0x438/0x5c0 net/socket.c:1975 __do_sys_sendto net/socket.c:1987 [inline] __se_sys_sendto net/socket.c:1983 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:1983 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x465b09 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:00007efc1e21b188 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465b09 RDX: fffffffffffffea7 RSI: 0000000020f6f000 RDI: 0000000000000004 RBP: 00000000004b069f R08: 0000000020b63fe4 R09: 000000000000001c R10: 0000000020000004 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007fff3c7ee66f R14: 00007efc1e21b300 R15: 0000000000022000 ================================================================================