================================================================================ UBSAN: Undefined behaviour in ./include/net/red.h:272:18 shift exponent 202 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 8062 Comm: kworker/1:3 Not tainted 4.19.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: (null) (rcu_gp) 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] choke_enqueue+0x2a7e/0x2cc0 net/sched/sch_choke.c:231 __dev_xmit_skb net/core/dev.c:3494 [inline] __dev_queue_xmit+0x14df/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/0x16b0 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 ip_send_skb net/ipv4/ip_output.c:1447 [inline] ip_push_pending_frames+0x8b/0x140 net/ipv4/ip_output.c:1467 icmp_push_reply+0x3e7/0x580 net/ipv4/icmp.c:395 __icmp_send+0xcd2/0x1550 net/ipv4/icmp.c:744 ipv4_send_dest_unreach net/ipv4/route.c:1220 [inline] ipv4_link_failure+0x623/0xa40 net/ipv4/route.c:1227 dst_link_failure include/net/dst.h:438 [inline] arp_error_report+0xc7/0x190 net/ipv4/arp.c:297 neigh_invalidate+0x22c/0x540 net/core/neighbour.c:900 neigh_timer_handler+0x9b0/0xc70 net/core/neighbour.c:986 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+0x257/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+0x15d/0x5d0 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x50/0x90 kernel/locking/spinlock.c:192 Code: c0 98 10 80 8a 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 3d 48 83 3d 81 8d 13 02 00 74 25 fb 66 0f 1f 44 00 00 01 00 00 00 e8 e6 e7 da f8 65 8b 05 df 5b 95 77 85 c0 74 02 5d RSP: 0018:ffff8880a0007ce8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff1500213 RBX: 0000000075c6c0a8 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff88808e6a6bc4 RBP: ffff8880b9d2b000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b9d2b000 R13: ffff8880b55b61c0 R14: ffff88808f200280 R15: 0000000000000002 finish_lock_switch kernel/sched/core.c:2578 [inline] finish_task_switch+0x172/0x8b0 kernel/sched/core.c:2678 context_switch kernel/sched/core.c:2831 [inline] __schedule+0x8eb/0x22d0 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 worker_thread+0x14c/0x1130 kernel/workqueue.c:2319 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 ================================================================================ kauditd_printk_skb: 136 callbacks suppressed audit: type=1804 audit(1603305683.229:411): pid=15927 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir236030512/syzkaller.LYdUWh/311/bus" dev="sda1" ino=16368 res=1 audit: type=1804 audit(1603305683.269:412): pid=15927 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir236030512/syzkaller.LYdUWh/311/bus" dev="sda1" ino=16368 res=1 audit: type=1804 audit(1603305683.269:413): pid=15927 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir236030512/syzkaller.LYdUWh/311/bus" dev="sda1" ino=16368 res=1 audit: type=1804 audit(1603305683.269:414): pid=15927 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir236030512/syzkaller.LYdUWh/311/bus" dev="sda1" ino=16368 res=1 audit: type=1804 audit(1603305683.489:415): pid=15944 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir236030512/syzkaller.LYdUWh/312/bus" dev="sda1" ino=16390 res=1 audit: type=1804 audit(1603305683.519:416): pid=15946 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir439469050/syzkaller.8KdtiV/240/bus" dev="sda1" ino=16392 res=1 audit: type=1804 audit(1603305683.519:417): pid=15945 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir871419507/syzkaller.0nwEUy/307/bus" dev="sda1" ino=16393 res=1 audit: type=1804 audit(1603305683.539:418): pid=15945 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir871419507/syzkaller.0nwEUy/307/bus" dev="sda1" ino=16393 res=1 audit: type=1804 audit(1603305683.539:419): pid=15945 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir871419507/syzkaller.0nwEUy/307/bus" dev="sda1" ino=16393 res=1 audit: type=1804 audit(1603305683.549:420): pid=15946 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir439469050/syzkaller.8KdtiV/240/bus" dev="sda1" ino=16392 res=1 kauditd_printk_skb: 83 callbacks suppressed audit: type=1804 audit(1603305688.319:504): pid=16270 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir871419507/syzkaller.0nwEUy/316/bus" dev="sda1" ino=16407 res=1 audit: type=1804 audit(1603305688.319:505): pid=16270 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir871419507/syzkaller.0nwEUy/316/bus" dev="sda1" ino=16407 res=1 audit: type=1804 audit(1603305688.319:506): pid=16270 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir871419507/syzkaller.0nwEUy/316/bus" dev="sda1" ino=16407 res=1 audit: type=1804 audit(1603305688.339:507): pid=16270 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir871419507/syzkaller.0nwEUy/316/bus" dev="sda1" ino=16407 res=1 audit: type=1804 audit(1603305689.039:508): pid=16305 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir439469050/syzkaller.8KdtiV/253/bus" dev="sda1" ino=16426 res=1 audit: type=1804 audit(1603305689.119:509): pid=16305 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir439469050/syzkaller.8KdtiV/253/bus" dev="sda1" ino=16426 res=1 audit: type=1804 audit(1603305689.119:510): pid=16305 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir439469050/syzkaller.8KdtiV/253/bus" dev="sda1" ino=16426 res=1 audit: type=1804 audit(1603305689.119:511): pid=16305 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir439469050/syzkaller.8KdtiV/253/bus" dev="sda1" ino=16426 res=1 audit: type=1804 audit(1603305689.689:512): pid=16337 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir400911723/syzkaller.fDZPj7/313/bus" dev="sda1" ino=16426 res=1 audit: type=1804 audit(1603305689.699:513): pid=16337 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir400911723/syzkaller.fDZPj7/313/bus" dev="sda1" ino=16426 res=1