====================================================== WARNING: possible circular locking dependency detected 4.15.0+ #288 Not tainted ------------------------------------------------------ syz-executor3/6899 is trying to acquire lock: (sk_lock-AF_INET){+.+.}, at: [<00000000a8362f81>] lock_sock include/net/sock.h:1459 [inline] (sk_lock-AF_INET){+.+.}, at: [<00000000a8362f81>] do_ip_setsockopt.isra.12+0x1d9/0x32e0 net/ipv4/ip_sockglue.c:646 but task is already holding lock: (rtnl_mutex){+.+.}, at: [<000000001d7eed23>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 which lock already depends on the new lock. sctp: [Deprecated]: syz-executor0 (pid 6914) Use of int in maxseg socket option. Use struct sctp_assoc_value instead QAT: Invalid ioctl sctp: [Deprecated]: syz-executor0 (pid 6916) Use of int in maxseg socket option. Use struct sctp_assoc_value instead QAT: Invalid ioctl 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:72 register_netdevice_notifier+0xad/0x860 net/core/dev.c:1590 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:513 [inline] find_check_entry.isra.8+0x8c8/0xcb0 net/ipv4/netfilter/ip_tables.c:554 translate_table+0xed1/0x1610 net/ipv4/netfilter/ip_tables.c:725 do_replace net/ipv4/netfilter/ip_tables.c:1143 [inline] do_ipt_set_ctl+0x370/0x5f0 net/ipv4/netfilter/ip_tables.c:1677 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:1256 raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:857 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2968 SYSC_setsockopt net/socket.c:1831 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1810 entry_SYSCALL_64_fastpath+0x29/0xa0 -> #0 (sk_lock-AF_INET){+.+.}: lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920 lock_sock_nested+0xc2/0x110 net/core/sock.c:2770 lock_sock include/net/sock.h:1459 [inline] do_ip_setsockopt.isra.12+0x1d9/0x32e0 net/ipv4/ip_sockglue.c:646 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1248 udp_setsockopt+0x45/0x80 net/ipv4/udp.c:2408 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2968 SYSC_setsockopt net/socket.c:1831 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1810 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-executor3/6899: #0: (rtnl_mutex){+.+.}, at: [<000000001d7eed23>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:72 stack backtrace: CPU: 0 PID: 6899 Comm: syz-executor3 Not tainted 4.15.0+ #288 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.38+0x2cd/0x2dc kernel/locking/lockdep.c:1223 check_prev_add kernel/locking/lockdep.c:1863 [inline] check_prevs_add kernel/locking/lockdep.c:1976 [inline] validate_chain kernel/locking/lockdep.c:2417 [inline] __lock_acquire+0x30a8/0x3e00 kernel/locking/lockdep.c:3431 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3920 lock_sock_nested+0xc2/0x110 net/core/sock.c:2770 lock_sock include/net/sock.h:1459 [inline] do_ip_setsockopt.isra.12+0x1d9/0x32e0 net/ipv4/ip_sockglue.c:646 ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1248 udp_setsockopt+0x45/0x80 net/ipv4/udp.c:2408 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2968 SYSC_setsockopt net/socket.c:1831 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1810 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x453299 RSP: 002b:00007fc2f7df1c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000453299 RDX: 0000000000000023 RSI: 0000000000000000 RDI: 0000000000000014 RBP: 0000000000000387 R08: 000000000000fd15 R09: 0000000000000000 R10: 0000000020938ff4 R11: 0000000000000212 R12: 00000000006f4548 R13: 00000000ffffffff R14: 00007fc2f7df26d4 R15: 0000000000000000 device eql entered promiscuous mode sock: sock_set_timeout: `syz-executor5' (pid 6969) tries to set negative timeout sock: sock_set_timeout: `syz-executor5' (pid 6972) tries to set negative timeout QAT: Invalid ioctl QAT: Invalid ioctl sctp: [Deprecated]: syz-executor5 (pid 7054) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead IPv4: Oversized IP packet from 127.0.0.1 sctp: [Deprecated]: syz-executor5 (pid 7072) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead netlink: 188 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 188 bytes leftover after parsing attributes in process `syz-executor6'. device syz1 entered promiscuous mode netlink: 12 bytes leftover after parsing attributes in process `syz-executor5'. kauditd_printk_skb: 159 callbacks suppressed audit: type=1400 audit(1517429982.553:317): avc: denied { create } for pid=7243 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_connector_socket permissive=1 audit: type=1400 audit(1517429982.557:318): avc: denied { getopt } for pid=7243 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_connector_socket permissive=1 TCP: request_sock_TCPv6: Possible SYN flooding on port 20018. Sending cookies. Check SNMP counters. binder: BINDER_SET_CONTEXT_MGR already set binder: 7280:7283 ioctl 40046207 0 returned -16 binder: 7280:7281 unknown command 536907575 binder: 7280:7283 BC_CLEAR_DEATH_NOTIFICATION death notification not active binder: 7280:7281 ioctl c0306201 20008fd0 returned -22 binder: undelivered death notification, 0000000000000000 QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl binder: 7404:7406 BC_INCREFS_DONE u0000000000000000 no match binder: 7404:7406 BC_INCREFS_DONE u0000000000000000 no match QAT: Invalid ioctl netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. xt_SECMARK: invalid mode: 0 ip6t_REJECT: TCP_RESET illegal for non-tcp ip6t_REJECT: TCP_RESET illegal for non-tcp audit: type=1326 audit(1517429984.692:319): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7749 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429984.693:320): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7749 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429984.719:321): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7749 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=9 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429984.720:322): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7749 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429984.721:323): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7749 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429984.722:324): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7749 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=2 compat=0 ip=0x40d591 code=0x7ffc0000 audit: type=1326 audit(1517429984.723:325): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7749 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429984.724:327): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=7749 comm="syz-executor1" exe="/root/syz-executor1" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 binder: 7794:7799 BC_FREE_BUFFER u0000000000000000 no match sctp: [Deprecated]: syz-executor6 (pid 7803) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor6 (pid 7812) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead device syz3 entered promiscuous mode device syz3 left promiscuous mode binder: 7794:7819 BC_FREE_BUFFER u0000000000000000 no match netlink: 'syz-executor6': attribute type 1 has an invalid length. netlink: 'syz-executor6': attribute type 1 has an invalid length. sg_write: data in/out 700410/58 bytes for SCSI command 0xe2-- guessing data in; program syz-executor6 not setting count and/or reply_len properly sg_write: data in/out 700410/58 bytes for SCSI command 0xe2-- guessing data in; program syz-executor6 not setting count and/or reply_len properly NFS: bad mount option value specified: vs NFS: bad mount option value specified: vs QAT: Invalid ioctl QAT: Invalid ioctl kauditd_printk_skb: 32 callbacks suppressed audit: type=1400 audit(1517429987.621:359): avc: denied { map } for pid=8437 comm="syz-executor7" path="/proc/490/task/491/net/fib_triestat" dev="proc" ino=4026532987 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=1 QAT: Invalid ioctl binder: 8494:8502 transaction failed 29189/-22, size 40-8 line 2788 binder_alloc: binder_alloc_mmap_handler: 8494 20000000-20002000 already mapped failed -16 binder: 8494:8502 transaction failed 29189/-22, size 40-8 line 2788 binder: 8494:8527 transaction failed 29189/-22, size 0-0 line 2788 audit: type=1326 audit(1517429987.967:360): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 binder: undelivered TRANSACTION_ERROR: 29189 audit: type=1326 audit(1517429987.978:361): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=55 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429988.004:362): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429988.004:363): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429988.009:364): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=105 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429988.012:365): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429988.013:366): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429988.015:367): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=319 compat=0 ip=0x453299 code=0x7ffc0000 audit: type=1326 audit(1517429988.015:368): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 pid=8524 comm="syz-executor5" exe="/root/syz-executor5" sig=0 arch=c000003e syscall=202 compat=0 ip=0x453299 code=0x7ffc0000 device eql entered promiscuous mode QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl SELinux: unrecognized netlink message: protocol=6 nlmsg_type=46 sclass=netlink_xfrm_socket pig=8713 comm=syz-executor5 QAT: Invalid ioctl SELinux: unrecognized netlink message: protocol=6 nlmsg_type=46 sclass=netlink_xfrm_socket pig=8723 comm=syz-executor5 syz-executor6 (8724) used greatest stack depth: 13008 bytes left Protocol error: SET target dimension is over the limit! Protocol error: SET target dimension is over the limit!