OrangePi_CM5/include/linux/sunrpc
Trond Myklebust dbe6974a39 SUNRPC: Don't call connect() more than once on a TCP socket
commit 89f42494f92f448747bd8a7ab1ae8b5d5520577d upstream.

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: 3be232f11a3c ("SUNRPC: Prevent immediate close+reconnect")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
[meenashanmugam: Backported to 5.10: Fixed merge conflict in xs_tcp_setup_socket]
Signed-off-by: Meena Shanmugam <meenashanmugam@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-18 10:23:48 +02:00
..
addr.h
…
auth.h
…
auth_gss.h
…
bc_xprt.h
…
cache.h
…
clnt.h
…
debug.h
…
gss_api.h
…
gss_asn1.h
…
gss_err.h
…
gss_krb5.h
…
gss_krb5_enctypes.h
…
metrics.h
…
msg_prot.h
…
rpc_pipe_fs.h
…
rpc_rdma.h
…
rpc_rdma_cid.h
…
sched.h
…
stats.h
…
svc.h
…
svc_rdma.h
…
svc_xprt.h
…
svcauth.h
…
svcauth_gss.h
…
svcsock.h
…
timer.h
…
types.h
…
xdr.h NFSD: prevent integer overflow on 32 bit systems 2022-04-08 14:39:51 +02:00
xprt.h
…
xprtmultipath.h
…
xprtrdma.h
…
xprtsock.h SUNRPC: Don't call connect() more than once on a TCP socket 2022-05-18 10:23:48 +02:00