================================================================================
UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18
shift exponent 109 is too large for 64-bit type 'unsigned long'
CPU: 0 PID: 16547 Comm: syz-executor.0 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+0x125/0x19e lib/dump_stack.c:120
ubsan_epilogue lib/ubsan.c:148 [inline]
__ubsan_handle_shift_out_of_bounds+0x432/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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x33/0x50 kernel/locking/spinlock.c:191
Code: 48 83 c7 18 48 8b 74 24 10 e8 e9 20 0a f8 48 89 df e8 c1 f2 0b f8 41 f7 c6 00 02 00 00 74 06 e8 c3 51 2c f8 fb bf 01 00 00 00 b8 3e 00 f8 65 8b 05 99 d5 af 76 85 c0 74 04 5b 41 5e c3 e8 4b
RSP: 0018:ffffc90001bff900 EFLAGS: 00000286
RAX: 63cbbe49b7440800 RBX: ffff88807b402ab0 RCX: ffffffff815c802a
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff88807b402aa8 R08: dffffc0000000000 R09: fffffbfff1f29ab9
R10: fffffbfff1f29ab9 R11: 0000000000000000 R12: 00fff00000080035
R13: ffffea00012ef080 R14: 0000000000000286 R15: 0000000000000286
spin_unlock_irqrestore include/linux/spinlock.h:409 [inline]
delete_from_page_cache+0x147/0x1a0 mm/filemap.c:277
truncate_inode_page+0x90/0xb0 mm/truncate.c:223
shmem_undo_range+0x46c/0x1a50 mm/shmem.c:927
shmem_truncate_range mm/shmem.c:1030 [inline]
shmem_fallocate+0x3d6/0xe20 mm/shmem.c:2736
vfs_fallocate+0x556/0x8b0 fs/open.c:311
madvise_remove+0x237/0x290 mm/madvise.c:866
madvise_vma mm/madvise.c:928 [inline]
do_madvise+0x5ee/0x1430 mm/madvise.c:1133
__do_sys_madvise mm/madvise.c:1159 [inline]
__se_sys_madvise mm/madvise.c:1157 [inline]
__x64_sys_madvise+0xa2/0xb0 mm/madvise.c:1157
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x465ef9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2e4dc49188 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9
RDX: 0000000000000009 RSI: 000000000060000b RDI: 0000000020000000
RBP: 00000000004bfa34 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007fff06d01a6f R14: 00007f2e4dc49300 R15: 0000000000022000
================================================================================