================================================================================ 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: 8414 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_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 1e 1f 56 f8 48 89 ef e8 46 d5 56 f8 e8 41 4a 76 f8 fb bf 01 00 00 00 f6 ce 4a f8 65 8b 05 4f ac fe 76 85 c0 74 02 5d c3 e8 ab 01 fd RSP: 0018:ffffc9000167fb10 EFLAGS: 00000202 RAX: 0000000000121b4f RBX: 0000000000000000 RCX: 1ffffffff1b8a0b9 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffff8880b9d35180 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff81798dd8 R11: 000000000000003f R12: ffff8880b9d35180 R13: ffff888015400000 R14: 0000000000000000 R15: ffff88801a7a3780 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 schedule+0xcf/0x270 kernel/sched/core.c:5154 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x268/0x6a0 kernel/time/hrtimer.c:1878 hrtimer_nanosleep+0x1f9/0x430 kernel/time/hrtimer.c:1931 common_nsleep+0xa2/0xc0 kernel/time/posix-timers.c:1227 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1267 [inline] __se_sys_clock_nanosleep kernel/time/posix-timers.c:1245 [inline] __x64_sys_clock_nanosleep+0x2f4/0x430 kernel/time/posix-timers.c:1245 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x48a631 Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 aa e2 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 e3 e2 ff ff 48 8b 04 24 eb 97 66 2e 0f 1f RSP: 002b:00007ffdc140b190 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 000000000000015f RCX: 000000000048a631 RDX: 00007ffdc140b1d0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffdc140b26c R08: 0000000000000000 R09: 00007ffdc154c090 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 0000000000044c52 R14: 0000000000000008 R15: 00007ffdc140b2d0 ================================================================================