BUG: please report to dccp@vger.kernel.org => prev = 0, last = 0 at net/dccp/ccids/lib/packet_history.c:425/tfrc_rx_hist_sample_rtt() CPU: 0 PID: 5584 Comm: syz-executor0 Not tainted 4.15.0+ #222 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 tfrc_rx_hist_sample_rtt+0x407/0x4d0 net/dccp/ccids/lib/packet_history.c:422 ccid3_hc_rx_packet_recv+0x696/0xeb3 net/dccp/ccids/ccid3.c:765 ccid_hc_rx_packet_recv net/dccp/ccid.h:185 [inline] dccp_deliver_input_to_ccids+0xd9/0x250 net/dccp/input.c:180 dccp_rcv_established+0x88/0xb0 net/dccp/input.c:378 dccp_v4_do_rcv+0x135/0x160 net/dccp/ipv4.c:653 sk_backlog_rcv include/net/sock.h:908 [inline] __sk_receive_skb+0x33e/0xc10 net/core/sock.c:513 dccp_v4_rcv+0xf5f/0x1c80 net/dccp/ipv4.c:874 ip_local_deliver_finish+0x2f1/0xc50 net/ipv4/ip_input.c:216 NF_HOOK include/linux/netfilter.h:288 [inline] ip_local_deliver+0x1ce/0x6e0 net/ipv4/ip_input.c:257 dst_input include/net/dst.h:449 [inline] ip_rcv_finish+0xa36/0x2040 net/ipv4/ip_input.c:397 NF_HOOK include/linux/netfilter.h:288 [inline] ip_rcv+0xc5a/0x1840 net/ipv4/ip_input.c:493 __netif_receive_skb_core+0x1a41/0x3460 net/core/dev.c:4547 __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4612 process_backlog+0x203/0x740 net/core/dev.c:5292 napi_poll net/core/dev.c:5690 [inline] net_rx_action+0x792/0x1910 net/core/dev.c:5756 __do_softirq+0x2d7/0xb85 kernel/softirq.c:285 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1042 do_softirq.part.19+0x14d/0x190 kernel/softirq.c:329 do_softirq kernel/softirq.c:177 [inline] __local_bh_enable_ip+0x1ee/0x230 kernel/softirq.c:182 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:726 [inline] ip_finish_output2+0x962/0x1550 net/ipv4/ip_output.c:231 ip_finish_output+0x864/0xd10 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip_output+0x1d2/0x860 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:443 [inline] ip_local_out+0x95/0x160 net/ipv4/ip_output.c:124 ip_queue_xmit+0x8c0/0x18e0 net/ipv4/ip_output.c:504 dccp_transmit_skb+0x9ac/0x10f0 net/dccp/output.c:142 dccp_xmit_packet+0x215/0x740 net/dccp/output.c:281 dccp_write_xmit+0x17d/0x1d0 net/dccp/output.c:363 dccp_sendmsg+0x95f/0xdc0 net/dccp/proto.c:813 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:764 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 sock_write_iter+0x31a/0x5d0 net/socket.c:909 call_write_iter include/linux/fs.h:1781 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x684/0x970 fs/read_write.c:482 vfs_write+0x189/0x510 fs/read_write.c:544 SYSC_write fs/read_write.c:589 [inline] SyS_write+0xef/0x220 fs/read_write.c:581 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453a59 RSP: 002b:00007f9740864c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f97408656d4 RCX: 0000000000453a59 RDX: 0000000000000001 RSI: 0000000020ef9fff RDI: 0000000000000015 RBP: 000000000071c010 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000655 R14: 00000000006f9898 R15: 0000000000000002 dccp_close: ABORT with 8218 bytes unread netlink: 'syz-executor7': attribute type 1 has an invalid length. netlink: 'syz-executor7': attribute type 1 has an invalid length. syz-executor3 (5600) used greatest stack depth: 15424 bytes left Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable ipt_CLUSTERIP: Please specify an interface name Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable ipt_CLUSTERIP: Please specify an interface name xt_connbytes: Forcing CT accounting to be enabled netlink: 'syz-executor5': attribute type 3 has an invalid length. netlink: 'syz-executor5': attribute type 3 has an invalid length. dccp_v4_rcv: dropped packet with invalid checksum syz-executor1 uses obsolete (PF_INET,SOCK_PACKET) netlink: 40 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 40 bytes leftover after parsing attributes in process `syz-executor2'. sctp: [Deprecated]: syz-executor4 (pid 5960) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead sctp: [Deprecated]: syz-executor4 (pid 5976) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead netlink: 'syz-executor0': attribute type 1 has an invalid length. netlink: 'syz-executor0': attribute type 1 has an invalid length. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=60197 sclass=netlink_route_socket pig=6190 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=60197 sclass=netlink_route_socket pig=6190 comm=syz-executor5 x_tables: ip_tables: osf match: only valid for protocol 6 x_tables: ip_tables: osf match: only valid for protocol 6 kauditd_printk_skb: 18 callbacks suppressed audit: type=1400 audit(1518327935.184:40): avc: denied { ioctl } for pid=6353 comm="syz-executor7" path="socket:[16430]" dev="sockfs" ino=16430 ioctlcmd=0x43c8 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 do_dccp_getsockopt: sockopt(PACKET_SIZE) is deprecated: fix your app do_dccp_getsockopt: sockopt(PACKET_SIZE) is deprecated: fix your app netlink: 16 bytes leftover after parsing attributes in process `syz-executor6'. audit: type=1400 audit(1518327935.345:41): avc: denied { map } for pid=6372 comm="syz-executor5" path="socket:[16364]" dev="sockfs" ino=16364 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=rawip_socket permissive=1 device lo entered promiscuous mode netlink: 8 bytes leftover after parsing attributes in process `syz-executor0'. dccp_close: ABORT with 260 bytes unread NFQUEUE: number of total queues is 0 mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium NFQUEUE: number of total queues is 0 raw_sendmsg: syz-executor7 forgot to set AF_INET. Fix it! SELinux: unrecognized netlink message: protocol=0 nlmsg_type=34470 sclass=netlink_route_socket pig=6671 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=34470 sclass=netlink_route_socket pig=6685 comm=syz-executor5 audit: type=1400 audit(1518327936.555:42): avc: denied { net_bind_service } for pid=6691 comm="syz-executor0" capability=10 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 xt_l2tp: v2 doesn't support IP mode SELinux: unrecognized netlink message: protocol=4 nlmsg_type=82 sclass=netlink_tcpdiag_socket pig=6745 comm=syz-executor0 dccp_close: ABORT with 1 bytes unread audit: type=1400 audit(1518327936.875:43): avc: denied { listen } for pid=6776 comm="syz-executor6" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 ============================= WARNING: suspicious RCU usage 4.15.0+ #222 Not tainted ----------------------------- ./include/linux/rcupdate.h:302 Illegal context switch in RCU read-side critical section! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 1 lock held by syz-executor0/6801: netlink: 'syz-executor5': attribute type 21 has an invalid length. #0: (rcu_read_lock){....}, at: [<00000000845391b7>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218 stack backtrace: CPU: 1 PID: 6801 Comm: syz-executor0 Not tainted 4.15.0+ #222 netlink: 'syz-executor5': attribute type 21 has an invalid length. Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 lockdep_rcu_suspicious+0x123/0x170 kernel/locking/lockdep.c:4592 rcu_preempt_sleep_check include/linux/rcupdate.h:301 [inline] ___might_sleep+0x385/0x470 kernel/sched/core.c:6093 xt_SECMARK: target only valid in the 'mangle' or 'security' tables, not 'filter'. __might_sleep+0x95/0x190 kernel/sched/core.c:6081 slab_pre_alloc_hook mm/slab.h:420 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc_trace+0x299/0x740 mm/slab.c:3605 xt_SECMARK: target only valid in the 'mangle' or 'security' tables, not 'filter'. kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] rds_loop_conn_alloc+0xc8/0x380 net/rds/loop.c:126 do_dccp_setsockopt: sockopt(CHANGE_L/R) is deprecated: fix your app __rds_conn_create+0x112f/0x1b50 net/rds/connection.c:227 do_dccp_setsockopt: sockopt(CHANGE_L/R) is deprecated: fix your app rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:309 rds_sendmsg+0xda3/0x2390 net/rds/send.c:1126 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2046 __sys_sendmsg+0xe5/0x210 net/socket.c:2080 SYSC_sendmsg net/socket.c:2091 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2087 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453a59 RSP: 002b:00007f9740885c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f97408866d4 RCX: 0000000000453a59 RDX: 0000000000000000 RSI: 0000000020159fc8 RDI: 0000000000000013 RBP: 000000000071bf58 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004a7 R14: 00000000006f7048 R15: 0000000000000001 BUG: sleeping function called from invalid context at mm/slab.h:420 in_atomic(): 1, irqs_disabled(): 0, pid: 6801, name: syz-executor0 1 lock held by syz-executor0/6801: #0: (rcu_read_lock){....}, at: [<00000000845391b7>] __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218 CPU: 1 PID: 6801 Comm: syz-executor0 Not tainted 4.15.0+ #222 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6128 __might_sleep+0x95/0x190 kernel/sched/core.c:6081 slab_pre_alloc_hook mm/slab.h:420 [inline] slab_alloc mm/slab.c:3365 [inline] kmem_cache_alloc_trace+0x299/0x740 mm/slab.c:3605 kmalloc include/linux/slab.h:512 [inline] kzalloc include/linux/slab.h:701 [inline] rds_loop_conn_alloc+0xc8/0x380 net/rds/loop.c:126 __rds_conn_create+0x112f/0x1b50 net/rds/connection.c:227 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7344 sclass=netlink_route_socket pig=6854 comm=syz-executor6 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7344 sclass=netlink_route_socket pig=6858 comm=syz-executor6 rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:309 rds_sendmsg+0xda3/0x2390 net/rds/send.c:1126 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 ___sys_sendmsg+0x767/0x8b0 net/socket.c:2046 __sys_sendmsg+0xe5/0x210 net/socket.c:2080 SYSC_sendmsg net/socket.c:2091 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2087 do_syscall_64+0x282/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x26/0x9b RIP: 0033:0x453a59 RSP: 002b:00007f9740885c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f97408866d4 RCX: 0000000000453a59 RDX: 0000000000000000 RSI: 0000000020159fc8 RDI: 0000000000000013 RBP: 000000000071bf58 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004a7 R14: 00000000006f7048 R15: 0000000000000001 Cannot find set identified by id 1 to match can: request_module (can-proto-0) failed. can: request_module (can-proto-0) failed. audit: type=1400 audit(1518327938.000:44): avc: denied { read } for pid=6886 comm="syz-executor4" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_netfilter_socket permissive=1 xt_connbytes: Forcing CT accounting to be enabled audit: type=1400 audit(1518327938.099:45): avc: denied { setopt } for pid=6914 comm="syz-executor5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_crypto_socket permissive=1 audit: type=1400 audit(1518327938.333:46): avc: denied { getopt } for pid=6979 comm="syz-executor6" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 audit: type=1400 audit(1518327938.357:47): avc: denied { read } for pid=6979 comm="syz-executor6" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=65535 sclass=netlink_route_socket pig=6999 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=65535 sclass=netlink_route_socket pig=7008 comm=syz-executor3 sctp: [Deprecated]: syz-executor7 (pid 7053) Use of int in maxseg socket option. Use struct sctp_assoc_value instead SELinux: unrecognized netlink message: protocol=0 nlmsg_type=26529 sclass=netlink_route_socket pig=7073 comm=syz-executor4 sctp: [Deprecated]: syz-executor7 (pid 7053) Use of int in maxseg socket option. Use struct sctp_assoc_value instead IPVS: length: 760 != 24 syz-executor6 (7115) used greatest stack depth: 14848 bytes left netlink: 'syz-executor6': attribute type 26 has an invalid length. netlink: 248 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 'syz-executor6': attribute type 26 has an invalid length. netlink: 248 bytes leftover after parsing attributes in process `syz-executor6'. x_tables: ip_tables: TCPOPTSTRIP target: only valid in mangle table, not security x_tables: ip_tables: TCPOPTSTRIP target: only valid in mangle table, not security sctp: [Deprecated]: syz-executor1 (pid 7189) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead netlink: 'syz-executor7': attribute type 11 has an invalid length. sctp: [Deprecated]: syz-executor1 (pid 7189) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead netlink: 'syz-executor7': attribute type 11 has an invalid length. Cannot find set identified by id 0 to match Cannot find set identified by id 0 to match audit: type=1400 audit(1518327940.514:48): avc: denied { create } for pid=7556 comm="syz-executor5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_connector_socket permissive=1 xt_HMARK: hash modulus can't be zero audit: type=1400 audit(1518327940.542:49): avc: denied { setopt } for pid=7556 comm="syz-executor5" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_connector_socket permissive=1 audit: type=1400 audit(1518327940.543:50): avc: denied { net_broadcast } for pid=7556 comm="syz-executor5" capability=11 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 xt_HMARK: hash modulus can't be zero TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. audit: type=1400 audit(1518327941.292:51): avc: denied { setopt } for pid=7771 comm="syz-executor4" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1 audit: type=1400 audit(1518327941.408:52): avc: denied { ioctl } for pid=7808 comm="syz-executor0" path="socket:[19030]" dev="sockfs" ino=19030 ioctlcmd=0x8903 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_generic_socket permissive=1