================================================================================
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: 0 PID: 1369 Comm: kworker/u4:5 Not tainted 5.12.0-rc2-next-20210309-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_unbound flush_to_ldisc
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_adaptative_algo include/net/red.h:444 [inline]
red_adaptative_timer.cold+0x1bd/0x26c net/sched/sch_red.c:324
call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1431
expire_timers kernel/time/timer.c:1476 [inline]
__run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1745
__run_timers kernel/time/timer.c:1726 [inline]
run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1758
__do_softirq+0x29b/0x9f6 kernel/softirq.c:345
invoke_softirq kernel/softirq.c:221 [inline]
__irq_exit_rcu+0x136/0x200 kernel/softirq.c:422
irq_exit_rcu+0x5/0x20 kernel/softirq.c:434
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:199
Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 ae 34 52 f8 48 89 ef e8 d6 ea 52 f8 e8 81 97 72 f8 fb bf 01 00 00 00 e6 df 46 f8 65 8b 05 1f b6 fa 76 85 c0 74 02 5d c3 e8 7b 0b f9
RSP: 0018:ffffc9000524f7e8 EFLAGS: 00000202
RAX: 000000000027a07f RBX: 0000000000000402 RCX: 1ffffffff1f5f292
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: ffff8880b9c35200 R08: 0000000000000001 R09: ffffffff8fabd8ff
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b9c35200
R13: ffff888061c90000 R14: 0000000000000000 R15: ffff888014329c00
finish_lock_switch kernel/sched/core.c:4105 [inline]
finish_task_switch.isra.0+0x158/0x7e0 kernel/sched/core.c:4222
context_switch kernel/sched/core.c:4356 [inline]
__schedule+0x914/0x2150 kernel/sched/core.c:5103
preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:5263
preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35
__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
_raw_spin_unlock_irqrestore+0x57/0x70 kernel/locking/spinlock.c:191
spin_unlock_irqrestore include/linux/spinlock.h:409 [inline]
pty_write+0x15a/0x1f0 drivers/tty/pty.c:122
tty_put_char+0x122/0x150 drivers/tty/tty_io.c:3181
__process_echoes+0x577/0x9f0 drivers/tty/n_tty.c:724
commit_echoes+0x148/0x210 drivers/tty/n_tty.c:790
n_tty_receive_char_fast drivers/tty/n_tty.c:1445 [inline]
n_tty_receive_buf_fast drivers/tty/n_tty.c:1605 [inline]
__receive_buf drivers/tty/n_tty.c:1640 [inline]
n_tty_receive_buf_common+0x203f/0x2bc0 drivers/tty/n_tty.c:1739
tty_ldisc_receive_buf+0xa3/0x180 drivers/tty/tty_buffer.c:461
tty_port_default_receive_buf+0x6e/0xa0 drivers/tty/tty_port.c:38
receive_buf drivers/tty/tty_buffer.c:481 [inline]
flush_to_ldisc+0x20d/0x380 drivers/tty/tty_buffer.c:533
process_one_work+0x98d/0x1600 kernel/workqueue.c:2275
worker_thread+0x64c/0x1120 kernel/workqueue.c:2421
kthread+0x3b1/0x4a0 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
================================================================================