================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 188 is too large for 64-bit type 'long unsigned int' CPU: 0 PID: 13951 Comm: syz-executor.2 Not tainted 5.12.0-rc2-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_calc_qavg include/net/red.h:353 [inline] red_enqueue.cold+0x64/0x452 net/sched/sch_red.c:77 __dev_xmit_skb net/core/dev.c:3837 [inline] __dev_queue_xmit+0x1943/0x2e00 net/core/dev.c:4150 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip6_finish_output2+0x911/0x1700 net/ipv6/ip6_output.c:117 __ip6_finish_output net/ipv6/ip6_output.c:182 [inline] __ip6_finish_output+0x4c1/0xe10 net/ipv6/ip6_output.c:161 ip6_finish_output+0x35/0x200 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip6_output+0x1e4/0x530 net/ipv6/ip6_output.c:215 dst_output include/net/dst.h:448 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ndisc_send_skb+0xa99/0x1750 net/ipv6/ndisc.c:508 ndisc_send_rs+0x12e/0x6f0 net/ipv6/ndisc.c:702 addrconf_rs_timer+0x3f2/0x820 net/ipv6/addrconf.c:3877 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:__sanitizer_cov_trace_pc+0x4c/0x60 kernel/kcov.c:202 Code: 0e 85 c9 74 35 8b 82 d4 14 00 00 85 c0 74 2b 8b 82 b0 14 00 00 83 f8 02 75 20 48 8b 8a b8 14 00 00 8b 92 b4 14 00 00 48 8b 01 <48> 83 c0 01 48 39 c2 76 07 48 89 34 c1 48 89 01 c3 0f 1f 00 41 55 RSP: 0018:ffffc9000c5dfb10 EFLAGS: 00000246 RAX: 00000000000247f6 RBX: dffffc0000000000 RCX: ffffc9000d174000 RDX: 0000000000040000 RSI: ffffffff81a5bd41 RDI: 0000000000000003 RBP: ffff888070067a50 R08: 0000000000000000 R09: 0000000000000003 R10: ffffffff81a5bc0a R11: 0000000000000000 R12: 8000000000000027 R13: 8000000031a44027 R14: 0000000000000001 R15: ffff88807349b960 follow_page_pte+0x321/0x1150 mm/gup.c:403 follow_pmd_mask mm/gup.c:622 [inline] follow_pud_mask mm/gup.c:667 [inline] follow_p4d_mask mm/gup.c:693 [inline] follow_page_mask+0xb35/0x1a10 mm/gup.c:752 __get_user_pages+0x6fd/0x1490 mm/gup.c:1067 populate_vma_page_range+0x24d/0x330 mm/gup.c:1402 __mm_populate+0x1ea/0x3e0 mm/gup.c:1450 mm_populate include/linux/mm.h:2549 [inline] __do_sys_remap_file_pages+0x540/0x850 mm/mmap.c:3052 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:00007fb886700188 EFLAGS: 00000246 ORIG_RAX: 00000000000000d8 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69 RDX: 0000000000000000 RSI: 0000000000201608 RDI: 00000000202ec000 RBP: 00000000004bfa67 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffe86a08baf R14: 00007fb886700300 R15: 0000000000022000 ================================================================================