Files
kernel_arpi/include/linux
Trond Myklebust 5d69622eb0 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-13 20:59:26 +02:00
..
2021-09-02 22:49:16 +02:00
2021-09-20 12:43:34 +01:00
2021-09-08 15:32:35 -07:00
2021-12-14 10:57:11 +01:00
2021-11-25 09:48:41 +01:00
2021-09-07 21:17:28 +02:00
2021-09-06 07:20:56 -04:00
2021-11-25 09:49:08 +01:00
2021-09-03 09:58:13 -07:00
2022-04-13 20:59:03 +02:00
2021-11-18 19:15:51 +01:00
2021-09-17 13:52:17 +01:00
2021-09-02 21:38:56 +02:00
2021-10-07 16:51:57 +02:00
2021-11-21 13:44:12 +01:00
2021-09-08 15:32:35 -07:00
2021-09-15 09:22:35 -06:00
2021-12-14 10:57:15 +01:00