================================================================================ UBSAN: shift-out-of-bounds in net/sched/sch_api.c:580:10 shift exponent 128 is too large for 32-bit type 'int' CPU: 1 PID: 8585 Comm: kworker/1:8 Not tainted 5.15.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events iterate_cleanup_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 ubsan_epilogue+0xb/0x5a lib/ubsan.c:151 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:330 __qdisc_calculate_pkt_len.cold+0x1b/0xcf net/sched/sch_api.c:580 qdisc_calculate_pkt_len include/net/sch_generic.h:837 [inline] __dev_xmit_skb net/core/dev.c:3786 [inline] __dev_queue_xmit+0x115c/0x36e0 net/core/dev.c:4170 neigh_resolve_output net/core/neighbour.c:1492 [inline] neigh_resolve_output+0x50e/0x820 net/core/neighbour.c:1472 neigh_output include/net/neighbour.h:510 [inline] ip6_finish_output2+0x717/0x1500 net/ipv6/ip6_output.c:126 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline] __ip6_finish_output+0x4c1/0x1050 net/ipv6/ip6_output.c:170 ip6_finish_output+0x32/0x200 net/ipv6/ip6_output.c:201 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip6_output+0x1e4/0x530 net/ipv6/ip6_output.c:224 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ndisc_send_skb+0xa99/0x17f0 net/ipv6/ndisc.c:508 ndisc_send_rs+0x12e/0x6f0 net/ipv6/ndisc.c:702 addrconf_rs_timer+0x3f2/0x820 net/ipv6/addrconf.c:3893 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734 __run_timers kernel/time/timer.c:1715 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:finish_task_switch.isra.0+0x23c/0xa50 kernel/sched/core.c:4814 Code: 8b 3a 4c 89 e7 48 c7 02 00 00 00 00 ff d1 4d 85 ff 75 bf 4c 89 e7 e8 b3 be e8 07 e8 7e 2f 2c 00 fb 65 48 8b 1c 25 40 f0 01 00 <48> 8d bb 18 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc90017adf9c0 EFLAGS: 00000202 RAX: 0000000000022c19 RBX: ffff8880755e0140 RCX: 1ffffffff1face2a RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90017adfa00 R08: 0000000000000001 R09: ffffffff8fd00a37 R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880b9d31ac0 R13: ffff888027996340 R14: 0000000000000000 R15: ffff8880b9d31ad8 context_switch kernel/sched/core.c:4943 [inline] __schedule+0x948/0x26f0 kernel/sched/core.c:6287 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:6687 irqentry_exit+0x31/0x80 kernel/entry/common.c:425 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:__local_bh_enable_ip+0xa8/0x120 kernel/softirq.c:390 Code: 1d 8d 69 bc 7e 65 8b 05 86 69 bc 7e a9 00 ff ff 00 74 45 bf 01 00 00 00 e8 f5 31 09 00 e8 e0 d5 35 00 fb 65 8b 05 68 69 bc 7e <85> c0 74 58 5b 5d c3 65 8b 05 b6 70 bc 7e 85 c0 75 a2 0f 0b eb 9e RSP: 0018:ffffc90017adfbb8 EFLAGS: 00000202 RAX: 0000000080000000 RBX: 00000000fffffe01 RCX: 1ffffffff1face2a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff8761e7d3 R08: 0000000000000001 R09: ffffffff8fd00a37 R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff8b674740 R13: 0000000000003bee R14: 0000000000000000 R15: 0000000000000001 local_bh_enable include/linux/bottom_half.h:32 [inline] get_next_corpse net/netfilter/nf_conntrack_core.c:2252 [inline] nf_ct_iterate_cleanup+0x15a/0x450 net/netfilter/nf_conntrack_core.c:2275 nf_ct_iterate_cleanup_net net/netfilter/nf_conntrack_core.c:2363 [inline] nf_ct_iterate_cleanup_net+0x236/0x400 net/netfilter/nf_conntrack_core.c:2347 iterate_cleanup_work+0x45/0x130 net/netfilter/nf_nat_masquerade.c:216 process_one_work+0x9bf/0x16b0 kernel/workqueue.c:2297 worker_thread+0x658/0x11f0 kernel/workqueue.c:2444 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ================================================================================ ---------------- Code disassembly (best guess): 0: 8b 3a mov (%rdx),%edi 2: 4c 89 e7 mov %r12,%rdi 5: 48 c7 02 00 00 00 00 movq $0x0,(%rdx) c: ff d1 callq *%rcx e: 4d 85 ff test %r15,%r15 11: 75 bf jne 0xffffffd2 13: 4c 89 e7 mov %r12,%rdi 16: e8 b3 be e8 07 callq 0x7e8bece 1b: e8 7e 2f 2c 00 callq 0x2c2f9e 20: fb sti 21: 65 48 8b 1c 25 40 f0 mov %gs:0x1f040,%rbx 28: 01 00 * 2a: 48 8d bb 18 15 00 00 lea 0x1518(%rbx),%rdi <-- trapping instruction 31: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 38: fc ff df 3b: 48 89 fa mov %rdi,%rdx 3e: 48 rex.W 3f: c1 .byte 0xc1