================================================================================ UBSAN: Undefined behaviour in ./include/net/red.h:272:18 shift exponent 184 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 18065 Comm: syz-executor.0 Not tainted 4.19.152-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 red_calc_qavg_from_idle_time include/net/red.h:272 [inline] red_calc_qavg include/net/red.h:313 [inline] red_enqueue+0x2064/0x2200 net/sched/sch_red.c:68 __dev_xmit_skb net/core/dev.c:3494 [inline] __dev_queue_xmit+0x14e1/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 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+0x3e9/0x580 net/ipv4/icmp.c:395 __icmp_send+0xcd4/0x1550 net/ipv4/icmp.c:744 icmp_send include/net/icmp.h:47 [inline] ip_fragment.constprop.0+0x1ea/0x240 net/ipv4/ip_output.c:557 ip_finish_output_gso net/ipv4/ip_output.c:283 [inline] ip_finish_output+0x9b1/0xd80 net/ipv4/ip_output.c:313 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_write_xmit+0x839/0x5050 net/ipv4/tcp_output.c:2389 __tcp_push_pending_frames+0xae/0x280 net/ipv4/tcp_output.c:2568 do_tcp_sendpages+0x157f/0x1970 net/ipv4/tcp.c:1056 tcp_sendpage_locked net/ipv4/tcp.c:1104 [inline] tcp_sendpage_locked net/ipv4/tcp.c:1096 [inline] tcp_sendpage+0x80/0xd0 net/ipv4/tcp.c:1114 inet_sendpage+0x1a4/0x700 net/ipv4/af_inet.c:815 kernel_sendpage net/socket.c:3378 [inline] sock_sendpage+0xdf/0x140 net/socket.c:847 pipe_to_sendpage+0x268/0x330 fs/splice.c:452 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x3af/0x820 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] generic_splice_sendpage+0xd4/0x140 fs/splice.c:833 do_splice_from fs/splice.c:852 [inline] do_splice fs/splice.c:1154 [inline] __do_sys_splice fs/splice.c:1428 [inline] __se_sys_splice+0xf31/0x15f0 fs/splice.c:1408 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45de59 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f2191083c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00000000000350c0 RCX: 000000000045de59 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 000000000118bf78 R08: 0000000000010003 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffd825abf7f R14: 00007f21910849c0 R15: 000000000118bf2c ================================================================================ F2FS-fs (loop4): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop4): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 F2FS-fs (loop4): Failed to get valid F2FS checkpoint F2FS-fs (loop4): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop4): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'. attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'. F2FS-fs (loop4): Failed to get valid F2FS checkpoint F2FS-fs (loop4): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop4): Can't find valid F2FS filesystem in 1th superblock attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 F2FS-fs (loop4): Failed to get valid F2FS checkpoint F2FS-fs (loop4): Magic Mismatch, valid(0xf2f52010) - read(0x0) attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 audit: type=1804 audit(1602939244.012:26): pid=18260 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-testdir898822915/syzkaller.esex9A/256/file1/file0" dev="loop3" ino=3 res=1 attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 netlink: 'syz-executor.1': attribute type 4 has an invalid length. attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready syz-executor.1 (18269) used greatest stack depth: 22384 bytes left xt_CT: No such helper "snmp_trap" audit: type=1804 audit(1602939244.812:27): pid=18305 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-testdir898822915/syzkaller.esex9A/256/file1/file0" dev="loop3" ino=3 res=1 attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 netlink: 'syz-executor.1': attribute type 4 has an invalid length. attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 xt_CT: No such helper "snmp_trap" netlink: 'syz-executor.3': attribute type 4 has an invalid length. IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready netlink: 'syz-executor.1': attribute type 4 has an invalid length. xt_CT: No such helper "snmp_trap" attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 attempt to access beyond end of device loop4: rw=12288, want=4104, limit=20 attempt to access beyond end of device loop4: rw=12288, want=8200, limit=20 netlink: 'syz-executor.3': attribute type 4 has an invalid length. netlink: 'syz-executor.1': attribute type 4 has an invalid length. xt_CT: No such helper "snmp_trap" netlink: 'syz-executor.1': attribute type 4 has an invalid length. netlink: 'syz-executor.3': attribute type 4 has an invalid length. netlink: 'syz-executor.1': attribute type 4 has an invalid length. xt_CT: No such helper "snmp_trap" IPVS: ftp: loaded support on port[0] = 21 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 'syz-executor.1': attribute type 4 has an invalid length. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. IPVS: ftp: loaded support on port[0] = 21