================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 65 is too large for 64-bit type 'long unsigned int' CPU: 0 PID: 28520 Comm: syz-executor.3 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_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] ip_finish_output2+0x83d/0x21f0 net/ipv4/ip_output.c:230 __ip_finish_output net/ipv4/ip_output.c:308 [inline] __ip_finish_output+0x396/0x640 net/ipv4/ip_output.c:290 ip_finish_output+0x35/0x200 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip_output+0x196/0x310 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:448 [inline] ip_local_out+0xaf/0x1a0 net/ipv4/ip_output.c:126 igmpv3_send_cr net/ipv4/igmp.c:719 [inline] igmp_ifc_timer_expire+0x7a7/0xf30 net/ipv4/igmp.c:807 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_const_cmp8+0xc/0x70 kernel/kcov.c:290 Code: 4c 38 f0 48 c7 44 38 e0 05 00 00 00 48 89 74 38 e8 4e 89 54 c8 20 48 89 10 c3 0f 1f 40 00 49 89 f8 bf 03 00 00 00 4c 8b 14 24 <48> 89 f1 65 48 8b 34 25 00 f0 01 00 e8 83 ef ff ff 84 c0 74 48 48 RSP: 0018:ffffc90016d8fdd0 EFLAGS: 00000246 RAX: 1ffff92002db1952 RBX: ffff88807be0b780 RCX: 0000000000000000 RDX: ffff88807be0b780 RSI: 0000000000000000 RDI: 0000000000000003 RBP: ffffc90016d8ca90 R08: 0000000000000000 R09: ffff8880123ca107 R10: ffffffff8144c199 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc90016d88000 R14: dffffc0000000000 R15: ffffc90016d8fe88 stack_not_used include/linux/sched/task_stack.h:101 [inline] check_stack_usage kernel/exit.c:710 [inline] do_exit+0x18b9/0x2a60 kernel/exit.c:868 do_group_exit+0x125/0x310 kernel/exit.c:922 __do_sys_exit_group kernel/exit.c:933 [inline] __se_sys_exit_group kernel/exit.c:931 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:931 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465f69 Code: Unable to access opcode bytes at RIP 0x465f3f. RSP: 002b:00007ffcd7b6d198 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 000000000000001e RCX: 0000000000465f69 RDX: 000000000041927b RSI: ffffffffffffffbc RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffcd7b6d290 ================================================================================