================================================================================ 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: 4856 Comm: systemd-udevd 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:lock_acquire+0x1ef/0x740 kernel/locking/lockdep.c:5478 Code: 8e a8 7e 83 f8 01 0f 85 ee 03 00 00 9c 58 f6 c4 02 0f 85 d9 03 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc900015df868 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff920002bbf0f RCX: ffffffff815918a3 RDX: 1ffff11002a3f821 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8fac486f R10: fffffbfff1f5890d R11: 0000000000000000 R12: 0000000000000000 R13: ffff88801976bb18 R14: 0000000000000000 R15: 0000000000000000 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] __d_lookup+0x1da/0x710 fs/dcache.c:2426 lookup_fast+0x2d0/0x6d0 fs/namei.c:1584 walk_component+0xc6/0x6a0 fs/namei.c:1935 link_path_walk.part.0+0x712/0xc90 fs/namei.c:2266 link_path_walk fs/namei.c:2190 [inline] path_lookupat+0xb7/0x830 fs/namei.c:2419 filename_lookup+0x19f/0x560 fs/namei.c:2453 do_readlinkat+0xcd/0x2f0 fs/stat.c:417 __do_sys_readlinkat fs/stat.c:444 [inline] __se_sys_readlinkat fs/stat.c:441 [inline] __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:441 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f962b4ba0ba Code: 48 8b 0d e1 bd 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 0b 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ae bd 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffca3573398 EFLAGS: 00000202 ORIG_RAX: 000000000000010b RAX: ffffffffffffffda RBX: 0000564e8f442e20 RCX: 00007f962b4ba0ba RDX: 0000564e8f442e20 RSI: 0000564e8f43c130 RDI: 00000000ffffff9c RBP: 0000000000000064 R08: 0000564e8efe9670 R09: 0000000000000070 R10: 0000000000000063 R11: 0000000000000202 R12: 0000564e8f43c130 R13: 00000000ffffff9c R14: 00007ffca35733f0 R15: 0000000000000063 ================================================================================