================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 108 is too large for 64-bit type 'unsigned long' CPU: 1 PID: 4829 Comm: systemd-udevd Not tainted 5.12.0-rc3-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+0x176/0x24e lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:148 [inline] __ubsan_handle_shift_out_of_bounds+0x42e/0x4d0 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+0x70f/0x730 net/sched/sch_red.c:324 call_timer_fn+0x91/0x160 kernel/time/timer.c:1431 expire_timers kernel/time/timer.c:1476 [inline] __run_timers+0x6c0/0x8a0 kernel/time/timer.c:1745 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1758 __do_softirq+0x318/0x714 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0x1d8/0x200 kernel/softirq.c:422 irq_exit_rcu+0x5/0x20 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 RIP: 0010:__sanitizer_cov_trace_pc+0x59/0x60 kernel/kcov.c:207 Code: 08 15 00 00 83 fa 02 75 21 48 8b 91 10 15 00 00 48 8b 32 48 8d 7e 01 8b 89 0c 15 00 00 48 39 cf 73 08 48 89 44 f2 08 48 89 3a 66 0f 1f 44 00 00 4c 8b 04 24 65 48 8b 14 25 80 ef 01 00 65 8b RSP: 0018:ffffc9000111fb50 EFLAGS: 00000293 RAX: ffffffff81c96288 RBX: 0000000000000000 RCX: ffff8880130b1c40 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88801aa19200 R08: ffffffff81c9627b R09: fffffbfff1907f39 R10: fffffbfff1907f39 R11: 0000000000000000 R12: ffffffff81f011d0 R13: dffffc0000000000 R14: 0000000000000001 R15: ffff88801aa19202 devcgroup_inode_permission include/linux/device_cgroup.h:21 [inline] inode_permission+0xf8/0x500 fs/namei.c:517 may_lookup fs/namei.c:1656 [inline] link_path_walk+0x27a/0xcb0 fs/namei.c:2208 path_lookupat+0xab/0x9b0 fs/namei.c:2419 filename_lookup+0x1b0/0x5e0 fs/namei.c:2453 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x8f/0x320 fs/stat.c:195 vfs_fstatat fs/stat.c:217 [inline] vfs_lstat include/linux/fs.h:3240 [inline] __do_sys_newlstat fs/stat.c:372 [inline] __se_sys_newlstat fs/stat.c:366 [inline] __x64_sys_newlstat+0x81/0xd0 fs/stat.c:366 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7ff069d9f335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007ffe5a2384e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 000055a60f833290 RCX: 00007ff069d9f335 RDX: 00007ffe5a238520 RSI: 00007ffe5a238520 RDI: 000055a60f832290 RBP: 00007ffe5a2385e0 R08: 00007ff06a05e268 R09: 0000000000001010 R10: 0000000000000210 R11: 0000000000000246 R12: 000055a60f832290 R13: 000055a60f8322b0 R14: 000055a60f820f9b R15: 000055a60f820fa0 ================================================================================