====================================================== WARNING: possible circular locking dependency detected TCP: request_sock_TCPv6: Possible SYN flooding on port 20026. Sending cookies. Check SNMP counters. 4.15.0-rc9+ #217 Not tainted ------------------------------------------------------ syz-executor4/5467 is trying to acquire lock: (sk_lock-AF_INET){+.+.}, at: [<00000000dbd82aab>] lock_sock include/net/sock.h:1463 [inline] (sk_lock-AF_INET){+.+.}, at: [<00000000dbd82aab>] do_ip_getsockopt+0x1b3/0x2170 net/ipv4/ip_sockglue.c:1335 but task is already holding lock: (rtnl_mutex){+.+.}, at: [<000000007423997b>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (rtnl_mutex){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0x16f/0x1a80 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 register_netdevice_notifier+0xad/0x860 net/core/dev.c:1607 tee_tg_check+0x1a0/0x280 net/netfilter/xt_TEE.c:106 xt_check_target+0x22c/0x7d0 net/netfilter/x_tables.c:845 check_target net/ipv4/netfilter/ip_tables.c:518 [inline] find_check_entry.isra.8+0x8c8/0xcb0 net/ipv4/netfilter/ip_tables.c:559 translate_table+0xed1/0x1610 net/ipv4/netfilter/ip_tables.c:730 do_replace net/ipv4/netfilter/ip_tables.c:1146 [inline] do_ipt_set_ctl+0x370/0x5f0 net/ipv4/netfilter/ip_tables.c:1680 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0xa1/0xb0 net/ipv4/ip_sockglue.c:1260 sctp_setsockopt+0x2b6/0x61d0 net/sctp/socket.c:4141 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2978 SYSC_setsockopt net/socket.c:1849 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1828 entry_SYSCALL_64_fastpath+0x29/0xa0 -> #0 (sk_lock-AF_INET){+.+.}: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3914 lock_sock_nested+0xc2/0x110 net/core/sock.c:2780 lock_sock include/net/sock.h:1463 [inline] do_ip_getsockopt+0x1b3/0x2170 net/ipv4/ip_sockglue.c:1335 ip_getsockopt+0x90/0x220 net/ipv4/ip_sockglue.c:1566 udp_getsockopt+0x45/0x80 net/ipv4/udp.c:2473 sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2937 SYSC_getsockopt net/socket.c:1880 [inline] SyS_getsockopt+0x178/0x340 net/socket.c:1862 entry_SYSCALL_64_fastpath+0x29/0xa0 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(rtnl_mutex); lock(sk_lock-AF_INET); lock(rtnl_mutex); lock(sk_lock-AF_INET); *** DEADLOCK *** 1 lock held by syz-executor4/5467: #0: (rtnl_mutex){+.+.}, at: [<000000007423997b>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 stack backtrace: CPU: 0 PID: 5467 Comm: syz-executor4 Not tainted 4.15.0-rc9+ #217 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 print_circular_bug.isra.37+0x2cd/0x2dc kernel/locking/lockdep.c:1218 check_prev_add kernel/locking/lockdep.c:1858 [inline] check_prevs_add kernel/locking/lockdep.c:1971 [inline] validate_chain kernel/locking/lockdep.c:2412 [inline] __lock_acquire+0x30a8/0x3e00 kernel/locking/lockdep.c:3426 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3914 lock_sock_nested+0xc2/0x110 net/core/sock.c:2780 lock_sock include/net/sock.h:1463 [inline] do_ip_getsockopt+0x1b3/0x2170 net/ipv4/ip_sockglue.c:1335 ip_getsockopt+0x90/0x220 net/ipv4/ip_sockglue.c:1566 udp_getsockopt+0x45/0x80 net/ipv4/udp.c:2473 sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2937 SYSC_getsockopt net/socket.c:1880 [inline] SyS_getsockopt+0x178/0x340 net/socket.c:1862 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x453299 RSP: 002b:00007f182981ec58 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000030 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 0000000000000581 R08: 0000000020004000 R09: 0000000000000000 R10: 0000000020008000 R11: 0000000000000212 R12: 00000000006f74b8 R13: 00000000ffffffff R14: 00007f182981f6d4 R15: 0000000000000000 netlink: 'syz-executor3': attribute type 21 has an invalid length. audit: type=1400 audit(1517395125.635:20): avc: denied { create } for pid=5476 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_generic_socket permissive=1 audit: type=1400 audit(1517395125.641:21): avc: denied { write } for pid=5476 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_generic_socket permissive=1 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=2054 sclass=netlink_route_socket pig=5496 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=2054 sclass=netlink_route_socket pig=5506 comm=syz-executor3 can: request_module (can-proto-0) failed. can: request_module (can-proto-0) failed. sock: sock_set_timeout: `syz-executor3' (pid 5643) tries to set negative timeout sctp: [Deprecated]: syz-executor2 (pid 5647) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor2 (pid 5649) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead syz-executor3 uses obsolete (PF_INET,SOCK_PACKET) netlink: 5 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 5 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 480 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 480 bytes leftover after parsing attributes in process `syz-executor3'. xt_limit: Overflow, try lower: 1844162046/129 xt_limit: Overflow, try lower: 1844162046/129 ip6t_REJECT: TCP_RESET illegal for non-tcp ip6t_REJECT: TCP_RESET illegal for non-tcp TCP: request_sock_TCP: Possible SYN flooding on port 20006. Sending cookies. Check SNMP counters. syz-executor1 (6009) used greatest stack depth: 12752 bytes left dccp_close: ABORT with 714 bytes unread device syz4 entered promiscuous mode device syz4 left promiscuous mode device syz4 entered promiscuous mode l2tp_core: tunl 59: sockfd_lookup(fd=0) returned -88 l2tp_core: tunl 59: sockfd_lookup(fd=0) returned -88 dccp_close: ABORT with 121 bytes unread netlink: 'syz-executor3': attribute type 1 has an invalid length. netlink: 'syz-executor3': attribute type 1 has an invalid length. rdma_op 00000000a0cfb063 conn xmit_rdma (null) rdma_op 0000000072da001a conn xmit_rdma (null) sctp: [Deprecated]: syz-executor4 (pid 6468) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor4 (pid 6468) Use of int in maxseg socket option. Use struct sctp_assoc_value instead netlink: 580 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 580 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 'syz-executor6': attribute type 21 has an invalid length. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=50054 sclass=netlink_route_socket pig=6656 comm=syz-executor4 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=50054 sclass=netlink_route_socket pig=6660 comm=syz-executor4 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6681 comm=syz-executor0 sit: non-ECT from 0.0.0.0 with TOS=0x2 netlink: 'syz-executor5': attribute type 16 has an invalid length. kauditd_printk_skb: 21 callbacks suppressed audit: type=1400 audit(1517395128.979:43): avc: denied { getattr } for pid=6704 comm="syz-executor1" 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 sit: non-ECT from 0.0.0.0 with TOS=0x2 audit: type=1400 audit(1517395128.980:44): avc: denied { net_broadcast } for pid=6704 comm="syz-executor1" 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 audit: type=1400 audit(1517395129.048:45): avc: denied { getattr } for pid=6714 comm="syz-executor7" 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 audit: type=1400 audit(1517395129.146:46): avc: denied { relabelto } for pid=6744 comm="syz-executor1" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:policy_src_t:s0 tclass=packet permissive=1 ipt_ECN: cannot use TCP operations on a non-tcp rule ipt_ECN: cannot use TCP operations on a non-tcp rule audit: type=1400 audit(1517395129.257:47): avc: denied { bind } for pid=6781 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 IPv4: Oversized IP packet from 127.0.0.1 vcan0: Invalid MTU -2147483648 requested, hw min 0 vcan0: Invalid MTU -2147483648 requested, hw min 0 audit: type=1400 audit(1517395129.717:48): avc: denied { write } for pid=6962 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_crypto_socket permissive=1 netlink: 'syz-executor7': attribute type 21 has an invalid length. netlink: 'syz-executor7': attribute type 21 has an invalid length. netlink: 'syz-executor7': attribute type 21 has an invalid length. netlink: 'syz-executor7': attribute type 21 has an invalid length. audit: type=1400 audit(1517395130.282:49): avc: denied { create } for pid=7188 comm="syz-executor7" 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 Cannot find add_set index 0 as target netlink: 'syz-executor3': attribute type 1 has an invalid length. audit: type=1400 audit(1517395130.392:50): avc: denied { map } for pid=7229 comm="syz-executor6" path="socket:[17797]" dev="sockfs" ino=17797 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=tcp_socket permissive=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20018. Sending cookies. Check SNMP counters. RDS: rds_bind could not find a transport for 0.0.127.255, load rds_tcp or rds_rdma? netlink: 'syz-executor3': attribute type 1 has an invalid length. RDS: rds_bind could not find a transport for 0.0.127.255, load rds_tcp or rds_rdma? device syz4 left promiscuous mode xt_TCPMSS: Only works on TCP SYN packets xt_TCPMSS: Only works on TCP SYN packets IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 SELinux: unrecognized netlink message: protocol=9 nlmsg_type=24 sclass=netlink_audit_socket pig=7439 comm=syz-executor2 audit: type=1400 audit(1517395130.933:51): avc: denied { ioctl } for pid=7427 comm="syz-executor5" path="socket:[16992]" dev="sockfs" ino=16992 ioctlcmd=0x8946 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 audit: type=1400 audit(1517395130.962:52): avc: denied { getattr } for pid=7446 comm="syz-executor7" 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 netlink: 'syz-executor7': attribute type 18 has an invalid length. netlink: 'syz-executor7': attribute type 18 has an invalid length. SELinux: unrecognized netlink message: protocol=9 nlmsg_type=24 sclass=netlink_audit_socket pig=7469 comm=syz-executor2 netlink: 'syz-executor6': attribute type 21 has an invalid length. netlink: 'syz-executor6': attribute type 4 has an invalid length. ieee80211 phy2: Selected rate control algorithm 'minstrel_ht' ieee80211 phy3: Selected rate control algorithm 'minstrel_ht' xt_hashlimit: overflow, try lower: 18446744073709551488/1024 xt_hashlimit: overflow, try lower: 18446744073709551488/1024 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=6 sclass=netlink_route_socket pig=7800 comm=syz-executor2 xt_HMARK: hash modulus can't be zero xt_HMARK: hash modulus can't be zero RDS: rds_bind could not find a transport for 0.0.0.6, load rds_tcp or rds_rdma? RDS: rds_bind could not find a transport for 0.0.0.6, load rds_tcp or rds_rdma? netlink: 8 bytes leftover after parsing attributes in process `syz-executor2'. nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. IPv4: Oversized IP packet from 127.0.0.1 netlink: 48 bytes leftover after parsing attributes in process `syz-executor2'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=260 sclass=netlink_route_socket pig=8303 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=260 sclass=netlink_route_socket pig=8324 comm=syz-executor0 TCP: request_sock_TCP: Possible SYN flooding on port 20026. Sending cookies. Check SNMP counters. TCP: request_sock_TCPv6: Possible SYN flooding on port 20018. Sending cookies. Check SNMP counters. Protocol error: SET target dimension is over the limit! Protocol error: SET target dimension is over the limit! IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE IPv6: NLM_F_CREATE should be set when creating new route SELinux: unrecognized netlink message: protocol=4 nlmsg_type=3850 sclass=netlink_tcpdiag_socket pig=8777 comm=syz-executor6 SELinux: unrecognized netlink message: protocol=4 nlmsg_type=3850 sclass=netlink_tcpdiag_socket pig=8777 comm=syz-executor6 IPv6: NLM_F_CREATE should be set when creating new route IPv6: NLM_F_CREATE should be set when creating new route IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE