================================================================================ 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: 1 PID: 12282 Comm: syz-executor.3 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_lock_irqsave+0x2/0x50 kernel/locking/spinlock.c:158 Code: 18 31 d2 31 f6 e8 1e e8 53 f8 48 89 ef 58 5d e9 54 92 54 f8 e8 af f2 73 f8 eb c9 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 54 <55> 48 89 fd 9c 41 5c fa 41 f7 c4 00 02 00 00 75 36 bf 01 00 00 00 RSP: 0000:ffffc90001277b58 EFLAGS: 00000282 RAX: 0000000000000000 RBX: ffff88802cb320e0 RCX: 0000000000000000 RDX: ffff8880152c9bc0 RSI: ffffffff8421939e RDI: ffff88802cb32128 RBP: ffffc90001277d30 R08: 0000000000000001 R09: 0000000000000000 R10: ffffffff842144df R11: 0000000000000000 R12: ffff88801831d340 R13: ffff88802cb32120 R14: ffff88802cb32128 R15: ffff88801831e980 get_random_u64+0x46/0x1f0 drivers/char/random.c:2187 get_random_long include/linux/random.h:61 [inline] get_random_canary include/linux/random.h:83 [inline] dup_task_struct kernel/fork.c:912 [inline] copy_process+0xa79/0x6fd0 kernel/fork.c:1940 kernel_clone+0xe7/0xab0 kernel/fork.c:2462 __do_compat_sys_ia32_clone+0xac/0xe0 arch/x86/kernel/sys_ia32.c:254 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] do_int80_syscall_32+0x38/0x50 arch/x86/entry/common.c:94 entry_INT80_compat+0x71/0x76 arch/x86/entry/entry_64_compat.S:411 RIP: 0023:0x8095c44 Code: 8b 44 24 04 89 41 08 c7 41 04 00 00 00 00 53 56 57 8b 74 24 24 8b 54 24 20 8b 5c 24 18 8b 7c 24 28 b8 78 00 00 00 89 19 cd 80 <5f> 5e 5b 85 c0 0f 8c 11 72 00 00 74 01 c3 89 f5 ff d3 e8 00 00 00 RSP: 002b:00000000fff58b00 EFLAGS: 00000292 ORIG_RAX: 0000000000000078 RAX: ffffffffffffffda RBX: 00000000003d0f00 RCX: 00000000f55107a4 RDX: 00000000f5510ba8 RSI: 00000000fff58b4c RDI: 00000000f5510ba8 RBP: 000000000816b000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================