====================================================== WARNING: possible circular locking dependency detected 4.15.0-rc9+ #214 Not tainted ------------------------------------------------------ syz-executor6 (6041) used greatest stack depth: 12928 bytes left syz-executor4/6037 is trying to acquire lock: (sk_lock-AF_INET){+.+.}, at: [<00000000a60f87f6>] lock_sock include/net/sock.h:1463 [inline] (sk_lock-AF_INET){+.+.}, at: [<00000000a60f87f6>] do_ip_getsockopt+0x1b3/0x2170 net/ipv4/ip_sockglue.c:1335 but task is already holding lock: (rtnl_mutex){+.+.}, at: [<000000001b60d064>] 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 clusterip_config_init net/ipv4/netfilter/ipt_CLUSTERIP.c:261 [inline] clusterip_tg_check+0xeb9/0x1570 net/ipv4/netfilter/ipt_CLUSTERIP.c:478 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 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:870 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/6037: #0: (rtnl_mutex){+.+.}, at: [<000000001b60d064>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:74 stack backtrace: CPU: 1 PID: 6037 Comm: syz-executor4 Not tainted 4.15.0-rc9+ #214 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:00007f1ee2771c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000030 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 0000000000000134 R08: 0000000020a52000 R09: 0000000000000000 R10: 0000000020008000 R11: 0000000000000212 R12: 00000000006f0d80 R13: 00000000ffffffff R14: 00007f1ee27726d4 R15: 0000000000000000 xt_l2tp: missing protocol rule (udp|l2tpip) xt_l2tp: missing protocol rule (udp|l2tpip) Protocol error: SET target dimension is over the limit! Protocol error: SET target dimension is over the limit! RDS: rds_bind could not find a transport for 172.20.0.170, load rds_tcp or rds_rdma? netlink: 'syz-executor7': attribute type 4 has an invalid length. netlink: 17 bytes leftover after parsing attributes in process `syz-executor7'. netlink: 'syz-executor7': attribute type 4 has an invalid length. netlink: 17 bytes leftover after parsing attributes in process `syz-executor7'. TCP: request_sock_TCPv6: Possible SYN flooding on port 20006. Sending cookies. Check SNMP counters. netlink: 'syz-executor5': attribute type 3 has an invalid length. netlink: 'syz-executor5': attribute type 3 has an invalid length. SELinux: unrecognized netlink message: protocol=4 nlmsg_type=17 sclass=netlink_tcpdiag_socket pig=6476 comm=syz-executor4 kauditd_printk_skb: 14 callbacks suppressed audit: type=1400 audit(1517237462.813:36): avc: denied { read } for pid=6468 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 device syz6 entered promiscuous mode device syz6 left promiscuous mode device syz6 entered promiscuous mode audit: type=1400 audit(1517237463.124:37): avc: denied { read } for pid=6549 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_generic_socket permissive=1 netlink: 'syz-executor2': attribute type 21 has an invalid length. can: request_module (can-proto-6) failed. can: request_module (can-proto-6) failed. can: request_module (can-proto-0) failed. can: request_module (can-proto-0) failed. netlink: 8 bytes leftover after parsing attributes in process `syz-executor2'. can: request_module (can-proto-6) failed. netlink: 8 bytes leftover after parsing attributes in process `syz-executor2'. can: request_module (can-proto-6) failed. audit: type=1400 audit(1517237463.733:38): avc: denied { map } for pid=6838 comm="syz-executor5" path="socket:[16034]" dev="sockfs" ino=16034 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=netlink_route_socket permissive=1 audit: type=1400 audit(1517237463.950:39): avc: denied { map } for pid=6915 comm="syz-executor4" path="socket:[16109]" dev="sockfs" ino=16109 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=dccp_socket permissive=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20006. Sending cookies. Check SNMP counters. audit: type=1400 audit(1517237464.209:40): avc: denied { net_broadcast } for pid=7029 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 TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 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 IPv4: Oversized IP packet from 127.0.0.1 PF_BRIDGE: br_mdb_parse() with unknown ifindex audit: type=1400 audit(1517237465.025:41): avc: denied { shutdown } for pid=7307 comm="syz-executor3" 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 PF_BRIDGE: br_mdb_parse() with unknown ifindex audit: type=1400 audit(1517237465.187:42): avc: denied { setopt } for pid=7368 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 audit: type=1400 audit(1517237465.341:43): avc: denied { setopt } for pid=7433 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 Cannot find add_set index 0 as target audit: type=1400 audit(1517237465.368:44): avc: denied { accept } for pid=7433 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 Cannot find add_set index 0 as target audit: type=1400 audit(1517237465.505:45): avc: denied { ioctl } for pid=7482 comm="syz-executor3" path="socket:[17579]" dev="sockfs" ino=17579 ioctlcmd=0x5411 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 ipt_REJECT: TCP_RESET invalid for non-tcp bpf: check failed: parse error dst_release: dst:00000000a1ad7d2a refcnt:-1 ipt_REJECT: TCP_RESET invalid for non-tcp bpf: check failed: parse error netlink: 7 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 'syz-executor4': attribute type 17 has an invalid length. netlink: 'syz-executor4': attribute type 17 has an invalid length. netlink: 7 bytes leftover after parsing attributes in process `syz-executor7'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1454 sclass=netlink_route_socket pig=7766 comm=syz-executor1 PF_BRIDGE: br_mdb_parse() with non-bridge netlink: 7 bytes leftover after parsing attributes in process `syz-executor7'. PF_BRIDGE: br_mdb_parse() with non-bridge SELinux: unrecognized netlink message: protocol=0 nlmsg_type=1454 sclass=netlink_route_socket pig=7821 comm=syz-executor1 bridge0: port 1(syz4) entered blocking state bridge0: port 1(syz4) entered disabled state device syz4 entered promiscuous mode bridge0: port 1(syz4) entered blocking state bridge0: port 1(syz4) entered forwarding state IPv6: ADDRCONF(NETDEV_CHANGE): bridge0: link becomes ready Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. xt_socket: unknown flags 0xf2 xt_socket: unknown flags 0xf2 kauditd_printk_skb: 3 callbacks suppressed audit: type=1400 audit(1517237470.418:49): avc: denied { ioctl } for pid=8082 comm="syz-executor1" path="socket:[18034]" dev="sockfs" ino=18034 ioctlcmd=0x8915 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-executor1': attribute type 21 has an invalid length. netlink: 'syz-executor5': attribute type 21 has an invalid length. netlink: 'syz-executor5': attribute type 21 has an invalid length. ipt_CLUSTERIP: Please specify destination IP device syz3 entered promiscuous mode device syz3 left promiscuous mode syz-executor4 (8144) used greatest stack depth: 8736 bytes left