================================================================================ UBSAN: Undefined behaviour in net/sched/sch_api.c:561:7 shift exponent 129 is too large for 32-bit type 'int' CPU: 0 PID: 6526 Comm: syz-executor.4 Not tainted 4.19.150-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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 __qdisc_calculate_pkt_len+0x3bb/0x570 net/sched/sch_api.c:561 qdisc_calculate_pkt_len include/net/sch_generic.h:697 [inline] __dev_xmit_skb net/core/dev.c:3443 [inline] __dev_queue_xmit+0x1372/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/0x1640 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 iptunnel_xmit+0x63e/0xa30 net/ipv4/ip_tunnel_core.c:91 ip_tunnel_xmit+0x1437/0x39b0 net/ipv4/ip_tunnel.c:783 sit_tunnel_xmit__ net/ipv6/sit.c:1019 [inline] sit_tunnel_xmit+0x4f5/0x28ff net/ipv6/sit.c:1035 __netdev_start_xmit include/linux/netdevice.h:4333 [inline] netdev_start_xmit include/linux/netdevice.h:4347 [inline] xmit_one net/core/dev.c:3256 [inline] dev_hard_start_xmit+0x1a8/0x960 net/core/dev.c:3272 __dev_queue_xmit+0x276a/0x2ec0 net/core/dev.c:3838 neigh_output include/net/neighbour.h:501 [inline] ip_finish_output2+0xdca/0x1640 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_queue_xmit+0x8a0/0x1bd0 net/ipv4/ip_output.c:506 __tcp_transmit_skb+0x1c72/0x36c0 net/ipv4/tcp_output.c:1148 tcp_transmit_skb net/ipv4/tcp_output.c:1164 [inline] __tcp_retransmit_skb+0x800/0x27d0 net/ipv4/tcp_output.c:2928 tcp_retransmit_skb+0x28/0x240 net/ipv4/tcp_output.c:2947 tcp_retransmit_timer+0xd66/0x3180 net/ipv4/tcp_timer.c:512 tcp_write_timer_handler+0x601/0xb50 net/ipv4/tcp_timer.c:598 tcp_write_timer+0x103/0x1b0 net/ipv4/tcp_timer.c:618 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+0x259/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+0x15f/0x5d0 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:write_comp_data+0x23/0x70 kernel/kcov.c:122 Code: 1f 84 00 00 00 00 00 49 89 f1 49 89 fa 65 48 8b 34 25 40 ee 01 00 65 8b 05 0a 1b 90 7e a9 00 01 1f 00 75 4f 8b 86 e0 12 00 00 <83> f8 03 75 44 48 8b 86 e8 12 00 00 8b b6 e4 12 00 00 48 8b 38 48 RSP: 0018:ffff888054f97a18 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffffea00024123b4 RCX: ffffffff819e7f6e RDX: 0000000000000084 RSI: ffff888054f88140 RDI: 0000000000000005 RBP: ffffea0002412380 R08: 0000000000000000 R09: 000000000000007f R10: 0000000000000005 R11: 0000000000000004 R12: ffffea0002412388 R13: dffffc0000000000 R14: ffffea0002412380 R15: 0000000000000000 get_page include/linux/mm.h:936 [inline] copy_one_pte mm/memory.c:1052 [inline] copy_pte_range mm/memory.c:1114 [inline] copy_pmd_range mm/memory.c:1165 [inline] copy_pud_range mm/memory.c:1199 [inline] copy_p4d_range mm/memory.c:1221 [inline] copy_page_range+0x109e/0x3380 mm/memory.c:1283 dup_mmap kernel/fork.c:549 [inline] dup_mm kernel/fork.c:1288 [inline] copy_mm kernel/fork.c:1344 [inline] copy_process.part.0+0x5c68/0x7fb0 kernel/fork.c:1897 copy_process kernel/fork.c:1694 [inline] _do_fork+0x22f/0x1020 kernel/fork.c:2207 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c3fa Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d 91 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 f5 00 00 00 85 c0 41 89 c5 0f 85 fc 00 00 RSP: 002b:00007ffc2c80bbb0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffc2c80bbb0 RCX: 000000000045c3fa RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffc2c80bbf0 R08: 0000000000000001 R09: 00000000036a9940 R10: 00000000036a9c10 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffc2c80bc40 ================================================================================ MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: wrong magic MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): bogus number of reserved sectors FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" FAT-fs (loop4): bogus number of reserved sectors cramfs: empty filesystem FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): bogus number of reserved sectors FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): bogus number of reserved sectors FAT-fs (loop1): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) MTD: Attempt to mount non-MTD device "/dev/loop5" FAT-fs (loop4): Can't find a valid FAT filesystem cramfs: empty filesystem FAT-fs (loop4): bogus number of reserved sectors FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): invalid media value (0x00) MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" FAT-fs (loop4): invalid media value (0x00) FAT-fs (loop4): Can't find a valid FAT filesystem cramfs: empty filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" FAT-fs (loop4): invalid media value (0x00) cramfs: empty filesystem FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): invalid media value (0x00) FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): invalid media value (0x00) FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): invalid media value (0x00) FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): bogus number of FAT sectors FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): bogus number of FAT sectors FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem FAT-fs (loop4): bogus number of FAT sectors FAT-fs (loop4): Can't find a valid FAT filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem audit: type=1804 audit(1602150748.579:37): pid=13002 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-testdir435275759/syzkaller.DQUSNA/70/cgroup.controllers" dev="sda1" ino=16243 res=1 MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem xt_TCPMSS: Only works on TCP SYN packets MTD: Attempt to mount non-MTD device "/dev/loop5" cramfs: empty filesystem xt_TCPMSS: Only works on TCP SYN packets MTD: Attempt to mount non-MTD device "/dev/loop5"