================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 108 is too large for 64-bit type 'unsigned long' CPU: 1 PID: 16502 Comm: syz-executor.3 Not tainted 5.12.0-rc4-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+0x176/0x24e lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:148 [inline] __ubsan_handle_shift_out_of_bounds+0x42e/0x4d0 lib/ubsan.c:327 red_calc_qavg_from_idle_time include/net/red.h:312 [inline] red_adaptative_algo include/net/red.h:444 [inline] red_adaptative_timer+0x70f/0x730 net/sched/sch_red.c:324 call_timer_fn+0x91/0x160 kernel/time/timer.c:1431 expire_timers kernel/time/timer.c:1476 [inline] __run_timers+0x6c0/0x8a0 kernel/time/timer.c:1745 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1758 __do_softirq+0x318/0x714 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0x1d8/0x200 kernel/softirq.c:422 irq_exit_rcu+0x5/0x20 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline] RIP: 0010:__local_bh_enable_ip+0x100/0x170 kernel/softirq.c:205 Code: 89 e8 44 e5 0c 08 65 66 8b 05 0c ee b9 7e 66 85 c0 75 40 bf 01 00 00 00 e8 8d 4c 09 00 e8 48 b8 35 00 fb 65 8b 05 b8 9a b8 7e <85> c0 75 05 e8 6e f6 b6 ff 65 48 8b 04 25 28 00 00 00 48 3b 44 24 RSP: 0018:ffffc9001682f158 EFLAGS: 00000282 RAX: 0000000080000000 RBX: dffffc0000000000 RCX: ffffffff815d04da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000200 R08: dffffc0000000000 R09: fffffbfff1f296b5 R10: fffffbfff1f296b5 R11: 0000000000000000 R12: 000000000000935c R13: dffffc0000000000 R14: ffffffff87cfedf5 R15: ffff88801d4fbb00 get_next_corpse net/netfilter/nf_conntrack_core.c:2222 [inline] nf_ct_iterate_cleanup+0x357/0x3f0 net/netfilter/nf_conntrack_core.c:2245 nf_ct_iterate_cleanup_net+0x101/0x150 net/netfilter/nf_conntrack_core.c:2330 masq_device_event+0x9b/0xd0 net/netfilter/nf_nat_masquerade.c:88 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xe7/0x170 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2063 [inline] call_netdevice_notifiers_extack net/core/dev.c:2075 [inline] call_netdevice_notifiers net/core/dev.c:2089 [inline] dev_close_many+0x31d/0x4d0 net/core/dev.c:1664 unregister_netdevice_many+0x4d4/0x18e0 net/core/dev.c:10882 __rtnl_newlink net/core/rtnetlink.c:3474 [inline] rtnl_newlink+0x1753/0x1b30 net/core/rtnetlink.c:3491 rtnetlink_rcv_msg+0x895/0xd50 net/core/rtnetlink.c:5553 netlink_rcv_skb+0x190/0x3a0 net/netlink/af_netlink.c:2502 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline] netlink_unicast+0x786/0x940 net/netlink/af_netlink.c:1338 netlink_sendmsg+0x9ae/0xd50 net/netlink/af_netlink.c:1927 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] ____sys_sendmsg+0x519/0x800 net/socket.c:2350 ___sys_sendmsg net/socket.c:2404 [inline] __sys_sendmsg+0x2bf/0x370 net/socket.c:2433 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466459 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:00007fa0f07d7188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056c0b0 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0b0 R13: 00007ffc9201fe8f R14: 00007fa0f07d7300 R15: 0000000000022000 ================================================================================