================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 183 is too large for 64-bit type 'unsigned long' CPU: 1 PID: 11563 Comm: syz-executor.5 Not tainted 5.12.0-rc1-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+0x432/0x4d0 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] choke_enqueue+0x1a96/0x1c90 net/sched/sch_choke.c:221 __dev_xmit_skb net/core/dev.c:3837 [inline] __dev_queue_xmit+0xe5a/0x2a50 net/core/dev.c:4150 br_dev_queue_push_xmit+0x589/0x680 net/bridge/br_forward.c:51 NF_HOOK include/linux/netfilter.h:301 [inline] br_forward_finish net/bridge/br_forward.c:64 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] __br_forward+0x42b/0x5a0 net/bridge/br_forward.c:108 br_dev_xmit+0xcea/0x11a0 net/bridge/br_device.c:91 __netdev_start_xmit include/linux/netdevice.h:4825 [inline] netdev_start_xmit include/linux/netdevice.h:4839 [inline] xmit_one net/core/dev.c:3593 [inline] dev_hard_start_xmit+0x20b/0x450 net/core/dev.c:3609 __dev_queue_xmit+0x1708/0x2a50 net/core/dev.c:4182 neigh_output include/net/neighbour.h:510 [inline] ip_finish_output2+0x7b7/0x18b0 net/ipv4/ip_output.c:230 igmpv3_send_cr net/ipv4/igmp.c:719 [inline] igmp_ifc_timer_expire+0xad5/0xfa0 net/ipv4/igmp.c:807 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:free_unref_page+0x19f/0x1d0 arch/x86/include/asm/irqflags.h:45 Code: 80 3c 2b 00 74 08 48 89 e7 e8 ed 88 09 00 f7 04 24 00 02 00 00 75 29 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 1f 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d c3 RSP: 0018:ffffc90001acf508 EFLAGS: 00000206 RAX: e82ac159e2a31e00 RBX: 1ffff92000359ea1 RCX: ffffffff8ff8eb03 RDX: ffffc90013c54000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffea0001bf2260 R08: ffffffff817eab20 R09: ffffed1027fff799 R10: ffffed1027fff799 R11: 0000000000000000 R12: 0000000000000246 R13: dffffc0000000000 R14: ffffea0001bf2240 R15: 000000000006fc89 __vunmap+0x926/0xa60 mm/vmalloc.c:2286 __do_replace+0x7e8/0xa10 net/ipv4/netfilter/ip_tables.c:1087 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x265d/0x3470 net/ipv4/netfilter/ip_tables.c:1627 nf_setsockopt+0x29f/0x2d0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0x1e99/0x4d30 net/ipv4/ip_sockglue.c:1435 ipv6_setsockopt+0x198/0x5520 net/ipv6/ipv6_sockglue.c:998 __sys_setsockopt+0x4b8/0x880 net/socket.c:2117 __do_sys_setsockopt net/socket.c:2128 [inline] __se_sys_setsockopt net/socket.c:2125 [inline] __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2125 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465f69 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:00007f3b3e627188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 0000000000465f69 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00000000004bfa67 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000020000900 R11: 0000000000000246 R12: 000000000056c008 R13: 00007fff06f754df R14: 00007f3b3e627300 R15: 0000000000022000 ================================================================================