linux-stable/include/linux/sunrpc
Trond Myklebust 89f42494f9 SUNRPC: Don't call connect() more than once on a TCP socket
Avoid socket state races due to repeated calls to ->connect() using the
same socket. If connect() returns 0 due to the connection having
completed, but we are in fact in a closing state, then we may leave the
XPRT_CONNECTING flag set on the transport.

Reported-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Fixes: 3be232f11a ("SUNRPC: Prevent immediate close+reconnect")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
2022-03-22 15:52:55 -04:00
..
addr.h
auth.h SUNRPC/auth: async tasks mustn't block waiting for memory 2022-03-13 12:59:35 -04:00
auth_gss.h
bc_xprt.h
cache.h
clnt.h SUNRPC: Per-rpc_clnt task PIDs 2021-10-10 11:05:54 +02:00
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
gss_krb5_enctypes.h
metrics.h
msg_prot.h SUNRPC: Add RPC_AUTH_TLS protocol numbers 2021-08-17 11:47:53 -04:00
rpc_pipe_fs.h
rpc_rdma.h
rpc_rdma_cid.h
sched.h NFS: discard NFS_RPC_SWAPFLAGS and RPC_TASK_ROOTCREDS 2022-03-13 12:59:35 -04:00
stats.h
svc.h Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
svc_rdma.h svcrdma: Convert rdma->sc_rw_ctxts to llist 2021-08-17 11:47:53 -04:00
svc_rdma_pcl.h
svc_xprt.h
svcauth.h
svcauth_gss.h
svcsock.h
timer.h
types.h
xdr.h SUNRPC: Add RPC_AUTH_TLS protocol numbers 2021-08-17 11:47:53 -04:00
xprt.h NFS Client Updates for Linux 5.15 2021-09-04 10:25:26 -07:00
xprtmultipath.h SUNRPC keep track of number of transports to unique addresses 2021-08-27 16:36:53 -04:00
xprtrdma.h
xprtsock.h SUNRPC: Don't call connect() more than once on a TCP socket 2022-03-22 15:52:55 -04:00