================================================================================ 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: 1 PID: 9463 Comm: kworker/1:4 Not tainted 5.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: wg-kex-wg2 wg_packet_handshake_receive_worker 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_resolve_output net/core/neighbour.c:1491 [inline] neigh_resolve_output+0x50e/0x820 net/core/neighbour.c:1471 neigh_output include/net/neighbour.h:510 [inline] ip6_finish_output2+0x6ee/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:fadd arch/x86/crypto/curve25519-x86_64.c:78 [inline] RIP: 0010:point_add_and_double+0x557/0x610 arch/x86/crypto/curve25519-x86_64.c:812 Code: 56 10 4c 8b 5a 18 66 4c 0f 38 f6 5e 18 48 c7 c0 00 00 00 00 48 c7 c2 26 00 00 00 48 0f 42 c2 31 c9 49 01 c0 66 4c 0f 38 f6 c9 <4c> 89 4e 08 66 4c 0f 38 f6 d1 4c 89 56 10 66 4c 0f 38 f6 d9 4c 89 RSP: 0018:ffffc9001630f350 EFLAGS: 00000206 RAX: 0000000000000026 RBX: 000000000000d6a0 RCX: 0000000000000000 RDX: 0000000000000026 RSI: ffffc9001630f538 RDI: ffffc9001630f530 RBP: ffffc9001630f498 R08: 1ab38c91fa5eb7fa R09: 9d895cf0d4735ac2 R10: 7981ff498f487bd5 R11: 0888dd846b43d03d R12: ffffc9001630f558 R13: 000000000000425b R14: ffffc9001630f578 R15: ffffc9001630f3f8 ================================================================================