================================================================================ 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: 12191 Comm: syz-executor.5 Not tainted 5.12.0-rc2-next-20210309-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+0x136/0x200 kernel/softirq.c:422 irq_exit_rcu+0x5/0x20 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:slow_down_io arch/x86/include/asm/paravirt.h:42 [inline] RIP: 0010:outb_p arch/x86/include/asm/io.h:334 [inline] RIP: 0010:vga_io_w include/video/vga.h:209 [inline] RIP: 0010:setop drivers/video/fbdev/vga16fb.c:150 [inline] RIP: 0010:vga_imageblit_expand drivers/video/fbdev/vga16fb.c:1162 [inline] RIP: 0010:vga16fb_imageblit+0x82e/0x2210 drivers/video/fbdev/vga16fb.c:1260 Code: 98 b6 de 8b 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 83 19 00 00 ff 15 32 0b e6 07 31 c0 ba cf 03 00 00 ee <48> c7 c2 98 b6 de 8b 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 RSP: 0018:ffffc90001b2f550 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffc90013eec000 RDX: 00000000000003cf RSI: ffffffff83f8aaa2 RDI: 0000000000000003 RBP: ffffc90001b2f6dc R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff83f8aa95 R11: 0000000000000001 R12: ffffffff8131ec10 R13: ffff888142ba4d60 R14: ffffc90001b2f6f8 R15: ffffc90001b2f6d8 bit_putcs_unaligned drivers/video/fbdev/core/bitblit.c:139 [inline] bit_putcs+0x6e1/0xd20 drivers/video/fbdev/core/bitblit.c:188 fbcon_putcs+0x35a/0x450 drivers/video/fbdev/core/fbcon.c:1296 do_update_region+0x399/0x630 drivers/tty/vt/vt.c:676 insert_char+0x2fa/0x3e0 drivers/tty/vt/vt.c:849 vc_con_write_normal drivers/tty/vt/vt.c:2813 [inline] do_con_write+0xe9e/0x1e60 drivers/tty/vt/vt.c:2914 con_write+0x21/0x40 drivers/tty/vt/vt.c:3254 process_output_block drivers/tty/n_tty.c:591 [inline] n_tty_write+0x410/0xfd0 drivers/tty/n_tty.c:2353 do_tty_write drivers/tty/tty_io.c:1043 [inline] file_tty_write.constprop.0+0x526/0x910 drivers/tty/tty_io.c:1133 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:0x465f69 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:00007f924340d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69 RDX: 00000000000001b7 RSI: 0000000020001040 RDI: 0000000000000005 RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffc5b58ae8f R14: 00007f924340d300 R15: 0000000000022000 ================================================================================