================================================================================
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: 0 PID: 9596 Comm: syz-executor.1 Not tainted 5.12.0-rc1-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0xfa/0x151 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 kernel/softirq.c:422 [inline]
irq_exit_rcu+0x134/0x200 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 de cc 53 f8 48 89 ef e8 56 82 54 f8 e8 b1 e3 73 f8 fb bf 01 00 00 00 d6 7d 48 f8 65 8b 05 2f b2 fc 76 85 c0 74 02 5d c3 e8 8b 07 fb
RSP: 0018:ffffc90009acf960 EFLAGS: 00000202
RAX: 00000000000007e5 RBX: 0000000000000002 RCX: 1ffffffff1f62bea
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001
RBP: ffff88802ca35180 R08: 0000000000000001 R09: ffffffff8fab695f
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802ca35180
R13: ffff888013743780 R14: ffff8880139c6900 R15: ffff88801cd38000
finish_lock_switch kernel/sched/core.c:4076 [inline]
finish_task_switch.isra.0+0x158/0x7e0 kernel/sched/core.c:4193
context_switch kernel/sched/core.c:4327 [inline]
__schedule+0x914/0x21a0 kernel/sched/core.c:5075
preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:5235
preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35
smp_call_function_single+0x419/0x4b0 kernel/smp.c:518
task_function_call+0xd9/0x160 kernel/events/core.c:119
perf_install_in_context+0x2cb/0x550 kernel/events/core.c:2901
__do_sys_perf_event_open+0x1c18/0x2e60 kernel/events/core.c:12136
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:0xf7fe6549
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:00000000f55e05fc EFLAGS: 00000296 ORIG_RAX: 0000000000000150
RAX: ffffffffffffffda RBX: 0000000020000180 RCX: 0000000000000000
RDX: 00000000ffffffff RSI: 00000000ffffffff RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
================================================================================