================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 193 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 25222 Comm: syz-executor.4 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+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_is_held_type+0xfd/0x140 kernel/locking/lockdep.c:5554 Code: 00 00 b8 ff ff ff ff 65 0f c1 05 2e cc fb 76 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 <44> 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48 RSP: 0018:ffffc9001886f838 EFLAGS: 00000282 RAX: 0000000000000046 RBX: 0000000000000003 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff88806fc8c148 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff8196f342 R11: 0000000000000000 R12: ffff888012550000 R13: 0000000000000000 R14: 00000000ffffffff R15: ffff888012550a38 lock_is_held include/linux/lockdep.h:278 [inline] xa_entry include/linux/xarray.h:1180 [inline] xas_next_entry include/linux/xarray.h:1639 [inline] next_map_page mm/filemap.c:3086 [inline] filemap_map_pages+0x1028/0x1860 mm/filemap.c:3142 do_fault_around mm/memory.c:3920 [inline] do_read_fault mm/memory.c:3934 [inline] do_fault mm/memory.c:4067 [inline] handle_pte_fault mm/memory.c:4318 [inline] __handle_mm_fault+0x333d/0x4f70 mm/memory.c:4453 handle_mm_fault+0x1bc/0x7e0 mm/memory.c:4551 faultin_page mm/gup.c:850 [inline] __get_user_pages+0x7cf/0x1490 mm/gup.c:1069 populate_vma_page_range+0x24d/0x330 mm/gup.c:1402 __mm_populate+0x1ea/0x3e0 mm/gup.c:1450 mm_populate include/linux/mm.h:2570 [inline] vm_mmap_pgoff+0x20e/0x290 mm/util.c:524 ksys_mmap_pgoff+0xe4/0x620 mm/mmap.c:1632 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466459 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:00007f238be6c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000001000006 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00000000004bf9fb R08: ffffffffffffffff R09: 0000000000000000 R10: 0800000000009031 R11: 0000000000000246 R12: 000000000056bf60 R13: 0000000000a9fb1f R14: 00007f238be6c300 R15: 0000000000022000 ================================================================================