================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 181 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 8968 Comm: syz-executor.5 Not tainted 5.12.0-rc1-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+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_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x2e/0x50 kernel/locking/spinlock.c:191 Code: 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 9a de 53 f8 48 89 ef e8 12 94 54 f8 80 e7 02 74 06 e8 68 f5 73 f8 fb bf 01 00 00 00 8d 8f 48 f8 65 8b 05 e6 a3 fc 76 85 c0 74 03 5b 5d c3 e8 41 f9 RSP: 0018:ffffc900021ff9a0 EFLAGS: 00000206 RAX: 000000000087376f RBX: 0000000000000202 RCX: 1ffffffff1b8be61 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffffff90099ed0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff81794168 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffffff896cf2c0 R14: 1ffff9200043ff3b R15: ffff88801a9e4bc0 debug_object_active_state lib/debugobjects.c:940 [inline] debug_object_active_state+0x260/0x350 lib/debugobjects.c:909 debug_rcu_head_queue kernel/rcu/rcu.h:177 [inline] __call_rcu kernel/rcu/tree.c:3023 [inline] call_rcu+0x44/0x700 kernel/rcu/tree.c:3114 put_task_struct_rcu_user+0x7f/0xb0 kernel/exit.c:179 wait_task_zombie kernel/exit.c:1107 [inline] wait_consider_task+0x2fd2/0x3b70 kernel/exit.c:1334 do_wait_thread kernel/exit.c:1397 [inline] do_wait+0x376/0xa00 kernel/exit.c:1468 kernel_wait4+0x14c/0x260 kernel/exit.c:1630 __do_sys_wait4+0x13f/0x150 kernel/exit.c:1658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x464397 Code: 89 7c 24 10 48 89 4c 24 18 e8 d5 44 02 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 05 45 02 00 8b 44 RSP: 002b:0000000000a9fd40 EFLAGS: 00000293 ORIG_RAX: 000000000000003d RAX: ffffffffffffffda RBX: 000000000000076a RCX: 0000000000464397 RDX: 0000000040000001 RSI: 0000000000a9fddc RDI: 00000000ffffffff RBP: 0000000000a9fddc R08: 0000000000000000 R09: 00007ffc4b3c0090 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 00000000000c1170 R14: 0000000000000006 R15: 0000000000a9fe40 ================================================================================