Searched hist:"89 f42494" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/sunrpc/ |
H A D | xprtsock.h | 89f42494 Wed Mar 16 18:10:43 CDT 2022 Trond Myklebust <trond.myklebust@hammerspace.com> 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: 3be232f11a3c ("SUNRPC: Prevent immediate close+reconnect") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
|
/openbmc/linux/net/sunrpc/ |
H A D | xprtsock.c | 89f42494 Wed Mar 16 18:10:43 CDT 2022 Trond Myklebust <trond.myklebust@hammerspace.com> 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: 3be232f11a3c ("SUNRPC: Prevent immediate close+reconnect") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
|