================================================================================ 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: 13449 Comm: syz-executor.1 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:page_is_mergeable block/bio.c:698 [inline] RIP: 0010:__bio_try_merge_page+0x181/0x350 block/bio.c:868 Code: 24 08 48 b8 00 00 00 00 00 fc ff df 80 3c 02 00 0f 85 d6 01 00 00 48 ba 00 00 00 00 00 16 00 00 48 8b 45 00 48 01 d0 4c 01 ea <48> c1 f8 06 48 c1 fa 06 48 c1 e0 0c 48 03 44 24 08 48 c1 e2 0c 48 RSP: 0018:ffffc90001b67610 EFLAGS: 00000203 RAX: 00000000021e0300 RBX: ffff88802b7c3080 RCX: 1ffff1100f476969 RDX: 00000000021e5580 RSI: ffffffff83aba615 RDI: ffff88807a3b4b48 RBP: ffff88807a3b4b40 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff83aba5f1 R11: 0000000000000000 R12: 0000000000000000 R13: ffffea00021e5580 R14: ffffc90001b67710 R15: 0000000000001000 __bio_iov_iter_get_pages block/bio.c:1007 [inline] bio_iov_iter_get_pages+0x2fe/0x1170 block/bio.c:1106 iomap_dio_bio_actor+0x7e3/0x1090 fs/iomap/direct-io.c:317 iomap_dio_actor+0x89/0x550 fs/iomap/direct-io.c:419 iomap_apply+0x2a3/0xb50 fs/iomap/apply.c:84 __iomap_dio_rw+0x71b/0x1280 fs/iomap/direct-io.c:553 iomap_dio_rw+0x30/0x90 fs/iomap/direct-io.c:641 ext4_dio_write_iter fs/ext4/file.c:551 [inline] ext4_file_write_iter+0xe18/0x14e0 fs/ext4/file.c:661 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x796/0xa30 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 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:00007efeaf9cc188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9 RDX: 0000000000248800 RSI: 0000000020000000 RDI: 0000000000000006 RBP: 00000000004bfa34 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffc238e16bf R14: 00007efeaf9cc300 R15: 0000000000022000 ================================================================================