================================================================================ UBSAN: Undefined behaviour in ./include/net/red.h:272:18 shift exponent 205 is too large for 64-bit type 'long unsigned int' CPU: 0 PID: 6760 Comm: syz-executor353 Not tainted 4.19.149-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x22c/0x33e lib/dump_stack.c:118 ubsan_epilogue+0xe/0x3a lib/ubsan.c:161 __ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422 red_calc_qavg_from_idle_time include/net/red.h:272 [inline] red_calc_qavg include/net/red.h:313 [inline] red_enqueue+0x2064/0x2200 net/sched/sch_red.c:68 __dev_xmit_skb net/core/dev.c:3494 [inline] __dev_queue_xmit+0x14e1/0x2ec0 net/core/dev.c:3807 neigh_hh_output include/net/neighbour.h:491 [inline] neigh_output include/net/neighbour.h:499 [inline] ip_finish_output2+0xc04/0x1640 net/ipv4/ip_output.c:230 ip_finish_output+0x88e/0xd80 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip_output+0x203/0x650 net/ipv4/ip_output.c:406 dst_output include/net/dst.h:455 [inline] ip_local_out+0xaf/0x170 net/ipv4/ip_output.c:125 iptunnel_xmit+0x63e/0xa30 net/ipv4/ip_tunnel_core.c:91 geneve_xmit_skb drivers/net/geneve.c:865 [inline] geneve_xmit+0xf46/0x2ac0 drivers/net/geneve.c:938 __netdev_start_xmit include/linux/netdevice.h:4333 [inline] netdev_start_xmit include/linux/netdevice.h:4347 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x960 net/core/dev.c:3272 __dev_queue_xmit+0x276a/0x2ec0 net/core/dev.c:3838 neigh_hh_output include/net/neighbour.h:491 [inline] neigh_output include/net/neighbour.h:499 [inline] ip6_finish_output2+0xe78/0x2370 net/ipv6/ip6_output.c:120 ip6_finish_output+0x610/0xcc0 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x205/0x7c0 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:455 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] mld_sendpack+0x6c1/0x1120 net/ipv6/mcast.c:1684 mld_send_cr net/ipv6/mcast.c:1980 [inline] mld_ifc_timer_expire+0x616/0xc00 net/ipv6/mcast.c:2479 call_timer_fn+0x177/0x760 kernel/time/timer.c:1338 expire_timers+0x243/0x500 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1703 [inline] run_timer_softirq+0x259/0x730 kernel/time/timer.c:1716 __do_softirq+0x27d/0xad2 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x22d/0x270 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x15f/0x5d0 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:count_memcg_events include/linux/memcontrol.h:745 [inline] RIP: 0010:count_memcg_event_mm include/linux/memcontrol.h:766 [inline] RIP: 0010:handle_mm_fault+0x86e/0xb90 mm/memory.c:4275 Code: fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 9a 02 00 00 48 83 3d 4b 78 c4 07 00 0f 84 70 01 00 00 e8 b8 c0 d2 ff 48 8b 3c 24 57 9d <0f> 1f 44 00 00 e9 a4 fa ff ff e8 a3 c0 d2 ff e8 ae 10 c0 ff 31 ff RSP: 0000:ffff8880883cfe30 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff8880a02b0700 RBX: 0000000000000200 RCX: 1ffff110140561f5 RDX: 0000000000000000 RSI: ffffffff819f11a8 RDI: 0000000000000293 RBP: ffff8880906c9358 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000055 R13: 0000000020000080 R14: 000000000000000b R15: ffff8880906c9398 __do_page_fault+0x6d8/0xe00 arch/x86/mm/fault.c:1412 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205 RIP: 0033:0x403426 Code: ba 03 00 00 00 08 00 00 00 be 11 00 00 00 bf 29 00 00 00 e8 3c 0c 04 00 48 83 f8 ff 74 07 48 89 05 6f 1c 2d 00 b8 82 00 00 20 <66> c7 04 25 80 00 00 20 11 00 be c8 b1 4a 00 48 89 c7 b9 7e 00 00 RSP: 002b:00007ffdb9561310 EFLAGS: 00010213 RAX: 0000000020000082 RBX: 0000000000000000 RCX: 0000000000444069 RDX: 0000000000000000 RSI: 0000000800000003 RDI: 0000000000000011 RBP: 00007ffdb9561310 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000b028 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================