xs_tcp_setup_socket: connect returned unhandled error -113 xs_tcp_setup_socket: connect returned unhandled error -113 ====================================================== WARNING: possible circular locking dependency detected 4.14.0-rc2-mm1+ #9 Not tainted ------------------------------------------------------ kworker/0:6/7638 is trying to acquire lock: ("xprtiod"){+.+.}, at: [] start_flush_work kernel/workqueue.c:2857 [inline] ("xprtiod"){+.+.}, at: [] flush_work+0x5a2/0x8f0 kernel/workqueue.c:2889 but task is already holding lock: ((&task->u.tk_work)){+.+.}, at: [] process_one_work+0xb2c/0x1bd0 kernel/workqueue.c:2094 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 ((&task->u.tk_work)){+.+.}: check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x328f/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 process_one_work+0xba2/0x1bd0 kernel/workqueue.c:2095 worker_thread+0x223/0x1860 kernel/workqueue.c:2253 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 -> #0 ("xprtiod"){+.+.}: check_prev_add+0x865/0x1520 kernel/locking/lockdep.c:1894 check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x328f/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 start_flush_work kernel/workqueue.c:2858 [inline] flush_work+0x5c7/0x8f0 kernel/workqueue.c:2889 __cancel_work_timer+0x30a/0x7e0 kernel/workqueue.c:2961 cancel_work_sync+0x17/0x20 kernel/workqueue.c:2997 xprt_destroy+0xa1/0x130 net/sunrpc/xprt.c:1467 xprt_destroy_kref net/sunrpc/xprt.c:1477 [inline] kref_put include/linux/kref.h:70 [inline] xprt_put+0x38/0x40 net/sunrpc/xprt.c:1501 rpc_task_release_client+0x299/0x430 net/sunrpc/clnt.c:986 rpc_release_resources_task+0x7f/0xa0 net/sunrpc/sched.c:1020 rpc_release_task net/sunrpc/sched.c:1059 [inline] __rpc_execute+0x4d9/0xe70 net/sunrpc/sched.c:824 rpc_async_schedule+0x16/0x20 net/sunrpc/sched.c:848 process_one_work+0xbfa/0x1bd0 kernel/workqueue.c:2119 worker_thread+0x223/0x1860 kernel/workqueue.c:2253 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock((&task->u.tk_work)); lock("xprtiod"); lock((&task->u.tk_work)); lock("xprtiod"); *** DEADLOCK *** 2 locks held by kworker/0:6/7638: #0: ("rpciod"){+.+.}, at: [] __write_once_size include/linux/compiler.h:305 [inline] #0: ("rpciod"){+.+.}, at: [] atomic64_set arch/x86/include/asm/atomic64_64.h:33 [inline] #0: ("rpciod"){+.+.}, at: [] atomic_long_set include/asm-generic/atomic-long.h:56 [inline] #0: ("rpciod"){+.+.}, at: [] set_work_data kernel/workqueue.c:617 [inline] #0: ("rpciod"){+.+.}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ("rpciod"){+.+.}, at: [] process_one_work+0xad4/0x1bd0 kernel/workqueue.c:2090 #1: ((&task->u.tk_work)){+.+.}, at: [] process_one_work+0xb2c/0x1bd0 kernel/workqueue.c:2094 stack backtrace: CPU: 0 PID: 7638 Comm: kworker/0:6 Not tainted 4.14.0-rc2-mm1+ #9 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: rpciod rpc_async_schedule Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 print_circular_bug+0x503/0x710 kernel/locking/lockdep.c:1259 check_prev_add+0x865/0x1520 kernel/locking/lockdep.c:1894 check_prevs_add kernel/locking/lockdep.c:2020 [inline] validate_chain kernel/locking/lockdep.c:2469 [inline] __lock_acquire+0x328f/0x4620 kernel/locking/lockdep.c:3498 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:4002 start_flush_work kernel/workqueue.c:2858 [inline] flush_work+0x5c7/0x8f0 kernel/workqueue.c:2889 __cancel_work_timer+0x30a/0x7e0 kernel/workqueue.c:2961 cancel_work_sync+0x17/0x20 kernel/workqueue.c:2997 xprt_destroy+0xa1/0x130 net/sunrpc/xprt.c:1467 xprt_destroy_kref net/sunrpc/xprt.c:1477 [inline] kref_put include/linux/kref.h:70 [inline] xprt_put+0x38/0x40 net/sunrpc/xprt.c:1501 rpc_task_release_client+0x299/0x430 net/sunrpc/clnt.c:986 rpc_release_resources_task+0x7f/0xa0 net/sunrpc/sched.c:1020 rpc_release_task net/sunrpc/sched.c:1059 [inline] __rpc_execute+0x4d9/0xe70 net/sunrpc/sched.c:824 rpc_async_schedule+0x16/0x20 net/sunrpc/sched.c:848 process_one_work+0xbfa/0x1bd0 kernel/workqueue.c:2119 worker_thread+0x223/0x1860 kernel/workqueue.c:2253 kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 dccp_invalid_packet: pskb_may_pull failed dccp_invalid_packet: pskb_may_pull failed program syz-executor7 is using a deprecated SCSI ioctl, please convert it to SG_IO sg_write: data in/out 327644/30 bytes for SCSI command 0xbb-- guessing data in; program syz-executor7 not setting count and/or reply_len properly program syz-executor7 is using a deprecated SCSI ioctl, please convert it to SG_IO sg_write: data in/out 327644/30 bytes for SCSI command 0xbb-- guessing data in; program syz-executor7 not setting count and/or reply_len properly netlink: 6 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor5'. TCP: request_sock_TCP: Possible SYN flooding on port 20000. Sending cookies. Check SNMP counters. device lo entered promiscuous mode QAT: Invalid ioctl QAT: Invalid ioctl netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. audit: type=1326 audit(1506577930.162:288): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x4520a9 code=0x7ffc0000 netlink: 3 bytes leftover after parsing attributes in process `syz-executor6'. audit: type=1326 audit(1506577930.162:289): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=16 compat=0 ip=0x4520a9 code=0x7ffc0000 audit: type=1326 audit(1506577930.163:290): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x4520a9 code=0x7ffc0000 audit: type=1326 audit(1506577930.163:291): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=72 compat=0 ip=0x4520a9 code=0x7ffc0000 audit: type=1326 audit(1506577930.163:292): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x4520a9 code=0x7ffc0000 audit: type=1326 audit(1506577930.163:293): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=54 compat=0 ip=0x4520a9 code=0x7ffc0000 audit: type=1326 audit(1506577930.163:294): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x4520a9 code=0x7ffc0000 audit: type=1326 audit(1506577930.163:295): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=1 compat=0 ip=0x40c341 code=0x7ffc0000 audit: type=1326 audit(1506577930.164:296): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=202 compat=0 ip=0x4520a9 code=0x7ffc0000 audit: type=1326 audit(1506577930.164:297): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=9772 comm="" exe="/root/syz-executor6" sig=0 arch=c000003e syscall=257 compat=0 ip=0x4520a9 code=0x7ffc0000 netlink: 1 bytes leftover after parsing attributes in process `syz-executor6'. QAT: Invalid ioctl netlink: 11 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 11 bytes leftover after parsing attributes in process `syz-executor5'. QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl sctp: [Deprecated]: syz-executor2 (pid 10097) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead program syz-executor6 is using a deprecated SCSI ioctl, please convert it to SG_IO program syz-executor6 is using a deprecated SCSI ioctl, please convert it to SG_IO sctp: [Deprecated]: syz-executor2 (pid 10097) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead ?: renamed from sit0 dccp_close: ABORT with 137 bytes unread SELinux: unrecognized netlink message: protocol=0 nlmsg_type=63 sclass=netlink_route_socket pig=10278 comm=syz-executor5 sctp: [Deprecated]: syz-executor7 (pid 10358) Use of int in maxseg socket option. Use struct sctp_assoc_value instead *** Guest State *** CR0: actual=0x0000000080000031, shadow=0x0000000080000011, gh_mask=fffffffffffffff7 CR4: actual=0x0000000000012060, shadow=0x0000000000010020, gh_mask=ffffffffffffe871 CR3 = 0x0000000000002000 PDPTR0 = 0x0000000000000000 PDPTR1 = 0x0000000000000000 PDPTR2 = 0x0000000000000000 PDPTR3 = 0x0000000000000000 RSP = 0x0000000000000f80 RIP = 0x000000000000001c RFLAGS=0x00000086 DR7 = 0x0000000000000400 Sysenter RSP=0000000000000f80 CS:RIP=0050:0000000000002810 CS: sel=0x0050, attr=0x0209b, limit=0x0000ffff, base=0x0000000000000000 DS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 SS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 ES: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 FS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 GS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 GDTR: limit=0x000007ff, base=0x0000000000001000 LDTR: sel=0x0008, attr=0x04082, limit=0x000007ff, base=0x0000000000001800 IDTR: limit=0x000001ff, base=0x0000000000003800 TR: sel=0x00d8, attr=0x0008b, limit=0x000001ff, base=0x0000000000003a00 EFER = 0x0000000000000801 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 Interruptibility = 00000000 ActivityState = 00000000 *** Host State *** RIP = 0xffffffff811b93fa RSP = 0xffff8801c3f774c8 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 FSBase=00007fd11d61e700 GSBase=ffff8801db200000 TRBase=ffff8801db223200 GDTBase=ffffffffff577000 IDTBase=ffffffffff57b000 CR0=0000000080050033 CR3=00000001c3122000 CR4=00000000001426f0 Sysenter RSP=0000000000000000 CS:RIP=0010:ffffffff84d5fdf0 *** Control State *** PinBased=0000003f CPUBased=b6a06dfa SecondaryExec=0000004b EntryControls=000053ff ExitControls=0003efff ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 VMEntry: intr_info=80000040 errcode=00000000 ilen=00000000 VMExit: intr_info=00000000 errcode=00000000 ilen=00000000 reason=80000021 qualification=0000000000000000 IDTVectoring: info=00000000 errcode=00000000 TSC Offset = 0xffffffb521135878 TPR Threshold = 0x00 EPT pointer = 0x00000001c13f001e sctp: [Deprecated]: syz-executor7 (pid 10363) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor4 (pid 10401) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor4 (pid 10401) Use of int in maxseg socket option. Use struct sctp_assoc_value instead netlink: 64 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 64 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor4'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=10732 comm=syz-executor1 QAT: Invalid ioctl QAT: Invalid ioctl sg_write: data in/out 110652/491 bytes for SCSI command 0x0-- guessing data in; program syz-executor1 not setting count and/or reply_len properly sg_write: data in/out 110652/491 bytes for SCSI command 0x0-- guessing data in; program syz-executor1 not setting count and/or reply_len properly netlink: 2 bytes leftover after parsing attributes in process `syz-executor7'. kauditd_printk_skb: 58 callbacks suppressed audit: type=1326 audit(1506577935.291:355): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=11032 comm="syz-executor1" exe="/root/syz-executor1" sig=31 arch=c000003e syscall=202 compat=0 ip=0x4520a9 code=0xffff0000 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 11014 Comm: syz-executor4 Not tainted 4.14.0-rc2-mm1+ #9 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 handle_userfault+0x11ec/0x23a0 fs/userfaultfd.c:427 do_huge_pmd_anonymous_page+0xe28/0x1b00 mm/huge_memory.c:707 create_huge_pmd mm/memory.c:3802 [inline] __handle_mm_fault+0x1827/0x39c0 mm/memory.c:4005 handle_mm_fault+0x334/0x8d0 mm/memory.c:4071 __do_page_fault+0x4f6/0xb60 arch/x86/mm/fault.c:1444 do_page_fault+0xee/0x720 arch/x86/mm/fault.c:1519 page_fault+0x22/0x30 arch/x86/entry/entry_64.S:1066 RIP: 0010:copy_user_generic_unrolled+0x86/0xc0 arch/x86/lib/copy_user_64.S:65 RSP: 0018:ffff8801d40efe38 EFLAGS: 00010206 RAX: ffffed003a81dfd7 RBX: 00000000202be000 RCX: 0000000000000003 RDX: 0000000000000000 RSI: 00000000202be000 RDI: ffff8801d40efea0 RBP: ffff8801d40efe68 R08: ffffed003a81dfd7 R09: ffffed003a81dfd7 R10: 0000000000000003 R11: ffffed003a81dfd6 R12: 0000000000000018 R13: ffff8801d40efea0 R14: 00007ffffffff000 R15: 00000000202be018 copy_from_user include/linux/uaccess.h:146 [inline] SYSC_sigaltstack kernel/signal.c:3231 [inline] SyS_sigaltstack+0xa1/0x270 kernel/signal.c:3227 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x4520a9 RSP: 002b:00007f33629cbc08 EFLAGS: 00000216 ORIG_RAX: 0000000000000083 RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9 RDX: 0000000000000000 RSI: 0000000020fcd000 RDI: 00000000202be000 RBP: 0000000000003d90 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004b7fd1 R13: 00000000ffffffff R14: 0000000020fcd000 R15: 0000000000001000 netlink: 2 bytes leftover after parsing attributes in process `syz-executor7'. IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready netlink: 6 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor5'. netlink: 6 bytes leftover after parsing attributes in process `syz-executor5'. audit: type=1326 audit(1506577935.409:356): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=11032 comm="syz-executor1" exe="/root/syz-executor1" sig=31 arch=c000003e syscall=202 compat=0 ip=0x4520a9 code=0xffff0000 device gre0 entered promiscuous mode sctp: [Deprecated]: syz-executor7 (pid 11216) Use of int in maxseg socket option. Use struct sctp_assoc_value instead sock: sock_set_timeout: `syz-executor5' (pid 11224) tries to set negative timeout QAT: Invalid ioctl *** Guest State *** CR0: actual=0x0000000080000031, shadow=0x00000000e0000011, gh_mask=fffffffffffffff7 CR4: actual=0x0000000000212051, shadow=0x0000000000212011, gh_mask=ffffffffffffe871 CR3 = 0x0000000000004000 RSP = 0x0000000000000f80 RIP = 0x000000000000000b RFLAGS=0x00000086 DR7 = 0x0000000000000400 Sysenter RSP=0000000000000f80 CS:RIP=0030:0000000000002810 CS: sel=0x0030, attr=0x0409b, limit=0x000fffff, base=0x0000000000000000 DS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 SS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 ES: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 FS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 GS: sel=0x0038, attr=0x04093, limit=0x000fffff, base=0x0000000000000000 GDTR: limit=0x000007ff, base=0x0000000000001000 LDTR: sel=0x0008, attr=0x04082, limit=0x000007ff, base=0x0000000000001800 IDTR: limit=0x000001ff, base=0x0000000000003800 TR: sel=0x0000, attr=0x0008b, limit=0x0000ffff, base=0x0000000000000000 EFER = 0x0000000000000001 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 Interruptibility = 00000000 ActivityState = 00000000 *** Host State *** RIP = 0xffffffff811b93fa RSP = 0xffff8801c3f374c8 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 FSBase=00007f5bb2783700 GSBase=ffff8801db300000 TRBase=ffff8801db323200 GDTBase=ffffffffff576000 IDTBase=ffffffffff57b000 CR0=0000000080050033 CR3=00000001c5f29000 CR4=00000000001426e0 Sysenter RSP=0000000000000000 CS:RIP=0010:ffffffff84d5fdf0 EFER = 0x0000000000000d01 PAT = 0x0000000000000000 *** Control State *** PinBased=0000003f CPUBased=b6986dfa SecondaryExec=0000004a EntryControls=0000d1ff ExitControls=0023efff ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000 VMExit: intr_info=00000000 errcode=00000000 ilen=00000003 reason=80000021 qualification=0000000000000000 IDTVectoring: info=00000000 errcode=00000000 TSC Offset = 0xffffffb2ff54b89c EPT pointer = 0x00000001c360601e sctp: [Deprecated]: syz-executor7 (pid 11236) Use of int in maxseg socket option. Use struct sctp_assoc_value instead Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl QAT: Invalid ioctl Can not set IPV6_FL_F_REFLECT if flowlabel_consistency sysctl is enable QAT: Invalid ioctl QAT: Invalid ioctl 9pnet_virtio: no channels available for device ./bus 9pnet_virtio: no channels available for device ./bus