]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Revert "SUNRPC: attempt AF_LOCAL connect on setup"
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 29 Apr 2022 16:27:30 +0000 (12:27 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:23:10 +0000 (14:23 +0200)
commit64816866a4bc1d1bdd35ea53f6cf1e506ec02a93
tree4ea3fbdf9a2214df18428deec2c272971814e9cf
parent6e58d2a206eef571b7556c33ffd11b2351537fdd
Revert "SUNRPC: attempt AF_LOCAL connect on setup"

BugLink: https://bugs.launchpad.net/bugs/1978240
commit a3d0562d4dc039bca39445e1cddde7951662e17d upstream.

This reverts commit 7073ea8799a8cf73db60270986f14e4aae20fa80.

We must not try to connect the socket while the transport is under
construction, because the mechanisms to safely tear it down are not in
place. As the code stands, we end up leaking the sockets on a connection
error.

Reported-by: wanghai (M) <wanghai38@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/sunrpc/xprtsock.c